From 4414427634df58c9f0f1aaadeb15cc97ba0a00ef Mon Sep 17 00:00:00 2001 From: Ruaridh Williamson Date: Wed, 26 Feb 2020 20:29:11 +0000 Subject: [PATCH] :rotating_light: Update test - Constraint `C` is being overwritten --- pyomo/solvers/tests/checks/test_CPLEXDirect.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyomo/solvers/tests/checks/test_CPLEXDirect.py b/pyomo/solvers/tests/checks/test_CPLEXDirect.py index 7461a20b751..b7cf62f6906 100644 --- a/pyomo/solvers/tests/checks/test_CPLEXDirect.py +++ b/pyomo/solvers/tests/checks/test_CPLEXDirect.py @@ -120,8 +120,8 @@ def test_no_solution_mip(self): model.S = RangeSet(0, 9) model.P = list(range(10)) model.X = Var(model.S, within=Binary) - model.C = Constraint(expr=summation(model.X) == 1) - model.C = Constraint(expr=model.X[0] >= 2) + model.C1 = Constraint(expr=summation(model.X) == 1) + model.C2 = Constraint(expr=model.X[0] >= 2) model.O = Objective(expr=sum_product(model.P, model.X), sense=minimize) with SolverFactory("cplex", solver_io="python") as opt: