ga_clone_individual

Clones an existing individual.

Synopsis

#include <imsls.h>

Imsls_f_individual *imsls_f_ga_clone_individual (Imsls_f_individual *individualIn, …, 0)

The type double function is imsls_d_ga_clone_individual.

Required Arguments

Imsls_f_individual *individualIn (Input)
An existing individual to be copied.

Return Value

Returns a pointer to an Imsls_f_individual data structure containing a copy of individualIn. This data structure can be released using the imsls_f_ga_free_individual function.

Synopsis with Optional Arguments

#include <imsls.h>

Imsls_f_individual *imsls_f_ga_clone_individual (Imsls_f_individual *individualIn,

IMSLS_PRINT,

0)

Optional Arguments

IMSLS_PRINT, (Input)
By default, results are not printed. This option turns on printing of summary information for the cloned individual.

Description

Function imsls_f_ga_clone_individual returns an Imsls_f_individual data structure containing the contents of individualIn. Memory is allocated for the returned data structure. It can be released using the imsls_f_ga_free_individual function.