Skip to content

Commit 6866290

Browse files
authored
Merge pull request metab0t#75 from eminyouskn/fix-test-update
2 parents 458515d + a302927 commit 6866290

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)