Class TCrossover

DescriptionHierarchyFieldsMethodsProperties

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 > TObject

Methods

Overview

Public constructor Create(Parent1,Parent2: TAgent);
Public destructor Destroy; override;
Public procedure Perform;
Public procedure SetCrossoverScheme(CrossoverScheme: TCrossoverScheme);

Description

Public constructor Create(Parent1,Parent2: TAgent);

Constructor

parameters
Parent1
is the first parent.
Parent2
is the second parent.
Public destructor Destroy; override;

Destructor

Public procedure Perform;

Do the actual crossover. The result of the crossover operation can be accessed by the two properties Child1 and Child2.

Public procedure SetCrossoverScheme(CrossoverScheme: TCrossoverScheme);

Set the crossover scheme to use when performing crossover. Currently, only csSinglePoint is supported.

Properties

Overview

Public property Child1: TAgent;
Public property Child2: TAgent;

Description

Public property Child1: TAgent;

First child (as generated after the crossover).

Public property Child2: TAgent;

Second child (as generated after the crossover).


Generated by PasDoc 0.8.8.3 on 2005-05-28 08:13:49