chooseparents {seao} | R Documentation |
Choose the best individuals (set-ups) of the given generations (batches) as possible parents. Parent selection is generally the next step.
chooseparents(struc.ea, n.ind=NULL, gen.parent=NULL)
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). |
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:
|
As for all functions in this package, evolutionary terminology is used
as described in seao.terminology
.
Kurt Sys (kurt.sys@rug.ac.be)
genomestruc, newgen, selectparents