xegaPermMutateGenekInversion {xegaPermGene} | R Documentation |
Mutate a gene (k random inversions).
Description
xegaPermMutateGenekInversion
performs k random inversions.
The number of inversions is expontially decaying
with exponential decay constant lambda
.
Usage
xegaPermMutateGenekInversion(gene, lF)
Arguments
gene |
A Permutation. |
lF |
Local configuration of the genetic algorithm. |
Details
The only difference to the order based mutation operator (Syswerda, 1991) is the exponential decay in the number of inversions.
The indices of a random subschedule are extracted.
The subschedule is extracted, permuted, and reinserted.
Value
A Permutation.
References
Syswerda, G. (1991): Schedule Optimization Using Genetic Algorithms. In: Davis, L. (Ed.): Handbook of Genetic Algorithms, Chapter 21, pp. 332-349. Van Nostrand Reinhold, New York.
See Also
Other Mutation:
xegaPermMutateGene2Opt()
,
xegaPermMutateGeneBestGreedy()
,
xegaPermMutateGeneGreedy()
,
xegaPermMutateGeneOrderBased()
,
xegaPermMutateGenekOptLK()
,
xegaPermMutateMix()
Examples
gene1<-xegaPermInitGene(lFxegaPermGene)
xegaPermDecodeGene(gene1, lFxegaPermGene)
gene<-xegaPermMutateGenekInversion(gene1, lFxegaPermGene)
xegaPermDecodeGene(gene, lFxegaPermGene)