View source: R/xegaPermMutate.R
xegaPermMutateGeneGreedy | R Documentation |
xegaPermMutateGeneGreedy
mutates a permutation
by inserting a greedy path of length k
at a random position start
.
The mutation rate for a gene is given by MutationRate().
xegaPermMutateGeneGreedy(gene, lF)
gene |
A Permutation. |
lF |
Local configuration of the genetic algorithm. |
The path length k
is expontially decaying
with exponential decay constant lambda
.
A Permutation.
Other Mutation:
xegaPermMutateGene2Opt()
,
xegaPermMutateGeneBestGreedy()
,
xegaPermMutateGeneOrderBased()
,
xegaPermMutateGenekInversion()
,
xegaPermMutateGenekOptLK()
,
xegaPermMutateMix()
gene1<-xegaPermInitGene(lFxegaPermGene)
xegaPermDecodeGene(gene1, lFxegaPermGene)
gene<-xegaPermMutateGeneGreedy(gene1, lFxegaPermGene)
xegaPermDecodeGene(gene, lFxegaPermGene)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.