newgen {seao}R Documentation

New generation

Description

Generates a new (random) generation of individuals (experiments) using an already defined genomestructure.

Usage

  newgen(struc.ea, n.ind=25, method="random")

Arguments

struc.ea An evolutionary algorithm structure. It must contain at least $genes, which is a list describing the structure of the genome (parameter set).
n.ind The number of individuals one wants to generate. Default value is set to 25.
method This describes the method that must be used the make a (random) generation (batch). There are two possibilities, i.e. random, for pure random allele (parameter value) generation and maxgenediv, in which case the diversity per gene is maximised. The default value is "random".

Value

The function returns an evolutionary algorithm object:

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 (batch):
fit:
a vector containing the fitnesses of all individuals (experimental set-ups).
allele:
a matrix containing the alleles (parameter values of all individuals (experimental set-ups).
parents:
a string vector with the numbers of the parent generations (batches). For this function, this is set to a vector with values "-1" and the method used ("random" or "maxgenediv")

Note

newgen is the actual function that calculates the (random) alleles of a new generation. However, if package seao.gui is also loaded, a graphical interface can be called by newgen.gui. The return value of both functions is exactly the same, since the former is called by the latter.

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

Examples






[Package Contents]