Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Oct 23, 2024
1 parent f943158 commit 2510622
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/MOI_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ function test_SimplexIterations_BarrierIterations()
MOI.optimize!(model)
@test MOI.get(model, MOI.SimplexIterations()) > 0
@test MOI.get(model, MOI.BarrierIterations()) == 0
model = _knapsack_model(mip = false, solver = "choose")
model = _knapsack_model(mip = false, solver = "ipm")
MOI.optimize!(model)
# Not == 0 because HiGHS will use Simplex to clean-up occasionally
@test MOI.get(model, MOI.SimplexIterations()) >= 0
Expand Down Expand Up @@ -855,6 +855,7 @@ function test_infeasible_point()
MOI.add_constraint.(model, x, MOI.GreaterThan(0.0))
ci = MOI.add_constraint(model, x[1] + 2.0 * x[2], MOI.LessThan(-1.0))
MOI.set(model, MOI.RawOptimizerAttribute("presolve"), "off")
MOI.set(model, MOI.RawOptimizerAttribute("solver"), "ipm")
MOI.optimize!(model)
@test MOI.get(model, MOI.TerminationStatus()) == MOI.INFEASIBLE
@test MOI.get(model, MOI.PrimalStatus()) == MOI.INFEASIBLE_POINT
Expand Down

0 comments on commit 2510622

Please sign in to comment.