1. Introduction
Initially, drones were widely used in the military industries of various countries due to their relatively low cost, high concealment, flexible operation, and fear of casualties, and gradually became the representatives of the backbone military forces of various countries. Nowadays, with the rise of Industry 4.0 and other emerging technologies, drones are playing an important role in various fields, such as agriculture [
1], photography [
2], transportation [
3], remote sensing [
4], and search and rescue [
5]. Advances in drone technology have made it possible to build a low-altitude unmanned delivery network that is gradually becoming a reality. In 2013, Amazon launched a drone delivery network called Prime Air Drone Deliveries to reduce transportation and delivery times in ground traffic congestion. This technology also makes it possible to quickly transport urgently needed medical supplies (such as organs for transplants, blood, and medications) to inaccessible locations in order to urgently save lives, as shown in
Figure 1. Currently, the flight of drones in urban areas, especially in urban low-altitude environments, is still severely restricted. A significant portion of such areas is subject to local departmental approval or authorization for flight missions [
6]. Most drones work in remote suburban or wilderness environments. This is a far cry from the advantages of using drones to replace people in the current congested traffic environment as a way to achieve fast and efficient delivery services. Therefore, building an aerial unmanned delivery network and rationalizing the use of drones for efficient transportation will provide great help in further shortening the time before medical aid is available and improving the success rates of medical aid.
Drones differ from other commercial aircraft in that they are defined as unmanned aerial vehicles that can be controlled by remote radio equipment or an onboard computer. Although the drones’ ability to take off and land vertically over short distances has greatly enhanced their suitability for near-ground flight, to some extent, they still face significant challenges when performing delivery tasks. How to achieve safe and efficient autonomous drone navigation in an environment of time urgency and complex conditions will be the decisive factor regarding the success of drone delivery. As a key technology of the drones’ autonomous navigation module, path-planning requires drones to autonomously plan a collision-free path from the starting point to the target point in the working space, which is essentially an optimization problem under feasible area constraints. Planning a path at minimum cost and requiring it to satisfy feasibility constraints is described as one of the challenging problems for traditional optimization strategies.
L. Yang proposed in a previous paper [
7] that simple 2D path-planning algorithms cannot handle complex 3D environments, wherein the large number of uncertainties presented can cause the difficulty of path-planning to grow exponentially. Finding a complete 3D path can be understood as an NP problem (Refers to a complex problem where it is not certain whether the answer is found in polynomial time, but it is possible to verify that the answer is correct in polynomial time) and, in fact, there is no universal solution. In order to better solve the above problems, this paper introduces an improved swarm intelligence search algorithm [
8,
9] to abstract drone path-planning into an optimization problem with obstacle space constraints, as well as to achieve the safe and efficient autonomous navigation of drones by means of the ability to solve the highly nonlinear and complex problems presented by metaheuristic search algorithms.
2. Related Work
In previous publications, various algorithms have been developed to implement path planning for drones, in order to guarantee collision-free autonomous flight in complex environments.
The graph search technique, as one of the most intuitive methods of path-planning technology, is popular due to its simplicity, ease of graph construction, and high visibility of the search process. In a previously published paper [
10], a path-planning method based on a “slice search” discrete 3D jump-point search (JPS) algorithm is proposed, which slices the 3D map scene into multiple flat workspaces with superimposed structures. The JPS performs independent searches in each individual workspace and finally achieves path integration. For search techniques using discrete grid maps, equal-volume grid-splitting is a simple and effective approach. However, as the search space expands and the density and complexity of the obstacles increase, the efficiency of the algorithm will decrease significantly and is not conducive to managing drones performing complex missions in time-critical situations. The article by the authors of [
11] utilizes the data structure of octree to realize the mapping of an octree structure for discrete grid maps, which further reduces the number of search nodes needed in the algorithm. Meanwhile, the paper implements the Lazy-Theta* algorithm for multi-angle pathfinding with high accuracy, using an improved heuristic weight adjustment strategy. In another article [
12], a new way of setting control nodes in the space around obstacles is proposed to construct a virtual path-control network, so that the number of map search edges shows a positive correlation property with the number of obstacles. This approach reduces the dispersion of the accessibility region, to a certain extent, and improves the search efficiency of the algorithm.
Sampling-based path-planning algorithms usually require random sampling of the drones’ flight space into a set of working nodes to find the best path via environment mapping or a random search. The authors of [
13] propose a bidirectional RRT algorithm based on the node deletion policy. This algorithm is based on the premise of preserving the tree structure and using a strategy of dynamically removing collision nodes for pop-up threat avoidance. To some extent, the randomized map sampling approach reduces the limitations of the expansion direction imposed by the discretized grid in the 3D working scene. However, it is worth noting that the sampling-based algorithm provides only weak probabilistic completeness, and the generated paths are generally not optimal. In another paper [
14], a neural RRT* algorithm is proposed to train a convolutional neural network (CNN) model with a large number of successful path-planning cases, which are used to predict the probability distribution of the optimal path more accurately. The sampling process of RRT* is guided by the optimal path probability distribution schematic to further improve the quality of paths generated by the RRT* algorithm in a short period of time.
The scalability, tolerance of missing data, interpretability, flexibility, optimization capability, adaptability and accessibility, and the ability to solve the highly nonlinear and complex problems provided by the swarm intelligence search algorithm have led to its wide application in the field of path planning. In the article published by [
15], a mayfly (MF) algorithm, based on an exponentially decreasing inertia weight (EDIW) strategy and adaptive Cauchy mutation operator, is proposed to implement drone-path planning, but it is only designed for two-dimensional planar space, ignoring the complexity of the environment brought by the 3D working environment. In the article published by [
16], three improved algorithms of a particle swarm optimization (PSO) algorithm are proposed, based on drone swarms when performing multiple complex tasks. Using different fitness functions and search strategies, and by fusing the algorithm’s jump-out and revisit mechanisms, efficient autonomous pathfinding for large-scale drone swarms under special mission constraints is achieved. The swarm intelligence-search algorithm is favored by many young researchers for its ability to excel in finding high-quality solutions to many complex and NP-hard problems, in addition to its perfect algorithmic scalability, in situations where the traditional, exact optimization methods fail to provide satisfactory results. In 2019, Sankalap Arora proposed a new nature heuristic algorithm, the butterfly optimization algorithm (BOA), in his article [
17], which is based on the foraging strategy of butterflies and how they use their olfactory senses to determine the optimal location of pollen. From the results of the benchmark function test experiments and the Wilcoxon rank-sum test in the article, it can be seen that the BOA algorithm has excellent convergence performance and stability under many complex functions, and the BOA algorithm is also more competitive in the process of comparing it with other algorithms.
The famous “No Free Lunch” theorem for optimization states that no optimization algorithm can outperform any other algorithm under any metric for all possible problems, and the same is true of the BOA algorithm. One article [
18] tested the BOA algorithm several times, based on the CEC2017 benchmark function, and the results show that the BOA algorithm has the disadvantages of slow convergence for complex functions, low accuracy, and local optimal stagnation. In 2020, Mohammad Tubishat et al. [
19] solved the problem of the algorithm falling into local optimum stagnation by using a variational (LSAM) operator that was fused with the BOA algorithm and simultaneously improved the diversity of feasible solutions of the algorithm. However, from another point of view, the convergence of BOA is still slow, in terms of high-dimensional complex functions. In 2021, Zhou et al. introduced the k-mean clustering method for balancing between global and local searches. They enhanced the convergence of the algorithm by introducing the k-mean clustering method before the butterfly individual update iteration of the BOA algorithm [
20], but the convergence rate of the algorithm was still unsatisfactory.
Based on the above problems and inspired by previous related works, the current paper will realize the path-planning design of drones by using a modified BOA algorithm to achieve the safe delivery of drones in complex low-altitude environments. The following are the contributions of this paper:
In this paper, the problem of generating the initial butterfly population based on the BOA algorithm is incorporated into an improved Tent chaotic mapping technique that removes the short-term properties to further improve the population diversity of the algorithm in the initial stage.
This paper proposes an improved BOA algorithm (BOA-TSAR), which combines Tent chaotic mapping, the Metropolis criterion of simulated annealing (SA), the adaptive inertia weight (AIW) strategy, and the randomness mutation (RM) with global adaptive features for improving the search performance of the BOA algorithm.
In this paper, the BOA-TSAR algorithm is combined with drone path planning to reduce the convergence time of BOA-TSAR by improving the line-of-sight (LOS) detection of the 3D Bresenham’s line algorithm for rationalizing the initial path population generation.
In this paper, the proposed BOA-TSAR algorithm and its three sub-versions are subjected to multidimensional computational experiments, based on the CEC public benchmark function test set, to further test the performance of the improved algorithm.
The improved BOA algorithm is compared with other swarm intelligence algorithms (GA, PSO, GWO, ABC) on 24 benchmark functions of 50 dimensions for data comparison and experimental results analysis.
Based on the Moving AI Lab’s publicly available map dataset for testing drone path-planning.
3. Basic BOA and Its Improvement
BOA algorithms belong to a group of swarm intelligence search algorithms, which are inspired by the intelligent behavior of plant and animal swarms. In general, the behavior of swarm intelligence manifests itself as collectivized work among biological subjects in a given environment as a way to achieve a unified group-based goal. Swarm intelligence search techniques have received more attention of late, due to their ability to generate high-quality solutions in relatively less time than precision optimization techniques. However, the BOA algorithm also suffers from a lack of population diversity and uneven exploration and mining strategies, as well as the slow convergence of the algorithm under high dimensional complexity functions, which can easily fall into the local optimum. In this paper, we prevent the BOA algorithm from falling into the local optimum by introducing the Metropolis criterion of the simulated annealing method, to increase the population diversity by retaining some disadvantaged groups in a probabilistic manner. Secondly, non-linear adaptive inertia weights are introduced to further balance the global exploration and local mining capabilities of the BOA algorithm, through the adaptive properties of the weights. Finally, this paper adds variational operators with adaptive features to the global search phase of the BOA algorithm to properly maintain the diversity of the algorithm’s solution vectors, prevent the premature maturation of the BOA algorithm, and further strengthen the ability of local accurate mining of optimal solutions in the later iteration of the BOA algorithm. Finally, this paper adds variational operators with adaptive features to the global search phase of the BOA algorithm. While appropriately maintaining the diversity of the algorithm’s solution vectors to prevent the premature phenomenon of the BOA algorithm, it further enhances the ability of local, accurate mining of optimal solutions in the late iteration of the BOA algorithm. In this paper, the composition structure of the proposed BOA-TSAR algorithm is shown In
Figure 2.
3.1. Standardized BOA
The BOA algorithm was inspired by the butterfly’s foraging and mating behavior, triggered by fragrance pheromones in the air to determine the potential direction of food or mating partners. Butterflies have a very precise judgment of the location of the source of odors, which can be attributed to their exceptionally sensitive olfactory receptors, as shown in
Figure 3. They can identify different kinds of odors and further perceive their intensity.
As the butterfly moves, it releases a certain fragrance associated with its fitness, i.e., as the butterfly moves from one position to another, its own fitness information will change. When a butterfly senses more scent being emitted by another butterfly, it will follow and approach; this stage parallels the global search of the BOA algorithm. When the butterfly cannot perceive a scent larger than itself, it then exhibits a state of randomness in its movement, which is comparable to the local search of the BOA algorithm.
3.1.1. Calculation of Fragrance Pheromones
In the BOA algorithm, the fragrance pheromone is the key factor that determines the butterfly’s motion state. In his article [
17], Sankalap Arora described the relationship between the olfactory stimuli received by butterflies and odor modality by introducing three important concepts: sensory modality, (c), stimulus intensity, (I), and the power exponent, (a). In the BOA algorithm, the fragrance is represented as a function of the physical intensity of the stimulus, as shown in Equation (1):
where
denotes the perceived intensity that the fragrance pheromone has, i.e., the intensity of the fragrance that is perceived by other butterflies.
indicates the adaptation of the butterfly, i.e., the intensity of the stimulus for the current scent produced by the butterfly.
denotes the sensory modality, which determines the convergence speed of the BOA algorithm.
denotes the power exponent that is dependent on modality, which, together with the perceptual modality, determines the motion behavior of the BOA algorithm. In general, the algorithm allows parameters
and
to take other values in the range of 0 to 1.
In the formulation of the fragrance perception intensity, the sensory modality and the power exponent have an important impact on the convergence speed of the algorithm. When , this means that the fragrance emitted by the butterfly can be perceived by any other butterfly in the current environment, so the algorithm will converge quickly. In this case, the BOA algorithm will be more likely to fall into the local optimum and cannot escape. When , this means that the fragrance emitted by any one butterfly cannot be perceived by others, i.e., all butterflies in the current environment will always be in a state of random movement and cannot be converged.
3.1.2. The Global Search and Local Search for Butterflies
The BOA algorithm performs iterative computations in which all the butterflies located in the solution space need to be moved to new locations and their fitness is re-evaluated. There are two critical steps in the process of moving all butterflies, namely, the global search phase and the local search phase. Prior to this, the BOA algorithm makes three assumptions that need to be respected during iterative computation.
All individual butterflies should release the appropriate fragrance pheromones, allowing all individuals to be attracted to each other.
Each butterfly can achieve random movement or move toward the better-adapted butterfly that emits more scent.
The stimulus intensity of the butterfly is influenced by the objective function of the algorithm.
In the global search phase of the BOA algorithm, the butterfly needs to migrate to the current best-adapted butterfly individual, as shown in Equation (2):
where
denotes the solution vector of the
th butterfly individual during the
th iteration.
denotes the intensity of the scent pheromone emitted by the
th butterfly.
denotes the fitness that the optimal butterfly individual has in the current iteration.
is the random number that satisfies
. In the local search phase of the BOA algorithm, the butterfly is in a randomly moving state and is influenced by other random butterflies in the contemporary population, as shown in Equation (3):
where
and
denote the
th and
th butterfly individuals in the solution space. Since the fragrance pheromone perceived by the butterfly is limited by many physical conditions, there is a probability factor
in the BOA algorithm that makes the motion behavior of an individual butterfly switch between a global search and a local search. The current paper shows the calculation steps and pseudo-code of the basic butterfly optimization algorithm, The pseudo-code is shown in Algorithm 1.
Initialize the number of butterfly individuals (), the number of iterations (), the transition probabilities of the local and global search (), sensory modality (), power exponent (), solution space dimension (), and boundary conditions (,) in the BOA algorithm.
The initial butterfly population is randomly generated in the solution space, and the fitness value of each individual is calculated according to the fitness function; the optimal butterfly is found in the initial generation.
The perceived intensity generated by the fragrance pheromones of all butterflies is calculated according to the fragrance formula, and the current butterfly movement behavior is determined by the magnitude of the random number with the transition probability, .
When , the current butterfly performs a global search and migrates to the optimal individual. When , then the current butterfly performs local wandering.
If the number of iterations of the algorithm reaches the termination condition, the loop ends, and the optimal individual is output. Otherwise, the sensory modality is further updated and returned to step (3), where the sensory modality is updated, as shown in Equation (4):
where
denotes the value of the sensory modality at the
th iteration.
3.2. BOA-TSAR Algorithm
The butterfly optimization algorithm has superior convergence speed and accuracy compared to other metaheuristics when dealing with simple functions of low dimensionality. However, when the number of dimensions increases with the complexity of the algorithm, the convergence speed and accuracy of the BOA algorithm decrease significantly. Meanwhile, the BOA algorithm has the drawback of local optimal stagnation when dealing with complex multimodal functions, which leads to its slow convergence rate. In order to better solve the above problems, this paper uses Tent chaotic mapping, with the short-period property removed, to optimize the generation distribution of the initial population of the BOA algorithm and improve the BOA algorithm by combining three strategies.
3.2.1. Tent Chaotic Mapping with the Short-Period Property Removed
The BOA algorithm usually uses a randomized approach to generate the initial population of butterflies in the feasible domain, in the process of solving optimization problems. However, the initial solutions generated in this way are prone to an uneven distribution of solution vectors and the phenomenon of distributed aggregation, which makes the algorithm’s optimization search results poor. However, the nonlinearity, sensitive dependence on initial values, ergodicity, and randomness possessed by chaotic sequences can help the BOA algorithm to escape the local optimum more easily during iterative computation and further maintain the diversity of populations.
The Tent chaotic mapping technique has a uniform probability distribution density and good data correlation, and the expression is shown in Equation (5).
When
, the Tent chaotic mapping technique has the most typical form, and the resulting sequence of mappings has a uniform distribution that is characterized by a nearly uniform distribution density for different parameters. However, it cannot be ignored that in such cases, the sequences generated by the Tent chaotic mapping technique will have a short-period property to some extent, as shown in Equation (6).
Therefore, in this paper, the process of initializing the butterfly population is achieved by adding a small perturbation to the Tent chaotic mapping process to jump out of the period cycle. That is, when
and satisfies
[
21], the expression formula of Tent chaotic mapping is shown in Equation (7):
where
is the random number generated by obeying the F distribution. The probability density function of the F distribution shows an asymmetric pattern, i.e., a rapid increase, followed by a slow decrease. This allows the values generated by small perturbations to be distributed over a small interval. This approach breaks the short-period nature of chaotic sequences while maintaining the randomness of the sequence. The probability density formula of the F distribution is shown in Equation (8):
where
is the first degree of freedom and
is the second degree of freedom. After several tests, the random disturbance distribution is more reasonable when
and
, as shown in
Figure 4.
In this paper, 1000 random solution vectors with a dimension of 50 and boundary conditions [−100,100] are generated by the improved Tent chaotic mapping process, and the distribution of the solutions is shown in
Figure 5.
3.2.2. Adaptive Nonlinear Inertia Weights
Among metaheuristic algorithms, inertia weights can be used to regulate and control the global exploration and local exploitation capabilities of the algorithm [
18]; they also have a crucial impact on the convergence rate of the algorithm. The larger inertia weights give the algorithm better global search capability. The smaller inertia weights are more conducive to the algorithm’s accurate mining in the local area. The inertia weights, based on the linear decreasing strategy proposed by Y. Shi et al., have been widely used due to their simplicity, intuitiveness, and better search performance [
22]. However, it is worth noting that reducing the inertia weights linearly in the metaheuristic algorithm leads to a lower convergence rate later in the algorithm and affects the global convergence. At the same time, since the BOA algorithm is, actually, highly nonlinear in its process of searching, this means that the linear decreasing strategy does not accurately reflect the actual algorithmic optimization process.
Therefore, in this paper, in response to the drawbacks of slow convergence speed and the low accuracy of the search results for processing the complex functions that are in the BOA algorithm, adaptive nonlinear inertia weights are introduced in the global search phase of the BOA algorithm, as shown in Equation (9):
where
denotes the inertia weight value of the current butterfly.
denotes the fitness of the optimal butterfly in the
th iteration.
denotes the fitness of the
th butterfly in the
th iteration. By analyzing Equation (9), it can be seen that the expression of the inertia weight,
, is divided into two parts; the first half,
, is related to the fitness of the individual butterfly, and this will automatically be adjusted according to the change in the fitness value of the individual butterfly. The greater the difference between the fitness of the current butterfly individual and the optimal individual, the larger the value of
, and vice versa, the smaller the value. The second half of the value of
shows a decreasing trend of deceleration as the number of iterations increases. That is, at the beginning of the algorithm iteration, the value of
is larger and the global search capability of the algorithm is stronger, which is beneficial for the BOA algorithm when jumping out of the local optimum. As the number of iterations of the algorithm increases, the value of
gradually becomes smaller; the speed of becoming smaller becomes a gradually decreasing trend, which is conducive to improving the convergence speed and computational accuracy of the BOA algorithm. The improved global search formula of the BOA algorithm is shown in Equation (10).
3.2.3. Simulated Annealing Strategy
The idea of the simulated annealing method was proposed by N. Metropolis et al. in 1953; its starting point was based on the similarity between the annealing process of solid materials and the optimization problem [
23]. That is, starting from a certain higher temperature, the global optimal solution of the objective function is found randomly in the solution space as the temperature parameter decreases and combines with the probabilistic sudden-jump property. This simulated annealing method is divided into two parts, namely, the Metropolis acceptance criteria and the material annealing process.
The Metropolis criterion refers to accepting the new state of an individual via probability, rather than using a completely deterministic rule. By using the Metropolis criterion in the BOA algorithm, the inferior individuals can be retained with a certain probability, increasing the diversity of the population, and improving the ability of the BOA algorithm to jump out of the local optimum. The current state of the butterfly individual is assumed to be
, and its corresponding fitness is denoted as
. The state of the butterfly after the move is
and the adaptation is
. Then, the probability of the current butterfly individual’s state, changing from
to
, is defined as
, as shown in Equation (11):
where
denotes the fragrance’s residual coefficient in the physical environment, which is reduced by cyclic decay to a threshold that the butterfly cannot perceive and is used as a landmark condition to end the algorithm. The critical pseudo-code based on the simulated annealing strategy is shown in Algorithm 2.
3.2.4. Random Mutation with Global Adaptive Features
In population intelligence algorithms, the diversity and activity of the population play a crucial role in the ergodicity of the algorithm in the solution space. At the initial order of the search performed by the BOA algorithm, proper maintenance of the diversity of the algorithm’s solution vectors helps the algorithm to jump out of the local optimum and prevents the BOA algorithm from reaching premature maturity. The relative reduction in the degree of mutation, as the algorithm converges to come near the global optimal solution and keeps it at a tiny magnitude, can further improve the convergence accuracy of the BOA algorithm without affecting the global convergence rate. Therefore, this paper improves the global search capability of the algorithm by introducing a randomness mutation factor with adaptive features in the global search phase of the BOA algorithm, as shown in Equation (12):
where
is the mutation operator and the weight coefficient shows a positive correlation with the difference in fitness between the current butterfly and the optimal butterfly. The
is the initial mutation operator, and, after several tests, the best expressiveness of the algorithm is achieved when the value of
is 0.1. The expression of the mutation operator,
, is shown in Equation (13):
where
denotes the chi-square distribution probability density function with a degree of freedom of
. It shows a rapidly increasing and then slowly decreasing trend, which helps butterfly individuals to converge to the optimum global position adaptively with the increasing number of iterations. The probability density function of the chi-square distribution is shown in Equation (14):
where the algorithm is more expressive when
. The global search formula of the BOA algorithm is changed, as shown in Equation (15).
3.2.5. BOA-TSAR Algorithm Flow
In this paper, we combine the Tent chaotic mapping process with remove short-period properties, nonlinear adaptive inertia weights, a simulated annealing strategy, and a random mutation with global adaptive features to improve the BOA algorithm in terms of the problem of poor convergence speed and the poor accuracy of high-dimensional complex functions, as processed by BOA, and propose the BOA-TSAR algorithm, The pseudo code is shown in Algorithm 3.
5. Experiment and Simulation
In the algorithm experiments, as well as the simulation part, to verify the effectiveness of the proposed BOA-TSAR algorithm, 24 CEC benchmark functions from different years were selected for algorithm testing in this paper, the details of which can be found in articles [
15,
16,
26], as shown in
Table 1, which shows the names, expressions, variable dimensions, and minimum values of each benchmark test function. In this paper, three sets of experiments will be conducted for the BOA-TSAR algorithm, based on the MATLAB 2020b simulation software on an i5-1135G7 minicomputer; the specific experimental design is as follows.
In order to better validate the improved strategy proposed in this paper and the actual operation capability of the algorithm, benchmark function tests were conducted for the original BOA algorithm, the BOA-TSAR algorithm, and the three sub-algorithms of the improved version. The three sub-algorithms are the BOA algorithm, based on a simulated annealing strategy (BOA-SA), a BOA algorithm based on adaptive nonlinear inertia weights (BOA-AIW), and a BOA algorithm based on the random mutation of global adaptive features (BOA-RV). In terms of experimental design, the benchmark functions are selected as six unimodal and six multimodal functions, which are tested in the dimension of Dim = 50 and Dim = 100, respectively, so as to verify the effectiveness of the improvement strategy that is proposed in this paper.
To further analyze the performance of the algorithm proposed in this paper and to produce satisfactory results when dealing with optimization problems, in this paper, four mainstream population intelligence search algorithms that are often used to solve complex optimization problems, namely, the genetic algorithm (GA) [
27,
28,
29], particle swarm optimization (PSO) algorithm [
30,
31], gray wolf optimization (GWO) algorithm [
32,
33], and the artificial bee colony (ABC) algorithm [
34], based on 24 benchmark functions, are selected for cross-sectional comparison tests.
This paper conducts drone 3D path-planning experiments, based on the public map dataset of Moving AI Lab. This experiment uses six 3D maps of different cities to conduct comparison tests against the BOA-TSAR algorithm, the A-Star algorithm [
35,
36,
37], the Jump Point Search (JPS) algorithm [
38,
39,
40], the RRT algorithm [
41], and the Theta* algorithm [
42], as proposed in this paper.
5.1. Experiment 1
In this experiment, six unimodal functions (
,
,
,
,
, and
) and six multimodal functions (
,
,
,
,
, and
) are selected from
Table 1 for the BOA algorithm, the BOA-TSAR algorithm, and the three modified sub-algorithms in the dimension of Dim = 50 and Dim = 100. The initial populations of all algorithms in the experimental procedure are generated using the modified Tent chaotic mapping. The initial number of individuals is set to 200 and the maximum number of iterations is set to 1000. Due to the small variability of the test results for the unimodal functions, only a partial display is made here, as shown in
Figure 10 and
Figure 11. The rest of the experimental results are shown in
Figure A1 and
Figure A2 in
Appendix A.
In the comparison experiments in two different dimensions, it can be seen that the convergence speed of the five algorithms shows less difference for the test case of the unimodal functions. The BOA-TSAR algorithm has the best expressiveness and the fastest convergence under
,
,
,
, and
for Dim = 50, while BOA-AIW has the best expressiveness in
. BOA-SA and BOA-RV converge at about the same rate as the BOA algorithm. The BOA-TSAR algorithm still converges fastest under
,
,
,
and
for Dim = 100, but the convergence speed of BOA-SA and BOA-RV is similar to that of the original BOA algorithm and weaker than that of the original BOA algorithm under
,
, and
. In the test of the multimodal functions, the difference in the convergence speed of each algorithm is large. In the tests with Dim = 50 and Dim = 100, the convergence speed of BOA-TSAR algorithm is the fastest, and the local stagnation of the original BOA algorithm is greatly weakened under
and
. Among all the improved sub-algorithms, BOA-AIW has the best expressiveness in terms of convergence speed and is more effective in improving the local stagnation phenomenon. The performance of BOA-RV is weaker, and the convergence speed is worse compared with other improved algorithms. The average (Avg) and standard deviation (Std) of the adaptation after 30 runs for each benchmark function in the experiment are shown in
Table 2 and
Table 3.
From
Table 2 and
Table 3, it can be seen that the convergence accuracy of all five algorithms in the testing process of unimodal functions (
,
,
,
,
,
) is relatively good. Among them, the BOA-TSAR algorithm has the highest convergence accuracy among all unimodal functions, and the convergence accuracy of the BOA-SA algorithm and the BOA-RV algorithm is more similar to the test results of the original BOA algorithm. In the multimodal functions (
,
,
,
,
,
) test results, the convergence of the BOA algorithm is not ideal, where the convergence of the BOA algorithm during the
,
,
test differs significantly from the theoretical optimum. The BOA-TSAR algorithm proposed in this paper has the best performance and the highest convergence accuracy in the multimodal functions test. In this experiment, the BOA-TSAR algorithm shows superior performance and finds theoretical optimal values for all complex functions in low- and high-dimensional conditions.
5.2. Experiment 2
In this experiment, BOA-SA, BOA-AIW, BOA-RV, BOA-TSAR, GA, PSO, GWO, and ABC are selected for cross-sectional comparison tests, based on the 24 benchmark functions listed in this paper in the Dim = 50 dimension. The test results are presented as the average (Avg) and standard deviation (Std) of the results of 30 experiments. The parameter settings of the algorithms involved in the comparison experiments are shown in
Table 4, where
denotes the crossover probability of the GA algorithm and
denotes the variance probability.
and
denote the learning factors of the PSO algorithm, and
and
denote the maximum and minimum values of the inertia weights.
denotes the maximum number of update-free iterations of the ABC algorithm for the detection bee solution,
denotes the number of food sources, and
denotes the problem dimension. The parameters concerning the improved BOA algorithm have been described in the text. The convergence curves of some of the experiments are shown in
Figure 12.
From the convergence graphs, we can see that the convergence speed and the ability to jump out of the local optimum of the BOA-TSAR algorithm are excellent compared to other algorithms. Except in the case of
and
, the BOA-TSAR algorithm converges to the theoretical optimum faster, compared to the other seven algorithms. From
,
, and
, the ABC algorithm has the most obvious local optimal point-stagnation phenomenon, and the stepwise convergence method leads to a decrease in its convergence speed and accuracy, and the convergence result differs greatly from the theoretical optimal value. From the test results of
, the GWO algorithm has the fastest convergence speed and BOA-VR has the highest convergence accuracy. The adaptive random mutation, based on the chi-square distribution probability density function used in BOA-VR, enhances the randomness of the butterfly’s search in the overall space, to a certain extent, which is beneficial for improving the convergence accuracy of the algorithm in the late iteration of the algorithm. In the tests of
,
,
and
, we can see that the convergence of GA, PSO and ABC is poor, and the phenomenon of falling into a local optimum and not being able to escape is more obvious, while conversely, the performance of other algorithms is better. In the test results of
, we can see that the iterative results of the GA algorithm are closest to the theoretical optimum, and the convergence accuracy of PSO and BOA-TSAR are more similar, but still show a gap with the theoretical optimum. The convergence results of each algorithm are shown in
Table 5.
From the convergence results of each algorithm, the BOA-TSAR algorithm and its improved sub-algorithms converge to the theoretical optimum for all benchmark function tests except
,
, and
, especially BOA-TSAR, the convergence accuracy of which is much higher than the other algorithms. The convergence accuracy of GA and ABC in the testing process is poor, except for
and
; the convergence results of the rest of the tested functions have a large gap with the theoretical optimal value, where it is easy to fall into the local optimum. The GWO algorithm also performs better in the test results, where the convergence accuracy of
to
, and
to
,
, and
to
are better than BOA-SA and BOA-RV. GWO shows better convergence accuracy than BOA-AIW in the tests of
and
. In the cross-sectional comparison of the convergence experiments of the benchmark functions of the eight algorithms, it is easy to see that the BOA-TSAR algorithm has superior solving ability in the face of complex functions and can find the theoretical optimal value under most of the complex functions. These results indicate that the improved strategy proposed in this paper has helped the BOA algorithm well in solving the problems of slow convergence and low accuracy under high-dimensional complex functions. At the same time, the BOA-TSAR algorithm shows a strong competitiveness among the same types of population intelligence algorithms. To get a clearer picture of the final results of the comparison experiments, we will rank each algorithm according to its performance in the Wilcoxon rank test and give the tied rank of each algorithm, as shown in
Table 6. It is worth noting that when the results of two algorithms are the same, the tied rank will take an equalization strategy for ranking (see article [
17] for a similar analysis).
As can be seen in
Table 6, the BOA-TSAR algorithm obtained the 20 best ranks among the 24 sets of benchmark functions tested, with excellent convergence accuracy. The BOA-AIW algorithm is the second most effective choice, followed by GWO, BOA-SA, BOA-VR, PSO, GA, and ABC. The ranking results support the previous experimental analysis and the conclusion of this paper that the BOA-TSAR algorithm shows the best convergence speed and convergence accuracy in the comparison experiments.
5.3. Experiment 3
In the drone path-planning experiments, six city maps taken from Moving AI Lab’s 3D public map dataset are used for the algorithm comparison tests. The selection of one of the maps is shown in
Figure 13. In the test, the A-Star and JPS algorithms, based on graph search technology, the RRT algorithm, based on sampling technology, and the Theta* algorithm, based on multi-angle pathfinding technology were selected for lateral comparative experiments among the various drone pathfinding technologies. According to the principle of fairness, the A-Star algorithm and JPS algorithm both use the Euclidean distance formula as the heuristic function. The search step of the RRT algorithm is set to 1 voxel length (the distance from the center of one voxel to the center of another voxel), while the tree node collision detection of RRT uses the same 3D LOS detection method as in the initial butterfly generation strategy of BOA-TSAR. In the testing process, five algorithms perform 3D path planning, using the same starting point and target point. The path-planning results will compare the time complexity, space occupation size, the total length of the generated paths, the path smoothness metric, and the number of path nodes of each algorithm, where the path smoothness metric is defined as the total turning angle of the path generated by the algorithm. The experimental simulation results are shown in
Figure 14, below.
From the test results shown in
Figure 13, it can be seen that all five path-planning algorithms can complete the pathfinding in the drones’ 3D workspace. Among them, the RRT algorithm generates paths very rapidly, but the path results that it obtains are poor. Although the path obtained by the RRT algorithm does not appear to collide with obstacles, the path nodes are generated by sampling, which leads to high randomness of the path direction and poor path generation. The A-Star algorithm and the JPS algorithm often obtain the shortest resulting path under discrete voxels during the pathfinding process. However, it is worth noting that the paths obtained by A-Star and JPS still differ from the actual optimum due to the restrictive nature of their search directions. The Theta* algorithm, based on the multi-angle pathfinding technique, performs well among the six experiments, and the resultant paths obtained are closer to the actual optimum because they are no longer restricted by the search direction; however, the large number of angle transferability calculations also leads to high time complexity and space complexity of the Theta* algorithm. Since the BOA-TSAR algorithm incorporates an improved initial population generation strategy that greatly reduces the generation of unnecessary path interruptions, the BOA-TSAR algorithm has the smallest number of nodes among all experiments and also has the fewest turn angles and smoother paths. In this paper, the experimental results are presented, as shown in
Table 7.
Analyzing the generated path lengths of the five algorithms, the BOA-TSAR algorithm obtained the shortest paths in all four sets of comparison experiments, except for the map test in Boston and Sydney, where the path lengths were longer than those generated by the Theta* algorithm. Meanwhile, the path generated by the BOA-TSAR algorithm has the smallest total turning angle among the six groups of comparison experiments, and the resulting path is smoother than with other algorithms. In terms of the time complexity and space complexity of the algorithm, the BOA-TSAR algorithm requires a longer running time and occupies more space than the A-Star and JPS algorithms. However, the time complexity and space complexity of the BOA-TSAR algorithm are lower than those of the Theta* algorithm in the case of a better quality of generated paths.