The code is very clear upon first reading and using the classes allows the possibility of putting together functions that are then correlated.The comments present allow us to clarify any doubts, if there were any.
Furthermore, the fact that there are function type annotations improves the readability of the code and allows you to have no doubts about the return types.At the evolutionary strategy level, all the main functions of an evolutionary algorithm are present such as:
-initialization of the population
-Parent selection mechanisms
-Fitness calculation
-Ordering of the population
-Mutation and Recombination
The code is very clear upon first reading and using the classes allows the possibility of putting together functions that are then correlated.The comments present allow us to clarify any doubts, if there were any. Furthermore, the fact that there are function type annotations improves the readability of the code and allows you to have no doubts about the return types.At the evolutionary strategy level, all the main functions of an evolutionary algorithm are present such as: -initialization of the population -Parent selection mechanisms -Fitness calculation -Ordering of the population -Mutation and Recombination