You may have heard of evolution in terms of plants and animals, but did you know that this natural process can also be used by engineers to invent things? Animals and plants have evolved in amazing ways to survive in their environments. Biologists have been investigating how evolution works for a long time. Mathematicians and computer scientists have worked alongside biologists to create computer programs that can evolve designs, to help engineers invent things. These are called evolutionary optimization algorithms, and they can be used to evolve faster airplanes, stronger bridges, or even better video games. In this article, we will explain how these algorithms work and what their strong and weak points are.
Evolution is a word we use to describe how plants and animals change over long periods of time. Most animals in a single species may look similar, but they are all slightly different—which means I can pick my dog out from a crowd of dogs! When two parents have a child, the child will be a bit like its parents. Perhaps the child has the same hair color as its mother and is tall like its father. The passing on such similarities between generations is called inheritance. There will also be slight differences between the child and its parents, maybe a bigger nose or better eyesight. These differences are called mutations.
In nature, small mutations can mean the difference between life and death for animals and plants. For example, if two zebras are running away from a lion that is looking for lunch, the fastest runner will be the one that escapes and survives. The surviving zebra will then be able to have babies, which might inherit their parent’s running speed. Fast zebra babies are also more likely to survive and have babies themselves, so over time, the population of zebras will become fast runners. This process is called natural selection.
Scientists have observed that, over a long period of time, species evolve to survive in their environments. This is due to a combination of inheritance, mutation, and natural selection. Creatures have evolved in amazing ways, to do incredible things—from moths that can change color to hide from predators to lizards that can drink water through their skin. The question is, can we use these ideas from nature to create amazing inventions that can do incredible things?
Evolutionary Optimization Algorithms
Evolutionary optimization algorithms use ideas from evolution to help engineers invent things. Several computer scientists came up with the idea of evolutionary optimization algorithms at around the same time, between 1950 and 1960 . Evolutionary optimization algorithms can be used for all sorts of things, like designing airplanes , building levels in video games , and even creating art . Figure 1 gives more examples of how evolutionary optimization algorithms have been used. To explain how evolutionary optimization algorithms work, let us imagine we are trying to design a bridge.
The first thing we must do is decide what makes a bridge design good and what makes it bad. To keep things simple, we will say that we want our bridge to hold as much weight as possible—this is our purpose, or objective. Once we have decided on an objective, we can compare two bridge designs and decide which is better—the one that holds the most weight.
The next step is to create some starting bridge designs. This could be done randomly using a computer, or we could spend some time designing them ourselves. Either way, we will need a lot of designs! We call this set of designs our population. By running simulations on a computer, we can predict how much weight each of our bridge designs can hold. Using this information, we can put our designs in order based on how good they are (Figure 2).
Once we know which of the designs in our population can hold the most weight, we can select them to be “parents”—similar to the situation in nature, in which only the fastest zebras survive to have babies. Of course, bridges cannot actually have “children,” but scientists can write computer programs which are able to combine two good designs to produce a new “child” design that shares features of both “parents.” Perhaps the child bridge has the same height as one of its parents, and the same number of legs as the other. Then, we apply a mutation by randomly changing something in the new design. Maybe we add an extra leg or double the height. An example of two parent designs creating a child design is shown in Figure 3.
We keep generating new designs using inheritance and mutation until we have a new population of designs. Then we can run simulations on these new designs, decide which ones are best, and repeat the process. All of this is done automatically for us, by a computer. Over a long period of time, which could be weeks or months, we will find better and better bridge designs. Eventually, if we are really lucky, we might find a bridge design no one has ever thought of before!
What Are Evolutionary Optimization Algorithms Good and Bad at?
Evolutionary optimization algorithms can be really useful when we need to design something new and have no idea where to start. These computer programs are very good at surprising engineers with weird and sometimes wonderful designs. For example, NASA has used evolutionary optimization algorithms to design tiny antennae parts for satellites . The evolutionary optimization algorithm created strange designs that surprised the engineers. When they tested the evolved designs, they found that those designs worked better than antennas designed by humans.
Evolutionary optimization algorithms use randomness in lots of different ways. While some scientists think this is a good thing, many engineers and designers disagree. If you use an evolutionary optimization algorithm to do the same thing twice, it might give you two different answers—which means you can never quite be sure that the algorithm is giving you the best design possible. This randomness makes some engineers distrust evolutionary optimization algorithms  because it is impossible to understand why the algorithm picks one design instead of another. Would you fly in an airplane designed by an evolutionary optimization algorithm? Scientists are currently trying to design algorithms that can explain the decisions they make, to help engineers trust them. The randomness also means that designers will want to run an evolutionary optimization algorithm many times, to be sure they are getting the best designs. Repeatedly running evolutionary optimization algorithms can take a long time, even more time than it would take experienced engineers to sit down and design something themselves.
There are some situations in which evolutionary optimization algorithms struggle. Sometimes there is more than one objective to think about. When designing bridges, imagine if we also cared about how long or high the bridge was. How would we decide which bridges were the best when considering both weight capacity and height/length? Adding more objectives means it will take the evolutionary optimization algorithm longer to find a solution. Another example would be that of a car-design engineer who needs to think about how good the car looks. It is difficult to get a computer to predict if a design looks good or bad. The evolutionary optimization algorithm might design a car that no one would want to be seen driving! For these sorts of things, we need a human to decide.
Another problem caused by relying on an algorithm to make decisions is that the algorithm can only make decisions based on computer simulations, which do not always get things right. It is not unusual for an evolutionary optimization algorithm to take hours to suggest a design that the simulation thinks will be good, only for an engineer to take seconds to realize the simulation is wrong. When this happens scientists and engineers need to fix the errors in the simulation. So, while evolutionary optimization algorithms are useful tools, they will never replace human designers.
The Future of Evolutionary Optimization Algorithms
As we have seen, evolutionary optimization algorithms take processes we see in nature and use them to solve problems we cannot solve ourselves. One of the biggest problems we face right now is climate change and the damage we are causing to nature through pollution. Researching new evolutionary optimization algorithms and new ways to use them will help us design better, less polluting, vehicles, and aircraft. But even though we always need humans to design and use these algorithms, in a way, nature has come to rescue itself. What other problems do you think evolutionary optimization algorithms can help us solve?
Try It Yourself!
If you would like to have a go designing a car using an evolutionary algorithm, then have a play with a game we created! You can download or play the game in a browser at this link (https://pillbuginteractive.itch.io/genetic-car-designer) to get a feel of what it is like working with an evolutionary algorithm. Be sure to share your best designs with your friends!
Evolution: ↑ The process by which plants and animals change over a long period of time.
Inheritance: ↑ The process by which traits, such as hair color, are passed on from parents to their children.
Mutation: ↑ A random change to genes that can cause the change of a trait.
Natural Selection: ↑ The process by which only creatures with useful traits live long enough to have children, and pass on those traits.
Evolutionary Optimization Algorithm: ↑ An algorithm which uses the concepts of evolution to optimize something, often using computer simulations.
Optimization: ↑ The process of making something the best it can be.
Newtons: ↑ We measure forces in Newtons. For example, weight is the force at which gravity pulls an object down toward the Earth – measured in Newtons.
Algorithm: ↑ A process or set of rules that must be followed to solve a problem.
Computer Simulation: ↑ A computer program which predicts what will happen in real life. For example, computer simulations are used for predictions of weather forecasts. Simulations will never be perfect and are always just our best guess on what might happen.
Conflict of Interest
The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.
David Chena, Ben Vincenta, and Kafyad Wasti worked as summer research interns to help structure and draft this article. BS’s is part funded by an EPSRC Doctoral Training Partnership at Swansea University. JV is funded by the EPSRC Centre for Doctoral Training in Enhancing Human Interactions and Collaborations with Data and Intelligence Driven Systems (EP/S021892/1).
 ↑ Mitchell, M., and Taylor, C. E. 1999. Evolutionary computation: an overview. Annu. Rev. Ecol. Syst. 30:593–616.
 ↑ Naumann, D. S., Evans, B., Walton, S., and Hassan, O. 2016. A novel implementation of computational aerodynamic shape optimisation using Modified Cuckoo Search. Appl. Math. Model. 40:4543–59. doi: 10.1016/j.apm.2015.11.023
 ↑ Walton, S. P., Rahat, A. A. M., and Stovold, J. 2021. Evaluating mixed-initiative procedural level design tools using a triple-blind mixed-method user study. IEEE Trans. Comput. Intell. AI Games doi: 10.1109/TG.2021.3086215
 ↑ den Heijer, E., and Eiben, A. E. Investigating aesthetic measures for unsupervised evolutionary art. Swarm Evol. Comput. (2014) 16:52–68. doi: 10.1016/j.swevo.2014.01.002
 ↑ Hornby, G., Globus, A., Linden, D., and Lohn, J. 2006. “Automated antenna design with evolutionary algorithms,” in Space 2006 (Reston, VA: American Institute of Aeronautics and Astronautics). doi: 10.2514/6.2006-7242
 ↑ Vincalek, J., Walton, S., and Evans, B. 2021. “It’s the Journey Not the Destination: Building Genetic Algorithms Practitioners Can Trust,” in 2021 Genetic and Evolutionary Computation Conference Companion (GECCO’21 Companion) (New York, NY: ACM). doi: 10.1145/3449726.3459483