Converts the genetic encoding of a RSGeneticAlgorithm.TRSGAIndividual 's Bits into a string representation based on GeneType. The AsString function extracts the gene's bits (using the Offset and Size properties to specify where) and then converts the bits into a string representation, e.g., for numeric types, you see the decimal representation of the number, for booleans, you see "True" or "False, and for enumerations, you see the correct string from the Enumerations property.
The Index parameter specifies the index of an individual in the
Population and automatically extracts the RSGeneticAlgorithm.TRSGAIndividual.Bits chromosome property to call the overloaded AsString function.
Namespace: RSGeneticAlgorithm
Delphi |
public |
Parameters
Index
Type: Integer
Type: String
The following example prints out the gene representation for every individual in the population:
|
Reference |