choco.cp.solver.search.integer.varselector.ratioselector
Class RandMaxRatioSelector

java.lang.Object
  extended by choco.kernel.solver.search.AbstractSearchHeuristic
      extended by choco.cp.solver.search.integer.varselector.ratioselector.AbstractIntVarRatioSelector
          extended by choco.cp.solver.search.integer.varselector.ratioselector.RandMaxRatioSelector
All Implemented Interfaces:
IntVarRatioSelector, VarSelector<IntDomainVar>, TiedIntVarSelector

public class RandMaxRatioSelector
extends AbstractIntVarRatioSelector


Field Summary
protected  Random randomBreakTies
           
protected  gnu.trove.TIntArrayList reuseList
           
 
Fields inherited from class choco.cp.solver.search.integer.varselector.ratioselector.AbstractIntVarRatioSelector
ratios
 
Fields inherited from class choco.kernel.solver.search.AbstractSearchHeuristic
branching, solver
 
Fields inherited from interface choco.cp.solver.search.integer.varselector.ratioselector.IntVarRatioSelector
NULL
 
Constructor Summary
RandMaxRatioSelector(Solver solver, IntRatio[] ratios, long seed)
           
 
Method Summary
protected  boolean isUp(long leftM, long rightM)
           
 int selectIntRatioIndex()
           
 
Methods inherited from class choco.cp.solver.search.integer.varselector.ratioselector.AbstractIntVarRatioSelector
getRatios, selectIntRatio, selectRandIntRatioIndex, selectTiedIntVars, selectVar
 
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
 

Field Detail

reuseList

protected final gnu.trove.TIntArrayList reuseList

randomBreakTies

protected final Random randomBreakTies
Constructor Detail

RandMaxRatioSelector

public RandMaxRatioSelector(Solver solver,
                            IntRatio[] ratios,
                            long seed)
Method Detail

isUp

protected final boolean isUp(long leftM,
                             long rightM)
Specified by:
isUp in class AbstractIntVarRatioSelector

selectIntRatioIndex

public int selectIntRatioIndex()
Specified by:
selectIntRatioIndex in interface IntVarRatioSelector
Overrides:
selectIntRatioIndex in class AbstractIntVarRatioSelector


Copyright © 2012. All Rights Reserved.