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

Implementing bridge cost #1125

Merged
merged 1 commit into from
Aug 30, 2020
Merged

Implementing bridge cost #1125

merged 1 commit into from
Aug 30, 2020

Conversation

blegat
Copy link
Member

@blegat blegat commented Jul 11, 2020

There is an issue with the fact that there may be a clash between constraint indices between bridged constraint and solvers constraints of type VectorOfVariables or SingleVariable.
Indeed for instance if variables constrained on creation in S are supported but not VectorOfVariables-in-S constraints then there may be a clash between a constraint index VectorOfVariables-in-S that was created with a variable constrained on creation and a bridged VectorOfVariables-in-S constraints.
The solution would be to recommend the index value of VectorOfVariables-in-S constraints to be equal to the index of the first variable (this is already the case for most solvers) so that when there is a clash, it's when the same variable is the first one of two conic variable constraint so it's the user fault. It's already an error with LazyBridgeOptimizer if the two constraints are bridged anyway it seems to be a reasonable solution.
It's not what is implemented in this PR (I tried using negative indices but it's a bad idea), I still need to make the change.
jump-dev/MosekTools.jl#53 is passing all the tests (except an error which seems unrelated) with this PR

@blegat blegat added this to the v0.9.15 milestone Jul 24, 2020
@blegat blegat force-pushed the bl/bridge_cost branch 6 times, most recently from 0070950 to 0f0e6a1 Compare August 21, 2020 21:50
@blegat blegat merged commit a1bf14b into master Aug 30, 2020
@odow odow deleted the bl/bridge_cost branch September 2, 2020 21:23
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.

1 participant