Differential evolution (DE) is a population-based, derivative-free optimization algorithm for continuous search spaces that creates new candidate solutions by adding the scaled difference of two population members to a third. Introduced by Rainer Storn and Kenneth Price in the mid-1990s, it is one of the most widely used methods in evolutionary computation because it combines few control parameters with strong performance on nonlinear, multimodal and non-differentiable problems.
Unlike a classic genetic algorithm, which relies mainly on recombination of encoded chromosomes, DE works directly on real-valued vectors and lets the population geometry set the step size. As the population contracts around good regions, the difference vectors shrink, so the search adapts its scale automatically without an explicit step-size schedule.
How differential evolution generates new solutions
Each generation of DE processes every population member, called the target vector, through three steps: mutation, crossover and selection. Together they produce one trial vector per target and keep whichever of the two scores better on the fitness function.
- Mutation: pick three distinct members r1, r2 and r3 and form the donor vector v = x_r1 + F · (x_r2 − x_r3), where F is the scale factor.
- Crossover: build the trial vector by taking each coordinate from the donor with probability CR and from the target otherwise; one randomly chosen coordinate always comes from the donor.
- Selection: compare trial and target; the better one survives into the next generation, a greedy one-to-one replacement.
The one-to-one selection makes DE elitist at the level of each slot: the fitness of any population position never gets worse. Because mutation depends on differences between current members, the search distribution mirrors the population spread, which gives DE a rough invariance to the scale of the problem.
Control parameters and their typical values
Differential evolution has three main control parameters, and its reputation for simplicity rests on this short list. Their effects interact, so tuning one often shifts the best value of another.
| Parameter | Typical range | Effect of a higher value |
|---|---|---|
| Population size NP | 5 to 10 times the dimension | More exploration, slower convergence |
| Scale factor F | 0.4 to 1.0, often 0.5 | Larger steps, more diversity |
| Crossover rate CR | 0.1 to 1.0, often 0.9 | More coordinates change together |
A low CR near 0.1 suits separable problems, where variables can be optimized almost independently. A high CR near 0.9 suits non-separable problems with strong variable interaction, because it changes many coordinates at once and keeps DE rotationally robust. An F below about 0.4 raises the risk of premature convergence.
Mutation strategies and adaptive variants
DE variants are named with the notation DE/x/y/z, where x is the base vector, y is the number of difference vectors and z is the crossover type. The choice of strategy sets the balance between exploration and exploitation.
| Strategy | Base vector | Character |
|---|---|---|
| DE/rand/1/bin | Random member | Robust, exploratory, the classic default |
| DE/best/1/bin | Best member | Fast convergence, risk of stagnation |
| DE/current-to-best/1 | Target moved toward best | Balanced, used in JADE |
| DE/rand/2/bin | Random member, two differences | Higher diversity, slower |
| DE/current-to-pbest/1 | One of the top p percent | Strong on benchmarks, used in SHADE |
Because hand-tuning is tedious, research has produced self-adaptive DE variants. jDE stores F and CR inside each individual and resamples them with small probability; JADE and SHADE learn parameter distributions from successful trials; L-SHADE also shrinks the population linearly over time. These variants have repeatedly ranked among the leaders of the IEEE Congress on Evolutionary Computation benchmark competitions.
How DE compares with related optimizers
DE sits between simple evolution strategies and full covariance-learning methods. The comparison below summarizes where it fits among neighboring algorithms in the topic.
| Method | Search mechanism | Typical strength |
|---|---|---|
| Differential evolution | Difference vectors between members | Simple, robust on multimodal problems |
| Genetic algorithm | Crossover and mutation of encodings | Discrete and combinatorial problems |
| CMA-ES | Learned covariance matrix | Ill-conditioned continuous problems |
| Particle swarm optimization | Velocities toward personal and global bests | Fast early progress |
CMA-ES usually wins on smooth, ill-conditioned functions in moderate dimensions, because it learns variable correlations explicitly. DE tends to be more forgiving on rugged landscapes and easier to parallelize, since every trial in a generation can be evaluated independently.
Practical use, constraints and limitations
DE handles bound constraints by clipping, reflecting or resampling out-of-range coordinates, and it handles general constraints with penalty functions or feasibility rules that prefer feasible solutions over infeasible ones. Mixed-integer problems are tackled by rounding coordinates before evaluation.
The method has clear limits. It needs many fitness evaluations, often tens of thousands, which makes it costly when each evaluation is a long simulation; surrogate models are then common. Performance degrades on very high-dimensional problems, and no theory guarantees convergence to the global optimum in finite time. Stagnation, where the population stops improving without converging, is a known failure mode of greedy strategies.
A sound workflow starts with DE/rand/1/bin and default parameters, runs several independent seeds and reports the spread of results, not a single best run. Practitioners set a budget of function evaluations in advance, monitor population diversity as an early warning of stagnation and, when evaluations are expensive, switch to an adaptive variant such as SHADE. Combining DE with a local search for final refinement produces a memetic algorithm that often converges faster near the optimum.
DE also extends to multi-objective optimization. Variants such as GDE3 replace the greedy comparison with Pareto dominance and crowding measures, producing a set of trade-off solutions rather than one winner, similar in spirit to NSGA-II.
The simple explanation
Imagine a group of hikers looking for the lowest valley in fog. Each hiker looks at the gap between two other hikers. That gap tells them how big a step to try. If the new spot is lower, they move there. If not, they stay put.
When the group is spread out, the steps are big. When everyone gathers near a good valley, the steps become small and precise. Differential evolution uses this simple idea to find good settings for problems where no formula shows the way.
How it is used in practice
An antenna engineer needs to tune twelve geometric parameters of a planar antenna so that it matches impedance across a target frequency band. Each design is scored by an electromagnetic simulation lasting about 20 seconds, and the objective is noisy and full of local minima, so gradient methods stall.
The engineer runs DE/rand/1/bin with a population of 60, F of 0.5 and CR of 0.9, evaluating each generation in parallel on a 16-core workstation. After roughly 9,000 simulations, completed overnight, the best design keeps the reflection coefficient below −10 dB across the band, a result the earlier manual tuning had not reached. The engineer then refines the winner with a local search before building a prototype.