Package-level declarations

Properties

Link copied to clipboard

Cached neighborhood relevance flag. If false recalculate cache with cacheNeighborhood.

Functions

Link copied to clipboard
inline suspend fun <V, F> CellularEvolveScope<V, F>.asynchronousExecute(updatePolicy: UpdatePolicy, crossinline cellEvolution: (chromosome: Chromosome<V, F>, neighbors: Array<Chromosome<V, F>>, random: Random) -> Chromosome<V, F>)
Link copied to clipboard
Link copied to clipboard
fun <V, F> CellEvolveScope<V, F>.evaluation(compareWithSecondChild: Boolean = true, fitnessFunction: (V) -> F = this.fitnessFunction)

Evaluation stage for CellEvolveScope.cell.

Link copied to clipboard
suspend fun <V, F> CellularEvolveScope<V, F>.evaluationAll(parallelismLimit: Int = parallelismConfig.workersCount, fitnessFunction: (V) -> F = this.fitnessFunction)
Link copied to clipboard
inline suspend fun <V, F> CellularEvolveScope<V, F>.evolveCells(crossinline evolution: CellEvolveScope<V, F>.() -> Unit)

Unique genetic operator for CellularGA performs an evolutionary strategy evolution for cells in CellularPopulation. The execution process is carried out depending on the CellularType.

Link copied to clipboard
inline fun <V, F> CellularEvolveScope<V, F>.executeCellEvolution(random: Random, index: Int, target: Array<Chromosome<V, F>>, crossinline cellEvolution: (chromosome: Chromosome<V, F>, neighbors: Array<Chromosome<V, F>>, random: Random) -> Chromosome<V, F>)

Executes cellEvolution for cell in CellularEvolveScope.population with index and set result to target.

Link copied to clipboard

If Population is not initialized - Fills a Population with randomly generated Chromosomes by Population.factory.

Link copied to clipboard
inline suspend fun <V, F> CellularEvolveScope<V, F>.process(crossinline action: suspend (iteration: Int, random: Random) -> Unit)

Executes action with process for CellularGA.

Link copied to clipboard
fun <V, F> CellularEvolveScope<V, F>.replaceWithElitism(population: Array<Chromosome<V, F>>, index: Int, old: Chromosome<V, F>, new: Chromosome<V, F>)

Executes replacing old chromosome with new when:

Link copied to clipboard
inline suspend fun <V, F> CellularEvolveScope<V, F>.synchronousExecute(crossinline cellEvolution: (chromosome: Chromosome<V, F>, neighbors: Array<Chromosome<V, F>>, random: Random) -> Chromosome<V, F>)

Executes CellularType.Synchronous mode (creating temp target population) for CellularGA.