@@ -350,7 +350,7 @@ function qcp2test(model::MOI.ModelLike, config::TestConfig)
350
350
x = MOI. addvariable! (model)
351
351
@test MOI. get (model, MOI. NumberOfVariables ()) == 1
352
352
353
- cf = MOI. ScalarQuadraticFunction (MOI. VariableIndex[x],Float64[0.0 ],[x],[x],[1 .0 ], 0.0 )
353
+ cf = MOI. ScalarQuadraticFunction (MOI. VariableIndex[x],Float64[0.0 ],[x],[x],[2 .0 ], 0.0 )
354
354
@test MOI. canaddconstraint (model, typeof (cf), MOI. LessThan{Float64})
355
355
c = MOI. addconstraint! (model, cf, MOI. LessThan (2.0 ))
356
356
@test MOI. get (model, MOI. NumberOfConstraints {MOI.ScalarQuadraticFunction{Float64}, MOI.LessThan{Float64}} ()) == 1
@@ -410,7 +410,7 @@ function qcp3test(model::MOI.ModelLike, config::TestConfig)
410
410
x = MOI. addvariable! (model)
411
411
@test MOI. get (model, MOI. NumberOfVariables ()) == 1
412
412
413
- cf = MOI. ScalarQuadraticFunction (MOI. VariableIndex[],Float64[],[x],[x],[1 .0 ], 0.0 )
413
+ cf = MOI. ScalarQuadraticFunction (MOI. VariableIndex[],Float64[],[x],[x],[2 .0 ], 0.0 )
414
414
@test MOI. canaddconstraint (model, typeof (cf), MOI. LessThan{Float64})
415
415
c = MOI. addconstraint! (model, cf, MOI. LessThan (2.0 ))
416
416
@test MOI. get (model, MOI. NumberOfConstraints {MOI.ScalarQuadraticFunction{Float64}, MOI.LessThan{Float64}} ()) == 1
0 commit comments