File tree 1 file changed +4
-6
lines changed
pyomo/contrib/appsi/solvers/tests
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -1210,22 +1210,20 @@ def test_fixed_binaries(
1210
1210
m .obj = pe .Objective (expr = m .y )
1211
1211
m .c = pe .Constraint (expr = m .y >= m .x )
1212
1212
m .x .fix (0 )
1213
- if type (opt ) is MAiNGO :
1214
- opt .maingo_options ["epsilonA" ] = 1e-6
1215
1213
res = opt .solve (m )
1216
- self .assertAlmostEqual (res .best_feasible_objective , 0 , 6 )
1214
+ self .assertAlmostEqual (res .best_feasible_objective , 0 , 5 )
1217
1215
m .x .fix (1 )
1218
1216
res = opt .solve (m )
1219
- self .assertAlmostEqual (res .best_feasible_objective , 1 , 6 )
1217
+ self .assertAlmostEqual (res .best_feasible_objective , 1 , 5 )
1220
1218
1221
1219
opt : PersistentSolver = opt_class (only_child_vars = only_child_vars )
1222
1220
opt .update_config .treat_fixed_vars_as_params = False
1223
1221
m .x .fix (0 )
1224
1222
res = opt .solve (m )
1225
- self .assertAlmostEqual (res .best_feasible_objective , 0 , 6 )
1223
+ self .assertAlmostEqual (res .best_feasible_objective , 0 , 5 )
1226
1224
m .x .fix (1 )
1227
1225
res = opt .solve (m )
1228
- self .assertAlmostEqual (res .best_feasible_objective , 1 , 6 )
1226
+ self .assertAlmostEqual (res .best_feasible_objective , 1 , 5 )
1229
1227
1230
1228
@parameterized .expand (input = _load_tests (mip_solvers , only_child_vars_options ))
1231
1229
def test_with_gdp (
You can’t perform that action at this time.
0 commit comments