We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5998994 commit 371122dCopy full SHA for 371122d
test/constraint.jl
@@ -58,3 +58,15 @@ end
58
"\$\$ (-1) + (a)x^{2} \\text{ is SOS} \$\$"
59
end
60
61
+
62
+@testset "Bridges with complex numbers" begin
63
+ @polyvar x y
64
+ p = (x + im * y) * (x - im * y)
65
+ model = Model()
66
+ cone = NonnegPolyInnerCone{MOI.HermitianPositiveSemidefiniteConeTriangle}()
67
+ @constraint(model, p in cone)
68
+ @test SumOfSquares.Bridges.Constraint.SOSPolynomialBridge{ComplexF64} in
69
+ model.bridge_types
70
+ @test PolyJuMP.Bridges.Constraint.ZeroPolynomialBridge{ComplexF64} in
71
72
+end
0 commit comments