Green Vehicle Routing Model and Optimization Algorithm with Soft Time Window and Dynamic Demand
Abstract
1. Introduction
2. Problem Description
3. Mathematical Formulation of the DDGVRPSTW
3.1. Notation and Variables
3.2. Two-Stage DDGVRPSTW Model Formulation
3.2.1. Pre-Optimization Stage Model
3.2.2. Dynamic Optimization Stage Model
3.3. Vehicle Carbon Emission Model
4. Solution Algorithm for the DDGVRPSTW Based on Artificial Bee Colony and State Transition
4.1. Initial Solution Generation
4.2. Pre-Optimization Route Generation
4.3. Dynamic Optimization Route Generation
| Algorithm 1: Inter-Route Crossover Operator |
| Input: A set of feasible routes R = {r1, r2, …, rk} Output: An updated route set R′ Randomly select two different routes ra and rb from R if ra = null or rb = null or |ra| ≤ 2 or |rb| ≤ 2 then return R end if Randomly select one crossover segment [pa1, pa2] from ra Randomly select one crossover segment [pb1, pb2] from rb Extract segment Sa = ra[pa1:pa2] Extract segment Sb = rb[pb1:pb2] Remove Sa from ra and remove Sb from rb Insert Sb into ra at position pa1 Insert Sa into rb at position pb1 Repair ra if capacity or time window constraints are violated Repair rb if capacity or time window constraints are violated if ra and rb are feasible then Replace ra and rb in R with the repaired routes else Restore the original routes ra and rb end if return R |
5. Computational Experiments and Analysis
5.1. Experimental Environment and Parameter Settings
5.2. Experimental Results and Analysis
5.2.1. Dynamic-Demand Case Simulation
5.2.2. Case Simulation Under Different Customer Distributions
5.2.3. Case Simulation Under Different Optimization Objectives
5.2.4. Comparative Analysis of Different Solution Algorithms
5.2.5. Ablation Experiments
5.2.6. Computation Time Analysis
5.2.7. Simulation Analysis of a Real-World Case
6. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- AbdAllah, A.M.F.M.; Essam, D.L.; Sarker, R.A. On solving periodic re-optimization dynamic vehicle routing problems. Appl. Soft Comput. 2017, 55, 1–12. [Google Scholar] [CrossRef] [Scilit]
- Ulmer, M.W.; Soeffker, N.; Mattfeld, D.C. Value function approximation for dynamic multi-period vehicle routing. Eur. J. Oper. Res. 2018, 269, 883–899. [Google Scholar] [CrossRef] [Scilit]
- Pillac, V.; Guéret, C.; Medaglia, A.L. An event-driven optimization framework for dynamic vehicle routing. Decis. Support Syst. 2012, 54, 414–423. [Google Scholar] [CrossRef] [Scilit]
- Li, Y.; Fan, H.M.; Zhang, X.N. Periodic optimization model and solution method for the vehicle routing problem under dynamic demand. Chin. J. Manag. Sci. 2022, 30, 254–266. [Google Scholar]
- Li, Y.F.; Gao, Z.Y.; Li, J. Research on the vehicle routing problem in dynamic networks. J. Manag. Sci. China 2014, 17, 1–9. [Google Scholar]
- Wang, F.; Liao, F.; Li, Y.; Yan, X.; Chen, X. An ensemble learning based multi-objective evolutionary algorithm for the dynamic vehicle routing problem with time windows. Comput. Ind. Eng. 2021, 154, 107131. [Google Scholar] [CrossRef] [Scilit]
- Erdoğan, S.; Miller-Hooks, E. A green vehicle routing problem. Transp. Res. Part E Logist. Transp. Rev. 2012, 48, 100–114. [Google Scholar] [CrossRef] [Scilit]
- Liu, C.S.; Shen, L.Z.; Sheng, H.Y.; Lv, X.Y.; Qu, Y.P. Research on the low-carbon time-dependent vehicle routing problem considering traffic congestion avoidance. Control Decis. 2020, 35, 2486–2496. [Google Scholar]
- Çimen, M.; Soysal, M. Time-dependent green vehicle routing problem with stochastic vehicle speeds: An approximate dynamic programming algorithm. Transp. Res. Part D Transp. Environ. 2017, 54, 82–98. [Google Scholar] [CrossRef] [Scilit]
- Andelmin, J.; Bartolini, E. An exact algorithm for the green vehicle routing problem. Transp. Sci. 2017, 51, 1288–1303. [Google Scholar] [CrossRef] [Scilit]
- Yao, K.; Yang, B.; Zhu, X.L. Low-carbon vehicle routing optimization considering time-dependent traffic conditions. Comput. Eng. Appl. 2019, 55, 231–237. [Google Scholar]
- Liu, C.S.; Zhou, X.C.; Sheng, H.Y.; Luo, L. Research on the time-dependent vehicle routing problem with time windows for fresh e-commerce distribution: A perspective balancing economic and environmental costs. Control Decis. 2020, 35, 1273–1280. [Google Scholar]
- Zhao, Z.X.; Li, X.M.; Zhou, X.C. Optimization of the multi-vehicle-type green vehicle routing problem considering congestion zones. J. Comput. Appl. 2020, 40, 883–890. [Google Scholar]
- Zhou, X.C.; Liu, C.S.; Zhou, K.J.; He, C.H.; Huang, X.B. Time-dependent green vehicle routing model and improved ant colony algorithm. J. Manag. Sci. China 2019, 22, 57–68. [Google Scholar]
- Jia, Y.J.; Ding, H.N.; Li, J.; Yang, D. Electric vehicle routing problem considering time-varying speed and dynamic demand. Ind. Eng. Manag. 2022, 27, 59–66. [Google Scholar]
- Ge, X.L.; Zhu, Z.Q.; Jin, Y.Z. Dynamic electric vehicle routing optimization based on a two-stage solution strategy. Oper. Res. Manag. Sci. 2022, 31, 57–63. [Google Scholar]
- Du, Q.; Nan, L.J.; Chen, Y.R. Electric vehicle routing problem with dynamic demand in context of crowdsourcing. Comput. Integr. Manuf. Syst. 2024, 30, 2588–2607. [Google Scholar]
- Guo, D.; Wang, J.; Zhao, J.B.; Sun, F.; Gao, S.; Li, C.D.; Li, M.H.; Li, C.C. A vehicle path planning method based on a dynamic traffic network that considers fuel consumption and emissions. Sci. Total Environ. 2019, 663, 935–943. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Km, S.; Pitam, S.; Shubhankar, K. Dynamic adaptive large neighborhood search approach for the uncertain multi-objective green vehicle routing problem. Appl. Soft Comput. 2026, 199, 115323. [Google Scholar] [CrossRef] [Scilit]
- Nan, L.J.; Chen, Y.R.; Zhang, Z.C. An improved adaptive large neighborhood search algorithm for the mixed vehicle routing problem with dynamic demand. Appl. Res. Comput. 2021, 38, 2926–2934. [Google Scholar]
- Reza, A.F.; Javad, R.; Iraj, M. Green vehicle routing and scheduling problem with heterogeneous fleet including reverse logistics in the form of collecting returned goods. Appl. Soft Comput. 2020, 94, 106462. [Google Scholar] [CrossRef] [Scilit]








| Symbol | Description |
|---|---|
| 0 | origin depot |
| r + 1 | destination depot |
| H | customer set, H = {1, …, h} |
| K | set of delivery vehicles K = 1, 2, …, k. |
| U1 | set of the origin depot and customer nodes, U1 = {0} ∪ H |
| U2 | set of the destination depot and customer nodes, U2 = {r + 1} ∪ H |
| B | maximum capacity of a delivery vehicle |
| bijk | load carried by vehicle k on arc (i,j) |
| qi | demand of customer i |
| dij | distance between nodes i and j |
| [ei, li] | preferred time window of customer i |
| [e0, lr+1] | service time window of the depot |
| [Ei, li] | acceptable time window of customer i |
| v | average travel speed of vehicles |
| tik | arrival time of vehicle k at node i |
| tijk | travel time of vehicle k on arc (i,j) |
| stijk | service time of vehicle k at customer i |
| fixed dispatch cost per vehicle (CNY/vehicle) | |
| unit travel cost (CNY/km) | |
| unit fuel cost (CNY/L) | |
| unit carbon emission cost (CNY/kg) | |
| βi | penalty coefficient for different time intervals |
| pi | time window penalty cost |
| fijk | fuel consumption rate of vehicle k on arc (i,j) |
| eijk | carbon emission rate of vehicle k on arc (i,j) |
| xijk | binary variable equal to 1 if vehicle k travels on arc (i,j), and 0 otherwise |
| yik | binary variable equal to 1 if customer is served by vehicle k, and 0 otherwise |
| M | set of newly added delivery vehicles |
| R | set of all delivery vehicles |
| F | total number of unserved customers from the first stage and newly added customers |
| A | set of virtual nodes |
| A1 | set of virtual nodes under the periodic update strategy |
| A2 | set of virtual nodes under the dynamic event update strategy |
| A3 | set of virtual nodes under the customer-node update strategy |
| set of customer nodes and virtual nodes | |
| set of customer nodes and the destination depot | |
| set of the origin depot, virtual nodes, and customer nodes | |
| set of virtual nodes, customer nodes, and the destination depot | |
| N | set of all nodes |
| remaining load of vehicle k after the first stage | |
| cost from the origin depot to virtual node at the end of the first stage |
| T | AC | AC1 | AD1 | AG1 | AP1 | AF1 |
| 80 | 3890.87 | 1647.59 | 241.40 | 1000 | 104.78 | 301.40 |
| 100 | 4534.14 | 1852.26 | 266.31 | 1000 | 250.54 | 335.40 |
| 120 | 4388.75 | 2040.28 | 294.39 | 1000 | 372.77 | 373.12 |
| 140 | 3711.99 | 2289.02 | 312.99 | 1000 | 577.87 | 398.16 |
| T | AD2 | AG2 | AP2 | AF2 | CN1 | CN2 |
| 80 | 818.28 | 0 | 400.85 | 1024.14 | 5 | 5 |
| 100 | 869.90 | 200 | 526.07 | 1085.90 | 5 | 6 |
| 120 | 758.85 | 200 | 495.40 | 894.21 | 5 | 6 |
| 140 | 423.75 | 200 | 315.00 | 484.21 | 5 | 6 |
| Instance | T | AC | AC1/AC2 | AD1/AD2 | AG1/AG2 | AP1/AP2 | AF1/AF2 | CN1/CN2 |
|---|---|---|---|---|---|---|---|---|
| C101 | 500 | 3476.89 | 1624.53 | 237.82 | 1000.00 | 87.03 | 299.66 | 5 |
| 1852.36 | 469.45 | 200.00 | 592.78 | 590.13 | 6 | |||
| C105 | 500 | 3348.01 | 1724.95 | 300.67 | 1000.00 | 46.49 | 377.78 | 5 |
| 1623.06 | 414.60 | 200.00 | 468.91 | 539.55 | 6 | |||
| C201 | 500 | 6143.37 | 3372.38 | 325.67 | 1000.00 | 1384.57 | 662.13 | 5 |
| 2770.99 | 504.08 | 0.00 | 1636.04 | 630.87 | 4 | |||
| C205 | 500 | 6385.68 | 2871.84 | 244.42 | 1000.00 | 1063.30 | 564.12 | 5 |
| 3513.84 | 462.80 | 0.00 | 2470.87 | 580.17 | 4 | |||
| C206 | 500 | 5523.74 | 2559.85 | 276.59 | 1000.00 | 768.85 | 514.40 | 5 |
| 2963.89 | 427.70 | 0.00 | 2000.34 | 535.85 | 4 | |||
| R101 | 200 | 2199.12 | 1922.75 | 394.91 | 800.00 | 230.38 | 497.44 | 4 |
| 276.37 | 123.56 | 0.00 | 0.00 | 152.81 | 4 | |||
| R105 | 200 | 2762.98 | 1959.12 | 419.45 | 800.00 | 209.84 | 529.82 | 4 |
| 803.86 | 252.21 | 200.00 | 28.10 | 323.55 | 5 | |||
| R201 | 200 | 3184.00 | 2661.00 | 422.09 | 800.00 | 905.67 | 533.24 | 4 |
| 523.00 | 194.04 | 0.00 | 88.90 | 240.06 | 4 | |||
| R205 | 200 | 3167.69 | 2568.46 | 453.38 | 800.00 | 679.52 | 635.56 | 4 |
| 599.23 | 207.75 | 0.00 | 133.46 | 258.02 | 3 | |||
| R206 | 200 | 2279.83 | 2259.74 | 431.86 | 800.00 | 425.02 | 602.86 | 4 |
| 520.09 | 151.36 | 0.00 | 181.20 | 187.53 | 3 | |||
| RC101 | 100 | 3072.26 | 1647.09 | 257.45 | 1000.00 | 63.82 | 325.82 | 5 |
| 1425.17 | 597.74 | 0.00 | 83.30 | 744.13 | 5 | |||
| RC105 | 100 | 3360.37 | 1615.54 | 260.43 | 1000.00 | 27.45 | 327.66 | 5 |
| 1744.83 | 733.93 | 0.00 | 92.88 | 918.02 | 5 | |||
| RC201 | 100 | 3638.04 | 2152.60 | 264.60 | 1000.00 | 554.37 | 333.63 | 5 |
| 1485.44 | 506.97 | 0.00 | 347.12 | 631.35 | 5 | |||
| RC205 | 100 | 3564.36 | 2494.35 | 346.89 | 1000.00 | 705.34 | 442.12 | 5 |
| 1070.01 | 340.52 | 200.00 | 84.09 | 445.40 | 6 | |||
| RC206 | 100 | 3397.37 | 2710.52 | 380.65 | 1000.00 | 773.15 | 556.72 | 5 |
| 686.85 | 283.55 | 0.00 | 51.71 | 351.59 | 4 |
| Instance Type | HABC-STA Mean ± SD | Standard ABC Mean ± SD | Improvement(%) |
|---|---|---|---|
| C-type | 19,233.21 ± 286.44 | 20,285.94 ± 321.55 | 5.19 |
| R-type | 21,150.51 ± 314.62 | 22,439.83 ± 338.10 | 5.75 |
| RC-type | 24,571.21 ± 402.18 | 26,157.16 ± 436.72 | 6.06 |
| Comparison | W Statistic | p-Value | Holm-Adjusted p-Value |
|---|---|---|---|
| HABC-STA vs. Standard ABC | 12.0 | 0.001 | 0.003 |
| HABC-STA vs. SA-GA | 8.0 | 0.001 | 0.003 |
| HABC-STA vs. HLNTS | 0 | 6.104 × 10−5 | 1.831 × 10−4 |
| Number of Customers | Pre-Optimization Time (s) | Average Dynamic Re-Optimization Time (s) | Maximum Dynamic Re-Optimization Time (s) |
|---|---|---|---|
| 60 | 14.8 | 1.6 | 2.4 |
| 80 | 31.5 | 2.8 | 4.1 |
| 100 | 58.9 | 4.6 | 6.9 |
| T | AC | AC1 | AD1 | AG1 | AP1 | AF1 |
| 100 | 2426.29 | 1626.92 | 157.89 | 1000.00 | 461.66 | 7.37 |
| 120 | 2781.97 | 2013.79 | 199.94 | 1000.00 | 585.67 | 228.18 |
| 140 | 2928.69 | 2303.57 | 216.02 | 1000.00 | 683.36 | 404.19 |
| 160 | 3082.11 | 2462.91 | 223.17 | 1000.00 | 693.87 | 545.87 |
| 180 | 3097.02 | 2490.01 | 244.07 | 1000.00 | 691.63 | 554.31 |
| 200 | 3098.04 | 2490.45 | 242.02 | 1000.00 | 718.04 | 530.39 |
| T | AD2 | AG2 | AP2 | AF2 | CN1 | CN2 |
| 100 | 199.36 | 400.00 | 189.72 | 10.28 | 5 | 7 |
| 120 | 180.12 | 400.00 | 178.99 | 9.07 | 5 | 5 |
| 140 | 81.98 | 400.00 | 139.11 | 4.02 | 5 | 4 |
| 160 | 88.78 | 400.00 | 126.39 | 4.02 | 5 | 3 |
| 180 | 83.00 | 400.00 | 119.98 | 4.03 | 5 | 3 |
| 200 | 82.42 | 400.00 | 121.21 | 3.96 | 5 | 3 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
He, M.; Zhou, K.; Wang, Q.; Zhou, X.; Shen, L. Green Vehicle Routing Model and Optimization Algorithm with Soft Time Window and Dynamic Demand. Electronics 2026, 15, 3780. https://doi.org/10.3390/electronics15173780
He M, Zhou K, Wang Q, Zhou X, Shen L. Green Vehicle Routing Model and Optimization Algorithm with Soft Time Window and Dynamic Demand. Electronics. 2026; 15(17):3780. https://doi.org/10.3390/electronics15173780
Chicago/Turabian StyleHe, Ming, Kaijun Zhou, Qian Wang, Xiancheng Zhou, and Lizhi Shen. 2026. "Green Vehicle Routing Model and Optimization Algorithm with Soft Time Window and Dynamic Demand" Electronics 15, no. 17: 3780. https://doi.org/10.3390/electronics15173780
APA StyleHe, M., Zhou, K., Wang, Q., Zhou, X., & Shen, L. (2026). Green Vehicle Routing Model and Optimization Algorithm with Soft Time Window and Dynamic Demand. Electronics, 15(17), 3780. https://doi.org/10.3390/electronics15173780

