Description Usage Arguments Details
Parent chromosomes selected by select_parents
will be used to generate new children using concept of crossover to combine genetic data to produce offspring. Parents are selected for crossover according to probability of crossover. If crossover does not occour, parent chromosomes are passed exactly to offpsring. This function produces two children from each parent chromosomes mate pair using one of three methods.
1 2 | crossover_parents(generation_t0, parentInd, crossover_method, pCrossover,
parent_rank)
|
generation_t0 |
a matrix of parent chromosomes to be evaluated. Columns correspond to predictors/genes and rows correspond to parents/chromosomes. |
parentInd |
a vector containing the rank indexes of two parents selected for crossover. |
crossover_method |
a character string indicating which method of crossover to be used, default is method 1, multipoint crossover. |
pCrossover |
a number between 0 and 1 indicating the probability of crossover for each mate pair. Default is 0.8. |
parent_rank |
a integer vector of fitness ranks for parent chromosomes. References: Geof H. Givens, Jennifer A. Hoeting (2013) Combinatorial Optimization (italicize). Chapter 3 of Computational Statistics (italicize). |
Multipoint crossover. Parent data is exchanged at three randomly selected crossover points along the chromosome to produce two offspring.
Probabilities for each gene are created from according to relative rankings of each parent and then child genotypes are sampled from rbinom
using those probabilities.
Condordant mate pair genes are passed directly offspring, and non-corcordant genes are sampled from rbinom
using probabilities proportional to relative ranking of each parent.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.