Show/Hide Toolbars

RiverSoftAVG Products Help

Navigation: Code Documentation > GeneticAlgorithm > RSGeneticAlgorithm > Classes > TRSGABits > Methods

TRSGABits.CrossOver(TRSGABits,TRSGABits) Method

Scroll Prev Top Next More

Modifies the bits of the current object by mixing the bits of the two Source bits, or Parents. The method randomly selects a crossover point and then copies bits from Source1 from the first bit to the crossover bit and then copies bits from Source2 from the crossover bit to the last bit. Thus, the current bits object becomes the child of the two parent bits.

Namespace: RSGeneticAlgorithm

Parameters

Source1

Type: TRSGABits

Source2

Type: TRSGABits

Return Value

Type: TRSGABits

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb