Skip to content

Commit bc0e229

Browse files
authored
Fix tutorial model (#1012)
1 parent 37a1ed6 commit bc0e229

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/tutorials/model.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ We can construct the optimization problem as follows:
3838
y = scip.addVar(vtype='C', lb=0, ub=None, name='y')
3939
z = scip.addVar(vtype='C', lb=0, ub=None, name='z')
4040
cons_1 = scip.addCons(x + y <= 5, name="cons_1")
41-
cons_2 = scip.addCons(y + z >= 3, name="cons_2")
42-
cons_3 = scip.addCons(x + y == 5, name="cons_3")
41+
cons_2 = scip.addCons(x + z >= 3, name="cons_2")
42+
cons_3 = scip.addCons(y + z == 4, name="cons_3")
4343
scip.setObjective(2 * x + 3 * y - 5 * z, sense="minimize")
4444
scip.optimize()
4545

0 commit comments

Comments
 (0)