Skip to content

Commit abbdb17

Browse files
committed
Update
1 parent dc02ab9 commit abbdb17

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/MOI_wrapper.jl

+5-2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ end
2424
function test_runtests()
2525
model = MOI.Bridges.full_bridge_optimizer(HiGHS.Optimizer(), Float64)
2626
MOI.set(model, MOI.Silent(), true)
27+
# Turn presolve off so that we generate infeasibility certificates. This is
28+
# a temporary work-around until we fix this upstream in HiGHS.
29+
MOI.set(model, MOI.RawOptimizerAttribute("presolve"), "off")
2730
# Slightly loosen tolerances, particularly for QP tests
2831
MOI.Test.runtests(model, MOI.Test.Config(; atol = 1e-7))
2932
return
@@ -238,7 +241,7 @@ function test_SimplexIterations_BarrierIterations()
238241
MOI.optimize!(model)
239242
@test MOI.get(model, MOI.SimplexIterations()) > 0
240243
@test MOI.get(model, MOI.BarrierIterations()) == 0
241-
model = _knapsack_model(mip = false, solver = "ipm")
244+
model = _knapsack_model(mip = false, solver = "")
242245
MOI.optimize!(model)
243246
# Not == 0 because HiGHS will use Simplex to clean-up occasionally
244247
@test MOI.get(model, MOI.SimplexIterations()) >= 0
@@ -852,7 +855,7 @@ function test_infeasible_point()
852855
MOI.add_constraint.(model, x, MOI.GreaterThan(0.0))
853856
ci = MOI.add_constraint(model, x[1] + 2.0 * x[2], MOI.LessThan(-1.0))
854857
MOI.set(model, MOI.RawOptimizerAttribute("presolve"), "off")
855-
MOI.set(model, MOI.RawOptimizerAttribute("solver"), "ipm")
858+
MOI.set(model, MOI.RawOptimizerAttribute("solver"), "")
856859
MOI.optimize!(model)
857860
@test MOI.get(model, MOI.TerminationStatus()) == MOI.INFEASIBLE
858861
@test MOI.get(model, MOI.PrimalStatus()) == MOI.INFEASIBLE_POINT

0 commit comments

Comments
 (0)