Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between roulette wheel selection, rank selection and tournament selection?

I'm reading a slide about genetic programming, where some methods to select individuals, such as roulette wheel selection, rank selection and tournament selection, are mentioned.

What is the difference between these three selection methods?

like image 699
Trần Kim Dự Avatar asked Apr 20 '14 14:04

Trần Kim Dự


People also ask

What is roulette wheel selection method?

The roulette wheel selection method is used for selecting all the individuals for the next generation. It is a popular selection method used in a genetic algorithm. A roulette wheel is constructed from the relative fitness (ratio of individual fitness and total fitness) of each individual.

What is rank selection?

Rank Selection In this, we remove the concept of a fitness value while selecting a parent. However, every individual in the population is ranked according to their fitness. The selection of the parents depends on the rank of each individual and not the fitness.

What is tournament selection method?

Tournament selection is a method of selecting an individual from a population of individuals in a genetic algorithm. Tournament selection involves running several "tournaments" among a few individuals (or "chromosomes") chosen at random from the population.


1 Answers

Roulette wheel selection (aka Fitness proportionate selection)

The fitness is used to associate a probability of selection to each individual.

If fi is the fitness of individual i in the population, its probability of being selected is:

pi = fi / Σ j(fj) for j = 1 … N (N is the number of individuals in the population)

It's called roulette wheel because it can be seen as a roulette wheel in a casino:

enter image description here

This can be simulated by the following (naive) algorithm:

  1. Calculate the sum of all fitnesses in population (sum S).
  2. Generate a random number r in the interval [0; S].
  3. Go through the population and sum fitnesses. When the sum s is greater than r, stop and return the individual where you are.

For possible implementations see:

  • Roulette wheel selection algorithm
  • Roulette Selection in Genetic Algorithms

Rank Selection is similar to roulette wheel selection except that selection probability is proportional to relative fitness rather than absolute fitness.

It doesn't make any difference whether the fittest candidate is ten times fitter than the next fittest or 0.001% fitter. In both cases the selection probabilities would be the same.

All that matters is the ranking relative to other individuals.

Rank selection is easy to implement when you already know on roulette wheel selection. Instead of using the fitness as probability for getting selected you use the rank. So for a population of N solutions the best solution gets rank N, the second best rank N-1, etc. The worst individual has rank 1.

(Ranking Selection in Genetic Algorithm code)


Tournament selection

  1. Choose few individuals at random from the population (a tournament).
  2. The individual with the best fitness (the winner) is selected for crossover.

As you can see it's efficient to code. It also works on parallel architectures and allows the selection pressure to be easily adjusted (changing the number of individuals in a tournament).

Of course there are many variants of these algorithms.

For a comparison you could read:

Comparison of Performance between Different Selection Strategies on Simple Genetic Algorithms (Jinghui Zhong , Xiaomin Hu , Min Gu , Jun Zhang - 2005)

like image 159
manlio Avatar answered Oct 14 '22 15:10

manlio