JaCoP.search
Class IndomainMiddle<T extends IntVar>

java.lang.Object
  extended by JaCoP.search.IndomainMiddle<T>
Type Parameters:
T - type of variable being used in search.
All Implemented Interfaces:
Indomain<T>

public class IndomainMiddle<T extends IntVar>
extends java.lang.Object
implements Indomain<T>

IndomainMiddle - implements enumeration method based on the selection of the middle value in the domain of FD variable and then right and left values.

Version:
3.1
Author:
Krzysztof Kuchcinski and Radoslaw Szymanek

Constructor Summary
IndomainMiddle()
          It creates Indomain heuristic which chooses the middle value.
 
Method Summary
 int indomain(IntVar var)
          It requires IntVar variable.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndomainMiddle

public IndomainMiddle()
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.