Show/Hide Toolbars

RiverSoftAVG Products Help

Navigation: Code Documentation > GeneticAlgorithm > RSGeneticBase > Classes > TRSCustomGeneticComponent > Methods

TRSCustomGeneticComponent.Reproduce(TRSIndividual,TRSIndividual,TRSIndividual) Method

Scroll Prev Top Next More

The Reproduce method takes the two Parents and "mates" them to create the new Children. The Child parameters must exist but all of their information will be overwritten by the Parents. The New Child is copied from its first parent and then    Crossover,    Mutate, and    Invert are called according to the Operations property and the respective probability of the operation. Finally, an    OnReproduction event occurs.

The Evolve method calls the Reproduce methods.
 

Namespace: RSGeneticBase

Parameters

Parent1

Type: TRSIndividual

Parent2

Type: TRSIndividual

Child1

Type: TRSIndividual

Return Value

Type: Boolean

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb