diff --git a/test/test_MOI_wrapper.jl b/test/test_MOI_wrapper.jl index cd104d72..7f908957 100644 --- a/test/test_MOI_wrapper.jl +++ b/test/test_MOI_wrapper.jl @@ -1157,8 +1157,11 @@ end function callback_simple_model() model = Xpress.Optimizer(; - HEURSTRATEGY = 0, # before v41 + PRESOLVE = 0, + CUTSTRATEGY = 0, HEUREMPHASIS = 0, + HEURSTRATEGY = 0, + SYMMETRY = 0, OUTPUTLOG = 0, ) MOI.Utilities.loadfromstring!( @@ -1634,30 +1637,6 @@ function test_callback_lazy_constraint_dual_reductions() return end -function callback_simple_model() - model = Xpress.Optimizer(; - PRESOLVE = 0, - CUTSTRATEGY = 0, - HEURSTRATEGY = 0, - SYMMETRY = 0, - OUTPUTLOG = 0, - ) - MOI.Utilities.loadfromstring!( - model, - """ - variables: x, y - maxobjective: y - c1: x in Integer() - c2: y in Integer() - c3: x in Interval(0.0, 2.5) - c4: y in Interval(0.0, 2.5) -""", - ) - x = MOI.get(model, MOI.VariableIndex, "x") - y = MOI.get(model, MOI.VariableIndex, "y") - return model, x, y -end - function test_callback_preintsol() model, x, y = callback_simple_model() data = 1.0 * LinearAlgebra.I(3)