Description Usage Arguments Details Examples
ReplaceClones()
removes any clones (genetically identical individuals) from a
given generation and replaces them with individuals randomly created from the entire
genome clones are predicted to exist when fitness of two individuals are exactly the
same this is highly unlikely unless they share the same exact genome. Once idenfitied
clones are replaced with new individuals whoses genomes are randomly generated from a
binomial distribution with p = 0.5. This is done to re-inject diversity back into the
existing gene pool.
1 | ReplaceClones(generation, fitness.vec)
|
generation |
A list of individual genomes or co-variate sets |
fitness.vec |
A vector of the fitness values for the input |
C |
The number of genes (potential co-variantes) in an individual |
ReplaceClones() produces a revised generation where all clones have been replaced by random individuals as described above.
Called from within Select()
1 | \code{\link[GA]{Select}}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.