Functions implementing crossover genetic operator.
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, …)
An object of class "ga"
, usually resulting from a call to function ga
.
A two-rows matrix of values indexing the parents from the current population.
Further arguments passed to or from other methods.
Parameters of genetic operators.
Return a list with two elements:
a matrix of dimension 2 times the number of decision variables containing the generated offsprings;
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.