Hide Comments
Hide Comments

Comments (0)

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

expandingSyntax

Delphi

type
  TRSGACrossoverEvent = procedure ( Sender: TObject;
  const Parent1, Parent2, Child: TRSGAIndividual;
  var CrossoverBit: Integer;
  var DoMutation: Boolean ) of object;
 

Parameters

Sender

Type: TObject

Parent1

Type: TRSGAIndividual

Parent2

Type: TRSGAIndividual

Child

Type: TRSGAIndividual

CrossoverBit

Type: Integer

DoMutation

Type: Boolean

expandingSee Also

Comments (0)