Package org.jacop.search
Class IndomainRandom<T extends IntVar>
- java.lang.Object
-
- org.jacop.search.IndomainRandom<T>
-
- Type Parameters:
T
- type of variable being used in the search.
- All Implemented Interfaces:
Indomain<T>
public class IndomainRandom<T extends IntVar> extends java.lang.Object implements Indomain<T>
IndomainRandom - implements enumeration method based on the selection of the random value in the domain of FD variable. Can split domains into multiple intervals- Version:
- 4.8
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Random
generator
-
Constructor Summary
Constructors Constructor Description IndomainRandom()
It specifies Indomain function, which assigns values randomly.IndomainRandom(int seed)
It specifies Indomain function, which assigns values randomly.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
indomain(IntVar var)
It returns value within a variable which should be used in current assignment.
-