工业工程 ›› 2022, Vol. 25 ›› Issue (6): 110-119,125.doi: 10.3969/j.issn.1007-7375.2022.06.013

• 专题论述 • 上一篇    下一篇

基于萤火虫算法的动态车辆路径规划

董海1, 雷凤达2   

  1. 沈阳大学 1. 应用技术学院;
    2. 机械工程学院,辽宁 沈阳 110044
  • 收稿日期:2021-07-11 发布日期:2022-12-23
  • 通讯作者: 雷凤达 (1997—) ,男,辽宁省人,硕士研究生,主要研究方向为制造系统工程。E-mail:1986818288@qq.com E-mail:1986818288@qq.com
  • 作者简介:董海(1967-),男,山东省人,教授,博士,主要研究方向为网络化制造、供应链管理
  • 基金资助:
    国家自然科学基金资助项目(71672117);中央引导地方科技发展资金计划资助项目(2021JH6/10500149)

Dynamic Vehicle Routing Problem with Time Windows and Capacity Constraints Based on Coordinate Firefly Algorithm

DONG Hai1, LEI Fengda2   

  1. 1. School of Applied Technology;
    2. School of Mechanical Engineering, Shenyang University, Shenyang 110044, China
  • Received:2021-07-11 Published:2022-12-23

摘要: 为解决城市交通道路信息或客户需求改变带来的成本浪费,提出带时间窗和容量约束的动态车辆路径问题模型和求解算法。建立以最小化车辆总成本为优化目标的带时间窗和容量约束的动态车辆路径模型 (dynamic vehicle routing problem with time windows and capacity constraints, CDVRPTW) ,并用DVRP求解器将DVRP分解成VRP问题的集合以解决动态性问题。提出坐标萤火虫算法,使萤火虫算法的离散解映射到连续域以适用于模型求解,运用局部搜索包括初始种群、增强路径、移除节点以及交换节点改进算法。结合数据集和实例,运用Matlab分析算法性能。结果表明,本文所提算法与经典求解DVRP算法相比,不论是求解速度还是解的质量都有明显提升,实际案例验证其现实意义。

关键词: 动态车辆路径问题, 萤火虫算法, 时间窗

Abstract: In order to solve the cost waste caused by the change of urban traffic road information or customer demand, a dynamic vehicle routing problem model and solution algorithm with time window and capacity constraints are proposed. Firstly, a dynamic vehicle routing problem with time windows and capacity constraints is established to minimize the total vehicle cost, and DVRP is decomposed into a set of VRP problems by DVRP solver to solve the dynamic problem. Secondly, the coordinate firefly algorithm is proposed to map the discrete solution of the firefly algorithm to the continuous domain to be suitable for the model. The local search is used to improve the algorithm, including initial population, enhanced path, removing nodes and exchanging nodes. Finally, combined with data sets and examples, Matlab is used to analyze the performance of the algorithm. The results show that the proposed algorithm is significantly better than the classical DVRP algorithm in both solution speed and solution quality, and the practical significance of the algorithm and model is verified by an actual case.

Key words: dynamic vehicle routing problem, firefly algorithm, time window

中图分类号: