crossover {seao}R Documentation

Perform crossover

Description

The parameter values are recombined to make new batches. The rate can be set, as well as the generation on which this recombination should happen.

Usage

  crossover(struc.ea, gen=NULL, rate=90)

Arguments

struc.ea An evolutionary algorithm structure
gen The number of the generation (batch) for which the parents have to be chosen. The standard value is the last generation.
rate The parameter value recombination rate, i.e. the percentage individuals which should be recombined.

Details

Value

The function returns an evolutionary algorithm object, which is actually the same as the input argument struc.ea, but in which the a generation is transformed:

genes a list containing the genome (parameter set) stucture. This is the same as the genome (parameter set) structure of in the input (struc.ea$genes).
generations a list of structures with information of each generation:
fit:
a vector containing the fitnesses of all individuals. These values are all set to NA, since the fitnesses of the new individuals are not known yet.
allele:
a matrix containing the allele-values of all individuals (experimental set-ups) of the generation (batch); these values are recombined paramter values.
parents:
a string vector with the numbers of the parent generations.
selection:
a list containing the selection base and rescaling.
crossover:
the crossover rate; this value is added.

Note

As for all functions in this package, evolutionary terminology is used as described in seao.terminology.

Author(s)

Kurt Sys (kurt.sys@rug.ac.be)

See Also

genomestruc, newgen, chooseparents, selectparents

Examples






[Package Contents]