gaGrowPopulation

Adds individuals to an existing population.

Synopsis

gaGrowPopulation (individual, population)

Required Arguments

Imsls_d_individual individual[] (Input)
An array of n individuals.
Imsls_d_population population (Input/Output)
An existing population.

Optional Arguments

t_print, (Input)
By default, summary statistics are not printed. This option turns on printing of the summary statistics for the new population.
fitness, float[] (Input)
An array of length n containing the fitness values for the individuals added to the population. fitness[i] is the fitness for the i-th individual.
fitnessFcn, float fitness(Imsls_d_individual individual) (Input)
The fitness function calculated for individual. If this is supplied, fitness values are calculated for each individual and included within the expanded population data structure. Otherwise they are set to zero.

Description

Function gaGrowPopulation grows an existing population by adding new individuals. The chromosome data structure of the individuals and the population must be identical. Fitness values for the new population are set to zero unless the fitness function is supplied using the optional argument fitnessFcn.

Fitness values for the new individuals can also be supplied using optional argument fitness.