Selection of first parent is done according to fitness ranks generated with rank_objective_function
. Probably of parent rank, \frac{2\ r_{i}}{P(P+1)}, from i = 1,...,P, where rank_i are fitness ranks of each parent chromosomes, and P is number of of parent chromosomes. The second parent is selected randomly and will not be the same as the previous parent. Fucntion returns ranks of select parents to be used for crossover_parents
.
1 | select_parents(parent_rank)
|
parent_rank |
a vector indicating the rank of parents chromosomes. Ranking order is inverse: parent chromosomes with lowest fitness rank will have rank == 1. References: Geof H. Givens, Jennifer A. Hoeting (2013) Combinatorial Optimization (italicize). Chapter 3 of Computational Statistics (italicize). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.