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

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

public class StaticVarOrder
extends AbstractIntVarSelector

A variable selector selecting the first non instantiated variable according to a given static order


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
StaticVarOrder(Solver solver)
           
StaticVarOrder(Solver solver, IntDomainVar[] vars)
           
 
Method Summary
 IntDomainVar selectVar()
          Select what seems to be most interesting variable, considering the current state of the variables
 
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

StaticVarOrder

public StaticVarOrder(Solver solver)

StaticVarOrder

public StaticVarOrder(Solver solver,
                      IntDomainVar[] vars)
Method Detail

selectVar

public IntDomainVar selectVar()
Select what seems to be most interesting variable, considering the current state of the variables

Returns:


Copyright © 2012. All Rights Reserved.