From a30292763ec5543167f2cd2f912e88cea406a292 Mon Sep 17 00:00:00 2001 From: eminyouskn Date: Thu, 12 Feb 2026 04:46:28 -0500 Subject: [PATCH] fix: remove usage of set_obj_sense in test_update --- tests/test_update.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_update.py b/tests/test_update.py index 657979e..4bd55ac 100644 --- a/tests/test_update.py +++ b/tests/test_update.py @@ -40,8 +40,8 @@ def test_update(model_interface): model.set_variable_attribute(x[0], poi.VariableAttribute.LowerBound, 1.5) model.set_variable_attribute(x[2], poi.VariableAttribute.LowerBound, 0.5) - model.set_objective_coefficient(x[0], -2.0) - model.set_obj_sense(poi.ObjectiveSense.Maximize) + model.set_objective_coefficient(x[0], 2.0) + model.set_objective_coefficient(x[2], 1.0) model.optimize() assert model.get_value(x[0]) == approx(1.5)