The Discrete Crossover (DC) operator is an operator that swaps parent genes if a randomly selected value in the range [0,1] for each gene in the chromosome is greater than or equal to a given threshold value, and does not change if it is less than the threshold value.
Usage
dc(x1, x2, cxon, cxps, ...)
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
cxps
Threshold value. 0 <= cxps <= 1
…
Further arguments passed to or from other methods.