Creating the Problem Behaviour

Learn how to create a behaviour and integrate it into the genetic algorithm.

Behaviour creation

To start writing your behaviour, we will first create a new file within the lib directory named problem.ex.

Then, we will open this problem.ex file and add a new module named Problem, like this:

Get hands-on with 1200+ tech skills courses.