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 that will be recombined into the child. The DoMutation parameter controls whether the genetic operation will occur at all. Set DoMutation to False to prevent the crossover.

Namespace: RSGeneticBase

expandingSyntax

Delphi

type
  TRSCrossoverEvent = procedure ( Sender: TObject;
  const Parent1, Parent2, Child: TRSIndividual;
  var DoMutation: Boolean ) of object;
 

Parameters

Sender

Type: TObject

Parent1

Type: TRSIndividual

Parent2

Type: TRSIndividual

Child

Type: TRSIndividual

DoMutation

Type: Boolean

expandingSee Also

Reference

Comments (0)