choco.cp.solver.search.integer.varselector
Class LexIntVarSelector
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LexIntVarSelector
public LexIntVarSelector(TiedIntVarSelector h1,
HeuristicIntVarSelector h2)
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.