Learn R Programming

rmoo (version 0.3.2)

rmoo_huxCrossover: Half Uniform Crossover (HUX)

Description

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.

Usage

rmoo_huxCrossover(object, parents, prob_hux = 0.5)

rmooint_huxCrossover(object, parents, prob_hux = 0.5)

rmoobin_huxCrossover(object, parents, prob_hux = 0.5)

Value

A list with children (2 × n integer matrix) and fitness (2 × nObj NA matrix).

Arguments

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).