Skip to content

Remove dual solution warning from optimize!#154

Merged
joaquimg merged 5 commits intojump-dev:masterfrom
gvidigal-psr:gv/dual-warning
Jul 2, 2024
Merged

Remove dual solution warning from optimize!#154
joaquimg merged 5 commits intojump-dev:masterfrom
gvidigal-psr:gv/dual-warning

Conversation

@gvidigal-psr
Copy link
Copy Markdown
Contributor

Replace "Dual solution not available" warning in MOI.optimize! with an error in MOI.get. Otherwise, a warning is shown even when duals are not requested.

@codecov
Copy link
Copy Markdown

codecov bot commented Jul 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.14%. Comparing base (0d806e7) to head (b1d304e).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #154   +/-   ##
=======================================
  Coverage   95.14%   95.14%           
=======================================
  Files           5        5           
  Lines        1010     1010           
=======================================
  Hits          961      961           
  Misses         49       49           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

c::MOI.ConstraintIndex{MOI.VariableIndex,MOI.Parameter{T}},
) where {T}
if !model.evaluate_duals
error()
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be throw(MOI.GetAttributeNotAllowed("..."))

@joaquimg joaquimg merged commit 5001fa0 into jump-dev:master Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants