我有一个关于如何在 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
这个架构正确吗?谢谢