我有一个关于如何在GA中使用锦标赛选择的问题。假设我有100个人作为初始种群,然后我想申请n代的锦标赛选择,所以每次迭代只有20%的染色体结束。我想出的算法是:锦标赛选择的一般算法
choose 20% of the initial population
while (not end of iterations)
select randomly n individuals from the left population (20%)
if (number of chromosomes greater than two)
select the best and mutate
add to the population
if (number of chromosomes greater than three)
select best two of each pair and crossover them
add crossover product to the population
repeat process with new population
end while
这个模式是正确的吗?谢谢