Class IndomainMedian<T extends IntVar>

java.lang.Object
org.jacop.search.IndomainMedian<T>
Type Parameters:
T - type of variable being used in search.
All Implemented Interfaces:
Indomain<T>

public class IndomainMedian<T extends IntVar> extends 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.9
  • Constructor Details

    • IndomainMedian

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

    • 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.