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 f96a40b commit bf0e158Copy full SHA for bf0e158
test/qcqp.jl
@@ -150,7 +150,7 @@ function test_no_monomials(x, y, T)
150
return PolyJuMP.QCQP.Optimizer{T}(MOI.Utilities.MockOptimizer(inner))
151
end
152
PolyJuMP.@variable(model, 0 <= x[1:2] <= 1)
153
- PolyJuMP.@constraint(model, x[1] * x[2] == 0.5)
+ PolyJuMP.@constraint(model, x[1] * x[2] == T(1))
154
PolyJuMP.@objective(model, Min, sum(x))
155
PolyJuMP.optimize!(model)
156
@test MOI.get(inner, MOI.NumberOfVariables()) == 2
@@ -209,7 +209,7 @@ function test_scalar_nonlinear_function(x, y, T)
209
PolyJuMP.@expression(model, g, x^2)
210
PolyJuMP.@constraint(model, f * g == 0)
211
212
- F, S = ScalarQuadraticFunction{T}, EqualTo{T}
+ F, S = MOI.ScalarQuadraticFunction{T}, MOI.EqualTo{T}
213
@test MOI.get(inner, MOI.NumberOfConstraints{F,S}()) == 2
214
215
return
test/runtests.jl
@@ -7,3 +7,4 @@ include("Mock/mock_tests.jl")
7
8
include("kkt.jl")
9
include("sage.jl")
10
+include("qcqp.jl")
0 commit comments