Cellular Population
CellularPopulation - specific Population of CellularGA based on Array of Chromosome.
V - value of Chromosome
F - fitness value of Chromosome
This population supports:
elitism, see CellularConfig.elitism
n-dimensional space for population, see Dimens
Structure of population with CellularPopulation.dimens = Dimens.rectangle(length = 4, width = 3)
(CellularPopulation.size = 4 * 3 = 12):
0 1 2 3
0 [0] [1] [2] [3]
1 [4] [5] [6] [7]
2 [8] [9] [10] [11]
NOTE
Kgal use toroidal coordinates for neighborhoods, for example: the cell with index 3 and VonNeumann(radius = 1) neighborhood the neighbors are the cells with indices: 2, 11, 0, 7
Creates with population functions.
See also
Properties
The best Chromosome in Population by fitness.
PopulationFactory for this population. Creates new Chromosome.
Return indices range for Population
True if population is initialized and ready to evolve.
Name of population, default value = DEFAULT_POPULATION_NAME
The worst Chromosome in Population by fitness.
Functions
Override clone method to return CellularPopulation
Return clone of Chromosome with index in Population
Creates array with chromosomes copied from Population.
Creates copy of Population as an array by range
Get Chromosome by index
Get population as an array.
Returns true
if the population is empty (contains no chromosomes), false
otherwise.
Creates Array with randomly selected chromosomes from source array
Set Chromosome with index
Set new population.