java.lang.Object
org.maxicp.cp.engine.core.AbstractCPConstraint
org.maxicp.cp.engine.constraints.AtLeastNValueFWC
org.maxicp.cp.engine.constraints.AllDifferentFWC
- All Implemented Interfaces:
CPConstraint,ConcreteConstraint<ConcreteCPModel>
Forward Checking AllDifferent Constraint.
Enforces that all variables in x take pairwise different values
by removing the value of a variable from all other variables' domains as soon as it becomes fixed.
-
Constructor Summary
ConstructorsConstructorDescriptionAllDifferentFWC(CPIntVar... x) Creates an AllDifferent constraint with forward checking filtering. -
Method Summary
Methods inherited from class org.maxicp.cp.engine.constraints.AtLeastNValueFWC
post, propagateMethods inherited from class org.maxicp.cp.engine.core.AbstractCPConstraint
getSolver, isActive, isScheduled, priority, registerDelta, setActive, setScheduled, updateDeltas
-
Constructor Details
-
AllDifferentFWC
Creates an AllDifferent constraint with forward checking filtering.- Parameters:
x- the array of variables that must take pairwise distinct values
-