Skip to content

[breaking] remove ParameterValue and ParameterDual#219

Merged
odow merged 4 commits intomasterfrom
od/deprecate-attr
Feb 18, 2026
Merged

[breaking] remove ParameterValue and ParameterDual#219
odow merged 4 commits intomasterfrom
od/deprecate-attr

Conversation

@odow
Copy link
Member

@odow odow commented Feb 18, 2026

No description provided.

@constraint(model, cons, x * p >= 3)
@objective(model, Min, 2x)
optimize!(model)
@test isapprox(dual(ParameterRef(p)), -6; atol = 1e-4)
Copy link
Member Author

Choose a reason for hiding this comment

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

Okay. This one tripped me up for a while to figure out what was going on. Getting ConstraintDual falls back to get_fallback. Is that correct? It it just the same as the dual of a fixed variable? I don't really understand how this worked.

Copy link
Member Author

Choose a reason for hiding this comment

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

Or maybe I need to delete this, and error in MOI?

Copy link
Member

Choose a reason for hiding this comment

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

just noticed now, this is multiplicative parameter, we should error

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah I now error, which prevents the get_fallback from triggering. Previously I threw a GetAttributeNotAllowed.

@codecov
Copy link

codecov bot commented Feb 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.67%. Comparing base (0032eb7) to head (993f0ba).
⚠️ Report is 4 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #219      +/-   ##
==========================================
+ Coverage   99.62%   99.67%   +0.04%     
==========================================
  Files           9        9              
  Lines        1882     1861      -21     
==========================================
- Hits         1875     1855      -20     
+ Misses          7        6       -1     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@odow odow merged commit f7e5d0c into master Feb 18, 2026
8 checks passed
@odow odow deleted the od/deprecate-attr branch February 18, 2026 03:52
@odow
Copy link
Member Author

odow commented Feb 18, 2026

I'll write some changelog docs because this does break a few things

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.

2 participants

Comments