Clones an existing chromosome.
#include <imsls.h>
Imsls_f_chromosome *imsls_f_ga_clone_chromosome (Imsls_f_chromosome *chromosomeIn, …, 0)
The type double function is imsls_d_ga_clone_chromosome.
Imsls_f_chromosome *chromosomeIn
(Input)
An existing chromosome to be copied and returned as a new
Imsls_f_chromosome data structure.
The function imsls_f_ga_clone_chromosome returns a copy of an Imsls_f_chromosome data structure. The memory is allocated for the new data structure and the contents of chromosomeIn are copied into that structure. The memory allocated for this data structure can be released using imsls_free.
#include <imsls.h>
Imsls_f_chromosome
*imsls_f_ga_clone_chromosome (Imsls_f_chromosome *chromosomeIn,
IMSLS_PRINT,
0)
IMSLS_PRINT
(Input)
By default, results are not printed. This option turns on
printing of summary information for the cloned chromosome.
Function ga_clone_chromosome returns an Imsls_f_chromosome data structure containing the contents of chromosomeIn.