UpdatePolicy

sealed interface UpdatePolicy

UpdatePolicy - renewal policy determining the order of chromosome's evolution in CellularGA with CellularType.Asynchronous type.

Inheritors

Types

Link copied to clipboard
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.

Link copied to clipboard
data object LineSweep : UpdatePolicy

Basic UpdatePolicy defining the order of evolution from the first to the last chromosome in a CellularPopulation, like CellularType.Synchronous.

Link copied to clipboard

UpdatePolicy defining the order of evolution with new random sweep: instead of passing from the first to the last chromosome, an array chromosomes' indices is created and randomly shuffled, then a pass is made through the elements of this array. The chromosome whose index is indicated in the current cell of the array evolves.

Link copied to clipboard

UpdatePolicy defining the order of evolution with uniform choice: chromosome for evolution is chosen randomly.