choco.cp.solver.search.integer.valselector
Class MidVal

java.lang.Object
  extended by choco.cp.solver.search.integer.valselector.MidVal
All Implemented Interfaces:
ValSelector<IntDomainVar>

public class MidVal
extends Object
implements ValSelector<IntDomainVar>


Constructor Summary
MidVal()
           
 
Method Summary
 int getBestVal(IntDomainVar x)
          selecting a value in the middle of the domain
 
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 ValSelector<IntDomainVar>
Parameters:
x - the variable under consideration
Returns:
what seems the most interesting value for branching


Copyright © 2012. All Rights Reserved.