liveBook · Manning

Fitness-proportionate selection

As explained in Optimization Algorithms: AI techniques for design, planning, and control problems

Fitness-proportionate selection is a survivor-selection method that determines retention or replacement of individuals according to their fitness values.

Fitness-proportionate selection (FPS) gives each candidate a selection probability proportional to its fitness. Fitter candidates are favored, but random sampling can still select less-fit candidates. In a genetic algorithm, selection can help choose individuals for the next generation; fitness can also guide which individuals are deleted or replaced. section 7.3.3 section 7.3.5

Roulette wheel selection implements FPS in five steps:

  • Add the fitness values to obtain total fitness F. section 7.3.3
  • For each candidate xk, calculate its probability pk = f(xk) / F. section 7.3.3
  • Build cumulative probabilities qk by adding the probabilities through candidate k. section 7.3.3
  • Draw a random number r between 0 and 1. section 7.3.3
  • Select the first candidate whose cumulative probability is at least r. section 7.3.3

Selecting a ticket price

Five ticket-pricing candidates have total fitness 329,740. The best candidate, x4, has fitness 128,500 and a selection probability of about 0.39. The cumulative probability reaches about 0.28 at x2 and 0.56 at x3. A draw of 0.25 therefore selects x2; a draw of 0.58 selects x4. The best candidate is favored, not guaranteed to be chosen. section 7.3.3

Table 7.5 Cumulative probabilities (view table figure)

Candidate solutions x

Values of x in the solution space

Candidate solutions in the binary coding space

Objective function f(x)

Selection probability pk

Cumulative probability qk

x1

77

01001101

8,820

0.03

0.03

x2

203

11001011

84,420

0.26

0.28

x3

110

01101110

90,000

0.27

0.56

x4

145

10010001

128,500

0.39

0.95

x5

230

11100110

18,000

0.05

1.00

Compare each candidate's fitness, selection probability, and cumulative probability in the ticket-pricing example. section 7.3.3

FPS also guides search in the artificial bee colony algorithm: better food sources are explored more frequently. For the nonnegative Rosenbrock objective values in the example, fitness is calculated as 1 / (1 + objective value), so a lower objective value gives a higher selection weight. This distinction matters when the goal is minimization. section 10.5

Fitness-based sampling does not by itself guarantee preservation of the best solution. Elitist selection explicitly preserves top individuals, but preserving more of them reduces population diversity. Survivor selection can balance preservation with the introduction of new offspring. section 7.3.3 section 7.3.5

How Optimization Algorithms: AI techniques for design, planning, and control problems covers it

How deep it goes
Works through roulette wheel probabilities and cumulative sampling, and demonstrates fitness conversion for minimization.
Examples
Works through ticket-pricing candidates and Rosenbrock-function food sources.
What you can do after
Evaluate and understand how fitness values influence random selection and how minimization objectives can be converted into selection weights.
How it connects
Connects roulette wheel selection with survivor selection, elitism, population diversity, and artificial bee colony optimization.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Optimization Algorithms: AI techniques for design, planning, and control problems. The section links point to the parts of the book it draws on.