So, I wrote an implementation of the wo2 optimization meta-heuristic (ACO), and I would like to write some unit tests. However, I am not sure of the best way to test a method whose ability to return โcorrectโ answers varies depending on various settings.
How one unit test heuristic algorithm?
The code lives on at https://github.com/rhgrant10/pants , by the way.
source
share