Class IndomainMax<T extends IntVar>

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

public class IndomainMax<T extends IntVar> extends Object implements Indomain<T>
IndomainMax - implements enumeration method based on the selection of the maximal value in the domain of the variable.
Version:
4.8
  • Constructor Details

    • IndomainMax

      public IndomainMax()
      It creates an IndomainMax heuristic.
  • Method Details

    • indomain

      public int indomain(T var)
      Description copied from interface: Indomain
      It returns value within a variable which should be used in current assignment. This function only returns value, it is not required to do any changes to variable, its domain, etc.
      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.