TRSCustomGeneticComponent.Crossover(TRSIndividual,TRSIndividual,TRSIndividual) Method |
Scroll Prev Top Next More |
Combines the DNA of the two parents to make the DNA of the children. Note that crossover is not guaranteed to occur but is dependent on the CrossoverProbability. The function calls the OnCrossover event and then DoCrossover method.
The Crossover method is called by the
Reproduce method. The function returns true if crossover occurred.
Namespace: RSGeneticBase
Delphi |
public |
Parameters
Parent1
Type: TRSIndividual
Parent2
Type: TRSIndividual
Child1
Type: TRSIndividual
Type: Boolean