-
Notifications
You must be signed in to change notification settings - Fork 87
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
[Bridges] use dual of equality in slack bridge (take 2) #2515
Conversation
Still the same problem: https://github.com/jump-dev/MathOptInterface.jl/actions/runs/9531770131/job/26273074388 There's a suspicious |
The COPT failure is unrelated: COPT-Public/COPT.jl#40 |
I don't fully understand the math logic, but the code does something like |
Yes, the trick is to keep the same term in the Lagrangian. The equality constraints gives the term |
Maybe we should add a test in |
I've added a test that triggers the As a more general comment: our tests just check that |
Let's just double check: https://github.com/jump-dev/MathOptInterface.jl/actions/runs/9556803924 |
MOI.set(model, attr, bridge.slack_in_set, value) | ||
MOI.set(model, attr, bridge.equality, value) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ouch, this was a bug, good catch
We can take inspiration from
MathOptInterface.jl/src/Bridges/Constraint/bridges/set_dot_scaling.jl
Lines 64 to 75 in 08d3400
Closes #2513