public class IsLessOrEqualVar extends AbstractConstraint
b <=> x <= y.| Constructor and Description |
|---|
IsLessOrEqualVar(BoolVar b,
IntVar x,
IntVar y)
Creates a reified is less or equal constraint
b <=> x <= y. |
| Modifier and Type | Method and Description |
|---|---|
void |
post()
Initializes the constraint when it is posted to the solver.
|
void |
propagate()
Propagates the constraint.
|
getSolver, isActive, isScheduled, setActive, setScheduledpublic IsLessOrEqualVar(BoolVar b, IntVar x, IntVar y)
b <=> x <= y.b - the truth value that will be set to true if x <= y, false otherwisex - left hand side of less or equal operatory - right hand side of less or equal operatorpublic void post()
Constraintpost in interface Constraintpost in class AbstractConstraintpublic void propagate()
Constraintpropagate in interface Constraintpropagate in class AbstractConstraintCopyright © 2018 Laurent Michel, Pierre Schaus, Pascal Van Hentenryck. All rights reserved.