choco.cp.solver.search.real
Class CyclicRealVarSelector
java.lang.Object
choco.kernel.solver.search.AbstractSearchHeuristic
choco.kernel.solver.search.real.AbstractRealVarSelector
choco.cp.solver.search.real.CyclicRealVarSelector
- All Implemented Interfaces:
- VarSelector<RealVar>
public class CyclicRealVarSelector
- extends AbstractRealVarSelector
A cyclic variable selector : since a dichotomy algorithm is used, cyclic assiging is nedded for instantiate
a real interval variable.
Field Summary |
protected int |
current
|
Method Summary |
RealVar |
selectVar()
the VarSelector can be asked to return a variable |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
current
protected int current
CyclicRealVarSelector
public CyclicRealVarSelector(Solver solver,
RealVar[] vars)
CyclicRealVarSelector
public CyclicRealVarSelector(Solver solver)
selectVar
public RealVar selectVar()
- Description copied from interface:
VarSelector
- the VarSelector can be asked to return a variable
- Returns:
- a variable on whose domain an alternative can be set (such as a non instantiated search variable)
Copyright © 2012. All Rights Reserved.