Controls the likelihood that inversion will occur in a child's DNA or chromosome, e.g., whether a portion of the child's chromosome will be flipped. The probability is between 0 (no chance) and 1 (always). When 2 parents reproduce and create a new child, their chromosomes are combined using Crossover and then the child's chromosome may be mutated and/or inverted. The InversionProbability is checked once per child.
The Operations property controls whether inversion occurs at all during evolution.
Note |
---|
In genetic programming, inversion is actually a point mutation (i.e., a node in an individual's GP tree may be flipped and become a different instruction of the same arity and type). You can either 0 out the probability here and handle it all in the mutation phase or leave it in. |
Namespace: RSGeneticBase
Delphi |
public |
Property Value
Type: TGAProbability
The following code modifies a child based on CrossOver, Mutation, and Inversion:
|