Class TCrossover
Unit
Crossover
Declaration
type TCrossover = class(TObject)
Description
Base class used for crossover operators. TCrossover implements a single point crossover operator, swapping genes between two genomes.
Hierarchy
TCrossover > TObjectMethods
Overview
Description
 |
constructor Create(Parent1,Parent2: TAgent); |
Constructor
parameters
-
Parent1
-
is the first parent.
-
Parent2
-
is the second parent.
 |
destructor Destroy; override; |
Destructor
 |
procedure Perform; |
Do the actual crossover. The result of the crossover operation can be accessed by the two properties Child1 and Child2.
Set the crossover scheme to use when performing crossover. Currently, only csSinglePoint is supported.
Properties
Overview
Description
First child (as generated after the crossover).
Second child (as generated after the crossover).
Generated by PasDoc 0.8.8.3 on 2005-05-28 08:13:49