Class SoftAlldifferent


  • public class SoftAlldifferent
    extends DecomposedConstraint<Constraint>
    This class provides soft-alldifferent constraint by decomposing it either into a network flow constraint or a set of primitive constraints.
    Version:
    4.8
    • Method Detail

      • primitiveDecomposition

        public java.util.List<Constraint> primitiveDecomposition​(Store store)
      • decompose

        public java.util.List<Constraint> decompose​(Store store)
        Description copied from class: DecomposedConstraint
        It returns an array list of constraint which are used to decompose this constraint. It actually creates a decomposition (possibly also creating variables), but it does not impose the constraint.
        Specified by:
        decompose in class DecomposedConstraint<Constraint>
        Parameters:
        store - the constraint store in which context the decomposition takes place.
        Returns:
        an array list of constraints used to decompose this constraint.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object