Skip to content

Commit

Permalink
Editing optimize!
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphMota committed Apr 19, 2023
1 parent 54d5a7c commit 5a4c16d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MOI/MOI_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2786,7 +2786,7 @@ function MOI.optimize!(model::Optimizer)
end
#Case with NL Constraints
else
if length(model.nlp_constraint_info)>length(model.affine_constraint_info)
if length(model.affine_constraint_info)>length(model.nlp_constraint_info)
# Delete existing constraints when optimize! is called again
count=length(model.affine_constraint_info)
if count>0
Expand Down

0 comments on commit 5a4c16d

Please sign in to comment.