gaDecode¶
Decodes an individual’s chromosome into its binary, nominal, integer and real phenotypes.
Synopsis¶
gaDecode( individual)
Required Arguments¶
- Imsls_d_individual
individual
(Input/Output) - An existing individual that will have its chromosome information decoded.
Description¶
Normally decoding is required after crossover or mutation. By default, if
geneticAlgorithm is used, mutation, crossover and
decoding is done automatically. If a custom genetic algorithm is being
written to replace geneticAlgorithm
, then gaDecode
can be used
within the fitness function prior to fitness calculations.
Binary and nominal phenotypes are copied directly from their chromosome values. Integer and real phenotypes are encoded as binary bits using either Gray or Base-2 encoding. This function decodes those bits into their integer or real representations using the Gray or Base-2 encoding specification contained in the individual’s chromosome.