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
I tried to use MosekTools instead of CSDP as the solver when solving the barrier certificates example, but the code fails. I am not able to decipher if SumOfSquares.jl or MosekTools.jl or Mosek is the culprit.
using SumOfSquares
using DynamicPolynomials
using MosekTools
optimizer =optimizer_with_attributes(MosekTools.Optimizer, MOI.Silent() =>true)
model =SOSModel(optimizer)
@polyvar x[1:2]
p =1;
f = [ x[2],
-x[1] + (p/3)*x[1]^3- x[2]]
g₁ =-(x[1]+1)^2- (x[2]+1)^2+0.16# 𝒳ᵤ = {x ∈ R²: g₁(x) ≥ 0}
h₁ =-(x[1]-1.5)^2- x[2]^2+0.25# 𝒳₀ = {x ∈ R²: h₁(x) ≥ 0}
X =monomials(x, 0:4)
@variable(model, B, Poly(X))
ε =0.001@constraint(model, B >= ε, domain =@set(g₁ >=0))
@constraint(model, B <=0, domain =@set(h₁ >=0))
using LinearAlgebra # Needed for `dot`
dBdt =dot(differentiate(B, x), f)
@constraint(model, -dBdt >=0)
optimize!(model)
It appears that the example works fine even with Mosek(Tools.jl). I do not know if any of the related packages (MosekTools v0.15.4, SumOfSquares v0.7.3, ...) has been updated in the meantime, but the optimization now runs as expected. Perhaps it is possible to close the issue now.
I tried to use
MosekTools
instead ofCSDP
as the solver when solving the barrier certificates example, but the code fails. I am not able to decipher if SumOfSquares.jl or MosekTools.jl or Mosek is the culprit.The text was updated successfully, but these errors were encountered: