次の擬似コードのように確率を見つけることなく、適応度の値を使用して母集団の各個人を評価することは可能ですか?
For all members of population
sum += fitness ( member)
End for
Loop until new population is full
Do this twice
Number = Random between 0 and sum
Currentfitness = 0.0
For each member in population
Currentfitness += fitness (member)
if Number > Currentfitness then select member
End for
End
Create offspring
End loop
そして、コードの次の部分は何をしますか?
Do this twice
ルーレット盤が親のペアを選択する方法を本当に混乱させます。何か助けてもらえますか?前もって感謝します