population

fun <V, F> population(dimens: Dimens, name: String = DEFAULT_POPULATION_NAME, factory: PopulationFactory<V, F>): CellularPopulation<V, F>

Creates CellularPopulation.

Parameters

dimens

Dimens for cellular population. Define space and its boundaries for the population and, accordingly, population size. This space determines the position of the chromosomes relative to each other

name

name of population, default value = DEFAULT_POPULATION_NAME, used to identify different populations

factory

PopulationFactory for this population. Creates new Chromosome


fun <V, F> population(dimens: Dimens, population: Array<Chromosome<V, F>>, name: String = DEFAULT_POPULATION_NAME, factory: PopulationFactory<V, F>): CellularPopulation<V, F>

Creates CellularPopulation.

NOTE population.size must be equal to dimens.size

Parameters

dimens

Dimens for cellular population. Define space and its boundaries for the population and, accordingly, population size. This space determines the position of the chromosomes relative to each other

population

initial or existing population.

name

name of population, default value = DEFAULT_POPULATION_NAME, used to identify different populations

factory

PopulationFactory for this population. Creates new Chromosome