Abstract
It is vital to improve the efficiency of urban distribution with severe traffic congestion problems. However, few studies on urban distribution consider the impact of road conditions, which leads to less instructive results to the real-world problems. This paper considers the real travel time of the vehicles to minimize the total distribution time. Furthermore, hybrid brain storm optimization and large neighborhood search algorithm (BSO-LNS) are designed to solve this problem. The experimental results show that the proposed BSO-LNS algorithm is superior to peer competitors. The optimized routes are easier to obtain the global optima, which is suitable for solving the urban distribution problem under such complex road conditions.
Access provided by Autonomous University of Puebla. Download conference paper PDF
Similar content being viewed by others
Keywords
1 Introduction
As an essential part of the last-mile distribution in the logistics chain, urban distribution plays a significant role in the entire supply chain. With the increasing prominence of urban governance problems, the role of urban distribution has become more prominent. Urban distribution is an important part of the Vehicle Routing Problem (VRP). Since Solomon and Desrosiers [1] put forward the concept of the time window in VRP, there is increasing research on Vehicle Routing Problem With Time Windows (VRPTW). Furthermore, Jabali [2] proposed the concepts of the soft time window and hard time window, and introduced the penalty function into the objective function to solve the VRPTW, thus giving birth to considerable research on urban distribution [3,4,5,6,7]. At the present stage, with the acceleration of the urban process, the road traffic conditions are becoming more and more complex, which puts forward higher requirements for urban distribution. The traditional path planning represented by Euclidean distance can no longer meet the current distribution demand. At this stage, urban distribution needs to consider the impact of road conditions and develop a more efficient algorithm to solve the problem of urban distribution better in reality.
In recent years, there has been more research on real-time road conditions. Some scholars consider the dynamics of travel time through the system’s design to receive real-time road network information in the distribution process, automatically adjust the distribution route and upload it to the distribution driver [8]. Thanks to the development of big data collection technology, obtaining historical road condition data is no longer challenging. We can collect real-time road condition information in the process of a vehicle driving through the electronic map platform [9]. By collecting road condition data in a specific time range, the designed algorithm is used to predict the driving speed of each road section [10] to realize the route change. As the problem becomes more and more complex, some scholars choose to design a more efficient algorithm [11] through reasonable planning of the departure time of each car to avoid congested roads [12] effectively.
In this paper, we use crawler technology to obtain the real travel time through Amap API and choose a hybrid algorithm (BSO-LNS) that combines brainstorming optimization algorithm (BSO) and large neighborhood search algorithm (LNS) to solve this kind of distribution optimization problem. The large neighborhood search algorithm is an excellent local search algorithm, which is proposed by Shaw [13] and is often used to solve VRPTW. Although the brainstorming algorithm is relatively young, it has received widespread attention since it was proposed by Shi [14] in 2011, and it has also been used to solve the VRPTW in recent years. However, few papers use BSO alone to solve VRPTW [15, 16], and more often, they are hybrids with other algorithms [17,18,19,20], all achieving better results than BSO algorithm.
The next section of this paper is organized as follows. Section 2 focuses on the basic process of combining the BSO and the LNS algorithm, Sect. 3 develops a VRPTW model to find the shortest total time spent, Sect. 4 gives the comparison results of the experiments, and the last section is used to conclude and look ahead.
2 BSO-LNS for VRPTW
2.1 Problem Description
Based on real-time road conditions, the urban distribution problem can be described as follows: a department store distribution center located in an urban area needs to deliver goods to several supermarkets in the surrounding area, and the geographic location information of the distribution point can be obtained from Amap, the number of goods required to be delivered by each supermarket on that day is prepared by the distribution center at least one day in advance, and the vehicles loaded with their respective responsibilities for the distribution of supermarkets set off from the distribution center toward the planned route, when arriving before the left time window of supermarkets, they need to wait until the service start time to unload the goods, and if they exceed the right time window, they will be penalized in the target function. At the same time, under the influence of considering the actual road conditions, the constant speed of each vehicle and the distance between the two is no longer assumed here to be counted as the Euclidean distance, still, the passage time and distance between the two are obtained in real-time through Amap, the corresponding passage time and distance matrix is obtained, aiming for the optimized delivery solution with the least total driving time to be closer to the actual delivery scenario under the urban congestion environment. In addition, the following assumptions are made for the problem to be solved.
-
(1)
Each vehicle serves only one route, each node can only be served once by one vehicle, the vehicle type is the same and the load capacity is known, the total number of vehicles, the maximum mileage is not limited.
-
(2)
The vehicle departs from the distribution center and finally returns to the distribution center within the time window.
2.2 Model Building
The VRPTW model considering the road conditions is constructed as follows:
The variables used in the model are shown in Table 1.
In the model, (1) is the objective function, which indicates the minimum total vehicle travel time and penalty cost for late arrival and overloading [17]; the constraint (2) indicates that each customer point can only be distributed by one vehicle; constraint (3) (4) (5) indicates that the input and output of distribution vehicles must satisfy the flow balance constraints; constraint (6) indicates that each vehicle starts from the distribution center and returns to the distribution center within the time window of the distribution center after completing the distribution; constraint (7) denotes the corresponding 0–1 constraint.
2.3 Coding Analysis
In this paper, integer coding is used for distribution schemes to code individuals. To indicate simplicity, if there are now nine supermarkets to be delivered and there are at most three vans available in the distribution center at present, the individual codable schemes can be roughly divided into three cases according to the number of vehicles used.
-
(1)
If three vehicles are dispatched to perform distribution tasks at the same time, one possible way for an individual to behave is as Fig. 1. Where numbers 1–9 denote supermarkets to be delivered, 10 and 11 denote distribution centers. Then, from Fig. 1, it can be seen that distribution centers 10 and 11 divide all individuals into 3 distribution routes and the distribution scheme can be expressed as follows, where 0 denotes the distribution center.
Distribution route 1: \(\displaystyle 0\rightarrow 1\rightarrow 3\rightarrow 5\rightarrow 6\rightarrow 0\)
Distribution route 2: \(\displaystyle 0\rightarrow 2\rightarrow 7\rightarrow 9\rightarrow 0\)
Distribution route 3: \(\displaystyle 0\rightarrow 4\rightarrow 8\rightarrow 0\)
-
(2)
If only two vehicles are assigned to the distribution task, one possible representation of the individual is as Fig. 2 Then, as can be seen from the Fig. 2, the distribution scheme is expressed as follows.
Distribution route 1: \(\displaystyle 0\rightarrow 1\rightarrow 3\rightarrow 5\rightarrow 6\rightarrow 0\)
Distribution route 2: \(\displaystyle 0\rightarrow 2\rightarrow 7\rightarrow 9\rightarrow 8\rightarrow 4\rightarrow 0\)
-
(3)
If only 1 vehicle is assigned to the distribution task, one possible way for an individual to behave is as Fig. 3 Then, as can be seen from the Fig. 3, the distribution scheme is as follows.
Distribution route: \(\displaystyle 0\rightarrow 3\rightarrow 5\rightarrow 6\rightarrow 1\rightarrow 2\rightarrow 7\rightarrow 9\rightarrow 8\rightarrow 4\rightarrow 0\)
From the above coding method, it can be seen that if the number of supermarkets to be delivered is N and the distribution center can arrange at most K vehicles for delivery, then the individual coding can be expressed as a permutation of \(\displaystyle N + K - 1\) numbers. Next, a population consisting of individuals according to the above encoding can be randomly generated. The fitness function chosen for this algorithm is the reciprocal of the objective function value.
3 Brain Storm Optimization with Large Neighborhood Search
3.1 Brain Storm Optimization
Inspired by the brainstorming session, an act of human brainstorming and bursting with creative inspiration, the brainstorming optimization algorithm was first proposed by shi [14] in 2011. The algorithm received much attention once it was proposed because it has the advantages of simple structure and few hyperparameters, which are ideal for solving high-dimensional multi-peak problems.
The basic idea of the BSO algorithm is to map each person’s idea to each individual in the population and represent it as a feasible solution in the problem-solution set. The specific steps are as follows:
Step 1: Random initialization. Generate n individuals as the initial solution for the population. Step 2: Evaluation. The fitness function values are calculated for these n individuals. Step 3: Clustering. The initially generated populations are clustered and grouped into m categories using the K-means method. And each individual in these m categories is ranked according to the fitness function value, and the best individual in each category is selected as the class center. Step 4: Generate new individuals. The generated new individuals follow the Eqs. (8) and (9) are updated, and the better individuals among them are saved. Step 5: Update the population. Determine whether the iteration termination condition is satisfied. If not, continue iterating and updating until the loop termination condition is satisfied.
where \(\displaystyle f(\mu ,\sigma )\) is the normal distribution function, \(\displaystyle \log sig\) is the logarithm of the sigmoid, and \(\displaystyle max\_iter\) and \(\displaystyle cur\_iter\) are the maximum number of iterations and the current number of iterations.
3.2 Large Neighborhood Search
Large Neighborhood Search(LNS) is an algorithm that uses two core ideas, “destroy” and “repair” [13]. The two core ideas of LNS are “destroy” and “repair”, which simply means that the destroy operator destroys some individuals in the current solution, and then the repair operator is used to repair the destroyed solution. The advantage is that after destroying and repairing, we can get the full ordering of the initial solution and traverse the solution space of more problems.
The destroy steps are as follows:
Step 1: Firstly, we construct two sets, one is the set S for storing customers of distribution routes, and the other is the set V for temporarily storing removed customers. Step 2: First select a customer i from the set S at random and deposit it in the set V. Step 3: Choose any customer j from the set V, and then calculate the correlation between the remaining customers in the set S (denoted as \(\displaystyle S'\)) and customer j are calculated separately, and then sorted according to the relevance from largest to smallest, and finally according to the formula \(\displaystyle {\rm int} (ran{d^D} \cdot S')\) to decide the next customer to move out, the general value of D between 5 and 20, used to control the value is not exactly the way to maximize relevance. This process is repeated until the number of customers removed reaches a predetermined value.
The repair steps are as follows:
Step 1: Each insertable customer has an uncertain number of insertion positions, and the fitness difference is calculated for each possible case and the solution after being destroyed, and recorded. Step 2: Sort the fitness difference from largest to smallest, choose the insertion position with the largest difference to insert the customer back, and repeat the process until all the removed customers are inserted back.
3.3 BSO-LNS
The basic idea of combining BSO and LNS algorithm is that after BSO performs the individual update operation, it selects some of the worse individuals to “destroy” and “repair” according to the fitness so that the selected solutions are at least no worse than the original ones. Finally, the two parts of individuals are merged and iterated until the end of the cycle. More details are shown in Algorithm 1.
4 Experiments
4.1 Experimental Description
The data used in this experiment are provided by a distribution company, as shown in Table 2 and Table 3 (the contents not listed in the table are the same as Table 2.), which represent the order data of two days, respectively, where node 1 denotes the distribution center and nodes 2 to node 21 denote the supermarkets to be delivered, and the delivery vehicles are known to have a capacity of 7 tons, allowing a maximum of 10 vehicles for delivery. All experiments were conducted using MATLAB (R2018b) on an Intel(R) Core(TM) i7-8565U CPU @ 1.80 GHz with 8.00 GB of RAM.
4.2 Experimental Setup and Analysis of Results
In order to study the effect of road conditions on distribution, three experiments were carried out. In Experiment 1 and Experiment 2, the asymmetric passage time matrices of vehicles between nodes were obtained from AMap via Python program at 6:00 pm on 5.28 and 6.10, respectively, under the scenario of considering road conditions, and the acquisition was set to consider road conditions; Experiment 3, on the other hand, did not consider road conditions, but used the traditional straight-line distance for calculation.
Meanwhile, to better reflect the performance of the BSO-LNS algorithm, the original BSO, GA-LNS and PSO-LNS algorithms are used for comparison in each experiment, and the common parameter settings for these experiments are shown in Table 4. The parameters in the BSO algorithm are set as follows: \(\displaystyle m=5, p1=0.1, p2=0.5, p3=0.5, p4=0.3, p5=0.2\). The parameters in the GA algorithm are set as follows: \(\displaystyle pc=0.9, pm=0.05\). The parameters in the PSO algorithm are set as follows: \(\displaystyle c1=1.5,c2=2.0,w=1\).
We run the four algorithms each 10 times for each experiment, and show the results in Table 5. From Table 5, Fig. 4(b), Fig. 5(b) and Fig. 6(b), it can be seen that in the three experiments, the solution obtained by the BSO-LNS algorithm is the smallest and requires only a small number of iterations to converge to the optimal solution, and the variance of the results of the multiple experiments is 0 or very close to 0. This indicates that the performance and robustness of the BSO-LNS algorithm are very good, and compared with GA and PSO, the BSO is more suitable to be mixed with LNS algorithm to solve VRPTW.
Many experiments have found that the total delivery time of Experiment 2 is higher than that of Experiment 1, which shows that the road conditions under Experiment 2 conditions are more congested than Experiment 1, indicating that road conditions have an impact on urban distribution efficiency. The optimal solution of Experiment 3 is very different from Experiment 2, and combined with Fig. 5(a) and Fig. 6(a), BSO-LNS only needs to arrange 4 vehicles in Experiment 2, while the same distribution data needs to arrange 6 vehicles in Experiment 3, which shows that the traditional calculation of straight-line distance without considering road conditions does not have great reference significance for distribution in real scenarios.
From Table 6, it can be found that the solution obtained by the original BSO algorithm in Experiment 1 will have the situation that the actual vehicle load exceeds the rated vehicle load, such as route \(\displaystyle 0\rightarrow 16\rightarrow 10\rightarrow 1\rightarrow 8\rightarrow 0\) is a violation of the loading capacity constraint (the maximum vehicle load is 7 tons), which is undesirable in real life. This can be avoided by mixing LNS in the BSO algorithm, which makes the global search and local search capability of the hybrid algorithm further enhanced.
5 Conclusion
In this paper, based on the real time road conditions, we abandon the traditional VRPTW, which is often calculated by the straight line distance between two points and assuming a constant speed, and use a web crawler to automatically obtain the actual passage time of vehicles between two points from AMap. The efficient hybrid BSO-LNS algorithm is used for the solution and the results are compared with PSO-LNS, GA-LNS and the original BSO algorithm. The obtained results are better than the other three algorithms and are more robust. The experimental results also show that the impact on realistic urban distribution is significant in the case of considering road conditions and not considering road conditions. In future work, we will consider acquiring more real-time road condition data and taking travel time dynamics into account with time series prediction.
References
Solomon, M.M., Desrosiers, J.: Survey papertime window constrained routing and scheduling problems. Transp. Sci. 22(1), 1–13 (1988)
Jabali, O., Leus, R., Van Woensel, T., De Kok, T.: Self-imposed time windows in vehicle routing problems. Or Spectrum 37(2), 331–352 (2015)
Berov, T.D.: A vehicle routing planning system for goods distribution in urban areas using google maps and genetic algorithm. Int. J. Traffic Transp. Eng. 6(2), 159–167 (2016)
Liu, J., Hu, X., Chen, J., Chen, X., Wen, X.: Research on urban distribution optimization under point-based billing on simulated annealing with variable neighborhood. J. Uncertain Syst. 15(01), 2250005 (2022)
Wang, J., Pu, K., Shen, Z.: Urban distribution vehicle routing optimization and empirical analysis under the influence of carbon trading policy. In: 2018 3rd International Conference on Politics, Economics and Law (ICPEL 2018), pp. 411–416. Atlantis Press (2018)
Zheng, W., Wang, Z., Sun, L.: Collaborative vehicle routing problem in the urban ring logistics network under the Covid-19 epidemic. Math. Probl. Eng. 2021 (2021)
Leng, K., Li, S.: Distribution path optimization for intelligent logistics vehicles of urban rail transportation using VRP optimization model. IEEE Trans. Intell. Transp. Syst. 23(2), 1661–1669 (2021)
Taniguchi, E., Shimamoto, H.: Intelligent transportation system based dynamic vehicle routing and scheduling with variable travel times. Transp. Res. Part C Emerg. Technol. 12(3–4), 235–250 (2004)
Kritzinger, S., Doerner, K.F., Hartl, R.F., Kiechle, G.Ÿ, Stadler, H., Manohar, S.S.: Using traffic information for time-dependent vehicle routing. Procedia-Soc. Behav. Sci. 39, 217–229 (2012)
Falek, A.M., Gallais, A., Pelsser, C., Julien, S., Theoleyre, F.: To re-route, or not to re-route: impact of real-time re-routing in urban road networks. J. Intell. Transp. Syst. 26(2), 198–212 (2022)
Yu, G., Yang, Y.: Dynamic routing with real-time traffic information. Oper. Res. 19(4), 1033–1058 (2019)
Liu, C., Kou, G., Zhou, X., Peng, Y., Sheng, H., Alsaadi, F.E.: Time-dependent vehicle routing problem with time windows of city logistics with a congestion avoidance approach. Knowl.-Based Syst. 188, 104813 (2020)
Shaw, P.: A new local search algorithm providing high quality solutions to vehicle routing problems, p. 46. APES Group, Department of Computer Science, University of Strathclyde, Glasgow, Scotland, UK (1997)
Shi, Y.: Brain storm optimization algorithm. In: Tan, Y., Shi, Y., Chai, Y., Wang, G. (eds.) ICSI 2011. LNCS, vol. 6728, pp. 303–309. Springer, Heidelberg (2011). https://doi.org/10.1007/978-3-642-21515-5_36
Ke, L.: A brain storm optimization approach for the cumulative capacitated vehicle routing problem. Memetic Comput. 10(4), 411–421 (2018)
Song, M.X., Li, J.Q., Han, Y.Y., Zheng, Z.X.: Solving the vehicle routing problem with time window by using an improved brain strom optimization. In: 2019 IEEE Congress on Evolutionary Computation (CEC), pp. 1306–1313. IEEE (2019)
Wu, L., He, Z., Chen, Y., Wu, D., Cui, J.: Brainstorming-based ant colony optimization for vehicle routing with soft time windows. IEEE Access 7, 19643–19652 (2019)
Shen, Y., Liu, M., Yang, J., Shi, Y., Middendorf, M.: A hybrid swarm intelligence algorithm for vehicle routing problem with time windows. IEEE Access 8, 93882–93893 (2020)
Liang, X., Yang, J., Xiang, Z., Chen, Y.: Two-stage brain storm optimization-simulated annealing algorithm for constrained vehicle routing problem. In: 2021 3rd International Academic Exchange Conference on Science and Technology Innovation (IAECST), pp. 1357–1362. IEEE (2021)
Liu, M., Shen, Y., Zhao, Q., Shi, Y.: A hybrid BSO-ACS algorithm for vehicle routing problem with time windows on road networks. In: 2020 IEEE Congress on Evolutionary Computation (CEC), pp. 1–8. IEEE (2020)
Acknowledgment
The work described in this paper was supported by Natural Science Foundation of Guangdong Province (Grant No. 2020A1515010749), Key Research Foundation of Higher Education of Guangdong Provincial Education Bureau (Grant No. 2019KZDXM030), University Innovation Team Project of Guangdong Province (Grant No. 2021WCXTD002).
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this paper
Cite this paper
Liu, J., Guo, N., Xue, B. (2023). Brainstorming-Based Large Scale Neighborhood Search for Vehicle Routing with Real Travel Time. In: Xu, Y., Yan, H., Teng, H., Cai, J., Li, J. (eds) Machine Learning for Cyber Security. ML4CS 2022. Lecture Notes in Computer Science, vol 13657. Springer, Cham. https://doi.org/10.1007/978-3-031-20102-8_28
Download citation
DOI: https://doi.org/10.1007/978-3-031-20102-8_28
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-031-20101-1
Online ISBN: 978-3-031-20102-8
eBook Packages: Computer ScienceComputer Science (R0)