Chapter 13: Data Mining > ga_merge_population

ga_merge_population

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

Synopsis

#include <imsls.h>

Imsls_f_population  *imsls_f_ga_merge_population (
Imsls_f_population 
* population1,
Imsls_f_population  *population2,, 0)

The type double function is imsls_d_ga_merge_population.

Required Arguments

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

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

Return Value

Function imsls_f_ga_merge_population returns a pointer to a new population consisting of the individuals in population1 and population2population1 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 imsls_f_ga_free_population.

Synopsis with Optional Arguments

#include <imsls.h>

Imsls_f_population *imsls_f_ga_merge_population
(Imsls_f_population  *population1,
Imsls_f_population 
*population2,
IMSLS_PRINT,
0)

Optional Arguments

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

Description

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


RW_logo.jpg
Contact Support