Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

ga_Crossover

Crossover operators in genetic algorithms


Description

Functions implementing crossover genetic operator.

Usage

ga_spCrossover(object, parents, ...)

gabin_spCrossover(object, parents, ...)
gabin_uCrossover(object, parents, ...)

gareal_spCrossover(object, parents, ...)
gareal_waCrossover(object, parents, ...)
gareal_laCrossover(object, parents, ...)
gareal_blxCrossover(object, parents, a = 0.5, ...)
gareal_laplaceCrossover(object, parents, a = 0, b = 0.15, ...)

gaperm_cxCrossover(object, parents, ...)
gaperm_pmxCrossover(object, parents, ...)
gaperm_oxCrossover(object, parents, ...)
gaperm_pbxCrossover(object, parents, ...)

Arguments

object

An object of class "ga", usually resulting from a call to function ga.

parents

A two-rows matrix of values indexing the parents from the current population.

...

Further arguments passed to or from other methods.

a, b

Parameters of genetic operators.

Value

Return a list with two elements:

children

a matrix of dimension 2 times the number of decision variables containing the generated offsprings;

fitness

a vector of length 2 containing the fitness values for the offsprings. A value NA is returned if an offspring is different (which is usually the case) from the two parents.

Author(s)

Luca Scrucca

See Also


GA

Genetic Algorithms

v3.2.1
GPL (>= 2)
Authors
Luca Scrucca [aut, cre] (<https://orcid.org/0000-0003-3826-0484>)
Initial release
2021-04-20

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.