Skip to content

Add hability to query duals of multiplicative parameters in parameter…#171

Merged
joaquimg merged 13 commits intomasterfrom
gb/dual_of_multiplicative_parameter
Mar 31, 2025
Merged

Add hability to query duals of multiplicative parameters in parameter…#171
joaquimg merged 13 commits intomasterfrom
gb/dual_of_multiplicative_parameter

Conversation

@guilhermebodin
Copy link
Copy Markdown
Collaborator

… * parameter terms

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 26, 2025

Codecov Report

Attention: Patch coverage is 95.45455% with 1 line in your changes missing coverage. Please review.

Project coverage is 96.57%. Comparing base (ab4da45) to head (4f0bf61).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
src/MOI_wrapper.jl 90.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #171      +/-   ##
==========================================
+ Coverage   95.80%   96.57%   +0.76%     
==========================================
  Files           5        5              
  Lines        1097     1109      +12     
==========================================
+ Hits         1051     1071      +20     
+ Misses         46       38       -8     

☔ 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.

Comment thread revise/README.md Outdated
Copy link
Copy Markdown
Member

@joaquimg joaquimg left a comment

Choose a reason for hiding this comment

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

Great start!

Comment thread revise/Project.toml Outdated
Comment thread src/duals.jl Outdated
@joaquimg
Copy link
Copy Markdown
Member

Also, check codecov

Comment thread src/duals.jl
Comment thread src/duals.jl Outdated
pf::ParametricAffineFunction{T},
ci::MOI.ConstraintIndex{F,S},
) where {F,S} where {T}
) where {F,S} where {T, OT}
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.

I think OT is not needed in any of these methods.
T is important to gave matching types.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

unfortunately OT is needed because the optimizer has two types inside.

ParametricOptInterface.Optimizer{Float64, GLPK.Optimizer}

T catches the Float64 and OT catches the solver.

Comment thread src/MOI_wrapper.jl
@guilhermebodin guilhermebodin requested a review from joaquimg March 27, 2025 18:25
Comment thread Project.toml
uuid = "0ce4ce61-57bf-432b-a095-efac525d185e"
authors = ["Tomás Gutierrez <tomasfmgutierrez@gmail.com>"]
version = "0.9.0"
version = "0.10.0"
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.

If this is a new feature, it should be 0.9.1. If this is breaking, it should be 0.10.0

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Honestly, you could also see it as either one or the other. I tended to the breaking change bump because before the behavior was an error and now it is allowed. It is not something that did not exist in the package and now it is implemented. It was explicitly prohibited.

@guilhermebodin
Copy link
Copy Markdown
Collaborator Author

cc @odow @joaquimg is it good for you guys?

Comment thread test/jump_tests.jl
@joaquimg joaquimg merged commit 7002857 into master Mar 31, 2025
7 of 8 checks passed
@joaquimg joaquimg deleted the gb/dual_of_multiplicative_parameter branch March 31, 2025 22:25
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.

4 participants