-
Notifications
You must be signed in to change notification settings - Fork 26
Use WeightedSOSCone by default #355
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
Merged
Merged
Changes from 33 commits
Commits
Show all changes
84 commits
Select commit
Hold shift + click to select a range
f848081
Use Variable.KernelBridge by default
blegat 26f5702
Fixes
blegat 6c96f5d
Fixes
blegat 8b1a17f
Update to StarAlgebras
blegat 88a340a
Fixes
blegat f0e56be
Use basis, not monomials in SOSPolynomialSet
blegat 2d94025
Fixes
blegat 666ba8e
Fix format
blegat ef2fb1c
Fixes
blegat 72126ed
Fix format
blegat 364f00b
Fixes
blegat d6f93e9
Fix format
blegat 623e0e2
up
blegat 2b6e4ea
up
blegat 5934578
Fixes
blegat faecf67
Fixes
blegat 4c77875
Fix
blegat e00c503
GLPK tests working
blegat df45196
Fix format
blegat 6cf200b
Fixes
blegat f80ae73
Fix format
blegat fac8136
Fixes
blegat 623e3e8
Fixes
blegat 76f634d
Fixes
blegat 1a69467
Fix format
blegat fe9dd32
Fix
blegat ebc8868
Fixes
blegat a614315
WIP
blegat 5aa328e
WIP
blegat edd442a
WIP
blegat 2212929
up
blegat bdde3a2
Fixes
blegat 3fe5bcf
Missing canonical
blegat 70b7f54
Fixes
blegat 3173afc
up
blegat ff616d9
up
blegat d283ba2
Fixes
blegat b2e1653
Fixes
blegat 5e69887
up
blegat 02bfd28
Fixes
blegat 65999b4
Fixes
blegat 30d7fb9
Fixes
blegat 13bddca
Fixes
blegat ba0907d
Remove debug
blegat 57a10a4
Remove debug
blegat 15fcd66
Fixes
blegat f67d91a
up
blegat 850e32c
Fxies
blegat d48a255
Fixes
blegat f0c9306
Fixes
blegat f6e30ae
SCS tests passing
blegat 72a2798
Simplifty
blegat eafd066
Fixes
blegat f297da6
Fix format
blegat 3fa06d5
Fixes
blegat 4c425cb
up ci
blegat e328886
Fix format
blegat 716d880
Fixes
blegat 11e8ed4
Fix
blegat 7bc5516
Fixes
blegat c3d7627
Update .github/workflows/ci.yml
blegat 563f5d3
Fix @kwdef for Julia v1.6
blegat 7d4635b
fix format
blegat fd2ed1f
Fixes
blegat 3182ba6
Fixes
blegat cc172b4
Update ci
blegat 5a587fb
Fix format
blegat 7763055
Fixes
blegat f13c16e
Fix format
blegat 71d672a
Fix
blegat 5563cd0
Disable symmetry
blegat f9c16aa
Update script of examples
blegat 4c65570
Fixes
blegat 6ce945a
Fixes
blegat 06507d9
Fixes
blegat f967f6d
Fix
blegat de85a74
Fixes
blegat 7e226b9
Fix
blegat 2b5a47b
Fixes
blegat 1bc047c
Fixes
blegat 39d45b0
Update ci script
blegat 66e8e51
Fixes
blegat 9a482ee
Fix
blegat cc0b015
Fix doc
blegat File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,36 @@ | ||
| module Bridges | ||
|
|
||
| import MathOptInterface as MOI | ||
| import SumOfSquares as SOS | ||
|
|
||
| include("Variable/Variable.jl") | ||
| include("Constraint/Constraint.jl") | ||
|
|
||
| function MOI.get( | ||
| model::MOI.ModelLike, | ||
| attr::Union{ | ||
| SOS.GramMatrixAttribute, | ||
| SOS.MomentMatrixAttribute, | ||
| SOS.SOSDecompositionAttribute, | ||
| }, | ||
| bridge::MOI.Bridges.Constraint.VectorSlackBridge, | ||
| ) | ||
| return MOI.get(model, attr, bridge.slack_in_set) | ||
| end | ||
|
|
||
| # TODO bridges should redirect to `MOI.get_fallback` as well so that | ||
| # we can just use `Union{MOI.ConstraintIndex,MOI.Bridges.AbstractBridge}` in the `get_fallback` in `attributes.jl` | ||
| function MOI.get( | ||
| model::MOI.ModelLike, | ||
| attr::SOS.SOSDecompositionAttribute, | ||
| bridge::Union{ | ||
| Variable.KernelBridge, | ||
| Constraint.ImageBridge, | ||
| Constraint.SOSPolynomialInSemialgebraicSetBridge, | ||
| }, | ||
| ) | ||
| gram = MOI.get(model, SOS.GramMatrixAttribute(attr.result_index), bridge) | ||
| return SOS.SOSDecomposition(gram, attr.ranktol, attr.dec) | ||
| end | ||
|
|
||
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.