Thanks for all the work on v0.8
This now works:
using SumOfSquares
using DynamicPolynomials
using Hypatia
using DoubleFloats
model = GenericModel{Double64}(Hypatia.Optimizer{Double64})
@polyvar x
_1 = one(GenericAffExpr{Double64, GenericVariableRef{Double64}})
p = _1 + x^2
@constraint(model, p in SOSCone())
optimize!(model)
However, it's very fragile and fiddly: even replacing using _1 = one(Double64) causes an error. I guess there could be GenericSOSModel very easily, I'm more concerned about the issue of p having hidden Float64 inside.
Setting a domain in the constraint does not work either
Thanks for all the work on v0.8
This now works:
However, it's very fragile and fiddly: even replacing using
_1 = one(Double64)causes an error. I guess there could be GenericSOSModel very easily, I'm more concerned about the issue of p having hidden Float64 inside.Setting a
domainin the constraint does not work either