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

Add MomentMatrixWeightSolver option #27

Merged
merged 4 commits into from
Nov 27, 2021
Merged

Add MomentMatrixWeightSolver option #27

merged 4 commits into from
Nov 27, 2021

Conversation

blegat
Copy link
Member

@blegat blegat commented Nov 26, 2021

In #26, when converting a MomentMatrix to a Measure, an error is thrown if the moments are not approximately the same.
This conversion is here:

μ = measure(ν)

This is making jump-dev/SumOfSquares.jl#224 fail because the moment matrix given by an SDP solver may have differences higher than Base.rtoldefault(Float64). For this reason, the default option is to not convert and solve the linear system on the moment matrix directly. The old way is still available via the MomentVectorWeightSolver but is not the default anymore since it would be tricky to get default tolerances, it's best to let the user choose this explicitly so that it's clearer that he should set tolerances.

@blegat blegat merged commit 241a112 into master Nov 27, 2021
@blegat blegat deleted the bl/weight_solver branch May 31, 2023 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant