January 2020
Intermediate to advanced
346 pages
9h 8m
English
Since we want to find the individual with the largest sum of digits, we are going to use the FitnessMax strategy. And as each individual is represented by a list of integer values of either 0 or 1, the fitness value will be directly calculated as the sum of the elements in the list, for example: sum([1, 0, 0, 1, 0]) = 2.
Read now
Unlock full access