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 a1ab600 commit 98afa60Copy full SHA for 98afa60
test/MOI_wrapper.jl
@@ -354,6 +354,20 @@ function test_lm_context()
354
return
355
end
356
357
+function test_AAA_WINDOWS_DEBUG_quadratic_Integer_SecondOrderCone()
358
+ model = KNITRO.Optimizer()
359
+ x = MOI.add_variables(model, 3)
360
+ MOI.add_constraint.(model, x[2:3], MOI.ZeroOne())
361
+ f = -2.0 * x[2] - 1.0 * x[3]
362
+ MOI.set(model, MOI.ObjectiveSense(), MOI.MIN_SENSE)
363
+ MOI.set(model, MOI.ObjectiveFunction{typeof(f)}(), f)
364
+ MOI.add_constraint(model, 1.0 * x[1] == 1.0)
365
+ MOI.add_constraint(model, MOI.VectorOfVariables(x), MOI.SecondOrderCone(3))
366
+ MOI.optimize!(model)
367
+ @test ≈(MOI.get(model, MOI.ObjectiveValue()), -2, config)
368
+ return
369
+end
370
+
371
372
373
TestMOIWrapper.runtests()
0 commit comments