Defines the string labels or enumerated values for an gtEnumeration gene ( GeneType ). Use the AsEnumeration property to read and write the enumerated values into the bits of the chromosome. When you change the number of strings that are in the Enumerations string list, the TRSGAGene class automatically recalculates the Size (number of bits) of the gene in order to properly store all enumerated values
Namespace: RSGeneticAlgorithm
Delphi |
published |
Property Value
Type: TStrings
The following example sets up and uses an enumeration with four values: Delphi |
begin |