[Bridges] error on set(_, ::ConstraintSet with variable and constraint bridges #2472
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Revisiting #2464 for another take at #2452.
This time it definitely fixes the original MWE:
MathOptInterface.jl/src/Bridges/Constraint/bridges/vectorize.jl
Lines 221 to 225 in 009004c
calls
MathOptInterface.jl/src/Bridges/bridge_optimizer.jl
Lines 2044 to 2050 in 009004c
which calls
MathOptInterface.jl/src/Bridges/bridge_optimizer.jl
Lines 1992 to 2003 in 009004c
but the issue is that we can't tell whether we're modifying from the user's perspective, or whether we're modifying the inner constraint.
I'm guessing we need some
call_in_context
, but I got confused, so I decided it's simpler just to punt for now and fix the correctness issue.