Skip to content

Commit 98afa60

Browse files
committed
Update
1 parent a1ab600 commit 98afa60

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

test/MOI_wrapper.jl

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,20 @@ function test_lm_context()
354354
return
355355
end
356356

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+
357371
end
358372

359373
TestMOIWrapper.runtests()

0 commit comments

Comments
 (0)