Defines the simple type (e.g., integer, floating point number, etc) for this gene in the population's chromosomes. Use the GeneType property to know how to access the bits of the chromosomes using the AsXXX property accessors (e.g., AsInteger for gtInteger GeneType, AsBoolean for gtBoolean, etc). For the gtEnumeration Gene Type, you also need to define the Enumerations for the gene before accessing it.
Namespace: RSGeneticAlgorithm
Delphi |
published |
Property Value
Type: TGeneType
The following example prints out the different values of the gene based on its GeneType: Delphi |
function TRSGAGene.AsString(Bits: TRSEncodedBits): String; |
Reference
|