- Introduced by
- Pablo Moscato
- Year
- 1989
- Type
- Hybrid metaheuristic
- Family
- Metaheuristics
What does it do?
A Memetic Algorithm (MA) is a population-based metaheuristic that combines the global exploration of an evolutionary algorithm with the local refinement of individual solutions.
Pablo Moscato introduced the term in 1989 in a Caltech technical report, drawing on Richard Dawkins' concept of the meme as a unit of cultural transmission. The method extends evolutionary search so that each solution can improve individually as well as through crossover and mutation.
The intuition behind the method
Imagine a group of hikers searching for the lowest valley in a large mountain range. A pure genetic algorithm drops hikers at random spots and moves them around through population-level exchange only. A memetic algorithm starts from the same scatter, but after each exchange every hiker also takes a few deliberate steps downhill. These short individual descents cost extra computation per generation, yet they change the starting positions for the next round of population-level exchange.
History
The term 'memetic algorithm' is attributed to Pablo Moscato, who introduced it in a 1989 Caltech technical report. The name draws on Richard Dawkins' concept of the meme as a unit of cultural transmission; Moscato observed that combining population-based search with individual refinement resembles how people learn both culturally and individually. Later work applied the approach to hard combinatorial problems, and a literature review by Neri and Cotta consolidated the theory and methods of the field.
When to use it
Choose a memetic algorithm for combinatorial or continuous optimisation problems whose fitness landscape contains many local optima, particularly when pure evolutionary search converges slowly. One documented application is a multiperiod home-healthcare routing and scheduling problem. A well-defined neighbourhood structure is a prerequisite, because the local search phase depends on it. Avoid the method when local search is itself prohibitively expensive, when the problem is smooth enough for gradient methods to be faster, or when large populations are needed but computation time is limited.
Limitations and considerations
- Computational cost per generation is higher than pure evolutionary algorithms because each individual undergoes local refinement
- Performance is sensitive to the choice and intensity of the local search operator — poor choices can cause premature convergence
- Requires careful balance between exploration (evolutionary) and exploitation (local search) to avoid population collapse
- Problem-specific design of the neighbourhood structure is often needed, reducing out-of-the-box applicability
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Combines the broad search of evolutionary algorithms with the deeper local search of neighbourhood methods, and can outperform either used alone on some instances
- Modular design: the local search component can be replaced by any neighbourhood-based procedure suited to the problem
- Suited to rugged, multimodal fitness landscapes, where gradient-based methods have no direct way to move between basins
- Often converges faster than pure genetic algorithms on many combinatorial problems, although the size of the gain depends on the instance and on the local search used
Applications
- Multiperiod home-healthcare routing and scheduling, where a memetic algorithm was first applied by Decerle et al.
How it works
How it works
The formula draws the population of N candidate solutions uniformly at random from the feasible space S. Problem-specific heuristics can also be used to seed the population, but that is a departure from the stated formula. The spread of the initial population matters, because a poor spread can keep the search in weak regions whatever operators follow.
Formula
P_0 = \{x_1, x_2, \ldots, x_N\}, \quad x_i \sim \mathcal{U}(\mathcal{S})Selection, crossover and mutation are applied to the current population and its offspring, and the next population is chosen from the combined set. These operators provide the population-level exploration that separates the method from pure local search.
Formula
P_{t+1} = \text{Select}\bigl(P_t \cup \text{Crossover}(P_t) \cup \text{Mutate}(P_t)\bigr)Each individual in the new population is passed to a local search step. The formula selects the neighbour with the lowest objective value in N(x_i). It does not state whether the current solution is kept when no neighbour is better. One natural choice is to retain the current solution unless a neighbour improves on it, so the acceptance rule should be stated explicitly in any implementation. Other local procedures use different move and acceptance rules and are not captured by this expression, so the procedure used should be specified. This step supplies the individual learning that defines memetic computation and exploits local structure that crossover alone does not capture.
Formula
x_i^* = \arg\min_{x \in \mathcal{N}(x_i)} f(x), \quad \forall\, x_i \in P_{t+1}The cycle stops when the generation count reaches T_max or when the improvement in fitness falls below epsilon, as the stopping formula states. Reporting the best solution found across all generations is a common convention, but it is not part of the stopping formula.
Formula
\text{stop if } t \geq T_{\max} \text{ or } \Delta f < \varepsilonCommon pitfalls
- Applying too many local search iterations per individual can effectively turn the algorithm into a multi-start local search, losing evolutionary diversity
- Using a fixed local search budget regardless of population diversity leads to wasted computation late in the run when most individuals cluster near the same attractor
- Ignoring the Baldwinian vs. Lamarckian distinction: Lamarckian MAs update the genotype after local search (faster convergence but possible diversity loss), while Baldwinian MAs do not (safer but slower)
- Benchmarking only on smooth unimodal test functions can create false confidence — MAs show their advantage on multimodal, combinatorial instances
Frequently asked questions
How is a memetic algorithm different from a genetic algorithm?
A genetic algorithm relies on population-level operators (selection, crossover, mutation) and does not refine individual solutions between generations. A memetic algorithm adds a local search step after the evolutionary operators, so each individual is improved within its neighbourhood before joining the next generation. This individual learning phase is the defining difference and can yield faster convergence on hard combinatorial problems, although the gain depends on the instance and the local search used.
What local search methods are commonly used inside memetic algorithms?
Any neighbourhood-based procedure can serve as the local search component. Common choices include hill-climbing (steepest descent), 2-opt and 3-opt moves for routing problems, simulated annealing for problems with many local optima, and tabu search when cycling is a concern. The choice depends on the problem's structure: the neighbourhood must be small enough to search quickly yet rich enough to escape poor solutions efficiently.
Should the genotype be updated after local search (Lamarckian) or left unchanged (Baldwinian)?
In the Lamarckian scheme, the locally improved solution replaces the original in the population, which can speed convergence but risks an early loss of diversity. In the Baldwinian scheme, only the fitness score is updated and the genotype is unchanged, which preserves diversity at the cost of slower progress. Which scheme suits a problem depends on its landscape and the population size; this page gives no comparative evidence, so the choice should be tested on the problem at hand.
Related methods
Sources
Moscato, P. (1989). On evolution, search, optimization, genetic algorithms and martial arts: Towards memetic algorithms. Caltech Concurrent Computation Program Report 826.
Open publication referenceNeri, F., & Cotta, C. (2012). Memetic algorithms and memetic computing optimization: A literature review. Swarm and Evolutionary Computation, 2, 1–14.
Open DOI reference01_781d55a406f17408a1753d0a68773a0f1985b92f, p. 3