Clones an existing population.
#include <imsls.h>
Imsls_f_population
*imsls_f_ga_clone_population
(Imsls_f_population
*
populationIn,
…, 0)
The type double function is imsls_d_ga_clone_population.
Imsls_f_population *populationIn (Input)
A pointer to an
existing population that gets cloned and returned as a pointer to a copy of
populationIn.
Function imsls_f_ga_clone_population creates a copy of an Imsls_f_population data structure. The memory is allocated for the new data structure and the contents of populationIn are copied into that structure. Memory allocated for this data structure can be released using the imsls_f_ga_free_population function.
#include <imsls.h>
Imsls_f_population
*imsls_f_ga_clone_population (
Imsls_f_population
*populationIn,
IMSLS_PRINT,
0)
IMSLS_PRINT
(Input)
By default, summary information is not printed. This option
turns on printing of summary information for the cloned population.
Function imsls_f_ga_clone_population returns a pointer to an Imsls_f_population data structure containing the contents of populationIn.