Hide Comments
Hide Comments

TRSCustomGeneticComponent.Crossover(TRSIndividual,TRSIndividual,TRSIndividual) Method

Comments (0)

Combines the DNA of the two parents to make the DNA of the child. 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

expandingSyntax

Delphi

public
  function Crossover( const Parent1, Parent2, Child: TRSIndividual ): Boolean; virtual;
 

Parameters

Parent1

Type: TRSIndividual

Parent2

Type: TRSIndividual

Child

Type: TRSIndividual

Return Value

Type: Boolean

expandingSee Also

Comments (0)