Show/Hide Toolbars

RiverSoftAVG Products Help

Navigation: Code Documentation > GeneticAlgorithm > RSGeneticBase > Classes > TRSCustomGeneticComponent > Methods

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

Parameters

Parent1

Type: TRSIndividual

Parent2

Type: TRSIndividual

Child1

Type: TRSIndividual

Return Value

Type: Boolean

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb