Constrain the floating point, integer, and enumerations gene types (see GeneType ) to a valid range. The TRSGAGene class uses these properties to ensure that when you are writing a numeric value to a RSGeneticAlgorithm.TRSGAIndividual 's chromosome, the value is in a valid range. Note that this won't stop mutations or anything else that operates on the bits directly from giving invalid values.
Namespace: RSGeneticAlgorithm
Delphi |
published |
Property Value
Type: Double
Here is example code for creating an integer gene:
|