Package org.opt4j.common.random
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.
-
ClassDescriptionThe
Rand
class is an abstract class that is utilized as an interface for random classes.TheRandomJava
is the default javaRandom
.TheRandomMersenneTwister
uses an implementation of the mersenne twister random number generator written byDavid Beaumont
.TheRandomModule
is used to configure the used random number generator.