Chapter 1Writing Your First Genetic Algorithm

In a world of competition, people are always searching for the best. The best job, the best diet, the best financial plan, and so on. Unfortunately, with so many options, it’s impossible to make the best decisions all the time. Fortunately, humans have evolved to navigate the complexity of everyday life and make informed decisions that ultimately lead to success.

While your brain is naturally wired to make informed decisions, computers are not. Computers are naive—they can only do what you program them to do. So how do you program a computer to make informed decisions, and why is this even necessary?

Consider this example: you’re tasked with designing the shipping route for a large shipping company. ...

Get Genetic Algorithms in Elixir now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.