Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove dual solution warning from optimize! #154

Merged
merged 5 commits into from
Jul 2, 2024

Conversation

gvidigal-psr
Copy link
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.

Copy link

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
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
7 checks passed
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