Skip to content

Python implementations of numerous TSP-solving algorithms

License

Notifications You must be signed in to change notification settings

tcysin/tsp-solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Travelling Salesman Problem Solver

Simple library to solve instances of Symmetric Travelling Salesman Problem.

Installation

Copy src and tests folders to your project.

Usage

>>> from src import Solver
>>> s = Solver(algorithm='dynamic')
>>> shortest_tour = s.solve(path='a4_.tsp')
>>> shortest_tour
[0, 1, 3, 2]

About

The description of supported file format can be found here.

Exact algorithms

Approximation algorithms

Dependencies

Tests

Tests are implemented using pytest. To run all tests, please refer to this piece of pytest documentation.

License

MIT

Authors

  • Aleksei Tcysin
  • Malshani Ranchagoda
  • Sivasundar Karthikeyan

About

Python implementations of numerous TSP-solving algorithms

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages