Module org.maxicp

Class AllDifferentDC

All Implemented Interfaces:
CPConstraint, ConcreteConstraint<ConcreteCPModel>

public class AllDifferentDC extends AtLeastNValueDC
Arc Consistent AllDifferent Constraint

Algorithm described in "A filtering algorithm for constraints of difference in CSPs" J-C. Régin, AAAI-94

  • Constructor Details

    • AllDifferentDC

      public AllDifferentDC(CPIntVar... x)
      Creates an AllDifferent constraint that enforces that all variables in x take pairwise different values, using domain-consistent filtering.
      Parameters:
      x - the array of variables that must take pairwise distinct values