An Enhanced Artificial Electric Field Algorithm with Sine Cosine Mechanism for Logistics Distribution Vehicle Routing
<p>A schematic diagram of the force on the charged particles.</p> "> Figure 2
<p>The iterative curve of the Coulomb constant.</p> "> Figure 3
<p>The iteration principle of the SCA.</p> "> Figure 4
<p>The comparison of the convergence results of different algorithms.</p> "> Figure 5
<p>The flow chart of the algorithm.</p> "> Figure 6
<p>The distribution map of the customer points and distribution centers.</p> "> Figure 7
<p>The comparison of the algorithm convergence effect.</p> ">
Abstract
:1. Introduction
- An enhanced artificial electric field algorithm with the sine cosine mechanism, named SC-AEFA, is proposed;An optimization scheduling algorithm for logistics distribution vehicles based on the SC-AEFA is proposed for the first time;
- A map grid model for enterprise logistics distribution vehicle path planning is established;
- Comprehensive experiments were designed and executed to prove the effectiveness of the SC-AEFA through test functions and the case of an actual distribution business, named fresh enterprise A.
2. Basic Knowledge
2.1. Artificial Electric Field Algorithm
Algorithm 1 Pseudocode of the artificial electric field algorithm (AEFA). |
Initialization; Randomly initialization of population size in the search range ; Initialize the velocity to ; Evaluate the fitness values of agent ; Set iteration ; Reproduction and Updating while stopping criterion is not satisfied do Calculate and for = 1 to do Evaluate the fitness values Calculate the total force in each direction Calculate the acceleration end for end while |
2.2. The Sine Cosine Algorithm and Its Basic Principles
3. SC-AEFA
3.1. Fundamental
3.2. Improved Artificial Electric Field Algorithm
3.3. Improved Sine Cosine Algorithm
3.4. Steps of SC-AEFA
Algorithm 2 Pseudocode of the SC-AEFA. |
Initialization; Randomly initialization of population size in the search range ; Initialize the velocity to ; Evaluate the fitness values of agent ; Set various parameters; Reproduction and Updating while Stopping Criterion is not satisfied do Calculate and for = 1 to do Evaluate the fitness values Calculate the total force in each direction Calculate the acceleration if do if do else end if else end if end for end while |
4. Simulation Experiment and Result Analysis
5. Practical Problem Solving and Analysis
5.1. Model Analysis
5.2. Model Assumptions and Variable Descriptions
5.2.1. Model Assumptions
- The delivery vehicle only delivers a single type of goods;
- The needs of customers in the delivery process are sequentially met;
- The specifications of the delivery vehicles are unified;
- After the delivery vehicle completes the delivery task, it needs to return to the delivery center;
- The whole distribution process does not consider the influence of other special factors (traffic congestion, vehicle failure, etc.) and the driving speed is constant;
- The time when the delivery vehicle leaves the distribution center is calculated from 0:00;
- The road gradient of each driving route in the distribution network is 0;
- The service time of the delivery vehicles at each demand point is equal (the service time can also be set according to the actual situation).
5.2.2. Symbol and Variable Description
- Parameter Symbol Description (as shown in Table 3)
- Decision Variable DescriptionWhen the vehicle drives from node to node , ; otherwise, .When the vehicle is put into use, ; otherwise, .
5.3. Establishment of VRPTW Model
6. Problem Solving
6.1. Coding Strategy
6.2. Solving Steps
6.3. Example Verification
6.3.1. Basic Data
6.3.2. Analysis of Results
7. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Deng, W.; Shang, S.; Cai, X.; Zhao, H.; Zhou, Y.; Chen, H.; Deng, W. Quantum differential evolution with cooperative coevolution framework and hybrid mutation strategy for large scale optimization. Knowl.-Based Syst. 2021, 224, 107080. [Google Scholar] [CrossRef]
- Li, X.; Zhao, H.; Yu, L.; Chen, H.; Deng, W.; Deng, W. Feature extraction using parameterized multi-synchrosqueezing transform. IEEE Sens. J. 2022, 1. [Google Scholar] [CrossRef]
- Li, G.; Li, Y.; Chen, H.; Deng, W. Fractional-Order Controller for Course-Keeping of Underactuated Surface Vessels Based on Frequency Domain Specification and Improved Particle Swarm Optimization Algorithm. Appl. Sci. 2022, 12, 3139. [Google Scholar] [CrossRef]
- Li, X.; Shao, H.D.; Jiang, H.K.; Xiang, J.W. Modified Gaussian convolutional deep belief network and infrared thermal imaging for intelligent fault diagnosis of rotor-bearing system under time-varying speeds. Struct. Health Monit. 2022, 21, 339–353. [Google Scholar]
- Chen, H.; Zhang, Q.; Luo, J.; Xu, Y.; Zhang, X. An enhanced Bacterial Foraging Optimization and its application for training kernel extreme learning machine. Appl. Soft Comput. 2019, 86, 105884. [Google Scholar] [CrossRef]
- Cui, H.; Guan, Y.; Chen, H. Rolling Element Fault Diagnosis Based on VMD and Sensitivity MCKD. IEEE Access. 2021, 9, 120297–120308. [Google Scholar] [CrossRef]
- Jin, T.; Xia, H. Lookback option pricing models based on the uncertain fractional-order differential equation with Caputo type. J. Ambient Intell. Humaniz. Comput. 2021, 1–14. [Google Scholar] [CrossRef]
- Li, T.; Shi, J.; Deng, W.; Hu, Z. Pyramid particle swarm optimization with novel strategies of competition and cooperation. Appl. Soft Comput. 2022, 121, 108731. [Google Scholar] [CrossRef]
- Zhao, H.; Liu, J.; Chen, H.; Li, Y.; Xu, J.; Deng, W. Intelligent diagnosis using continuous wavelet transform and gauss convolutional deep belief network. IEEE Tans. Reliab. 2022. [Google Scholar] [CrossRef]
- Zhang, X.; Wang, H.; Du, C.; Fan, X.; Cui, L.; Chen, H.; Deng, F.; Tong, Q.; He, M.; Yang, M.; et al. Custom-Molded Offloading Footwear Effectively Prevents Recurrence and Amputation, and Lowers Mortality Rates in High-Risk Diabetic Foot Patients: A Multicenter, Prospective Observational Study. Diabetes Metab. Syndr. Obes. Targets Ther. 2022, 15, 103–109. [Google Scholar] [CrossRef]
- Jin, T.; Xia, H.; Deng, W.; Li, Y.; Chen, H. Uncertain Fractional-Order Multi-Objective Optimization Based on Reliability Analysis and Application to Fractional-Order Circuit with Caputo Type. Circuits Syst. Signal Process. 2021, 40, 5955–5982. [Google Scholar] [CrossRef]
- Deng, W.; Xu, J.; Gao, X.-Z.; Zhao, H. An enhanced MSIQDE algorithm with novel multiple strategies for global optimization problems. IEEE Trans. Syst. Man Cybern. Syst. 2022, 52, 1578–1587. [Google Scholar] [CrossRef]
- Holland, J.H. Genetic Algorithms and the Optimal Allocation of Trials. SIAM J. Comput. 1973, 2, 88–105. [Google Scholar] [CrossRef]
- KirkPatrick, S.; Gelatt, C.; Vecchi, M. Optimization by simulated annealing. Science 1983, 220, 671–680. [Google Scholar] [CrossRef]
- Brits, R.; Engelbrecht, A.P.; van den Bergh, F. Locating multiple optima using particle swarm optimization. Appl. Math. Comput. 2006, 189, 1859–1883. [Google Scholar] [CrossRef]
- Yang, X.S.; Gandomi, A.H. Bat Algorithm: A Novel Approach for Global Engineering Optimization. Eng. Comput. 2012, 29, 464–483. [Google Scholar] [CrossRef] [Green Version]
- Dorigo, M.; Maniezzo, V. Ant system: Optimization by a colony of cooperating agents. IEEE Trans. Syst. 1996, 26, 29–41. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Mirjalili, S. Moth-flame optimization algorithm: A novel nature-inspired heuristic paradigm. Knowl.-Based Syst. 2015, 89, 228–249. [Google Scholar] [CrossRef]
- Saremi, S.; Mirjalili, S.; Lewis, A. Grasshopper Optimization Algorithm: Theory and application. Adv. Eng. Softw. 2017, 105, 30–47. [Google Scholar] [CrossRef] [Green Version]
- Arora, S.; Singh, S. Butterfly optimization algorithm: A novel approach for global optimization. Soft Comput. 2018, 23, 715–734. [Google Scholar] [CrossRef]
- Mirjalili, S. SCA: A Sine Cosine Algorithm for Solving Optimization Problems. Knowl.-Based Syst. 2016, 96, 120–133. [Google Scholar] [CrossRef]
- Ran, X.; Zhou, X.; Lei, M.; Tepsan, W.; Deng, W. A novel k-means clustering algorithm with a noise algorithm for capturing urban hotspots. Appl. Sci. 2021, 11, 11202. [Google Scholar] [CrossRef]
- Zheng, J.J.; Yuan, Y.; Zou, L.; Deng, W.; Guo, C.; Zhao, H. Study on a novel fault diagnosis method based on VMD and BLM. Symmetry 2019, 11, 747. [Google Scholar] [CrossRef] [Green Version]
- He, Z.Y.; Shao, H.D.; Zhong, X.; Zhao, X.Z. Ensemble transfer CNNs driven by multi-channel signals for fault diagnosis of rotating machinery cross working conditions. Knowl.-Based Syst. 2020, 207, 106396. [Google Scholar] [CrossRef]
- Tian, C.; Jin, T.; Yang, X.; Liu, Q. Reliability analysis of the uncertain heat conduction model. Comput. Math. Appl. 2022, 119, 131–140. [Google Scholar] [CrossRef]
- Zhang, Z.-H.; Min, F.; Chen, G.-S.; Shen, S.-P.; Wen, Z.-C.; Zhou, X.-B. Tri-Partition State Alphabet-Based Sequential Pattern for Multivariate Time Series. Cogn. Comput. 2021, 1–19. [Google Scholar] [CrossRef]
- Wu, X.; Wang, Z.C.; Wu, T.H.; Bao, X.G. Solving the Family Traveling Salesperson Problem in the Adleman–Lipton Model Based on DNA Computing. IEEE Trans. NanoBiosci. 2021, 21, 75–85. [Google Scholar] [CrossRef]
- Dai, S.L.; He, S.; Wang, M.; Yuan, C. Adaptive neural control of underactuated surface vessels with prescribed performance guarantees. IEEE transactions on neural networks and learning systems. IEEE Trans. Neural Netw. Learn. Syst. 2018, 30, 3686–3698. [Google Scholar] [CrossRef]
- Zhou, Y.; Zhang, J.; Yang, X.; Ling, Y. Optimal reactive power dispatch using water wave optimization algorithm. Oper. Res. 2020, 20, 2537–2553. [Google Scholar] [CrossRef]
- Zhao, H.M.; Li, H.D.; Jin, Y.; Dang, X.J.; Deng, W. Feature extraction for data-driven remaining useful life prediction of rolling bearings. IEEE Trans. Instrum. Meas. 2021, 70, 3511910. [Google Scholar] [CrossRef]
- Xu, Y.; Chen, H.; Luo, J.; Zhang, Q.; Jiao, S.; Zhang, X. Enhanced Moth-flame optimizer with mutation strategy for global optimization. Inf. Sci. 2019, 492, 181–203. [Google Scholar] [CrossRef]
- Anita; Anupam, Y. AEFA: Artificial electric field algorithm for global optimization. Swarm Evol. Comput. 2019, 48, 93–108. [Google Scholar]
- Zhang, W.B.; Su, Q.; Cheng, G.L. Vehicle routing problem with time windows based on dynamic demands. Ind. Eng. Manag. 2016, 21, 68–74. [Google Scholar]
- DANTZIG, G.B.; RAMSER, J.H. The truck dispatching problem. Manag. Sci. 1959, 6, 80–91. [Google Scholar] [CrossRef]
- Kim, G.; Ong, Y.S.; Heng, C.K.; Tan, P.S.; Zhang, N.A. City Vehicle Routing Problem (City VRP): A Review. IEEE Trans. Intell. Transp. Syst. 2015, 16, 1654–1666. [Google Scholar] [CrossRef]
- Tao, W.H.; Zhao, C.C.; Sun, Y.B.; Liu, C.L.; Sun, Z.X.; Sun, Z. Research on vehicle routing problem based on improved dragonfly algorithm. Comput. Technol. Dev. 2020, 30, 170–175. [Google Scholar]
- Li, Z.P.; Zhang, Y.W. Multiple demands vehicle routing problem with time windows and service order constraints. Control Dec. 2019, 34, 1565–1570. [Google Scholar]
- Taş, D.; Dellaert, N.; van Woensel, T.; De Kok, T. The time-dependent vehicle routing problem with soft time windows and stochastic travel times. Transp. Res. Part C Emerg. Technol. 2014, 48, 66–83. [Google Scholar] [CrossRef] [Green Version]
- Iqbal, S.; Kaykobad, M.; Rahman, M.S. Solving the multi-objective vehicle routing problem with soft time windows with the help of bees. Swarm Evol. Comput. 2015, 24, 50–60. [Google Scholar] [CrossRef]
- Wang, K.; Choi, S.H.; Lu, H. A hybrid estimation of distribution algorithm for the vehicle routing problem with time windows. Comput. Ind. Eng. 2019, 130, 75–96. [Google Scholar]
- Wang, T.; Liu, J.X.; Wei, B.; Ye, G.Q.; Liu, H.; Li, J.J.; Zhu, D.L. Optimal operation and dispatch of water supply pump station in T city. Water Res. Pow. 2021, 39, 120–123+132. [Google Scholar]
- Zhao, F.; He, Y. Routing algorithm of software defined internet of things based on artificial electric field optimization. Comput. Eng. Des. 2021, 42, 2725–2732. [Google Scholar]
- Xu, S.J.; Long, W. Improved sine cosine algorithm for solving high-dimensional optimization problems. Appl. Res. Comput. 2018, 35, 2574–2577. [Google Scholar]
- Yong, L.Q.; Li, Y.H.; Jia, W. Literature survey on research and application of sine cosine algorithm. Comput. Eng. Appl. 2020, 56, 26–34. [Google Scholar]
- Xuan, H.N.; Miao, C.L.; Zhao, D. System-level fault diagnosis based on bat algorithm. Comput. Eng. Sci. 2016, 38, 640–647. [Google Scholar]
- Lin, J.; He, Q. Fusion sine cosine and mutation selection grasshopper optimization algorithm. J. Chin. Mini-Micro. Comput. Syst. 2021, 42, 706–713. [Google Scholar]
- Li, X.Y. Chaotic gravitational constants for the artificial electric field algorithm. Micro. Appl. 2021, 37, 60–62,70. [Google Scholar]
- Zhong, K.; Zhou, G.; Deng, W.; Zhou, Y.; Luo, Q. MOMPA: Multi-objective marine predator algorithm. Comput. Methods Appl. Mech. Eng. 2021, 385, 114029. [Google Scholar] [CrossRef]
- Wei, Y.Y.; Zhou, Y.Q.; Luo, Q.F.; Deng, W. Optimal reactive power dispatch using an improved slime mould algorithm. Energy Rep. 2021, 7, 8742–8759. [Google Scholar] [CrossRef]
- Deng, W.; Zhang, X.X.; Zhou, Y.Q.; Liu, Y.; Zhou, X.B.; Chen, H.L.; Zhao, H.M. An enhanced fast non-dominated solution sorting genetic algorithm for multi-objective problems. Inf. Sci. 2022, 585, 441–453. [Google Scholar] [CrossRef]
Function | Search Space | Theoretical Value |
---|---|---|
Function | Algorithm | Mean Value | Variance |
---|---|---|---|
GOA | |||
BOA | |||
AEFA | |||
IAEFA | |||
SC-AEFA | |||
GOA | |||
BOA | |||
AEFA | |||
IAEFA | |||
SC-AEFA | |||
GOA | . | ||
BOA | |||
AEFA | |||
IAEFA | |||
SC-AEFA | |||
GOA | |||
BOA | |||
AEFA | |||
IAEFA | |||
SC-AEFA | |||
GOA | |||
BOA | |||
AEFA | |||
IAEFA | |||
SC-AEFA | |||
GOA | |||
BOA | |||
AEFA | |||
IAEFA | |||
SC-AEFA |
Parameter | Implication |
---|---|
Distribution center | |
Node set of vehicles k driving path | |
Maximum loading capacity of vehicle | |
Vehicle speed | |
Unit penalty cost for vehicles arriving earlier than left time window | |
Unit penalty cost for vehicle arriving later than right time window | |
Fixed cost per unit vehicle | |
Unit distance cost | |
Vehicle driving distance | |
Vehicle Model | Curb Weight (kg) | Total Mass (kg) | Rated Load (kg) | Vehicle Start-Up Cost |
---|---|---|---|---|
NJL5033XXYBEV8 | 1900 | 3500 | 1500 | 120 |
Distribution Center | X-Coordinate | Y-Coordinate | Demand | Left Time Window | Right Time Window | Service Time |
0 | 56.69 | 60.22 | 0 | 0 | 1236 | 0 |
Customer Number | X-Coordinate | Y-Coordinate | Demand | Left Time Window | Right Time Window | Service Time |
1 | 56.88 | 69.44 | 30 | 65 | 146 | 90 |
2 | 56.40 | 69.74 | 10 | 727 | 782 | 90 |
3 | 56.26 | 67.66 | 10 | 15 | 67 | 90 |
4 | 57.02 | 63.34 | 20 | 621 | 702 | 90 |
5 | 57.56 | 66.95 | 10 | 534 | 605 | 90 |
6 | 57.77 | 61.75 | 20 | 357 | 410 | 90 |
7 | 54.89 | 63.89 | 10 | 567 | 620 | 90 |
8 | 55.53 | 62.11 | 40 | 384 | 429 | 90 |
9 | 56.57 | 55.21 | 20 | 99 | 148 | 90 |
10 | 57.24 | 55.79 | 20 | 179 | 254 | 90 |
11 | 57.71 | 57.79 | 10 | 278 | 345 | 90 |
12 | 58.98 | 54.80 | 10 | 732 | 777 | 90 |
13 | 55.92 | 59.61 | 40 | 169 | 224 | 90 |
14 | 56.44 | 56.30 | 10 | 622 | 701 | 90 |
15 | 57.47 | 58.43 | 10 | 261 | 316 | 90 |
16 | 57.62 | 54.94 | 10 | 358 | 405 | 90 |
17 | 58.26 | 72.76 | 20 | 200 | 237 | 90 |
18 | 56.90 | 71.41 | 30 | 31 | 100 | 90 |
19 | 55.48 | 68.91 | 20 | 751 | 816 | 90 |
20 | 56.12 | 65.11 | 10 | 283 | 344 | 90 |
21 | 56.48 | 64.88 | 10 | 665 | 716 | 90 |
22 | 57.35 | 64.26 | 20 | 383 | 434 | 90 |
23 | 57.88 | 54.73 | 20 | 567 | 624 | 90 |
24 | 56.12 | 58.83 | 10 | 166 | 235 | 90 |
25 | 56.58 | 64.15 | 20 | 68 | 149 | 90 |
26 | 57.32 | 56.66 | 10 | 16 | 80 | 90 |
27 | 56.56 | 67.70 | 10 | 541 | 600 | 90 |
Algorithm | Required Vehicle | Algorithm Time | Cost |
---|---|---|---|
AEFA | 4 | 87.60 s | 559.35 |
SC-AEFA | 4 | 78.76 s | 556.86 |
BOA | 4 | 80.68 s | 561.36 |
ACO | 4 | 80.04 s | 678.75 |
Algorithm | The Optimal Value | The Worst Value | The Average Value | The Earliest Convergence Number |
---|---|---|---|---|
AEFA | 562.78 | 593.49 | 560.78 | 40 |
SC-AEFA | 556.12 | 568.38 | 556.86 | 23 |
BOA | 559.66 | 677.94 | 561.36 | 37 |
ACO | 656.01 | 679.23 | 678.75 | 33 |
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2022 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 (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Zheng, H.; Gao, J.; Xiong, J.; Yao, G.; Cui, H.; Zhang, L. An Enhanced Artificial Electric Field Algorithm with Sine Cosine Mechanism for Logistics Distribution Vehicle Routing. Appl. Sci. 2022, 12, 6240. https://doi.org/10.3390/app12126240
Zheng H, Gao J, Xiong J, Yao G, Cui H, Zhang L. An Enhanced Artificial Electric Field Algorithm with Sine Cosine Mechanism for Logistics Distribution Vehicle Routing. Applied Sciences. 2022; 12(12):6240. https://doi.org/10.3390/app12126240
Chicago/Turabian StyleZheng, Hongyu, Juan Gao, Juxia Xiong, Guanglei Yao, Hongjiang Cui, and Lirong Zhang. 2022. "An Enhanced Artificial Electric Field Algorithm with Sine Cosine Mechanism for Logistics Distribution Vehicle Routing" Applied Sciences 12, no. 12: 6240. https://doi.org/10.3390/app12126240
APA StyleZheng, H., Gao, J., Xiong, J., Yao, G., Cui, H., & Zhang, L. (2022). An Enhanced Artificial Electric Field Algorithm with Sine Cosine Mechanism for Logistics Distribution Vehicle Routing. Applied Sciences, 12(12), 6240. https://doi.org/10.3390/app12126240