chooseparents {seao}R Documentation

Choose parent generations

Description

Choose the best individuals (set-ups) of the given generations (batches) as possible parents. Parent selection is generally the next step.

Usage

  chooseparents(struc.ea, n.ind=NULL, gen.parent=NULL)

Arguments

struc.ea An evolutionary algorithm structure
n.ind Number of individuals (set-ups) present in the new generation (batch); this is equal to the number of parents chosen in this function. If this argument is not given, the average of the number of individuals (set-ups) in the chosen parent generations (batches) is taken as default.
gen.parent A vector containing the numbers of the parent generations (batches). As default, the function includes all previous calculated generations (batches) for choosing the parents of the next generation (batch).

Value

The function returns an evolutionary algorithm object, which is actually the same as the input argument struc.ea, but with one generation (batch) added, i.e. the chosen parents:

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 (experimental set-ups) of the generation (batch); this are just copies of the fitnesses of the chosen parents.
allele:
a matrix containing the allele-values of all individuals (experimental set-ups) of the generation (batch); this are just copies of the alleles (parameter values) of the chosen parents.
parents:
a string vector with the numbers of the parent generations.

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)

References

See Also

genomestruc, newgen, selectparents

seao.terminology

Examples






[Package Contents]