Module org.chocosolver
Class IntDomainRandomBound
- java.lang.Object
-
- org.chocosolver.solver.search.strategy.selectors.values.IntDomainRandomBound
-
- All Implemented Interfaces:
IntValueSelector
public class IntDomainRandomBound extends Object implements IntValueSelector
Selects randomly between the lower and the upper bound of the variable- Since:
- 2 april 2014
- Author:
- Jean-Guillaume Fages, Charles Prud'homme
-
-
Constructor Summary
Constructors Constructor Description IntDomainRandomBound(long seed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
selectValue(IntVar var)
Selects and returns the value to constrained chosen variable with.
-
-
-
Method Detail
-
selectValue
public int selectValue(IntVar var)
Selects and returns the value to constrained chosen variable with. The chosen value must belong to the domain ofvariable
.- Specified by:
selectValue
in interfaceIntValueSelector
- Returns:
- the value, based on the domain of variable
-
-