Simulated Annealing algorithm to solve Travelling Salesman Problem in Python
===================
Using [simulated annealing](https://en.wikipedia.org/wiki/Simulated_annealing) metaheuristic to solve the [travelling salesman problem](https://en.wikipedia.org/wiki/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](http://i.imgur.com/IY9cCJG.png)
The fitness (objective value) through iterations.
![Learning Plot](http://i.imgur.com/EVOkZs3.png)
----------
**References**
[Kirkpatrick et al. 1983: "Optimization by Simulated Annealing"](http://www2.stat.duke.edu/~scs/Courses/Stat376/Papers/TemperAnneal/KirkpatrickAnnealScience1983.pdf)
http://www.blog.pyoung.net/2013/07/26/visualizing-the-traveling-salesman-problem-using-matplotlib-in-python/
用 Python 解决旅行商问题的 模拟退火算法_python_代码_下载
版权申诉
5星 · 超过95%的资源 178 浏览量
2022-06-21
11:15:25
上传
评论 2
收藏 6KB ZIP 举报
快撑死的鱼
- 粉丝: 1w+
- 资源: 9156
最新资源
- 论文(最终)_20240430235101.pdf
- 基于python编写的Keras深度学习框架开发,利用卷积神经网络CNN,快速识别图片并进行分类
- 最全空间计量实证方法(空间杜宾模型和检验以及结果解释文档).txt
- 5uonly.apk
- 蓝桥杯Python组的历年真题
- 2023-04-06-项目笔记 - 第一百十九阶段 - 4.4.2.117全局变量的作用域-117 -2024.04.30
- 2023-04-06-项目笔记 - 第一百十九阶段 - 4.4.2.117全局变量的作用域-117 -2024.04.30
- 前端开发技术实验报告:内含4四实验&实验报告
- Highlight Plus v20.0.1
- 林周瑜-论文.docx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈