What You Learned

Genetic Algorithms in Elixir — by Sean Moriarity (26 / 101)

The Pragmatic Programmers
The Pragmatic Programmers

--

👈 Solving the One-Max Problem Again | TOC | Chapter 3 Encoding Problems and Solutions 👉

In this chapter, you started to create a framework for writing genetic algorithms. You designed the framework by defining criteria that’s consistent and different between problems. You defined rules that your framework must enforce to ensure it can be generalized to a number of problems.

You then took the basic framework you created and re-solved the One-Max problem. Notice that the framework did most of the legwork for you. With the framework defined, you can focus on solving more difficult problems using genetic algorithms.

Up next, you’ll explore the problem-specific aspects of genetic algorithms and learn how to fit problems into the framework you created in this chapter.

Copyright © 2021, The Pragmatic Bookshelf.

👈 Solving the One-Max Problem Again | TOC | Chapter 3 Encoding Problems and Solutions 👉

Genetic Algorithms in Elixir by Sean Moriarity can be purchased in other book formats directly from the Pragmatic Programmers. If you notice a code error or formatting mistake, please let us know here so that we can fix it.

--

--

The Pragmatic Programmers
The Pragmatic Programmers

We create timely, practical books and learning resources on classic and cutting-edge topics to help you practice your craft and accelerate your career.