choco.cp.solver.search.integer.varselector
Class LexIntVarSelector

java.lang.Object
  extended by choco.cp.solver.search.integer.varselector.LexIntVarSelector
All Implemented Interfaces:
VarSelector<IntDomainVar>

public class LexIntVarSelector
extends Object
implements VarSelector<IntDomainVar>

A class that applies two heuristics lexicographically for selecting a variable: a first heuristic is applied finding the best constraint ties are broken with the second heuristic


Constructor Summary
LexIntVarSelector(TiedIntVarSelector h1, HeuristicIntVarSelector h2)
           
 
Method Summary
 IntDomainVar selectVar()
          the VarSelector can be asked to return a variable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LexIntVarSelector

public LexIntVarSelector(TiedIntVarSelector h1,
                         HeuristicIntVarSelector h2)
Method Detail

selectVar

public IntDomainVar selectVar()
Description copied from interface: VarSelector
the VarSelector can be asked to return a variable

Specified by:
selectVar in interface VarSelector<IntDomainVar>
Returns:
a variable on whose domain an alternative can be set (such as a non instantiated search variable)


Copyright © 2012. All Rights Reserved.