Roulette wheel selection for function minimization

Masud Hasan picture Masud Hasan · Jan 6, 2012 · Viewed 10.1k times · Source

This question answers pseudocode for roulette wheel selection. But it's for maximization problem. But my problem is to minimize the value of fitness function. That means, individuals with low fitness get higher probability for being selected than individual with high fitness. How can I implement that?

Thanks in advance.

Answer

Larry OBrien picture Larry OBrien · Jan 6, 2012

Use the same algorithm but make the proportion of each individual = maxfitness - fitness