chooseparents              package:seao              R Documentation

_C_h_o_o_s_e _p_a_r_e_n_t _g_e_n_e_r_a_t_i_o_n_s

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

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

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

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

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

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

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

     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: 

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

          _a_l_l_e_l_e: 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. 

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

_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, newgen, selectparents

     seao.terminology

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

