4.0 Step 2: Population Management – Initialization and Evolution
The population is the pool of candidate solutions that the Genetic Algorithm evolves over time. Managing this population effectively is a strategic imperative. A well-managed population maintains sufficient diversity to explore the search space broadly, avoiding the pitfall of premature convergence, where the algorithm becomes trapped in a local optimum. Both the initial creation of the population and the model used for its evolution are key design decisions.
4.1 Population Initialization Strategies
The initial population provides the starting genetic material for the entire evolutionary process.
- Random Initialization: This is the most common approach, where the initial population is populated with completely random solutions. This ensures maximum initial diversity, allowing the GA to explore the search space from a wide range of starting points.
- Heuristic Initialization: In this “seeding” strategy, the population is initialized with solutions generated by a known heuristic for the problem. This can give the GA a head start by including good solutions from the beginning. However, it is critical not to initialize the entire population this way. Doing so can drastically reduce diversity and cause the GA to converge too quickly on a suboptimal solution. The best practice is to seed the population with a few good heuristic-based solutions and fill the rest with random ones.
4.2 Population Evolution Models
The way the population evolves from one generation to the next is governed by the population model.
| Model | Description |
| Steady State | Also known as an Incremental GA, this model generates only one or two offspring per iteration. These new offspring then replace one or two existing individuals in the population. |
| Generational | In this model, a number of offspring equal to the entire population size (n) are generated. The entire old population is then replaced by this new generation of offspring. |
After establishing how to create and manage the population, the next step is to determine how to evaluate the quality of the individuals within it.