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.
Use the same algorithm but make the proportion of each individual = maxfitness - fitness