Skip to content

Commit

Permalink
fixing error
Browse files Browse the repository at this point in the history
  • Loading branch information
johnaoga committed Nov 10, 2024
1 parent f37aba8 commit 5b81899
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MOI_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ function input_indices(model::Optimizer)
end

function setup!(model::Optimizer)
if any(isnothing, model.dynamic)
if all(isnothing, model.dynamic)
error("Missing dynamics. i.e. ∂(x) = f(x, u) or Δ(x) = f(x, u)")
end

Expand Down

0 comments on commit 5b81899

Please sign in to comment.