Defines the method signature for the OnCrossover event. The Parent1 and Parent2 parameters identify the parents of the Child parameter and also the chromosomes that will be recombined into the child. The CrossoverBit defines the bit number to use where the crossover will take place. The DoMutation parameter controls whether the genetic operation will occur at all. Set DoMutation to False to prevent the crossover.
Namespace: RSGeneticAlgorithm
Delphi |
type |
Parameters
Sender
Type: TObject
Parent1
Type: TRSGAIndividual
Parent2
Type: TRSGAIndividual
Child
Type: TRSGAIndividual
CrossoverBit
Type: Integer
DoMutation
Type: Boolean