Skip to content

Simulated Annealing algorithm to solve Travelling Salesmen Problem in Python

License

Notifications You must be signed in to change notification settings

chncyhn/simulated-annealing-tsp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simulated Annealing algorithm to solve Travelling Salesman Problem in Python

Using simulated annealing metaheuristic to solve the travelling salesman problem, and visualizing the results.

Starts by using a greedy algorithm (nearest neighbour) to build an initial solution.

A simple implementation which provides decent results.


An example of the resulting route on a TSP with 100 nodes.

Route Graph

The fitness (objective value) through iterations.

Learning Plot


References

Kirkpatrick et al. 1983: "Optimization by Simulated Annealing"

http://www.blog.pyoung.net/2013/07/26/visualizing-the-traveling-salesman-problem-using-matplotlib-in-python/

About

Simulated Annealing algorithm to solve Travelling Salesmen Problem in Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages