artofscience / SAOR

Sequential Approximate Optimization Repository
GNU General Public License v3.0
5 stars 1 forks source link

Transform `main.py` to tests or examples #16

Closed MaxvdKolk closed 3 years ago

MaxvdKolk commented 3 years ago

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.

Giannis1993 commented 3 years ago

Done