View source: R/xegaPermCrossover.R
xegaPermCrossGene | R Documentation |
xegaPermCrossGene
determines
a random subschedule of random length.
It copies the random subschedule into a new gene. The rest of the positions of the new scheme is filled with the elements of the other gene to complete the permutation.
xegaPermCrossGene(gg1, gg2, lF)
gg1 |
Permutation. |
gg2 |
Permutation. |
lF |
Local configuration of the genetic algorithm. |
A list of 2 permutations.
Syswerda, G. (1991): Schedule Optimization Using Genetic Algorithms. In: Davis, L. (Ed.): Handbook of Genetic Algorithms, Chapter 21, p. 343. Van Nostrand Reinhold, New York. (ISBN:0-442-00173-8)
Other Crossover:
xegaPermCross2Gene()
gene1<-xegaPermInitGene(lFxegaPermGene)
gene2<-xegaPermInitGene(lFxegaPermGene)
xegaPermDecodeGene(gene1, lFxegaPermGene)
xegaPermDecodeGene(gene2, lFxegaPermGene)
newgenes<-xegaPermCrossGene(gene1, gene2)
xegaPermDecodeGene(newgenes[[1]], lFxegaPermGene)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.