FixedRandomSweep

data class FixedRandomSweep(val random: Random) : UpdatePolicy

UpdatePolicy defining the order of evolution with fixed random sweep: similar to NewRandomSweep but an array chromosomes' indices is created and shuffled with random, then it will be cached.

  • an array chromosomes' indices created only once for current size (if size changes array will be re-cached), see cacheIndices.

  • all chromosome in population will be evolved only once

Constructors

Link copied to clipboard
constructor(random: Random)

Properties

Link copied to clipboard

Functions

Link copied to clipboard

Get cached array of indices. If size != indicesShuffled.size cached array will be recreated.