is it possible to evaluate each individual in the population using the fitness value without finding the probability as the following pseudo code
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
and what the following part of the code do ?
Do this twice
I really confuse how the Roulette Wheel selects pair of parents. can any help ? thanks in advance
Do this twice
because for create offspring you need two parents. So you have to do the process of selecting parent twice. – Galarza