choco.cp.solver.search.integer.varselector
Class MostConstrained
java.lang.Object
choco.kernel.solver.search.AbstractSearchHeuristic
choco.kernel.solver.search.integer.AbstractIntVarSelector
choco.kernel.solver.search.integer.HeuristicIntVarSelector
choco.kernel.solver.search.integer.IntHeuristicIntVarSelector
choco.cp.solver.search.integer.varselector.MostConstrained
- All Implemented Interfaces:
- VarSelector<IntDomainVar>, TiedIntVarSelector<IntDomainVar>
public class MostConstrained
- extends IntHeuristicIntVarSelector
An heuristic to first instantiating most constrained variables.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MostConstrained
public MostConstrained(Solver solver)
- Builds the heuristic for the given model.
- Parameters:
solver
- the solved solver
MostConstrained
public MostConstrained(Solver solver,
IntDomainVar[] vs)
- Builds the heuristic for the given model.
- Parameters:
solver
- the solved modelvs
- a list of variables instead of all prolem integer variables
getHeuristic
public int getHeuristic(IntDomainVar v)
- Description copied from class:
IntHeuristicIntVarSelector
- the heuristic that is minimized in order to find the best IntVar
- Specified by:
getHeuristic
in class IntHeuristicIntVarSelector
Copyright © 2012. All Rights Reserved.