Module org.maxicp

Class AllDifferentFWC

All Implemented Interfaces:
CPConstraint, ConcreteConstraint<ConcreteCPModel>

public class AllDifferentFWC extends AtLeastNValueFWC
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 Details

    • AllDifferentFWC

      public AllDifferentFWC(CPIntVar... x)
      Creates an AllDifferent constraint with forward checking filtering.
      Parameters:
      x - the array of variables that must take pairwise distinct values