1. Introduction
The rapid development of society and the improvement of people’s living standards have made people pursue a higher quality of life. As far as eating is concerned, it is no longer enough to just fill a belly, so the catering industry is also developing in a diversified direction. Fast food is a new kind of catering product, which is fast, convenient, nutritious, diversified and low in price. It is deeply loved by students, white-collar workers and other young people. The maturity of Internet technology has caused various industries to integrate differently with the Internet, which has sparked the upsurge of the emerging service of meal delivery. In particular in recent years, the meal industry has broken away from the budding period and officially entered the mature period, which has caused the number of meals to continue to rise. While the number of meal deliveries increases, the optimization of the meal delivery route has also received extensive attention and research from experts and scholars. For example, Li [
1], Yi [
2] and other related scholars have conducted research on this issue. The core of the meal delivery route problem is the research on the vehicle routing problem (VRP). Its concept was first proposed by Dantzig and Ramser [
3] in 1959. What they did has aroused academic researchers. More and more constraints are added to the basic VRP. For example, Yang [
4] et al. established a corresponding mathematical model for the multi-depot vehicle route problem, converted the multi-depot vehicle into a single vehicle parking area, and solved it with an improved Mosquito Host-Seeking Algorithm; Brandão [
5] proposed an iterative local search algorithm to solve the multi-depot open vehicle route problem. Most studies mainly aim at minimizing costs, but for the third-party logistics providers, they blindly aim at minimizing costs and do not consider customer satisfaction. They only want to obtain higher profits, which will lose customers. A lack of trust has caused the loss of customers. As a result, many scholars [
6,
7] began to study the multi-objective vehicle route problem that considers customer satisfaction and cost, but there are few studies on the actual application of the meal delivery route problem.
The Dial-a-Ride Problem (DARP) is a VRPPDTW variant [
8,
9,
10,
11], each transportation request is a combination of pickup at the origin node and drop-off at the destination node, and each request must be serviced by one vehicle. In order to improve the flexibility and convenience of urban transportation services, many scholars have studied this problem from different aspects. Philipp Hungerländer et al. [
12] studied the Improving Sharing Rates of a Dial-a-Ride Problem and proposed a large neighborhood search to solve it. The Selective Dial Ride Problem (SDARP) studied by Rist, Y et al. [
13] ignored travel costs compared to VRPPDTW, allowing requests to go unserviced, with the goal of maximizing the total number of pick-up and delivery requests for the service. An iterative algorithm based on combinatorial benders decomposition, novel variable-fixing technique and time discretization is proposed to solve SDARP with the extended fragment (EF) introduced. Experimental results show that the algorithm solves 11 previously unsolved instances in the existing benchmark of SDARP, and is superior to the previous state-of-the-art Logic-Based Benders Decomposition approach. Fu et al. [
14] studied the pickup and delivery problems with vehicle-synchronized en route transfers. A mixed-integer linear programming model (MILP) is established with the objective function of minimizing the weighted total cost of vehicle travel distance, customer waiting time, customer driving distance and vehicle transfer time, and a new set of constraints is proposed to track vehicle arrival time at each stop along the way. Vehicles are allowed to wait for passengers to be transferred at the transfer location for a maximum period of time. A two-stage greedy heuristic algorithm with a build phase and an improvement phase is designed. In the first phase, an initial solution for the PDP is constructed using an insertion heuristic. In the second phase, the initial PDP solution is iteratively improved by inserting transfer locations and re-assigning onboard passengers to vehicles. Yunlin Guan et al. [
15] proposed a customized bus service model (OECBSM-PMT) for one e-ticket for multi-travel passengers through customized buses (CBs) for passengers who need to travel multiple times in a short period of time. Amirreza Nickkar et al. [
16] studied the optimization model of demand responsive feeder transportation that provides passengers with temporary stops, and designed a meta-heuristic algorithm to solve it. Hua et al. [
17] studied the dynamic shared taxi problem of the on-demand shared taxi system, and divided the passenger request into three categories: onboard requests, scheduled requests and unscheduled requests, introduced the rescheduling ratio to make all drivers pick up passengers from the corresponding pick-up location and get off at the corresponding drop-off location within their time window, and designed a branch-and-price algorithm and the Lagrange relaxation algorithm to solve this problem. Fu et al. [
18] constructed a modular dial-up ride model that provides door-to-door service for passengers, or deviates vehicles from each other from the queue, drives at a lower cost, and allows passenger transfer en route before splitting to minimize the sum of vehicle travel costs and passenger service time, and designs a neighborhood search algorithm solution based on Steiner tree. Experimental results show that modular vehicle (MV) technology can save up to 52% of vehicle travel costs, 41% of passenger service time and 29% of total costs.
In the past, meal delivery was a one person, one ride, and fixed service for a certain food provider in China. This method is called TLSM in this article. This not only leads to an increase in useless distances, but also requires more riders, which is not conducive to reducing cost. After 2000, with the rise and popularization of Internet technology, the sharing economy began to emerge. A recent study [
19] shows, as a result of the complexity, sharing economy rules apply and create a scope of new possibilities, generally referred to as shared logistics. This refers to the general idea of sharing assets and services between various end users rather than owning or producing them. The general goal of shared logistics is to achieve better results and higher efficiency of logistics processes than it is possible to achieve when acting individually [
20]. Based on this, this paper proposes a SLSM. This method allows the rider form different logistics companies to provide service to multiple food providers at the same time, that is, the rider can serve another food provider not only after the delivery itinerary, but also during the delivery. The rise of shared logistics has added a new direction to the study of meal delivery issues. People have begun to add shared logistics factors to meal delivery. The SLSM in this article is also related to one of the modes, that is, the collaborative transportation mode [
5]. Regarded as reducing the overall route cost by reducing air transport by combining multiple shippers or carriers’ vehicles, related research [
21] also focuses on the cooperation and sharing of multiple interest entities. They share vehicle information, load, etc. [
22,
23,
24,
25]. Unlike coordinated transportation, the SLSM in this article only means that one third-party logistics provider’s vehicle can serve multiple food providers, so these food providers share, and the third-party logistics provider knows all the related vehicles information. Although there are many studies, few of these studies combine shared logistics and use them in the optimization of meal delivery routes. The articles are summarized in
Table 1.
In summary, most of the existing works focus only on reducing costs, and do not consider customer satisfaction. The emergence of the SLSM gives the chance to improve the operation of transportation and delivery, both on cost reduction and customer satisfaction. For the meal delivery routing problem, the introduction of SLSM is a new way to focus on both delivery costs and customer satisfaction.
This article belongs to the multi-objective meal delivery route optimization problem under the shared logistics mode. In this problem, we integrate shared logistics services and compare them with traditional logistics services, while considering the impact of customer satisfaction and cost on the entire meal delivery process, establish a corresponding multi-objective integer programming model. The improved Ant Lion Optimizer is used to solve the model, the effectiveness of the model and algorithm is verified through simulation experiments, and the two logistics services are compared and analyzed.
The main purpose of this paper is to introduce the shared logistics services mode (SLSM) into meal delivery problem, to help the third-party logistics providers to arrange vehicles in the multi-depot to pick up meals from multiple food providers and deliver them to customers. A multi-objective mathematical model and an improved Ant Lion Optimizer (IALO) are proposed. This research can help e-commerce platforms save logistics costs and meet customer needs.
The main contributions of this paper: (1) The SLSM is introduced into the operation of meal delivery problem to find a way to reduce cost and improve customer satisfaction. (2) A multi-objective mathematical model is built to address the operational problem. (3) An improved Ant Lion Optimizer is designed, which provides an efficient way to solve this kind of optimization problems.
The remainder of this paper is structured in four sections.
Section 2 presents a problem description and modeling;
Section 3 presents algorithm design;
Section 4 introduces case analysis; in
Section 5, the conclusion is provided.
3. Algorithm Design
The Ant Lion Optimizer (ALO) [
28] is a new type of swarm intelligence optimization algorithm proposed after the Artificial Bee Colony Algorithm, the Ant Colony Algorithm, Particle Swarm Optimization and the Genetic Algorithm. The realization process of the Ant Lion Optimizer mainly includes the random walk of the ants, the construction of the ant lion trap by the roulette method, the ants falling into the ant lion trap, the ant sliding to the ant lion, and the ant lion catching the ant and rebuilding the trap.
The multi-objective meal delivery problem considering shared logistics is an NP-hard problem. The current solution is mainly based on intelligent optimization algorithms, and Ant Lion Optimizer is a relatively novel algorithm proposed in 2015, inspired by ant lion larvae foraging behavior in nature has been successfully applied to various engineering fields such as WSN data collection [
29], antenna array synthesis [
30], photovoltaic parameter optimization [
31] and UAV path planning [
32]. Some studies have applied it to the optimization problem of the meal delivery route problem [
33]. Compared with other optimization algorithms, the ALO algorithm has the advantages of a simple structure, fewer parameters, and easy learning. However, the algorithm still has problems such as poor algorithm convergence and it is easy to fall into local optimality. In order to better apply ALO to the delivery route problem of meal delivery, the adaptive boundary adjustment strategy and dynamic weight coefficients are introduced into the Ant Lion Optimizer, and an Improved Ant Lion Optimizer (IALO) is designed. The introduction of an adaptive boundary adjustment strategy can reflect the difference in the ability of the surrounding ant lion, and balance the exploration and development capabilities of the algorithm; the introduction of dynamic weight coefficients improves the algorithm’s global search ability, so as to obtain the final solution. For the description of the standard Ant Lion Optimizer, refer to [
28]. This article focuses on the specific improvement of the Ant Lion Optimizer.
3.1. Adaptive Boundary Adjustment Strategy
Among them,
is the boundary shrinkage ratio. In order to balance the global search capability of the algorithm and distinguish the size of the ant lion’s ability to capture ants, this article uses an adaptive boundary adjustment strategy to modify it, as shown below:
where
m is the index of the fitness, which corresponds to the ant lions and the finesses are sorted from small to large;
is the number of ant lions, and
is the changing rate. In Equation (14), if
,
, the ant lion has the worst fitness, the boundary constriction ratio
will increases and the boundary for ants decreases. For the ant lion with the worst fitness, the range of the trap should be reduced and local exploitation ability should be improved. If
and
, the ant lion has the best fitness, the boundary constriction ratio
will decrease, and the boundary for ants increases. For the ant lion with the best fitness, the range of the trap should be expanded and global exploration ability should be improved.
3.2. The Location Update Dynamic Weight Coefficient
By sorting the fitness value of ant lion, the ant lion with the highest fitness value is selected as the elite ant lion, so the elite ant lion has a high probability to be selected as the roulette wheel to select the ant lion, resulting in the ants only wandering around the elite ant lion, as shown below:
To solve this problem, the dynamic weight coefficient is introduced into the ant position updating formula, which is improved as follows
In the formula, at the early stage of iteration, the roulette wheel chooses the weight coefficient of the ant lion to be large, so that ants can explore more areas. In the later stage, the weight coefficient of the elite ant lion increases gradually, which makes the ants develop in the best area, so as to improve the global search ability of the algorithm and jump out of the local best.
3.3. Algorithm Process
The implementation steps of IALO algorithm are as follows:
Step 1: Set IALO algorithm parameter values, including the maximum number of iterations , the number of ants and ant lions, the fitness function dimension , and the upper and lower limits of variables and .
Step 2: Initialize the positions of ants and ant lions randomly, calculate their respective fitness values and save the best values, and at the same time select the ant lion with the largest fitness value as the elite ant lion.
Step 3: Use the roulette method to optimize the selection of Ant lion, and update the values of and .
Step 4: Update the ant’s walking boundary according to the adaptive boundary adjustment strategy.
Step 5: The ants randomly walk around the ant lion.
Step 6: The ants keep getting close to the ant lion, and then the dynamic weight coefficient is introduced to update the position of the ant.
Step 7: After the ants are captured, compare with the elite ant lion at the current position, readjust the position of the elite ant lion, and update the best value. If the position of the ant lion exceeds the farthest boundary or , it will be processed as the farthest boundary.
Step 8: Determine whether the algorithm’s termination criterion is reached? If yes, go to step 9, otherwise go to step 3.
Step 9: The algorithm terminates and obtains the best ant lion position.
4. Case Analysis
This section uses the designed IALO algorithm to carry out corresponding numerical experiment analysis on the optimization problem of foreign delivery distribution. First, set up relevant experimental cases. Secondly, the corresponding managerial analysis of the two logistics services proposed in this paper is carried out, and the best route diagrams of the two logistics services are obtained. Then, for the multi-objective model in this article, related experiments were carried out on how the model parameters (i.e., and ) were combined. Finally, considering the influence of different algorithms on the experimental results, and comparing the performance of the experimental cases with the ALO and GOA algorithms, it is found that the effect of the IALO algorithm is better than the other two algorithms during the experiment, which proves the effectiveness of the IALO algorithm.
4.1. Case Description
This article considers that a logistics provider in a certain area of a city undertakes the task of meal delivery within the time period of 11:00–14:00 on a certain day. This logistics provider needs to balance the two related factors of logistics cost and customer satisfaction. At the same time, the logistics provider provides two kinds of logistics services, and compare the specific route obtained under these two kinds of logistics services.
In this example, the logistics provider has 4 depots serving 30 customers and 10 food providers, each depot has 5 vehicles, the maximum loading capacity of each vehicle is 10, and the average speed of the delivery vehicles on the road is 15 km/h, according to which the time spent by the vehicles between each point can be obtained. After placing an order on the ordering platform, the customer is expected to wait for approximately 30–60 min. In order to facilitate picking up the food here for 40 min, that is, the rider needs to deliver the food to the customer within 40 min after placing an order. The average meal preparation time of the supplier is 5 min, and the average service time of each is 3 min. In addition, coordinate information of depots, food providers and customers, as well as service time window, demand and other related information are given in this paper. The specific information is shown in
Table 4 and
Table 5. The corresponding traveling time is obtained according to coordinate information and average speed between points. The location distribution diagram of depots, food providers and customers are shown in
Figure 5. Other relevant parameter settings are shown in
Table 6.
The relevant data used in this case refer to the literature [
34,
35,
36,
37,
38,
39], and have been modified on this basis.
4.2. Logistics Service Mode Analysis
This article proposes two types of logistics services. In order to better compare the differences between the two logistics services, under the premise of the same algorithm and the same weight coefficient, this section will explore the two logistics services from two aspects: managerial analysis and result analysis.
4.2.1. Managerial Analysis of Logistics Service Modes
In this section, the corresponding management analysis is carried out for the two logistics services, and the specific analysis is shown in
Table 7. In the table, column 1 is the service type, columns 2–5 show the overall results, including vehicle number, route cost, total cost, and satisfaction, while column 6 shows the standardized results, i.e., the percentage of the shared service goal value against the traditional service goal value.
Table 7 shows that the frequency of use of vehicles in traditional service and shared service is 30 and 8, respectively. The latter reduces the utilization rate of vehicles by nearly 75% compared with the former, which indicates that the vehicles in shared service can undertake more meal and reduce the number of vehicles returning to the depot. Secondly, it can be found from the table that the route cost and total cost of shared service are smaller than those of traditional service, respectively, and the percentage of the target value of shared service in traditional service is 21.76%, which reduces the total cost by more than 75%. Finally, the satisfaction of shared service is also higher than that of traditional service, which indicates that the fixed cost and route cost saved by shared service are much higher than the cost needed to consider customer satisfaction.
The above description can illustrate that shared services can save time and distance, increase vehicle usage efficiency, and reduce logistics costs.
4.2.2. Results Analysis of Logistics Service
In this section, the specific routes obtained by the two logistics services are compared and analyzed. The specific best delivery routes are shown in
Table 8 and
Table 9. In these two tables, the route number represents the number of times the vehicle has left the depot, that is, the number of times the vehicle has been used, and the specific route represents a related process in which the rider starts from the depot and completes the delivery of meals and returns to the depot. It can be seen from the table that under the same number of delivery tasks, traditional services need to be dispatched 30 times to complete, while shared services only need seven times. This not only saves the use of vehicles, but also reduces a lot of useless distance.
In order to better demonstrate the sharing of vehicles between different food providers and the different running routes of vehicles under the two kinds of logistics services, this paper selects some customers and their corresponding food providers according to the obtained route table and draws a route diagram under the two kinds of logistics services, as shown in
Figure 6 and
Figure 7. As can be seen from the figure, for the same number of customers, the traditional service is one-to-one to complete the delivery task, and there is no connection between different customers for delivery, so many useless routes are added and the waste of vehicle resources is caused. In the sharing service, delivery between different customers is cross-completed, which not only increases the use efficiency of vehicles, but also reduces some irrelevant consumption on the route, so as to achieve the purpose of rational use of resources and green vehicles.
4.3. Analysis of the Influence of Weight on Target Value
There are two objective functions in the mathematical model established in this paper. Respectively to minimize overall dissatisfaction and cost, the corresponding weighting coefficients
and
are, respectively [0, 1], and their relationship is also determined, that is,
. Taking into account that the third-party logistics providers pay different attention to satisfaction and cost, there are 11 different combinations of R and K values. In order to explore the impact of these 11 different weight combinations on the target value, under the same algorithm and the same example, the relevant function values of the different weight combinations under the two logistics services are obtained, and the corresponding tables are listed, as shown in
Table 10.
According to the content in the table, it can be roughly analyzed from three aspects. First, the analysis on the total target. From the comparative analysis of the two logistics services, it can be seen that the total target of shared services has always been smaller than that of traditional services. On the other hand, no matter what kind of logistics service, as the customer dissatisfaction coefficient increases, the total target function value always shows a downward trend; secondly, the analysis of the total cost in the delivery process. It can be seen from the table that the cost of shared services is lower than that of traditional services. The specific reasons have been analyzed before, so I will not repeat them here. In addition, with the increase in the weight coefficient, the total cost of traditional services does not change much. In comparison, the total cost of shared services has changed slightly. This is because the distribution of vehicles and route planning in the process of facing the different needs of customers will also change accordingly, but in general, shared services are better than traditional services; finally, the analysis of satisfaction. No matter what kind of logistics service, the satisfaction degree shows a downward trend as the weight coefficient increases.
Focus on the analysis of the above two combinations. The first combination method is to consider only the cost in the delivery process. This situation is studied in Chapter 3. Of course, it can be seen that shared services are better than traditional services; the eleventh combination method, which only considers customer satisfaction, can also show that shared services are better than traditional services. This result is caused by taking a positive number. In fact, satisfaction is greater than 1, and it is negative when converted into dissatisfaction, which does not affect the final result analysis.
Based on the above results, a conclusion can be drawn. For third-party logistics providers, if they want to obtain higher returns, they should reduce the cost of input, but they should not blindly forget the requirements of customers in order to obtain higher returns. The final result is that the cost may not be much reduced, and the trust of customers is indeed lost, and the loss is outweighed by the gain. This shows that the third-party logistics providers can consider the 50/50 method when choosing the combination of weight coefficients, which can not only make profits but also obtain more customers. When choosing the type of logistics service, we can fully consider the type of shared service, which can meet customer needs and reduce costs.
4.4. Algorithm Analysis
Algorithm performance analysis is a commonly used method in algorithm analysis. Therefore, this section will analyze the algorithm from the aspects of algorithm convergence and box plot. The following is the specific analysis process.
In order to explore the effectiveness of different algorithms for solving mathematical models, for the experimental cases described in this article, called case I, three different algorithms, GOA, ALO, and IALO, were used to randomly solve the model 50 times, and from the two traditional services and shared services. The algorithms are analyzed and compared to verify the effectiveness of the proposed algorithms. The specific results are shown in
Table 11. As can be seen from the table, although in traditional services, the best fitness of ALO algorithm is the same as that of the ALO algorithm, and the variance is the same as that of the ALO algorithm, from other aspects, the worst fitness, average fitness and standard deviation obtained by ALO algorithm are all better than those obtained by the GOA and ALO algorithms, regardless of the type of logistics service. This shows that the IALO algorithm is generally superior to the other two algorithms.
It is convenient to analyze the iterative effects of different algorithms. This paper draws the relevant convergence diagrams of four different algorithms to solve the problem under two logistics services, as shown in
Figure 8 and
Figure 9. Can be seen from the diagram, either logistics service, GOA algorithm are not stable, and the improved IALO algorithm not only stable and can obtain more best objective function value, suggesting that IALO algorithm not only has good global search ability, and can better avoid falling into local optimum easily, even if fall into local optimum, also can rapid escape.
A boxplot, a statistical method used to show the degree of dispersion of data, is very simple and straightforward. Therefore, in order to better demonstrate the effectiveness of the algorithm used, the GOA, ALO and IALO algorithms were used to randomly calculate the experimental cases for 50 times through MATLAB, respectively, and the calculation results of the two logistics services were obtained. According to the results, a boxplot corresponding to different algorithms was drawn and analyzed, as shown in
Figure 10 and
Figure 11. According to the figure, the optimization ability of IALO algorithm is better than that of the GOA and ALO algorithms. Secondly, the size of the boxplot directly reflects the degree of dispersion of the algorithm results. Therefore, by comparing the boxplot size, it can be found that although the box size of the IALO algorithm is approximately equal to that of the ALO algorithm, the median of the IALO algorithm is smaller than that of the ALO algorithm, while the box size and median of the IALO algorithm are significantly smaller than that of the GOA algorithm. This shows that the discretization degree of the IALO algorithm is better than that of the other two algorithms. Finally, it is found that the ALO algorithm sometimes has outliers, which indicates that this algorithm is easy to fall into local optimum at some time, which also proves the stability of the search ability of the ALO algorithm.
Further, an extended numerical experiments is given under the SLSM, called case II, a larger case was introduced with 60 customers and 60 orders. Further algorithms are employed, such as a large neighborhood search (LNS). The summary results are shown in
Table 12.
It can be seen from
Table 12 that the best fitness values calculated by the GOA, LNS, ALO and IALO algorithms have certain differences. The results of the five indicators—best, worst, average, standard deviation and variance—are different for small- and large-scale problems such as case I and II. Therefore, the four algorithms can be easily ranked as IALO > ALO > LNS > GOA. The additional experiments prove that the proposed IALO is an effective method for the resulting optimization problem.
5. Conclusions
This article starts from the perspective of a third-party logistics provider and studies the route optimization problem in meal delivery. According to the shared logistics, a shared service is proposed and compared with the traditional service in the past. For providers, only considering minimizing costs without considering customer satisfaction may result in the loss of customers, and at the same time is not in line with reality. Based on the above situation, a multi-objective mathematical model considering customer dissatisfaction and cost minimization is established, and an IALO is designed to solve this problem. The relevant conclusions obtained by the algorithm are as follows:
(1) Starting from the actual situation, add the element of human behavior in the research on the optimization of the delivery route of the meal. That is, in the distribution, the required transportation cost should be reduced, customer satisfaction should also be considered, and the corresponding multi-objective should be established. A mathematical model that enables third-party logistics providers to obtain customers while gaining benefits is more in line with reality.
(2) Based on the emergence of shared logistics, propose corresponding shared services and compare them with previous traditional services. The analysis concludes that shared services can reduce the use of vehicles, effectively reduce transportation costs, and at the same time improve service quality and meet customer needs.
(3) The effectiveness of the improved algorithm proposed in this paper is verified through experimental cases, and the results show that the IALO algorithm is due to other algorithms.
This paper also has some shortcomings. For example, it only considers the customer’s satisfaction with the delivery, but not the psychology of the food providers. In addition, there are many functional formulas for expressing customer satisfaction. In the future, we will try other mathematical functions to compare the results obtained by different functions. Additionally, the linear weighting method is one of many transformation methods to deal with the model. In the future, we will try other methods to for more discussion about the multi-object optimization model.