liveBook · Manning

Population size

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

Population size is the number of candidate solutions maintained in a population-based optimization algorithm.

Population size is the number of candidate solutions maintained by a population-based optimization algorithm. In a genetic algorithm, it must balance search coverage against computational effort: larger populations promote diversity and exploration, while smaller populations converge faster. section 7.3.2 section 8.5

Choose or adapt population size according to the search:

  • Avoid assuming that a very large population improves performance; chromosome length also influences the appropriate size. section 7.3.2
  • Increase the population when progress stalls and greater diversity or exploration is needed. section 8.5
  • Decrease it when the population becomes excessively diverse and faster convergence is preferable. section 8.5

Ticket pricing initialization

A genetic algorithm for ticket pricing can begin with a population of five randomly generated candidate solutions. Each candidate has a solution value, binary chromosome, and objective-function value; selection then chooses parents for crossover and mutation. section 7.3.2

Table 7.2 Initial population (view table figure)

Candidate solutions x

Values of x in the solution space

Candidate solutions in the binary coding space

Objective function f(x)

x1

77

01001101

8,820

x2

203

11001011

84,420

x3

110

01101110

90,000

x4

145

10010001

128,500

x5

230

11100110

18,000

Compare the five initial candidate solutions, their binary encodings, solution values, and objective-function scores. section 7.3.2

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

How deep it goes
Explains fixed and adaptive sizing, including exploration-convergence trade-offs, but does not provide a universal sizing formula.
Examples
Uses a five-solution ticket-pricing population and a table pairing candidate values with binary encodings and objective scores.
What you can do after
Apply it by sizing or adapting a genetic-algorithm population to balance diversity, exploration, and convergence.
How it connects
Connects population size with genetic algorithms, chromosomes, candidate solutions, selection, crossover, mutation, exploration, and exploitation.

Also explained in

Compare how 2 books explain population size →

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.