You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following univariate example returns infeasible even though it should be a very simple problem. For the purposes of debugging, is it possible to have the domain of the SOS constraint printed out?
using DynamicPolynomials
using SumOfSquares
using MosekTools
@polyvar x
S =@set-1<= x && x <=1import Mosek
model =SOSModel(Mosek.Optimizer)
set_silent(model)
con_ref =@constraint(model, x^2<=1.1, domain = S)
optimize!(model)
solution_summary(model)
The text was updated successfully, but these errors were encountered:
is it possible to have the domain of the SOS constraint printed out?
Yes, that shouldn't be too hard
Maybe try increasing the maxdegree in the constraint keyword argument ?
I'm guessing the issue is that you're using the Putinar certificate instead of the Schmudgen one which would add (x + 1) * (x - 1) as well.
See https://jump.dev/SumOfSquares.jl/latest/generated/Extension/certificate
We could add an easy way to do Schmudgen (or even do it by default). I was a bit worried that it would add 2^(n-1) polynomials but you quickly get a too high degree anyway so you never really add that many polynomials.
The following univariate example returns infeasible even though it should be a very simple problem. For the purposes of debugging, is it possible to have the domain of the SOS constraint printed out?
The text was updated successfully, but these errors were encountered: