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 code gives me a stack overflow error:
using DynamicPolynomials
using SumOfSquares
import SCS
model =Model(SCS.Optimizer)
@ncpolyvar a0 a1 b0 b1
p = a0*b0 + a0*b1 + a1*b0 - a1*b1
@variable(model, λ)
@objective(model, Min, λ)
S =@set a0^2==1&& a1^2==1&& b0^2==1&& b1^2==1
con_ref =@constraint(model, λ - p inSOSCone(), domain = S)
optimize!(model)
Here I'm optimizing the CHSH functional, the simplest problem in nonlocality. The documentation is not clear whether this is supposed to work. If I change @ncpolyvar to @polyvar then it works, and the answer is 2*sqrt(2) as expected.
The text was updated successfully, but these errors were encountered:
The following code gives me a stack overflow error:
Here I'm optimizing the CHSH functional, the simplest problem in nonlocality. The documentation is not clear whether this is supposed to work. If I change
@ncpolyvar
to@polyvar
then it works, and the answer is 2*sqrt(2) as expected.The text was updated successfully, but these errors were encountered: