Order-based crossover (OX2) is a crossover operator for permutation encoded chromosomes. It is an operator that forces the order of several randomly selected positions in one parent to the other parent (Syswerda, 1991).
Usage
ox2(x1, x2, cxon, cxoxk, ...)
Arguments
x1
A vector. It contains the chromosomal information of parent-1.
x2
A vector. It contains the chromosomal information of parent-2.
cxon
Number of offspring to be generated as a result of crossover
cxoxk
Number of genes to be changed
…
Further arguments passed to or from other methods.
Value
A matrix containing the generated offsprings.
References
Sysweda, G. (1991). Schedule optimization using genetic algorithms. Handbook of Genetic Algorithms.