java.lang.Object
org.maxicp.cp.engine.core.AbstractCPConstraint
org.maxicp.cp.engine.constraints.IsLessOrEqual
- All Implemented Interfaces:
CPConstraint,ConcreteConstraint<ConcreteCPModel>
Reified less or equal constraint.
-
Constructor Summary
ConstructorsConstructorDescriptionIsLessOrEqual(CPBoolVar b, CPIntVar x, int v) Creates a constraint that link a boolean variable representing whether one variable is less or equal to the given constant. -
Method Summary
Modifier and TypeMethodDescriptionvoidpost()Initializes the constraint when it is posted to the solver.Methods inherited from class org.maxicp.cp.engine.core.AbstractCPConstraint
getSolver, isActive, isScheduled, priority, propagate, registerDelta, setActive, setScheduled, updateDeltas
-
Constructor Details
-
IsLessOrEqual
Creates a constraint that link a boolean variable representing whether one variable is less or equal to the given constant.- Parameters:
b- a boolean variable that is true if and only if x takes a value less or equal to vx- the variablev- the constant- See Also:
-
-
Method Details
-
post
public void post()Description copied from interface:CPConstraintInitializes the constraint when it is posted to the solver.- Specified by:
postin interfaceCPConstraint- Overrides:
postin classAbstractCPConstraint
-