View source: R/geneticoperator.R
| rmoo_huxCrossover | R Documentation |
Produces two children by swapping exactly half of the genes that differ between the two parents. Only loci where the parents disagree are eligible, making HUX more conservative than full uniform crossover.
rmoo_huxCrossover(object, parents, prob_hux = 0.5)
rmooint_huxCrossover(object, parents, prob_hux = 0.5)
rmoobin_huxCrossover(object, parents, prob_hux = 0.5)
object |
MOEA object with slots population and fitness. |
parents |
Integer vector of length 2 with the parent row indices. |
prob_hux |
Proportion of differing loci to swap (default 0.5). |
A list with children (2 × n integer matrix) and
fitness (2 × nObj NA matrix).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.