Package org.opt4j.core.common.random

Provides the classes for the random number generators.

See:
          Description

Class Summary
Rand The Rand class is an abstract class that is utilized as an interface for random classes.
RandomDefault The RandomDefault uses is a RandomMersenneTwister with the seed System.currentTimeMillis().
RandomJava The RandomJava is the default java Random.
RandomMersenneTwister The RandomMersenneTwister uses an implementation of the mersenne twister random number generator written by David Beaumont.
RandomModule The RandomModule is used to configure the used random number generator.
 

Enum Summary
RandomModule.RandType The RandomModule.RandType.
 

Package org.opt4j.core.common.random Description

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.