All experiments in this study were conducted on a computer equipped with an Intel Core i7-10875H 2.30GHz CPU, 16GB of DDR4 RAM, running the Windows 10 operating system, and using Python 3.7 for programming.
5.1. Experimental Design
Due to the complexity of the MD-EVDRPTW model, no existing dataset contains instances that directly meet its requirements. To address this, we utilize the EVRPTW dataset C101_21, developed by Schneider et al. [
5] and made available through a link provided by Goeke [
27]. We apply the K-means clustering algorithm, using profile coefficients, to group all nodes and identify the distribution centers. This process transforms the EVRPTW dataset into one suitable for the MD-EVDRPTW model, which we label as C101_21M. The new dataset consists of 4 distribution centers, and 21 charging stations.
(1) Parameter settings related to the nonlinear charging function for EVs:
The EV nonlinear charging function is represented as shown in
Figure 18. The charging time,
, and the state of charge,
, corresponding to the turning point
in the function are set as follows:
,
, and
.
(2) Setting of parameters related to EV’s time-varying travel speed:
To analyze the impact of speed variation on delivery route planning under time-varying conditions, three different EV travel speed scenarios were set up for comparison. In the experiment conducted by Sacramento et al. [
17], the EV travels at a fixed speed of 56.3 km/h (Case 1). To incorporate time-varying characteristics, this section uses a computer-generated set of seven random speed values with an average of 56.3 km/h, representing the EV’s speed across different time intervals (Case 2). A holiday scenario featuring widespread congestion is also introduced (Case 3). The specific time periods and corresponding speeds for each scenario are provided in
Table 2.
(3) Initial parameter settings for the remaining experiment variables:
The initial values for the remaining experiment-related parameters are outlined in
Table 3 below.
5.2. Analysis of Experimental Results
Ablation experiments will be conducted to evaluate the performance of the proposed algorithm and assess the impact of the four removal operators and two insertion operators. These experiments will involve masking the perturbation strategies within the extremum-distance removal operator module and the greedy insertion operator. The results of these masked experiments will be analyzed by comparing them with those of the original algorithm. Each of the latter three experiments will be executed 10 times using the C101_21M dataset, which includes 100 customers. Here, represents the number of dispatched EVs, denotes the number of charging stations utilized, indicates the satisfactory solution generated by the algorithm, while and represent the algorithm’s solution time and the optimal number of iterations, respectively.
(1) The experimental results of using our proposed algorithm to solve the instances in the dataset are listed in
Table 4.
Table 4 shows that in the 10 operations of the ALNS algorithm applied to the C101_21M example, the maximum and minimum costs are 1916.16 and 1876.80, respectively. The deviation of these values from the median is 1.23% and −0.85%, while their deviation from the mean is 1.17% and −0.91%, all within acceptable ranges. Additionally, the number of dispatched EVs stabilized at 13, with the utilization rates of charging stations remaining low. The algorithm consistently produces satisfactory solutions within 250 iterations.
Figure 19 illustrates the convergence curve when the known optimal solution of 1876.80 is reached, and
Figure 20 presents the route maps derived from two of the optimal solutions. Overall, the ALNS algorithm developed in this study effectively solves the multi-depot EV–drone collaborative-delivery routing problem under time-varying EV travel times.
(2) The results of masking extreme-distance removal operator are shown in
Table 5.
Table 5 shows that in the results of solving the C101_21M algorithm 10 times after masking the extreme-distance removal operator, the maximum and minimum costs are 1990.56 and 1950.32, respectively. The deviations from the median are 1.09% and −0.95%, while the deviations from the mean are 1.05% and −0.99%, all falling within acceptable ranges. Additionally, the number of dispatched EVs remains stable between 13 and 14, and the utilization rates of charging stations stay low. The algorithm consistently produces satisfactory solutions within 450 iterations. This indicates that masking the extreme-distance removal operator effectively solves the multi-depot EV–drone collaborative-delivery routing problem.
Figure 21 compares the results obtained after masking the operator with those of the original algorithm presented in this study.
Figure 20 illustrates the impact of the extreme-distance removal operator on the algorithm’s performance, specifically regarding satisfactory solutions, algorithm solution time, and optimal number of iterations. The results are as follows:
(i) Satisfactory solution: the original algorithm achieves a minimum cost of 1876.80 and a maximum cost of 1916.16. However, after masking the extreme-distance removal operator, the minimum cost rises to 1950.32, and the maximum cost increases to 1990.56. This indicates that the cost of obtaining a solution has increased following the removal of this operator.
(ii) Algorithm solution time: the average solution time of the original algorithm is shorter than that of the algorithm after masking the extreme-distance removal operator, suggesting that this operator contributes to reducing the overall solution time.
(iii) Optimal number of iterations: the original algorithm obtains a satisfactory solution within 250 generations, while the modified algorithm requires up to 450 generations to achieve an acceptable solution. Additionally, the original algorithm reaches a stable state after 250 iterations, whereas the convergence speed of the modified algorithm slows down, necessitating more iterations to attain stability.
It can be concluded that the performance of the ALNS algorithm declines after masking the extreme-distance removal operator, yet it remains within an acceptable range. This underscores the operator’s critical role in enhancing both the efficiency of the algorithm and the quality of the solutions obtained. The extreme-distance removal operator contributes to the algorithm’s global search capability by removing specific elements from the current solution during iterations, helping to escape local optima. By increasing the exploitability of the solution space, this operator enables the algorithm to transition from a local optimum to new regions, potentially uncovering superior solutions.
In the proposed ALNS algorithm, the extreme-distance removal operator works in conjunction with other operators, forming a comprehensive set of tools. The algorithm dynamically adjusts the score of each operator based on its performance during the iteration process, prioritizing those with higher scores. This adaptive selection mechanism allows the algorithm to choose the most suitable operator for the current state at various stages, thereby enhancing both search efficiency and solution quality.
The adaptive selection of operators in the ALNS algorithm is achieved through a dynamic scoring system. The extreme-distance removal operator’s score fluctuates according to its effectiveness within the algorithm, influencing its probability of being selected. This mechanism enables the algorithm to adjust its search strategy adaptively, aligning with the different stages and characteristics of the problem.
(3) The results of blocking the perturbation strategy in the greedy insertion operator are shown in
Table 6.
Table 6 shows that after blocking the perturbation strategy in the greedy insertion operator for solving the C101_21M example, the maximum and minimum costs across 10 runs are 2044.19 and 1993.70, respectively. The deviations from the median are 1.10% and −1.40%, while the deviations from the mean are 1.05% and −1.44%, all within the acceptable range. The number of EV dispatches remains stable, between 14 and 15, with the utilization rates of charging stations consistently low.
Regarding the algorithm’s iterations, a satisfactory solution is reached within 600 generations, demonstrating that the algorithm remains effective in solving the multi-depot EV–drone collaborative-delivery routing problem with time-varying characteristics, even with the perturbation strategy in the greedy insertion operator blocked. A comparison of the results between blocking the perturbation strategy and the original algorithm is shown in
Figure 22.
From
Figure 21, it is evident that the perturbation strategy affects the algorithm’s performance in several key areas:
(i) Satisfactory solution: after blocking the perturbation strategy, both the maximum and minimum costs increase—the maximum rising from 1916.16 to 2044.19, and the minimum from 1876.80 to 1993.70. Despite this increase, the percentage deviation remains within an acceptable range. This suggests that the algorithm struggles to escape local optima without the perturbation strategy, impacting the solution quality. In contrast, the perturbation strategy introduces randomness, helping the algorithm explore new regions of the solution space, thereby increasing the likelihood of finding a globally optimal solution.
(ii) Algorithm solution time: blocking the perturbation strategy significantly increases the solution time. Without the strategy, the algorithm focuses too much on the neighborhood of the current solution, slowing the convergence and increasing runtime. By enhancing exploration, the perturbation strategy allows the algorithm to escape local optima, ultimately reducing the solution time.
(iii) Optimal number of iterations: the original algorithm achieves a satisfactory solution in 250 generations, but after blocking the perturbation strategy, it requires 600 iterations to reach the same outcome. This highlights the fact that the lack of a perturbation strategy limits the algorithm’s ability to search efficiently, requiring more iterations to achieve comparable results. This effect is particularly pronounced in larger solution spaces or more complex problems, where the perturbation strategy helps reduce the iterations needed to find a satisfactory solution.
To sum up, the perturbation strategy is crucial in reducing costs, accelerating convergence, and minimizing the number of iterations in the ALNS algorithm. The improved ALNS algorithm designed in this paper integrates the perturbation strategy with an adaptive selection mechanism, which dynamically adjusts the operators’ usage frequency and weights, based on their historical performance. This mechanism ensures that effective perturbation strategies are applied more frequently, further optimizing the algorithm performance. It also tailors the intensity and frequency of perturbations based on the current state and historical performance, achieving a more efficient search process.