Package org.jacop.set.search
Class IndomainSetRandom<T extends SetVar>
- java.lang.Object
-
- org.jacop.set.search.IndomainSetRandom<T>
-
- Type Parameters:
T
- type of variable being used in search.
- All Implemented Interfaces:
Indomain<T>
public class IndomainSetRandom<T extends SetVar> extends java.lang.Object implements Indomain<T>
IndomainMin - implements enumeration method based on the selection of the maximal value in the domain of variable- Version:
- 4.8
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.Random
seed
-
Constructor Summary
Constructors Constructor Description IndomainSetRandom()
It creates random indomain heuristic with randomly generated seed for random generated.IndomainSetRandom(java.util.Random seed)
It creates random indomain heuristic according to the provided random generator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
indomain(T var)
It returns value within a variable which should be used in current assignment.
-
-
-
Constructor Detail
-
IndomainSetRandom
public IndomainSetRandom()
It creates random indomain heuristic with randomly generated seed for random generated.
-
IndomainSetRandom
public IndomainSetRandom(java.util.Random seed)
It creates random indomain heuristic according to the provided random generator.- Parameters:
seed
- seed for random number genrator
-
-