ArticleslgStudy

biology

Differential evolution

Differential evolution is a biology topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Differential evolution rather than just read about it. In short: Differential evolution (DE) is an evolutionary algorithm to optimize a problem by iteratively trying to improve a candidate solution with regard to a given measure of quality. Such methods are commonly known as metaheuristics as they make few or no assumptions about the optimized problem and can search very large spaces of candidate solutions.

Differential evolution — main illustration
Differential evolution — illustration

Key takeaways

  • Differential evolution belongs to biology; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Differential evolution to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Differential evolution from memory before moving on to harder problems.

Reference excerpt

Differential evolution (DE) is an evolutionary algorithm to optimize a problem by iteratively trying to improve a candidate solution with regard to a given measure of quality. Such methods are commonly known as metaheuristics as they make few or no assumptions about the optimized problem and can search very large spaces of candidate solutions. However, metaheuristics such as DE do not guarantee an optimal solution is ever found. DE is used for multidimensional real-valued functions but does not use the gradient of the problem being optimized, which means DE does not require the optimization problem to be differentiable, as is required by classic optimization methods such as gradient descent and quasi-newton methods. DE can therefore also be used on optimization problems that are not even continuous, are noisy, change over time, etc. DE optimizes a problem by maintaining a population of candidate solutions and creating new candidate solutions by combining existing ones according to its simple formulae, and then keeping whichever candidate solution has the best score or fitness on the optimization problem at hand. In this way, the optimization problem is treated as a black box that merely provides a measure of quality given a candidate solution and the gradient is therefore not needed.

History Storn and Price introduced Differential Evolution in 1995. Books have been published on theoretical and practical aspects of using DE in parallel computing, multiobjective optimization, constrained optimization, and the books also contain surveys of application areas. Surveys on the multi-faceted research aspects of DE can be found in journal articles.

Algorithm A basic variant of the DE algorithm works by having a population of candidate solutions (called agents). These agents are moved around in the search-space by using simple mathematical formulae to combine the positions of existing agents from the population. If the new position of an agent is an improvement then it is accepted and forms part of the population, otherwise the new position is simply discarded. The process is repeated and by doing so it is hoped, but not guaranteed, that a satisfactory solution will eventually be discovered. Formally, let f:ℝn→ℝ be the fitness function which must be minimized (note that maximization can be performed by considering the function h:=−f instead). The function takes a candidate solution as argument in the form of a vector of real numbers. It produces a real number as output which indicates the fitness of the given candidate solution. The gradient of f is not known. The goal is to find a solution 𝐦 for which f(𝐦)≤f(𝐩) for all 𝐩 in the search-space, which means that 𝐦 is the global minimum. Let 𝐱∈ℝn designate a candidate solution (agent) in the population. The basic DE algorithm can then be described as follows:

Choose the parameters NP≥4, CR∈[0,1], and F∈[0,2]. NP : NP is the population size, i.e. the number of candidate agents or "parents". CR : The parameter CR∈[0,1] is called the crossover probability. F : The parameter F∈[0,2] is called the differential weight. Typical settings are NP=10n, CR=0.9 and F=0.8. Optimization performance may be greatly impacted by these choices; see below. Initialize all agents 𝐱 with random positions in the search-space. Until a termination criterion is met (e.g. number of iterations performed, or adequate fitness reached), repeat the following: For each agent 𝐱 in the population do: Pick three agents 𝐚,𝐛, and 𝐜 from the population at random, they must be distinct from each other as well as from agent 𝐱. (𝐚 is called the "base" vector.) Pick a random index R∈{1,…,n} where n is the dimensionality of the problem being optimized. Compute the agent's potentially new position 𝐲=[y1,…,yn] as follows: For each i∈{1,…,n}, pick a uniformly distributed random number ri∼U(0,1) If ri<CR or i=R then set yi=ai+F×(bi−ci) otherwise set yi=xi. (Index position R is replaced for certain.) If f(𝐲)≤f(𝐱) then replace the agent 𝐱 in the population with the improved or equal candidate solution 𝐲. Pick the agent from the population that has the best fitness and return it as the best found candidate solution.

Parameter selection

The choice of DE parameters NP, CR and F can have a large impact on optimization performance. Selecting the DE parameters that yield good performance has therefore been the subject of much research. Rules of thumb for parameter selection were devised by Storn et al. and Liu and Lampinen. Mathematical convergence analysis regarding parameter selection was done by Zaharie.

Constraint handling Differential evolution can be utilized for constrained optimization as well. A common method involves modifying the target function to include a penalty for any violation of constraints, expressed as: f(~x)=f(x)+ρ×CV(x). Here, CV(x) represents either a constraint violation (an L1 penalty) or the square of a constraint violation (an L2 penalty). This method, however, has certain drawbacks. One significant challenge is the appropriate selection of the penalty coefficient ρ. If ρ is set too low, it may not effectively enforce constraints. Conversely, if it's too high, it can greatly slow down or even halt the convergence process. Despite these challenges, this approach remains widely used due to its simplicity and because it doesn't require altering the differential evolution algorithm itself. There are alternative strategies, such as projecting onto a feasible set or reducing dimensionality, which can be used for box-constrained or linearly constrained cases. However, in the context of general nonlinear constraints, the most reliable methods typically involve penalty functions.

Variants Variants of the DE algorithm are continually being developed in an effort to improve optimization performance. The following directions of development can be outlined:

New schemes for performing crossover and mutation of agents Various strategies for handling constraints Adaptive strategies that dynamically adjust population size, F and CR parameters Specialized algorithms for large-scale optimization Multi-objective and many-objective algorithms Techniques for handling binary/integer variables

See also Artificial bee colony algorithm CMA-ES Evolution strategy Genetic algorithm

References

Illustrations

Differential evolution illustration
Differential evolution: Differential evolution optimizing the 2D Ackley function
Differential evolution optimizing the 2D Ackley function
Differential evolution: Performance landscape showing how the basic DE performs in aggregate on the Sphere and Rosenbrock benchmark problems when varying the two DE parameters NP and F, and keeping fixed CR=0.9.
Performance landscape showing how the basic DE performs in aggregate on the Sphere and Rosenbrock benchmark problems when varying the two DE parameters NP and F, and keeping fixed CR=0.9.

Worked examples

Example 1 — a first encounter with Differential evolution

Start with the simplest possible case. Write down what Differential evolution claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In biology, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Differential evolution before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Differential evolution ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Differential evolution

In research
Differential evolution appears in biology research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Differential evolution in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Differential evolution is common in secondary-school and first-year university syllabi. It links to neighbouring topics Evolutionary algorithms, so understanding it makes those chapters shorter.
In everyday life
Look for Differential evolution outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Differential evolution” →

How to study Differential evolution in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Differential evolution means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Differential evolution out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Differential evolution in simple terms?

Differential evolution (DE) is an evolutionary algorithm to optimize a problem by iteratively trying to improve a candidate solution with regard to a given measure of quality. Such methods are commonly known as metaheuristics as they make few or no assumptions about the optimized problem and can se…

Why does Differential evolution matter?

Because it connects several biology ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Differential evolution?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Differential evolution.

Tags

  • Evolutionary algorithms

Keep exploring