java.lang.Object
org.maxicp.cp.engine.core.AbstractCPConstraint
org.maxicp.cp.engine.constraints.AtLeastNValueDC
org.maxicp.cp.engine.constraints.AllDifferentDC
- All Implemented Interfaces:
CPConstraint,ConcreteConstraint<ConcreteCPModel>
Arc Consistent AllDifferent Constraint
Algorithm described in "A filtering algorithm for constraints of difference in CSPs" J-C. Régin, AAAI-94
-
Constructor Summary
ConstructorsConstructorDescriptionAllDifferentDC(CPIntVar... x) Creates an AllDifferent constraint that enforces that all variables inxtake pairwise different values, using domain-consistent filtering. -
Method Summary
Methods inherited from class org.maxicp.cp.engine.constraints.AtLeastNValueDC
getValInBestAssignment, hasValInBestAssignment, post, propagateMethods inherited from class org.maxicp.cp.engine.core.AbstractCPConstraint
getSolver, isActive, isScheduled, priority, registerDelta, setActive, setScheduled, updateDeltas
-
Constructor Details
-
AllDifferentDC
Creates an AllDifferent constraint that enforces that all variables inxtake pairwise different values, using domain-consistent filtering.- Parameters:
x- the array of variables that must take pairwise distinct values
-