Skip to content

shunji-umetani/tsp-solver

Repository files navigation

tsp-solver

tour

metaheuristics for traveling salesman problem (TSP)

Feature

  • Simple implementation of metaheuristics in Python.
  • Local search with 2-opt, Or-opt, and 3-opt neighborhood search.
  • Efficient LS implementation using neighbor-list.
  • For Euclidean TSP instances (EUC2D) in TSPLIB.

Usage

common usage for all codes

$ tsp_ils.py [-h] [-t TIME] [-d] filename
  • filename TSP instance (mandatory)
  • -d visually display obtained tour (optional)
  • -t timelimit (optional, default 60 sec) except for tsp_ls_naive.py and tsp_ls_nblist.py

References

slide (Japanese)

Author

Umetani, Shunji

License

This software is released under the MIT License, see LICENSE.

Releases

No releases published

Packages

No packages published

Languages