public class IsLessOrEqual extends AbstractConstraint
Constructor and Description |
---|
IsLessOrEqual(BoolVar b,
IntVar x,
int c)
Creates a constraint that
link a boolean variable representing
whether one variable is less or equal to the given constant.
|
Modifier and Type | Method and Description |
---|---|
void |
post()
Initializes the constraint when it is posted to the solver.
|
getSolver, isActive, isScheduled, propagate, setActive, setScheduled
public IsLessOrEqual(BoolVar b, IntVar x, int c)
b
- a boolean variable that is true if and only if
x takes a value less or equal to cx
- the variablec
- the constantFactory.isLessOrEqual(IntVar, int)
public void post()
Constraint
post
in interface Constraint
post
in class AbstractConstraint
Copyright © 2018 Laurent Michel, Pierre Schaus, Pascal Van Hentenryck. All rights reserved.