This repository contains an implementation of a Self Organizing Map that can be used to find sub-optimal solutions for the Traveling Salesman Problem. The
pip install requirements.txtTo run the code, simply execute:
cd som-tsp
python src/main.py assets/<instance>.tspThe images generated will be stored in the diagrams folder. Using a tool like
convert, you can easily generate an animation like the one in this file by
running:
convert -delay 10 -loop 0 *.png animation.gifThis code is licensed under MIT License, so feel free to modify and/or use it in your projects. If you have any doubts, feel free to contact me or contribute to this repository by creating an issue.