Skip to content

Commit a302927

Browse files
committed
fix: remove usage of set_obj_sense in test_update
1 parent 458515d commit a302927

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_update.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ def test_update(model_interface):
4040

4141
model.set_variable_attribute(x[0], poi.VariableAttribute.LowerBound, 1.5)
4242
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)
43+
model.set_objective_coefficient(x[0], 2.0)
44+
model.set_objective_coefficient(x[2], 1.0)
4545
model.optimize()
4646

4747
assert model.get_value(x[0]) == approx(1.5)

0 commit comments

Comments
 (0)