Randomly mutates the bits in the object. The method steps through all of the bits of the object. For each bit, the Mutate method has a chance (based on the MutationProbability) to flip the bit, e.g., from True to False, or from False to True. If any bits are mutated, the method returns True.
Namespace: RSGeneticAlgorithm
Delphi |
public |
Parameters
MutationProbability
Type: TGAProbability
Type: Boolean
The following code modifies a child based on CrossOver, Mutation, and Inversion:
|
Reference |