nextgen                 package:seao                 R Documentation

_N_e_x_t _g_e_n_e_r_a_t_i_o_n

_D_e_s_c_r_i_p_t_i_o_n:

     Calculates a next generation, i.e. chooses and selects parents and
     performs crossover and mutation.

_U_s_a_g_e:

       nextgen(struc.ea,
               n.ind=NULL,
               gen.parent=NULL,
               selection=list(base="fit", rescale=0),
               corate=90,
               mutation=list(base="unif", spread=1, rate=15))

_A_r_g_u_m_e_n_t_s:

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.

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).

selection: A list containing the base for selection, and possible
          selection. The base can be either "fit" (standard value) or
          "rank"; rescaling a number, standard value is 0, but 1.5 is a
          value which gives often nice results.

  corate: The parameter value recombination rate, i.e. the percentage
          individuals which should be recombined.

mutation: Some evolutionary parameters to set. This contains whether a
          uniform ('unif') or normal ('norm') distribution should be
          used, whether the spread value (if this is set to 0, a value
          of 1 is used), and to set the paramater value randomization
          rate.

_V_a_l_u_e:

     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): 

          _f_i_t: 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.

          _a_l_l_e_l_e: a matrix containing the allele-values of all
               individuals (experimental set-ups) of the new generation
               (batch)

          _p_a_r_e_n_t_s: a string vector with the numbers of the parent
               generations.

          _s_e_l_e_c_t_i_o_n: a list containing the selection base and
               rescaling.

          _c_r_o_s_s_o_v_e_r: the crossover rate.

          _m_u_t_a_t_i_o_n: a list containing the mutation parameters.

_N_o_t_e:

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

_A_u_t_h_o_r(_s):

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

_R_e_f_e_r_e_n_c_e_s:

_S_e_e _A_l_s_o:

     genomestruc

_E_x_a_m_p_l_e_s:

