Pick the agent from the population that has the highest fitness or lowest cost and return it as the best found candidate solution.
Because of this, heterozygotes have a higher fitness than either of the homozygotes.
The environment "selects" the variants that have the highest fitness, which are then passed on to the next generation of organisms.
However, in step 6, for each patch only the bee with the highest fitness will be selected to form the next bee population.
Plants that were capable of outcompeting neighboring plants likely had higher fitness.
To model selection, one type has to have a higher fitness and is thus more likely to be chosen for reproduction.
The heterozygote has a permanent advantage (a higher fitness) wherever malaria exists.
In other species, males that are smaller than females have higher fitness.
Then, the solutions are mutated and selected for those with higher fitness, until a satisfying solution has been found.
In particular it is difficult to understand why these algorithms frequently succeed at generating solutions of high fitness when applied to practical problems.