Package org.opt4j.common.random
Provides the classes for the random number generators.
Meta-heuristic algorithms rely on a certain degree of randomness. This package provides an interface (an abstract class) Rand for random number generators. The default random number generator is the MersenneTwister.
This interface should be used in all operators and algorithms such that an optimization run with the same seed of the random number generator should produce the same result. Keep in mind that this reproducibility might be violated by, e.g., multi-threading or non-deterministic objects like Sets.
-
Class Summary Class Description Rand TheRandclass is an abstract class that is utilized as an interface for random classes.RandomDefault RandomJava TheRandomJavais the default javaRandom.RandomMersenneTwister TheRandomMersenneTwisteruses an implementation of the mersenne twister random number generator written byDavid Beaumont.RandomModule TheRandomModuleis used to configure the used random number generator. -
Enum Summary Enum Description RandomModule.RandType