In evolutionary computation, a population is the set of candidate solutions that an evolutionary algorithm maintains at one time and improves through repeated cycles of evaluation, selection and variation. Each member, often called an individual, encodes one possible answer to the optimization problem, and its quality is measured by the fitness function.
The population is what distinguishes evolutionary methods from single-point search techniques such as hill climbing or gradient descent. Because many solutions are explored in parallel, the algorithm can sample several regions of the search space at once, share useful structure between individuals and resist getting trapped in one local optimum. Population size, structure and diversity are therefore among the most influential design decisions in any genetic algorithm, evolution strategy or swarm method.
What a population contains
A population is a multiset of individuals, each consisting of a genotype (the encoded representation) and, after evaluation, a fitness value. Duplicates are allowed, which is why the term multiset is more precise than set. The genotype can be a bit string, a real-valued vector, a permutation, a tree in genetic programming or a network description in neuroevolution.
The algorithm processes the population in generations. In each generation it evaluates every new individual, selects parents according to fitness, applies crossover and mutation to create offspring, and decides which individuals survive into the next population. The table below lists the main components of this cycle.
| Element | Role | Typical choice |
|---|---|---|
| Initialization | Creates the first generation | Uniform random sampling or seeded solutions |
| Evaluation | Assigns a fitness value to each individual | Problem-specific fitness function |
| Parent selection | Chooses who reproduces | Tournament or rank-based selection |
| Variation | Produces offspring | Crossover and mutation operators |
| Survivor selection | Forms the next generation | Generational replacement or elitism |
The initial population deserves more attention than it often receives. Purely random sampling gives an unbiased start, but seeding with known good solutions can shorten the run considerably. The drawback is that heavy seeding narrows diversity from the first generation, so practitioners usually seed only a small fraction of individuals and fill the rest randomly or with space-filling designs such as Latin hypercube sampling.
Population size and its effects
Population size controls the balance between exploration and computational cost. A larger population covers more of the search space and preserves more genetic diversity, but every additional individual costs one fitness evaluation per generation, which is usually the most expensive operation in the algorithm.
Practical sizes vary widely with the method and problem. Classic genetic algorithms often use 50 to 500 individuals, genetic programming may use thousands, and CMA-ES uses a default offspring number of only about 4 + 3 ln(n) for n dimensions, because its learned distribution carries much of the search information. The table summarizes these trade-offs.
| Population size | Advantage | Risk |
|---|---|---|
| Small (under 30) | Fast generations, low evaluation cost | Rapid loss of diversity and premature convergence |
| Medium (50 to 500) | Good balance for most benchmark problems | Requires tuning to the problem |
| Large (thousands) | Broad coverage of rugged fitness landscapes | High cost per generation and slow progress |
Some algorithms adapt the size during the run. Restart strategies such as IPOP-CMA-ES double the population after each restart, which helps on multimodal problems where a small population converges too early.
Diversity and population structure
Population diversity is the spread of genotypes or behaviors among individuals, and its loss is the main cause of premature convergence. When strong selection pressure copies a few good individuals too quickly, the population collapses around one region and crossover can no longer generate novel combinations.
Several structural designs slow this collapse. The table compares the most common population models used in evolutionary computation.
| Model | How individuals interact | Main benefit |
|---|---|---|
| Panmictic population | Any individual can mate with any other | Simple and fast information spread |
| Island model | Subpopulations evolve separately with occasional migration | Preserves diversity and suits parallel hardware |
| Cellular model | Individuals mate only with grid neighbors | Slow, controlled spread of good genes |
| Niching methods | Fitness sharing or crowding limits similar individuals | Maintains several optima at once |
| Archive-based model | A separate archive stores elite or diverse solutions | Supports multi-objective and quality diversity search |
In multi-objective algorithms such as NSGA-II, the population is expected to approximate an entire Pareto front, so diversity along the front is an explicit goal rather than a side effect. In MAP-Elites, the population is organized as a grid of behavioral niches, each holding its best individual.
Generational and steady-state replacement
Algorithms differ in how much of the population is replaced at once. In a generational model, the whole population is replaced by offspring each cycle, often with elitism that copies the best one or two individuals unchanged. In a steady-state genetic algorithm, only one or a few individuals are replaced at a time, so parents and offspring coexist.
Evolution strategies express this choice with (mu, lambda) and (mu + lambda) notation. In comma selection, mu parents produce lambda offspring and only the offspring compete for survival, which helps escape stale solutions. In plus selection, parents and offspring compete together, which guarantees that the best fitness never decreases but can stall on noisy problems.
Common misconceptions
- Bigger is always better: beyond a problem-dependent point, extra individuals add cost without improving the final result.
- Convergence means success: a population that has converged may simply be stuck on a local optimum.
- The best individual is the whole story: average fitness and diversity reveal whether the search is still productive.
- Swarm methods have no population: particle swarm optimization and ant colony optimization also maintain a population, called a swarm or colony.
A non-technical view
In evolutionary computation, a population is a group of possible answers to a problem. The computer does not try one answer at a time. It keeps many answers at once and improves them together.
Imagine a cooking contest with fifty recipes. Judges taste them all. The best recipes inspire the next round. Cooks mix ideas from two good recipes and try small changes. After many rounds, the recipes get better. Keeping many different recipes is important. If everyone copies one dish too early, the contest may never find a better one.
A concrete example
An engineering team designs the layout of cooling fins for an electronics enclosure. Each candidate design is described by 24 real-valued parameters, and a thermal simulation that takes about two minutes scores each design by its peak temperature. The team runs a genetic algorithm with a population of 80 designs split into four islands of 20, exchanging two individuals between islands every ten generations.
In an early trial with a single population of 30, the designs converged within 25 generations on a layout that was only slightly better than the original. With the island model, the population kept several distinct fin patterns alive for much longer. After 120 generations, the best design lowered the peak temperature by about 6 degrees Celsius compared with the baseline, at a total cost of roughly 9,600 simulations run in parallel over two days.