Show/Hide Toolbars

RiverSoftAVG Products Help

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

TRSCustomGeneticComponent.InitialDuplicatesRetries Property

Scroll Prev Top Next More

Specifies the number of times to retry generating an individual on initialization if it is a duplicate

noteNote

The InitialDuplicatesRetries property works differently for genetic algorithms and genetic programming. In genetic algorithms, this property is the maximum number of times to retry generation before giving up for the entire initial population. For genetic programming, this property specifies how many times we attempt to create a unique individual per individual. If all of these retry attempts fail, the initialization depth is incremented to try and make a unique individual at the new depth.

alert_noteTip

With genetic algorithms, this property is not very important as generating unique individuals is easy and duplicates will not occur very often. However, for genetic programming, initialization duplicates will almost certainly occur. Having duplicate individuals in the initial population is a waste of processing power as it limits the pool of truly available individuals (though having duplicates in later generations is a feature not a bug as fitter individuals will tend to be selected and reproduces more as we evolve our solution). It is highly recommended to avoid duplicates in the initialization phase.

Namespace: RSGeneticBase

Property Value

Type: Integer

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb