fix doc
This commit is contained in:
@@ -567,9 +567,9 @@ class Constraint(object):
|
||||
The purpose of this class is to allow specification of enforcement literals
|
||||
for this constraint.
|
||||
|
||||
b = model.BoolVar('b')
|
||||
x = model.IntVar(0, 10, 'x')
|
||||
y = model.IntVar(0, 10, 'y')
|
||||
b = model.NewBoolVar('b')
|
||||
x = model.NewIntVar(0, 10, 'x')
|
||||
y = model.NewIntVar(0, 10, 'y')
|
||||
|
||||
model.Add(x + 2 * y == 5).OnlyEnforceIf(b.Not())
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user