We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 458515d commit a302927Copy full SHA for a302927
tests/test_update.py
@@ -40,8 +40,8 @@ def test_update(model_interface):
40
41
model.set_variable_attribute(x[0], poi.VariableAttribute.LowerBound, 1.5)
42
model.set_variable_attribute(x[2], poi.VariableAttribute.LowerBound, 0.5)
43
- model.set_objective_coefficient(x[0], -2.0)
44
- model.set_obj_sense(poi.ObjectiveSense.Maximize)
+ model.set_objective_coefficient(x[0], 2.0)
+ model.set_objective_coefficient(x[2], 1.0)
45
model.optimize()
46
47
assert model.get_value(x[0]) == approx(1.5)
0 commit comments