choco.integer.search
Class MidVal

java.lang.Object
  extended by choco.search.AbstractSearchHeuristic
      extended by choco.integer.search.MidVal
All Implemented Interfaces:
IValSelector

public class MidVal
extends AbstractSearchHeuristic
implements IValSelector


Field Summary
 
Fields inherited from class choco.search.AbstractSearchHeuristic
branching, problem
 
Constructor Summary
MidVal()
           
 
Method Summary
 int getBestVal(IntDomainVar x)
          selecting a value in the middle of the domain
 
Methods inherited from class choco.search.AbstractSearchHeuristic
getBranching
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MidVal

public MidVal()
Method Detail

getBestVal

public int getBestVal(IntDomainVar x)
selecting a value in the middle of the domain

Specified by:
getBestVal in interface IValSelector
Parameters:
x - the variable under consideration
Returns:
what seems the most interesting value for branching