Skip to content

Commit

Permalink
Add back DualStatus check
Browse files Browse the repository at this point in the history
  • Loading branch information
gvidigal-psr committed Jul 1, 2024
1 parent 18698a0 commit 074bc1b
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 @@ -1367,7 +1367,7 @@ function MOI.optimize!(model::Optimizer)
_set_quadratic_product_in_obj!(model)
end
MOI.optimize!(model.optimizer)
if model.evaluate_duals
if MOI.get(model, MOI.DualStatus()) != MOI.NO_SOLUTION && model.evaluate_duals
_compute_dual_of_parameters!(model)
end
return
Expand Down

0 comments on commit 074bc1b

Please sign in to comment.