Skip to content

Commit

Permalink
🚨 Update test
Browse files Browse the repository at this point in the history
- Constraint `C` is being overwritten
  • Loading branch information
ruaridhw committed May 7, 2020
1 parent 651d879 commit 4414427
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyomo/solvers/tests/checks/test_CPLEXDirect.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 4414427

Please sign in to comment.