java.lang.Object
org.maxicp.cp.engine.core.AbstractCPConstraint
org.maxicp.cp.engine.constraints.IsLessOrEqualVar
- All Implemented Interfaces:
CPConstraint,ConcreteConstraint<ConcreteCPModel>
Reified is less or equal constraint
b <=> x <= y.-
Constructor Summary
ConstructorsConstructorDescriptionIsLessOrEqualVar(CPBoolVar b, CPIntVar x, CPIntVar y) Creates a reified is less or equal constraintb <=> x <= y. -
Method Summary
Methods inherited from class org.maxicp.cp.engine.core.AbstractCPConstraint
getSolver, isActive, isScheduled, priority, registerDelta, setActive, setScheduled, updateDeltas
-
Constructor Details
-
IsLessOrEqualVar
Creates a reified is less or equal constraintb <=> x <= y.- Parameters:
b- the truth value that will be set to true ifx <= y, false otherwisex- left hand side of less or equal operatory- right hand side of less or equal operator
-
-
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
-
propagate
public void propagate()Description copied from interface:CPConstraintPropagates the constraint.- Specified by:
propagatein interfaceCPConstraint- Overrides:
propagatein classAbstractCPConstraint
-