For development the main.py script is a nice utility. It would be great if we can transform some of the experiments from main.py to tests. So, if we have some test problems that define in a well known number of iterations, or to specific (local) optima, we might consider to change certain variations from main.py into tests/....
In that way, we can keep track of the performance of various optimisation problems simply by invoking pytest and ensuring that the output remains the same over changes of the code.
For development the
main.py
script is a nice utility. It would be great if we can transform some of the experiments frommain.py
to tests. So, if we have some test problems that define in a well known number of iterations, or to specific (local) optima, we might consider to change certain variations frommain.py
intotests/...
.In that way, we can keep track of the performance of various optimisation problems simply by invoking
pytest
and ensuring that the output remains the same over changes of the code.