Class IndomainMedian<T extends IntVar>

  • Type Parameters:
    T - type of variable being used in search.
    All Implemented Interfaces:
    Indomain<T>

    public class IndomainMedian<T extends IntVar>
    extends java.lang.Object
    implements Indomain<T>
    IndomainMedian - implements enumeration method based on the selection of the median value in the domain of FD variable and then right and left values.
    Version:
    4.7
    • Constructor Summary

      Constructors 
      Constructor Description
      IndomainMedian()
      It creates Indomain heuristic which chooses the middle value.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int indomain​(IntVar var)
      It requires IntVar variable.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IndomainMedian

        public IndomainMedian()
        It creates Indomain heuristic which chooses the middle value.
    • Method Detail

      • indomain

        public int indomain​(IntVar var)
        It requires IntVar variable.
        Specified by:
        indomain in interface Indomain<T extends IntVar>
        Parameters:
        var - defines variable for which value for assignment is suggested.
        Returns:
        defines value for current assignment.