ICX is based on a deterministic algorithm that can produce up to 2 offspring (Hussain et.al., 2018).
icx(x1, x2, cxon, ...)
A vector. It contains the chromosomal information of parent-1.
A vector. It contains the chromosomal information of parent-2.
Number of offspring to be generated as a result of crossover
Further arguments passed to or from other methods.
A matrix containing the generated offsprings.
Hussain, A., Muhammad, Y.S. and Sajid, M.N. (2018). An improved genetic algorithm crossover operator for traveling salesman problem. Turkish Journal of Mathematics and Computer Science, 9, 1-13.
cross
,
px1
,
kpx
,
sc
,
rsc
,
hux
,
ux
,
ux2
,
mx
,
rrc
,
disc
,
atc
,
cpc
,
eclc
,
raoc
,
dc
,
ax
,
hc
,
sax
,
wax
,
lax
,
bx
,
ebx
,
blxa
,
blxab
,
lapx
,
elx
,
geomx
,
spherex
,
pmx
,
mpmx
,
upmx
,
ox
,
ox2
,
mpx
,
erx
,
pbx
,
pbx2
,
cx
,
smc
# NOT RUN {
parent1 = c(3, 4, 8, 2, 7, 1, 6, 5)
parent2 = c(4, 2, 5, 1, 6, 8, 3, 7)
icx(parent1, parent2)
# }
Run the code above in your browser using DataLab