Controls the likelihood that crossover (also known as recombination) will occur when 2 parents are selected to create a new child. When crossover occurs, the 2 parents genes or DNA are combined to make the child. The crossover probability is checked for each new child (e.g., if there are 100 children created each generation, the CrossoverProbability will be tested 100 times).
The Operations property controls whether crossover occurs at all during evolution.
Note |
---|
If crossover does not occur, the child is a duplicate of the first parent (but may be mutated or inverted). |
Namespace: RSGeneticBase
Delphi |
public |
Property Value
Type: TGAProbability
The following code modifies a child based on CrossOver, Mutation, and Inversion:
|
Reference |