xegaPermMutateGeneBestGreedy {xegaPermGene} | 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()
.
xegaPermMutateGeneBestGreedy(gene, lF)
gene |
A Permutation. |
lF |
Local configuration of the genetic algorithm. |
The path length k
is expontially decaying
with exponential decay constant lF$lambda()
.
A Permutation
Other Mutation:
xegaPermMutateGene2Opt()
,
xegaPermMutateGeneGreedy()
,
xegaPermMutateGeneOrderBased()
,
xegaPermMutateGenekInversion()
,
xegaPermMutateGenekOptLK()
,
xegaPermMutateMix()
gene1<-xegaPermInitGene(lFxegaPermGene)
xegaPermDecodeGene(gene1, lFxegaPermGene)
gene<-xegaPermMutateGeneGreedy(gene1, lFxegaPermGene)
xegaPermDecodeGene(gene, lFxegaPermGene)