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

java.lang.Object
  extended by choco.kernel.solver.search.AbstractSearchHeuristic
      extended by choco.kernel.solver.search.integer.AbstractIntVarSelector
          extended by choco.kernel.solver.search.integer.HeuristicIntVarSelector
              extended by choco.kernel.solver.search.integer.IntHeuristicIntVarSelector
                  extended by 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.


Field Summary
 
Fields inherited from class choco.kernel.solver.search.integer.AbstractIntVarSelector
vars
 
Fields inherited from class choco.kernel.solver.search.AbstractSearchHeuristic
branching, solver
 
Constructor Summary
MostConstrained(Solver solver)
          Builds the heuristic for the given model.
MostConstrained(Solver solver, IntDomainVar[] vs)
          Builds the heuristic for the given model.
 
Method Summary
 int getHeuristic(IntDomainVar v)
          the heuristic that is minimized in order to find the best IntVar
 
Methods inherited from class choco.kernel.solver.search.integer.IntHeuristicIntVarSelector
getAllMinVars, getAllMinVars, getHeuristic, getMinVar, getMinVar, getMinVar
 
Methods inherited from class choco.kernel.solver.search.integer.HeuristicIntVarSelector
selectTiedIntVars, selectVar
 
Methods inherited from class choco.kernel.solver.search.integer.AbstractIntVarSelector
getVars, setVars
 
Methods inherited from class choco.kernel.solver.search.AbstractSearchHeuristic
getBranching, getSolver, setBranching
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 model
vs - a list of variables instead of all prolem integer variables
Method Detail

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.