git clone [email protected]:punkproger/traveling-salesman-problem.git
cd traveling-salesman-problem
make
./tsp test/tsp_example_1.txt -i 20 -a christofides -o cities.bmp
./tsp [FILE] [-i ITERATIONS]... [-a ALGORITHM]... [-o FILE]...
Flag | Meaning | Values |
---|---|---|
-i | Optimization iterations count | unsigned int, default: while can optimize |
-a | algorithm | {brute_force, christofides}, default: christofides |
-o | output image name | <name.bmp> |
First argument is always path to file with coordinates of city