Abstract
In this paper, the Capacitated Vehicle Routing Problem (CVRP) of multi-depot express delivery is investigated based on the actual express delivery business in Beijing and driving intention-based road network. An Adaptive Simulated Annealing and Artificial Fish Swarm Algorithm (A-SAAFSA) is proposed to solve the CVRP. The basic ideas are use a “certainty” probability to accept the worst solution through the Metropolis criterion in the search process, and a strategy of adjusting the swimming direction to avoid falling into the local optimal solution. Moreover, an adaptive visual strategy, which adjusts the visual range adaptively in real time according to the current solution quality, is used to ensure the efficient searching and accuracy of the algorithm. Experimental results show that the A-SAAFSA algorithm outperforms four well-known algorithms, namely simulated annealing and artificial fish swarm algorithm, artificial fish swarm algorithm, simulated annealing algorithm, and genetic algorithm.
Keywords
Introduction
The concept of express delivery was first born in the United States. It delivers a certain number of goods to customers at the right time in the form of distribution, realizing the seamless connection between production and consumption, and meeting customers’ consumption needs to the greatest extent. In recent years, with the booming of the Internet e-commerce industry, the express delivery business also develops rapidly, and express delivery companies have sprung up. In order to improve customer satisfaction and the competitiveness of enterprises under the premise of reducing the cost of distribution, more and more subject experts and enterprise operators pay attention to the problem of route optimization of express delivery.
The routing problem of express delivery is an important application field of vehicle routing problem (VRP). It means that through the reasonable arrangement of vehicles and routes, the express goods can be delivered to the customer site in an optimal way, so that both the delivery party and the receiving party can achieve the maximum benefits. VRP was first introduced by Dantzig and Ramser in 1959 [1]. It can be described as having one or more distribution centers and a number of scattered customer sites in a distribution network. Given the constraints, a vehicle and its corresponding routes are planned and calculated to minimize the target cost. VRP has attracted the attention of experts and scholars in many fields such as operations research, applied mathematics, logistics science, computer application, and enterprise management [2]. According to the actual constraints and the number of distribution centers, VRP can be divided into several sub-problems, which includes Capacitated Vehicle Routing Problem (CVRP), Vehicle Routing Problem with Time Windows (VRPTW), Vehicle Routing Problem with Pickup and Delivery (VRPPD), Multiple Depot Vehicle Routing Problem (MDVRP), and others [34]. Among them, CVRP mainly focuses on the limitation of vehicle overloading [5, 6, 7, 8], and VRPTW mainly focuses on the constraints of delivery time [9, 10, 11, 12]. These two sub-problems have a wide range of applications in practice, especially in express delivery business.
The combinatorial optimization problem is one in which the optimal solution is selected from a finite number of discrete states by mathematical methods in the form of objective function, constraint conditions and domain of definition. VRP is a typical combinatorial optimization problem. The algorithms used to solve such problems mainly evolving through three stages: accurate algorithms in the 1960s–1970s [13, 14], classic heuristic algorithms in the 1970s–1980s [11, 12], and intelligent heuristic algorithms [8, 9, 10, 15, 16, 17, 18, 19, 20, 21] after the 1980s. The early accurate algorithm can only solve problems with small-scale data; and the efficiency of classical heuristic algorithm cannot be guaranteed. Nowadays, the fast-developing intelligent heuristic algorithm approach has great advantages in solving large-scale complex problems. It can find a satisfactory solution that is close to the optimal solution at a faster speed. However, there is still a lot of room for improvement in the field of express delivery.
In this paper a novel and effective adaptive simulated annealing and artificial fish swarm algorithm (A-SAAFSA) is proposed to solve VRP in express delivery business. The main contributions are summarized as follows. Firstly, a basic A-SAAFSA algorithm is formulated for express delivery business. Secondly, a novel adaptive field of view strategy for the A-SAAFSA algorithm is defined and combined with the Metropolis criterion in SA to improve the accuracy and search efficiency of artificial fish. Thirdly, the model is supplemented and discussed from three different perspectives of company operation, customers, and drivers. The A-SAAFSA algorithm is applied to the distribution of express delivery business in Chaoyang District of Beijing. Results show that the proposed algorithm performs better than current Simulated Annealing and Artificial Fish Swarm Algorithm (SA-AFSA), Artificial Fish Swarm Algorithm (AFSA), Simulated Annealing Algorithm (SA), and Genetic Algorithm (GA).
The rest of this paper is arranged as follows. In Section 2, the related work of intelligent heuristic algorithm is introduced. In Section 3, the CVRP model is formulated according to the actual situation of express delivery business. In Section 4, based on the idea of AFSA and SA, an adaptive solution algorithm A-SAAFSA algorithm is proposed. In Section 5, the A-SAAFSA algorithm is used to optimize the model, and the effectiveness of the algorithm is verified by comparing to other four algorithms. The model is further supplemented from different optimization perspectives. In Section 6, the work of this paper is summarized.
The related work
Existing popular intelligent heuristic algorithms mainly include GA [8, 17, 18, 19, 21], SA [10, 20], and ACA [9, 15, 16, 21]. GA is mainly used to solve the knapsack problem and traveling salesman problem (TSP), SA is mainly used to solve the TSP and workshop scheduling problem, and ACA is mainly used for path planning of robots and unmanned aerial vehicles Intelligent heuristic algorithms have a wide range of applications in solving VRP. Scholars often try to integrate multiple algorithms to improve the performance of the algorithm. Davoodi et al. combined artificial bee colony algorithm with GA to effectively improve the performance of solving VRP by detecting bees [22]. Zidi et al. combined SA and tabu search algorithm to solve the ambulance path problem, and verified the superiority of the algorithm through comparative experiments [23]. Chen et al. proposed the IACATS algorithm, which combines the local search ability of tabu search algorithm with the global search ability of ACA to realize cold chain logistics distribution [24].
In 2002, Li Xiaolei et al. put forward a new bionic optimization algorithm-AFSA by observing the swimming and foraging behavior of fish swarm on the basis of studying the intelligent behavior of animal swarm [25]. The algorithm constructs artificial fish swarm according to the characteristics of fish swarm in real water area, and imitates the behavior of fish swarm to find the swimming strategy of the place with the highest food concentration through following, preying and swarming behavior. The algorithm changes the swimming trend of artificial fish in real time according to the quality of the current solution, and has better search and adjustment capabilities. In recent years, AFSA performs well and has been widely applied, such as, crowd evacuation in public places [26], vibration control of floating wind turbine [27], power distribution of communication system [28], and haze weather forecast [29]. However, when this algorithm is used to solve VRP [30, 31, 32, 33], it may lead to no considering of the solution strategy after falling into the local optimal solution. It also does not have an effective method for adjusting the visual field.
The A-SAAFSA algorithm proposed in this paper combines AFSA and SA to solve VRP in express delivery. The algorithm effectively adjusts the global search ability of artificial fish through adaptive vision strategy, and further jumps out of the local optimal solution through SA. The performance and convergence speed of the algorithm are further verified by comparative experiments.
Model of VRP in express delivery business
Problem description
According to the actual situation of express delivery in Beijing, this paper mainly studies CVRP with only one distribution center and with capacity constraints of vehicles. Figure 1 gives an example of this type of the problem, where the blue square 0 represents the distribution center, and the red circles 1–10 represent the customer sites. Through the planning and calculation of vehicles and routes, three vehicles can be selected to deliver the goods to achieve the minimum target cost. The specific delivery route of each vehicle is shown in Table 1.
Arrangement of vehicles and routes
Arrangement of vehicles and routes
An example of CVRP.
In the light of the actual delivery situation of a given express business in Chaoyang District of Beijing, this paper optimizes the delivery vehicles and routes satisfying the specific needs of customers under the given constraints to minimize the total cost. As shown in Fig. 2, the blue square 0 represents the distribution center, and the red circles 1–27 represent the express customer sites. Different from the previous example, this example shows that in the actual express delivery, the delivery route cannot be idealized as a simple straight path, which will lead to the wrong estimation of the distance and the wrong planning of vehicles and routes. Therefore, in the actual calculation of this paper, the actual geographic route of Google Maps is used as the basic route of VRP, model and optimize the express delivery problem according to the actual scene.
Distribution of express business.
Based on the description in the previous section, the goal of VRP is to provide the company’s operation manager with a more optimized vehicle allocation plan, thereby maximizing profits. In order to restore the specific delivery characteristics of urban express delivery business, a CVRP model with the total operating cost as the optimization objective is established.
Variables are divided into three categories and defined as follows:
Variables related to vehicles:
Variables related to distribution centers and customer sites:
Variables related to vehicles, distribution center and customer sites:
From the perspective of company operation, the optimization goal
where Eq. (2) ensures that each distribution task takes the distribution center as the starting and ending site; Eq. (3) ensures that each customer site will be visited one and only one time; Eq. (4) ensures that the total demand of all customer sites distributed by each vehicle does not exceed its maximum cargo capacity.
Urban roads are intricate and road networks are scattered. We abandon the method of expressing the route directly using simple direct connections between customer sites. Instead, the actual geographic route of Google Maps is used as the basic route for VRP. As a result, the choice of the actual route is particularly important. However, it is too complicated to use all the possible routes between customer sites in the planning. In the actual logistics and distribution, every driver wants to choose a route with lower fuel consumption and shorter traveling time. They often make conditional choices of actual driving routes based on their own driving experience. Since the vehicles for logistics distribution are mainly heavy vehicles, the requirements for road conditions are relatively strict, and it is of no practical significance for the roads that do not meet the driving conditions even if the distance is shorter. According to the restrictions on heavy vehicles in Chaoyang District and Tongzhou District of Beijing (traffic time limit is 6:00–23:00) [34, 35], we only design the road for the non-restricted time to simplify the road network with the following principles:
Do not consider roads, road bridges, and road tunnels with a road height limit of less than 4 meters; Do not consider small lanes with lower road grades; For roads that pass through special area zones with traffic controls such as hospitals and schools, if there are other alternatives, these special zones will not be considered.
Based on the above analysis, the structure between the entire road network is optimized according to the driver’s driving intention and actual experience. Roads that are not suitable for heavy vehicles are also be discarded. By simplifying the road network, the search time for effective paths can be reduced, and the searching efficiency can be improved.
Description of AFSA
Given an area of water, a fish often finds the region with the most food by swimming in the way of following and swarming. The idea of AFSA is to simulate the preying, following and swarming behavior of fish swarm by constructing artificial fish according to the characteristics of fish survival methods, and to realize the global search for the optimal solution [25].
The state of a single artificial fish can be recorded as a vector
In order to meet the scenario where the greater the food concentration, the more the fish swarm gathers, this paper transforms the minimization problem into a maximization problem, so the food concentration
where
As shown in Fig. 3, the current state of the artificial fish is recorded as
Moving strategy of artificial fish.
AFSA mainly summarizes the four basic types of behavior of fish swarm, namely, the following behavior, preying behavior, swarming behavior, and random behavior.
Assuming that the total number of artificial fishes in the field of view Visual of the artificial fish
where rand is a random number between 0 and 1.
Assuming that the food concentration of the artificial fish in the current state
Assuming that the total number of artificial fish in the current field of view Visual is
The random behavior of the artificial fish is to randomly select a state within the field of view Visual and move one step in the direction according to Eq. (9).
During the execution of the algorithm, the artificial fish will select one of the above four types of behavior according to its own state and current environment. The selection process is shown in Algorithm 1.
The artificial fish searches for the maximum value of food concentration
SA is a stochastic search optimization algorithm based on probability, which follows the solid annealing process. In the annealing process, the Metropolis criterion is used to accept the solution which is worse than the current solution with an acceptance probability. The acceptance probability is formulated in Eq. (10).
where
where
In AFSA, the field of view Visual of the artificial fish is a fixed value, which is easy to fall into a local optimal solution. In order to improve the optimization accuracy and diversity of the algorithm, this paper defines the following adaptive view function:
where
Based on the above description of SA and AFSA, we propose our A-SAAFSA algorithm, which combines AFSA and SA. The purpose is to ensure that the artificial fish can find the maximum of food concentration through the four basic behavior types: following, preying, swarming and random. In each iteration of the optimization process, the artificial fish accepts the state with lower food concentration with an acceptance probability as shown in Eq. (10), and then jumps out of the local optimal solution. In order to increase the optimization accuracy of the algorithm, an adaptive field of view function is proposed as shown in Eq. (12). According to the average and maximum value of food concentration in the current iteration, the field of view is adjusted in real time, which improves the global search ability of the algorithm. This is shown in Algorithm 4.
The procedure of the algorithm is shown in Fig. 4.
Experimental analysis and discussion
The actual location data in this paper comes from Google Maps in Chaoyang District of Beijing. The experimental test environment is: Intel(R) Core(TM) i5 3.70 GHz processor, Windows10 operating system, and the programming environment used is MATLAB R2015b version.
Experimental result
With reference to the actual market delivery price, the fuel consumption price and the vehicle load information of the express delivery business, the specific parameters of CVRP model of express delivery business are set as in Table 2, and the parameters of the A-SAAFSA algorithm proposed in this paper are set as Table 3. According to the actual location information and road network information of a given express business in Chaoyang District of Beijing, the model is calculated 10 times with the A-SAAFSA algorithm. Through the comparison of the computed results, the vehicle distribution scheme with the best result is selected. The total cost of the delivery plan is 2,447.55 CNY for the setting in Tables 2 and 3. The specific arrangement of vehicles and routes is shown in Table 4, and the specific delivery routes are shown in Fig. 5.
Parameters of express delivery business model
Parameters of express delivery business model
Parameters of A-SAAFSA
Result of A-SAAFSA
Procedure of A-SAAFSA.
Delivery route of the vehicle.
In order to better understand the solution performance of the algorithm, the iterative convergence curve of A-SAAFSA is shown in Fig. 6 according to the above-mentioned distribution scheme to further measure its effectiveness. The iterative convergence curve shows that in the first 30 iterations, the optimization curve of artificial fish swarm has a steep downward trend and a faster convergence speed. When the number of iterations increases, the optimization curve tends to be leveled off. It enters a stable state after the 208th iteration, and converges to the optimal solution of 2447.55.
Iterative convergence curve of A-SAAFSA.
In order to test the effectiveness of A-SAAFSA algorithm, four algorithms of SA-AFSA, AFSA, GA, and SA are used for comparative experiments, and the performance of the proposed algorithm is studied through different tests.
Firstly, the effectiveness of the proposed adaptive visual function is verified. Under the same experimental environment and parameters, the visual range of the SA-AFSA algorithm is set to a fixed value of 16, and perform 10 operations on the established model. Through the comparison of the calculation results, the vehicle distribution scheme with the best result is selected. The total cost of the delivery plan is 2,45.45 CNY. The specific arrangements of vehicles and routes are shown in Table 5.
Result of SA-AFSA
Result of SA-AFSA
By comparing the result of the A-SAAFSA algorithm in Table 4 with that of the SA-AFSA algorithm, it can be seen that the former one gives a better result. Both algorithms use 6 vehicles for the delivery, however the A-SAAFSA algorithm is better than the SA-AFSA algorithm in fuel consumption. When the artificial fish is close to the global optimal solution, if the field of view is fixed, the searching accuracy cannot be effectively controlled, and the optimal solution will be missed. The proposed adaptive field of view function can adaptively change the field of view of the artificial fish according to the quality of the current solution. This improves the searching performance of the algorithm.
The iterative convergence curves of the A-SAAFSA algorithm and the SA-AFSA algorithm are shown in Fig. 7. The iterative convergence curves of the two algorithms are similar, but the SA-AFSA algorithm has reached the convergence state after the 82nd generation, while the A-SAAFSA algorithm only finds the local optimal solution in the 82nd generation. Obviously, due to the application of the adaptive field of view function, the artificial fish constantly tries to explore the local optimal solution. It finally converges near the 200th generation and finds a better solution than the SA-AFSA algorithm does.
Iterative convergence curve of A-SAAFSA and SA-AFSA.
To further understand the performance of the A-SAAFSA algorithm, we continue to compare it with AFSA, GA and SA in the same experimental setting. The total cost of the distribution schemes of the three algorithms are shown in Table 6, and the specific arrangements of vehicles and routes are shown in Table 7.
Comparison of the total cost
Result of AFSA
Result of GA
Result of SA
Figure 8 shows the results of the four algorithms, A-SAAFSA, AFSA, GA, and SA. It shows that the total cost of SA is slightly lower than the other two algorithms and is higher than that of the A-SAAFSA algorithm. From the specific arrangement of vehicles and routes used in the paper, it can be seen that the three algorithms all use seven vehicles for the distribution, among which AFSA and SA both use a single car to distribute customer site 17, which virtually increases the total cost and cannot get the optimal solution. The comparison between the iterative convergence curve of the A-SAAFSA algorithm and the other three algorithms is shown in Fig. 8. The convergence speed of A-SAAFSA algorithm is faster than that of AFSA and GA, but the quality of the solution is obviously better than those of the two algorithms. Although the solution of SA is slightly better than that of AFSA and GA, the convergence speed is 2–3 times slower, and the optimal solution is still not found in the end.
Iterative convergence curve of A-SAAFSA/AFSA/GA/SA.
In view of the above analysis, the proposed A-SAAFSA algorithm has good convergence, and the effects of global optimization and local optimization are better.
The express delivery model established in Section 2.2 is only from the perspective of the company’s operation to pursue the lowest total cost. However, in the actual distribution process, drivers and customers are the key links of the distribution chain. For customers, some special products have extremely high requirements for the delivery time, such as fresh products or urgent items, so they hope that the total delivery time is the shortest. For drivers, with a fixed delivery salary, they hope that the total fuel consumption of delivery is the least. Therefore, the model is further supplemented according to different requirements of the target audiences.
From the perspective of customers
The optimization objective
where
With reference to the “2019 China Urban Traffic Report” [36], the speed value of the delivery vehicle is set as 20 km/h. Using the A-SAAFSA algorithm, the final distribution scheme is shown in Table 10. The scheme uses a total of 6 vehicles for delivery and takes an average of 2.45 hours.
The result from the perspective of customers
The optimization objective
where
With reference to the fuel consumption of heavy vehicles in Beijing, we calculate the fuel consumption by 0.3
Result from the perspective of drivers
Therefore, with the above-mentioned supplement to the express delivery model, different optimization models can be selected according to the requirement from different target audiences. For some special products, the model established from the perspective of customers is more time efficient. For fuel consumption, the model established from the perspective of drivers is more economical.
Based on the actual location and route information of Google Maps, combined with the actual delivery situation of a certain express service in Chaoyang District of Beijing, the A-SAAFSA algorithm is designed to solve the CVRP distribution model, which is established from the perspective of company operation. The experimental results show that the distribution plan obtained by A-SAAFSA algorithm realizes the distribution of 27 customer sites through 6 vehicles, and the total cost is 2,447.55 CNY. Compared with the other four intelligent algorithms, it is proved that the improved algorithm can accomplish the distribution task with less cost, and the algorithm convergence speed is faster and the solution accuracy is higher. However, there is still room for improvement in solving large-scale vehicle distribution problems. With the improvement of express delivery business, when the goods are delivered to the distribution site, the couriers need to sort and arrange the secondary delivery. The scope of secondary delivery is small, and mainly for residential and commercial districts with dense personnel, so it has important research value in the future development of express delivery.
Footnotes
Acknowledgments
We would gratefully acknowledge the support by the National Natural Science Foundation of China (NSFC) as the research program [grant numbers 61703270, 61803255, 62073071].
