Learn R Programming

adana (version 1.1.0)

elx: Extended-Line Crossover (ELX)

Description

With the Extended-Line Crossover (ELX) operator, offspring are generated on a line determined by the variable values in the parental chromosomes. ELX identifies the possible line from which offspring can be generated.

Usage

elx(x1, x2, lb, ub, cxon, cxealfa, ...)

Arguments

x1

A vector. It contains the chromosomal information of parent-1.

x2

A vector. It contains the chromosomal information of parent-2.

lb

A vector. Lower bounds of each gene in the chromosomes.

ub

A vector. Upper bounds of each gene in the chromosomes.

cxon

Number of offspring to be generated as a result of crossover

cxealfa

A number. Expansion rate

Further arguments passed to or from other methods.

Value

A matrix containing the generated offsprings.

See Also

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, geomx, spherex, pmx, mpmx, upmx, ox, ox2, mpx, erx, pbx, pbx2, cx, icx, smc

Examples

Run this code
# NOT RUN {
lb = c(0, 0, 0, 0, 0, 0)
ub = c(2, 3, 1, 2, 4, 3)
parent1 = c(1.1, 1.6, 0.0, 1.1, 1.4, 1.2)
parent2 = c(1.2, 0.0, 0.0, 1.5, 1.2, 1.4)
elx(parent1, parent2, lb, ub, cxealfa=1000)
# }

Run the code above in your browser using DataLab