1. Introduction
There are many complex optimization scenarios in the fields of industry, finance, mathematics, etc. Some of them are difficult to find a true global optimal solution. The meta-heuristic algorithm is suitable for dealing with problems that are not solved by specific effective methods [
1,
2,
3,
4]. The Cuckoo Search (CS) algorithm is a new heuristic algorithm that simulates cuckoo parasitic brooding and solves complex optimization problems [
5,
6]. The CS uses the nest position of the cuckoo bird to represent a possible solution in the solution space. The cuckoo bird’s parasitic brooding behavior is used to search the solution space of the complex optimization problem. The movement of the solution is realized by the cuckoo’s Levy flight mechanism, and the potential better solution is found through continuous searching and updating. The Levy flight mechanism used in the cuckoo algorithm can effectively jump out of the local optimal solution, and thus has better global search performance. It has also achieved better results in engineering optimization problems [
6,
7]. Since the cuckoo algorithm was proposed, various improved versions of the algorithm have been proposed for different uses, such as Modified Cuckoo Search (MCS) [
8], Binary Cuckoo Search (BCS) [
9], Multiobjective Cuckoo Search (MOCS) [
10], Chaotic Cuckoo Search (CCS) [
11], etc. This type of algorithm is usually used to solve complex optimization problems, thus it will set a population to obtain better solutions in a shorter time. Therefore, when dealing with complex optimization problems, or when it is applied to a device with limited memory, the heuristic algorithm needs to be improved to achieve the same or better solution in a shorter time or with less memory consumption.
Compact is a technique that can reduce the memory usage of the meta-heuristic algorithm. By using a probabilistic model to replace the population used in the algorithm from a macro perspective, it achieves less memory usage and shorter calculation time [
12,
13,
14,
15,
16,
17,
18]. The compact method uses a probability model to represent the original population, and then uses the probability model to generate a new solution. By comparing the generated solutions, the probability model is updated, which is then used to replace the population update in the original algorithm [
12]. Some related algorithm improvements using the compact method have been proposed, such as compact particle swarm optimization (cPSO) [
12], compact genetic algorithm (cGA) [
13], compact differential evolution (cDE) [
14], compact bat algorithm (cBA) [
15], etc. This article attempts to implement an improved version of the compact CS algorithm with a mixture of normal and uniform distributions. For the problem of weak search ability of the algorithm, this paper combines the method of recording the key positions of the search process and increasing the number of generated solutions to achieve further improvements and implements the improved compact cuckoo search algorithm (icCS). The algorithm was tested using 28 test functions of CEC2017.
As a new logistics method in the supply chain, drone logistics can effectively improve the efficiency of the logistics system and solve the problem of express delivery in the last mile of the current logistics system [
19,
20]. Drone logistics, with its own advantages, can perform express delivery in rural, mountainous, or congested areas, as well as areas where ground traffic is impassable [
20]. It can also be used in special situations and applied to scenarios that require rapid delivery, such as medical rescue and blood product transportation [
21,
22,
23,
24]. To apply drones to logistics systems, there have been many related studies. In addition to optimizing the design of logistics systems and logistics drones [
25], it is also necessary to design logistics models based on cost, efficiency, and other factors. Flight optimization in the process of logistics distribution of drones is also an issue that needs to be researched in the field of drone logistics [
26]. There are currently two main models of drone logistics: models for distribution centers and drones and those for delivery vehicles and drones. Many scholars have studied the logistics mode of combining drone and truck transportation [
27,
28]. For the model of using truck transportation and drone for distribution, the logistics problem is usually regarded as a path planning problem with the drone [
29]. Then, usually the travelling salesman problem is used to solve it on the basis of adding drones [
30]. Intelligent algorithms are also applied to such problems [
31]. In addition, there are many studies using machine learning to deal with supply chain problems. Some machine learning methods, such as Bayesian optimization, can also effectively deal with optimization problems [
32,
33]. The logistics mode of distribution centers and drones usually focuses on the location of the logistics center, and, because of the low load of the drone itself and the limited battery energy, the logistics of the drone are limited [
34]. In addition, other scholars have studied other influencing factors of drone logistics, including operating costs, differences between urban and rural areas, etc. [
35,
36].
Hu et al. [
37] used CS to deal with the trajectory planning of micro aerial vehicles for express transportation in cities. Considering the wind field, the obstacles of the building, and the characteristics of the goods, the cuckoo algorithm is used to plan the transportation path. This paper focuses on rural and remote areas, where surrounding villages are served by setting up a drone logistics hub. The path of the drone during transportation is a straight line between the logistics hub and the village. The main problem is the optimization of the location of the logistics hub. This paper aims at the logistics scenarios in rural and remote areas, using the logistics model of distribution centers and drones, assuming that future logistics drones can or have a stronger load capacity and longer dwell time. Then, the location of the drone logistics hub is simply modeled and tested using the algorithm proposed in this paper.
2. Related Work
This section briefly introduces the cuckoo search algorithm and the drone logistics hub location model proposed in this paper.
2.1. Metaheuristics Algorithm of Cuckoo
The CS algorithm is a new meta-heuristic algorithm that simulates the breeding strategy of cuckoo in nature [
5]. It solves complex optimization problems by imitating the brooding and parasitic behavior of cuckoos in nature. The cuckoo search algorithm uses the position of the bird nest to represent a possible solution, and updates the solution by updating the position of the bird nest. The update method uses Lévy flight to simulate the movement pattern of birds in nature. Lévy flight consists of long-range flights with occasional large steps and short-range flights with frequent small steps. The occasional long-distance flight in Lévy flight can expand the search range and prevent falling into local optimum.
To simplify the implementation of this algorithm, three simple and idealized rules are set for the cuckoo search algorithm. (1) Each cuckoo produces only one egg at a time, and then randomly selects a location for hatching. (2) The nest with the best eggs will be preserved and passed on to the next generation. (3) The number of nests that can be used is fixed, and the probability of the eggs in the nest being found is
. When the egg is found, the owner of the nest will throwaway the egg or build a new nest. The cuckoo search algorithm uses the parameter
to control local search and global exploration [
38]. The formula for local search is written as
where
represents the next generation solution,
i is a cuckoo in the solution,
is the step size,
is a Heaviside function,
is a random number generated by a uniform distribution, and
and
represent two randomly selected different solutions from all current possible solutions. The implementation formula for global exploration is written as
In Equation (
2),
indicates the step size scaling factor, usually
. The random step size in Lévy flight is generated using the Lévy probability distribution.
The variance and mean of the distribution are infinite. According to the original literature of the CS algorithm [
5], the pseudo-code of the algorithm is shown in Algorithm 1.
Compared with PSO, cuckoo search algorithm can achieve global convergence [
39,
40,
41]. Compared to algorithms using standard Gaussian processes, the cuckoo search algorithm is more efficient by using Lévy flights.
Algorithm 1: Cuckoo search via Lévy flights. |
|
2.2. Location Model of Drone Logistics Hub
At present, drone logistics is limited by the low load and weak endurance of drones. Moreover, drones have limited mobility and cannot perform long-term continuous delivery, thus the current more reasonable model is the collaborative model of delivery vehicles and drones. Then, path planning for delivery vehicles and drones is performed. However, after the drone picks up the goods from the delivery vehicle for delivery, it is necessary to consider that the drone returns to the delivery vehicle after the recipient receives it. The movement of the delivery vehicle and the uncertainty of the recipient’s pickup time will significantly reduce the drone’s delivery efficiency. However, with the development of technology, drone equipment for logistics will solve the current problems, and, when the level of automation increases, the mode of combining small unmanned logistics centers with drones will become more competitive.
This paper chooses the model of unmanned logistics center and drone, and applies it to the location of unmanned logistics hub in rural areas. The simulation diagram of the model in two-dimensional space is shown in
Figure 1. The premise assumptions and explanations of the model are as follows:
- (1)
The frone only travels to and from one village at a time.
- (2)
The drone’s endurance is able to meet the flight requirements from the logistics hub to the farthest village that the logistics hub is responsible for.
- (3)
Under ideal conditions, the drone distribution path is a straight line from the logistics hub to the corresponding village.
- (4)
Each logistics hub is responsible for express delivery services in multiple villages, and each village chooses the nearest logistics hub to serve it.
- (5)
The sizes of the villages are different, that is, the areas of the villages and the numbers of villagers are different.
- (6)
Drones do not enter the village when delivering goods, but deliver goods to the edge of the village to ensure safety.
- (7)
The land transportation distance from the logistics hub to each village is different and the degree of traffic difficulty is measured by the distance.
- (8)
The number of logistics hubs is artificially set according to the scope of application and artificially selected after calculating different solutions.
The circle in
Figure 1 represents the village, and the size of the circle represents the radius of the village, which is expressed as
R. The triangle represents the drone logistics station, and
H represents the straight line distance between the logistics hub and the village center. The model established in this paper is relatively simple. This paper only considers the distribution distance, the size of the village, and the current village’s efficiency ratio of using drone logistics to land transportation, which is used to indicate the degree of difficulty of land transportation. The objective function of the model is written as
In the formula, represents the straight line distance from the center of the village labeled i to the nearest logistics hub. is the distance between a village and a logistics hub minus the village radius, as drone delivery is not delivered to the precise location of the recipient, but is delivered to the edge of the village, which can ensure better security. N is the total number of villages to be considered. is the number of people living in the village. The larger is the population, the more frequently does the logistics center deliver to the village, thus the logistics hub needs to be closer to the village to reduce the overall cost. is the distance for land transportation, is the distance for linear delivery using drones, and is usually a value greater than 1, thus the logistics hub needs to be closer to villages with high land distribution costs. The variables and parameters involved in the model can be obtained through actual measurement. There are no unnatural parameters, and the degree of traffic difficulty is also obtained by using land transportation distance and straight flight distance. All parameters can be calculated from the application environment data during actual application.The solution obtained after calculating the model is the relative positions of multiple logistics hubs, and different villages choose their nearest logistics hubs based on the distance. In the end, different solutions will be generated according to the number of logistics hubs. Because the proposed model does not take into account all the influencing factors, and the importance of the model’s constraints is different in different situations, it needs to be artificially selected according to actual conditions.
4. Experimental Results
The proposed algorithm was tested. The test function used CEC’17 benchmark suite [
45]. The 28 test functions used in this study include unimodal functions, simple multimodal functions, mixed functions, and composition functions. All test functions used are minimization problems and are defined as follows:
where
D is the number of dimensions and the search range is
. According to the introduction of CEC’17 benchmark suite,
was excluded because it exhibits unstable behavior, especially for higher dimensions in test functions. Compared with the same algorithm implemented in Matlab, the performance of the one implemented in C is very different [
45]. Thus, 28 test functions were used to the the algorithm in this paper. All tested algorithms maintained consistent parameter settings. The population size of all algorithms was 20 and the number of algorithm iterations was set to 3000. Each algorithm was tested five times on each function and the average value was retained. The parameter settings of each comparison algorithm are shown in
Table 1.
4.1. Comparison with Common Optimization Algorithms
The improved compact cuckoo search algorithm proposed in this paper was compared with common classical algorithms on the test functions: the original CS algorithm [
5]; the Adaptive Cuckoo Search Algorithm (ACS) [
46], in which the parameter
was set to 0.25; common PSO [
47]; DE [
48]; and the sine cosine algorithm (SCA) proposed in 2016 [
49]. The comparison results are shown in
Table 2.
Table 2 shows the average value obtained by running the icCS algorithm and other algorithms on the test functions. The last row in the table summarizes the comparison results of icCS algorithm and other algorithms, where
w indicates on how many test functions icCS has achieved better results than the algorithm results of the current column.
Table 3 shows the standard deviation of the icCS algorithm and other algorithms on the test functions.
According to the data in
Table 2 and
Table 3, the algorithm proposed in this paper achieved better results than other algorithms on the test functions. Especially on specific functions, such as
,
, and
, compared with CS and ACS algorithms, the proposed algorithm could obtain better and more stable results. At the same time, the overall performance of each algorithm compared with the icCS algorithm was measured at a significant level
= 0.05 under the Wilcoxon’s sign rank test (
Table 4) [
50].
According to
Table 2, compared with CS, icCS achieved better or similar results on 19 functions; compared with ACS, icCS achieved better or similar results on 17 functions; compared with the PSO algorithm, icCS obtained better or similar results on 15 functions, with better results than PSO on functions
,
,
,
,
,
, and
; and compared with DE, icCS achieved better or similar results on 16 functions, obtaining better results on functions
,
,
,
,
,
,
. However, DE could find the global optimal value effectively on
and
, which was better than other algorithms. Compared with SCA, icCS achieved better or similar results on all functions. For the comparison of standard deviations,
Table 3 gives the corresponding data. Combined with the data in
Table 2, the icCS algorithm proposed in this paper has similar stability compared with CS and ACS algorithms. However, the CS and ACS algorithms on
,
, and
did not achieve good results. Based on the above comparison, the overall performance of the algorithm icCS proposed in this paper is better on 28 test functions.
4.2. Comparison with Compact Algorithms
Table 5 and
Table 6 compare the proposed pcCS algorithm with other common algorithms using the compact method, including compact Particle Swarm Optimization (cPSO) [
12], compact Bat Algorithm (cBA) [
15], and compact Artificial Bee Colony algorithms (cABC) [
51]. The number of virtual populations was set to 20 and the parameters of the algorithm remained the same as those in the original document.
This paper compares the proposed icCS algorithm with other compact algorithms in 10D and 30D optimization. At the same time, the overall performance of each other algorithm was measured at a significant level
= 0.05 under Wilcoxon sign rank test. According to the data in
Table 5 and
Table 6, the algorithm proposed in this paper has better performance than the other three compact algorithms and can obtain better results. For the cBA algorithm in
Table 5, icCS achieved better results on
,
,
,
,
,
,
, and
. Combined with the results of Wilcoxon sign rank test, the proposed icCS algorithm was significantly better than the cBA algorithm on 28 test functions. For the cPSO and cABC algorithms, the cABC algorithm could still obtain better results when it was optimized in 10D, but, when it was optimized in 30D, as shown in
Table 6, the cABC algorithm was not as stable as the proposed icCS algorithm. As shown in
Table 5 for 10D optimization and
Table 6 for 30D optimization, the performance of the proposed icCS algorithm in different dimensions is similar and does not fluctuate too much. According to the results of the Wilcoxon sign rank test, the proposed icCS algorithm was significantly better than other algorithms using only compact technology for the 28 test functions and both 10D and 30D optimization.
4.3. Convergence Evaluation
The optimal value obtained by the algorithm cannot completely define the validity of the algorithm’s search principle. It is also necessary to evaluate the convergence of the algorithm to measure the speed of the algorithm reaching the optimal value. In this study, two unimodal functions (
), two simple multimodal functions (
), two hybrid functions (
), and two composition functions (
) were selected as the test functions to compare the convergence of icCS and other common classic algorithms for evaluation of convergence. The comparison of the convergence performance of the icCS algorithm proposed in this paper and other common classical algorithms is shown in
Figure 3 and
Figure 4.
Because the algorithm proposed in this paper combines compact- and population-based technologies, the overall complexity of the algorithm is higher than that of algorithms using only compact. Based on the introduction of the algorithm in
Section 3, the proposed icCS algorithm is divided into two phases. The first stage uses compact technology. To increase the global search capability at this stage, a step of uniform sampling is added in this paper. Sn additional uniform distribution sampling is performed on the basis of compact using normal distribution sampling. In this way, a new solution is generated during each iteration and two new solutions are generated, which increases the global search capability and also increases the complexity of the algorithm. At the same time, because the compact method generates fewer solutions, as shown in
Figure 3 and
Figure 4, the early convergence speed of the proposed algorithm is slow.
After the algorithm switches to the second stage, the algorithm uses a population-based method for enhanced search in order to jump out of the local optimum. The algorithm complexity at this time is the same as the original population-based algorithm. In addition, during the execution of the first phase of the algorithm, it is necessary to prepare for switching to the second phase. The key solutions in the first phase need to be saved, and it is necessary to judge whether to switch to the second phase continuously. Therefore, the overall complexity of the algorithm is similar to or slightly higher than the original algorithm.
5. Application to Drone Logistics Hub Location
The location of the drone logistics hub is briefly introduced in
Section 2.2, which establishes a simple model based on three influencing factors, and then determines the fitness function of the model. In this section, the proposed algorithm is applied to the model for testing.
In fact, there are many studies on the way of drone logistics. The endurance time and load capacity of the drone itself also limit the development of drone logistics. However, there are studies on the innovative design of drone applications in the logistics industry [
25]. With the development of technology, the restrictions on drone logistics due to the lack of performance of the drone itself will be gradually resolved. Thus, this paper focuses on the logistics issues in rural areas and remote mountain areas, and uses a model of logistics hubs and drones. A certain number of unmanned logistics hubs is used to provide logistics distribution services for surrounding villages and drones complete the end logistics tasks.
According to the above model and the introduction in
Section 2.2, this article considers three factors that affect the location of the logistics center: the distance from the village to its logistics hub, the rural population, and the degree of transportation difficulty from the logistics hub to the village. The significance of the first factor is that the total distance between the logistics hub and the villages it serves is the smallest, and its operating costs are also smaller. The significance of the second factor is that, if the rural population is larger, the frequency of services required is higher, thus the proportion of the village in the whole is higher. Then, the logistics hub needs to be closer to the village, thus the cost is lower and the logistics efficiency will be higher. The significance of the third factor lies in the advantage of the drone’s straight flight. Traditional land logistics methods need to consider terrain factors, and roads are not straight, thus logistics in remote areas or mountain regions is more difficult. By adding this factor, logistics hubs can provide better logistics services to areas with difficult transportation. Based on the above and the introduction in
Section 2.2, the objective function used in this paper is written as
where
k is the
kth village,
is the population of villages
k,
N is the total number of villages,
is the radius of the village, and
is the straight line distance from the village to the nearest logistics hub to the village. The meaning of
is the same as
, and
is the land transportation distance from the current village to the nearest logistics hub. The goal of the intelligent algorithm is to find the best logistics hub location so that the objective function is the smallest overall. That is,
is minimized in Equation (
10) by an intelligent algorithm to achieve the overall minimum, where
is the position of the drone logistics hub in a certain dimension.
A program was used to generate the original test data based on the proposed drone logistics hub location model. Thirty random village locations were generated in a two-dimensional space of 50,000 m × 50,000 m. The radii of the villages were 200–900 m and their populations were 300–3000. The degree of traffic difficulty was the land transportation distance divided by the drone’s straight flight distance, which ranged from 1 to 3. Two generated models were used for testing.
Table 7 shows the results of testing using Model 1. N is the number of logistics hubs for 30 villages. Each test was executed 50 times and the number of iterations was 3000.
Table 8 shows the data results of the test using Model 2. N is the number of logistics hubs for 30 villages. Each test was performed 30 times and the number of iterations was 5000.
Figure 5 shows the results of running different models using different algorithms, where circles represent the village location, squares represent the calculated logistics hub location, and circles of different sizes represent villages with different radii. According to the execution result data, setting more logistics hubs can obtain smaller fitness function values. However, the construction of the logistics hub itself also requires costs. The larger is the number of logistics hubs, the higher is the overall cost, and the more dispersed are the goods, thus it is necessary to set an appropriate number of logistics hubs based on actual needs. It can be seen in
Figure 5 that the location of some logistics hubs has been transferred to the village area after calculation, which means that the cost of logistics hubs will also be reduced, thus they can be selected based on actual conditions.
6. Conclusions and Discussion
Drone logistics will play an increasingly important role in the logistics industry with the increase in the degree of automation of the supply chain. This paper presents a simple location model for a drone logistics hub. This model considers three factors that affect location selection and determines the fitness function of the model. This paper is based on the original cuckoo search algorithm, which is improved by compact and other technology, and proposes the icCS algorithm. On the basis of sampling using the normal distribution, uniform distribution sampling and optimal solution perturbation are added, and, for the problem that is easy to fall into a local optimum, the global search ability is improved by increasing the number of generated solutions. Then, this paper uses the proposed algorithm to calculate the location for drone logistics hub. Compared with other algorithms, it can get better execution results. However, the model proposed in this paper is still inadequate, the influencing factors included are not comprehensive enough, and further improvements can be made, such as adding logistics hub cost, topographical influence, path planning between logistics hubs, and communication and control between logistics hub and drone. The proposed approach may be further improved by adopting some intelligent and efficient algorithms.