gaMergePopulation

Creates a new population by merging two populations with identical chromosome structures.

Synopsis

gaMergePopulation (population1, population2)

Required Arguments

Imsls_d_population population1 (Input)
An existing population with chromosome data structure and encoding identical to population2.
Imsls_d_population population2 (Input)
An existing population with chromosome data structure and encoding identical to population1.

Return Value

Function gaMergePopulation returns a new population consisting of the individuals in population1 and population2. population1 and population2 must have the same chromosome data structure and encoding, although they can have different population sizes. Memory allocated to this data structure can be released using gaFreePopulation.

Optional Arguments

t_print, (Input)
By default, statistics are not printed. This option turns on printing of the summary statistics for the new population.

Description

Function gaMergePopulation creates a new population by combining the individuals and chromosome information from two populations. The chromosome data structure of the populations must be identical.