# Vehicle Routing Problem - Traveling around Europe
This is a project that demonstrates vechicle routing problem. We solved it with Linear Programming using pulp package, which yields the optimal solution.
## Dataset
The data is collected by web crawling from the [traveling site](), which can be found in ```data``` folder as csv file. Here are the informaions:
- 24 capitals
- distance
- flight time
- longitude & latitude
## Prerequisites
- python
- pulp
- matplotlib
- seaborn
- numpy
- pandas
## Usage
Run ```vrp.ipynb``` to plot the result. You can set varaible K to indicate numbers of salesmen. Note that K greater than 4 might take hours.
## Result Diagrams
- 1 person (Wall time: 1min 3s)
- Longest time spent: 6494 (min)
- Total distance: 12287.07 (km)
![](https://i.imgur.com/khy8Lek.png)
- 2 people (Wall time: 4.66 s)
- Longest time spent: 3574 (min)
- Total distance: 12607.64 (km)
![](https://i.imgur.com/5NM2ZQ1.png)
- 3 people (Wall time: 14min 48s)
- Longest time spent: 2546 (min)
- Total distance: 14130.25 (km)
![](https://i.imgur.com/mFugpKP.png)
- 4 people (Wall time: 44min 58s)
- Longest time spent: 1988 (min)
- Total distance: 15425.02 (km)
![](https://i.imgur.com/EIDcAlH.png)
Once **K (num of salesmen)** is larger, it is better not to solve it with linear programming. We should use meta heuristic methods instead, though the solution might not be optimal, yet a lot faster.
## A star would be nice if you like it !
纸浆包装解决车辆路线问题附python代码.zip
版权申诉
93 浏览量
2023-11-20
21:50:03
上传
评论
收藏 60KB ZIP 举报
Matlab科研辅导帮
- 粉丝: 2w+
- 资源: 7670
最新资源
- Python3实现基于ARIMA模型来预测茅台股票价格趋势(数据集+代码).rar
- 黑色简洁的PHP短网址短链接生成源码.rar
- dbeaver-ce-24.0.5-x86-64-setup.zip
- hfm (1).cpp
- 数据分析案例-数据科学相关岗位薪资可视化分析(数据集+代码).rar
- PSO-SDAE基于粒子群优化堆叠去噪自编码器的数据回归预测多变量回归预测(Matlab完整源码和数据)
- 基于卷积神经网络MobileNet 的情感识别源码.7z
- 一个很好的elasticsearchJavarest客户端 它以类似于mybatis的方式操作和访问elasticsearch
- student.sql
- 一个简单的卷积神经网络(Convolutional Neural Network, CNN)示例
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈