Path planning method for near-ground delivery UAV based on BOA-TSAR algorithm
Through the improved BOA-TSAR algorithm, combined with butterfly optimization and simulated annealing methods, the complexity problem in UAV path planning is solved, safe and efficient path planning in complex environments is achieved, the path length is shortened and mission efficiency is improved. .
Patent Information
- Application Number
- CN202211369264.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-03
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2042-11-03
AI Technical Summary
When UAVs perform near-ground delivery tasks, they face the challenge of autonomous navigation in complex environments, especially the optimization of path planning, which results in long and uneven path lengths, affecting mission efficiency and safety.
The improved BOA-TSAR algorithm is used, combined with the butterfly optimization algorithm, nonlinear adaptive inertia weight, simulated annealing method and three-dimensional Bresenham line algorithm, and the initial population is generated through Tent chaos mapping and F distribution random numbers to improve the search performance of the algorithm. and the feasibility and diversity of path planning.
It achieves safe and efficient planning of UAV paths in complex low-altitude environments, shortens the path length, reduces path discontinuities, and improves UAV work efficiency and mission success rate.
Smart Images

Figure CN115562347B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of unmanned aerial vehicle path planning and trajectory optimization, and in particular to a near-ground delivery unmanned aerial vehicle path planning method based on a BOA-TSAR algorithm. Background Art
[0002] With the increasing market demand for logistics automation equipment, robots are being used more and more widely in the logistics industry. In recent years, the explosive growth of e-commerce and express delivery industries has given rise to the vigorous development of logistics robots. Robots have expanded from traditional tasks such as palletizing, depalletizing, and handling to warehousing, sorting, and distribution.
[0003] Initially, drones were widely used in the military industry of various countries due to their relatively low cost, high concealment, flexible operation, and fear of casualties, and gradually became the representative of the backbone military forces of various countries. Today, with the rise of Industry 4.0 and emerging technologies, drones play an important role in various fields such as agriculture, photography, transportation, remote sensing, and search and rescue. The advancement of drone technology has made it possible to build a low-altitude unmanned delivery network. In 2013, Amazon launched a drone delivery network construction plan called Prime Air Drone Deliveries to reduce transportation and delivery time under ground traffic congestion. This technology makes it possible to quickly transport urgently needed medical supplies (such as organs, blood and drugs for transplantation) to inaccessible places to urgently save lives. At present, drone flights in urban areas, especially in low-altitude urban environments, are still strictly restricted. Flight missions in a considerable number of areas require approval or authorization from local departments. Most drone work scenes are deployed in remote suburbs or wild environments. This is far from giving full play to the advantages of drones to replace people in the current congested traffic environment to achieve fast and efficient delivery services. Therefore, building an unmanned aerial delivery network and rationally using drones for efficient transportation will provide great help in further shortening the time of medical rescue and improving the success rate of medical rescue.
[0004] Unlike other commercial aircraft, drones are defined as unmanned aerial vehicles that can be controlled by remote radio equipment or onboard computers. Although drones have the ability to take off and land vertically within a short distance, which greatly enhances their adaptability to near-ground flights to a certain extent, they still face huge challenges in the process of performing delivery tasks. How to achieve safe and efficient autonomous navigation of drones in an environment with urgent time and complex conditions will be the decisive factor for the success of drone delivery. Path planning, as a key technology of the autonomous navigation module of drones, requires drones to autonomously plan a collision-free path from the starting point to the target point in the workspace. In essence, it is an optimization problem under the constraints of the feasible area. Path planning has the minimum cost and requires it to meet the feasibility constraints. It is described as one of the challenging problems for traditional optimization strategies. Summary of the invention
[0005] In order to solve the above problems, the present invention proposes a near-ground delivery UAV path planning method based on the BOA-TSAR algorithm, which realizes safe and efficient autonomous navigation of the UAV through the ability of the meta-heuristic search algorithm to solve highly nonlinear and complex problems.
[0006] The technical solution adopted by the present invention is: a near-ground delivery drone path planning method based on the BOA-TSAR algorithm, comprising the following steps:
[0007] S1, based on the problem of generating the initial butterfly population of the Butterfly Optimization Algorithm (BOA), an improved Tent chaotic map that removes short-cycle characteristics is added, which improves the randomness strategy of the initial population generation of the BOA algorithm, balances the equilibrium of the initial solution generated by the BOA algorithm in the solution space, and further improves the population diversity of the algorithm in the initial stage.
[0008] S2, an improved BOA algorithm (BOA-TSAR) is proposed, which combines the nonlinear adaptive inertia weight (NAIW) strategy, the Metropolis criterion of simulated annealing (SA) and random mutation with global adaptive characteristics to improve the search performance of the BOA algorithm. It improves the shortcomings of the BOA algorithm such as slow convergence speed, low accuracy and local optimal stagnation when processing high-dimensional complex functions.
[0009] S3, combines the BOA-TSAR algorithm with UAV path planning, and uses the line of sight (LOS) detection of the improved three-dimensional Bresenham line algorithm to achieve the rational generation of the initial path population, reduce the convergence time of BOA-TSAR, and further reduce the generation of path discontinuities while ensuring the diversity of feasible solutions for the path generated by the BOA algorithm.
[0010] Further, the step S1 specifically includes:
[0011] S11, by adding a small disturbance to the Tent chaotic map, the chaotic sequence generated by it can jump out of the short-period cycle.
[0012] S12, adding random numbers based on F distribution to small disturbances makes the values of small disturbances more distributed in a smaller interval, thus destroying the short-period characteristics of the chaotic sequence while maintaining the randomness of the sequence.
[0013] S13, after many experiments, the random perturbation is more reasonable when the values of the first degree of freedom a and the second degree of freedom b in the probability density function of the F distribution are a=3 and b=5 respectively.
[0014] Specifically, the formula of the improved chaotic mapping based on F distribution to remove the short-period characteristics is as follows:
[0015]
[0016] Where frnd(a,b) is a random number generated by F distribution, x n represents the number of sequences currently generated by the chaotic map, δ∈[0,1] and generally δ=0.5, x n+1 Represents the next sequence number generated by the chaotic map.
[0017] Further, the step S2 specifically includes:
[0018] S21, introduces adaptive nonlinear inertia weights in the global search phase of the BOA algorithm as follows:
[0019]
[0020] where ω BOA Indicates the current butterfly's inertia weight value, Fitness t,g Represents the fitness of the optimal butterfly in the tth iteration, Fitness t,i represents the fitness of the i-th butterfly in the t-th iteration, N iter Represents the maximum number of iterations. BOA Split into two weight parts, where ω 1 It is related to the fitness of individual butterflies, and it will automatically adjust according to the changes in the fitness value of individual butterflies. 2 The value of will show a decreasing trend as the number of iterations increases.
[0021] S22, the Metropolis criterion of simulated annealing process is introduced in the iterative process of BOA algorithm; the current state of the butterfly individual is The corresponding fitness is expressed as Fitness t,i , the butterfly is in the following state after moving Fitness t,i+1 , then the state of the current butterfly individual is defined by becomes The probability is p metr , the formula is as follows:
[0022]
[0023] Where T frag Indicates the fragrance residual coefficient in the physical environment.
[0024] S23, a random mutation factor with adaptive features is introduced in the global search phase of the BOA algorithm. The formula is as follows:
[0025]
[0026] Where Mu represents the random mutation factor with adaptive features, γ is the mutation operator, and γ 0 is the initial mutation operator, and the expression of the mutation operator γ is as follows:
[0027]
[0028] where chi2pdf(χ free ) represents the degree of freedom χ free The chi-square distribution probability density function, N iter Indicates the maximum number of iterations.
[0029] Furthermore, the global search and local search of the BOA algorithm are improved, including:
[0030] 1) In the global search phase, butterflies need to migrate to the butterfly individual with the highest current fitness. The formula is as follows:
[0031]
[0032] in represents the solution vector of the i-th butterfly individual in the t-th iteration process, f i represents the intensity of the scent pheromone emitted by the i-th butterfly, g* represents the fitness of the optimal butterfly individual in the current iteration, and r is a random number that satisfies r∈[0,1].
[0033] 2) In the local search phase, individual butterflies are in a state of random movement and are affected by other random butterflies in the contemporary population. The formula is as follows:
[0034]
[0035] in and Represents the j-th and k-th butterfly individuals in the solution space.
[0036] Furthermore, the calculation steps of the improved BOA algorithm specifically include:
[0037] (1) The number of butterflies N and the number of algorithm iterations N in the BOA algorithm iter , the transition probability p of local search and global search, the perception mode c, the power index a, the dimension of the solution space Dim and the boundary conditions (ub, lb) are initialized;
[0038] (2) Each time a first-generation butterfly population is randomly generated in the solution space, the fitness value of each individual is calculated according to the fitness function and the optimal butterfly of the first generation is found;
[0039] (3) Calculate the perceived intensity of the scent pheromones of all butterflies according to the scent formula, and determine the movement behavior of the current butterfly by the random number rand and the transition probability p;
[0040] (4) When rand < p, the current butterfly performs a global search and migrates to the optimal individual; when rand ≥ p, the current butterfly performs a local walk;
[0041] (5) If the number of algorithm iterations reaches the termination condition, the loop ends and the optimal individual is output; otherwise, the sensory modality is further updated and returns to step (3); the update of the sensory modality is as follows:
[0042]
[0043] where c t Represents the value of the sensory modality at the tth iteration.
[0044] Further, the step S3 specifically includes:
[0045] S31, discretize and segment the three-dimensional workspace of the UAV through equal-volume voxels, and the volume of the voxel is set to 1.2 to 1.5 times the volume of the UAV;
[0046] S32, for the x-axis, y-axis and z-axis respectively in the discretized UAV flight area, a tent chaotic map with short-cycle characteristics removed is used to generate feasible path nodes, and the LOS reachability between the generated nodes and their parent nodes and the target point is detected;
[0047] S33, if the current node and its parent node and the target point are all reachable by LOS, then this individual is output and the next butterfly individual is generated; if the current node is only reachable by LOS with its parent node, then the current node is retained as the parent node and the next node is generated; if the current node is not reachable with its parent node, then the current node is directly discarded;
[0048] S34, the algorithm generates the initial population in an iterative manner until all the initial butterflies meet the feasible solution and the algorithm ends.
[0049] The advantages and beneficial effects of the present invention are as follows:
[0050] Therefore, for drones that perform near-ground delivery missions, autonomous navigation of the drone will be the decisive factor in the success of the mission. As a key technology for autonomous navigation, path planning in the three-dimensional workspace of drones has received more and more attention. Under the premise of ensuring safety, shorter and smoother paths will undoubtedly greatly shorten the time it takes for drones to perform tasks and improve the work efficiency of drones. Based on the above problems, the present invention will implement path planning for drones by using a modified BOA algorithm, so as to achieve safe delivery of drones in complex low-altitude environments. The work is now summarized.
[0051] (1) In order to avoid the distributed aggregation of populations caused by random numbers, the present invention replaces the random strategy in the initial butterfly generation process of the BOA algorithm by using the Tent chaotic map. At the same time, the generation sequence in the Tent chaotic map is avoided to have a short periodicity phenomenon by a small disturbance based on the F distribution.
[0052] (2) The present invention proposes the BOA-TSAR algorithm through adaptive nonlinear inertia weights, simulated annealing strategy and random mutation with global adaptive characteristics. The BOA-TSAR algorithm improves the shortcomings of the BOA algorithm, such as slow convergence speed, low accuracy and local optimal stagnation for complex functions. Experiments show that the BOA-TSAR algorithm shows the best convergence speed and convergence accuracy in the test process of unimodal functions and multimodal functions. At the same time, in horizontal comparative experiments, the BOA-TSAR algorithm also shows strong competitiveness among the same type of swarm intelligence algorithms.
[0053] (3) In the path planning design based on the BOA-TSAR algorithm, the initial butterfly has the problem of redundant nodes. The present invention proposes an initial population generation strategy based on the three-dimensional LOS detection method, which further reduces the generation of path discontinuities while ensuring the diversity of feasible solutions. Through horizontal comparative tests based on public data sets, it can be seen that the three-dimensional path generated by the BOA-TSAR algorithm performs well in the tests of path length and path smoothness indicators. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1 is a flow chart of the present invention;
[0055] Figure 2 It is a discrete UAV working environment based on three-dimensional voxels;
[0056] Figure 3 To determine whether the current node needs to be retained through LOS detection;
[0057] Figure 4 It is the complete path generated by the drone in the three-dimensional workspace. DETAILED DESCRIPTION
[0058] The following will describe the technical solutions in the embodiments of the present invention in detail in conjunction with the accompanying drawings in the embodiments of the present invention. The described embodiments are only part of the embodiments of the present invention.
[0059] See also Figure 1 , the specific scheme adopted by the present invention is:
[0060] S1, based on the discrete modeling of the UAV's three-dimensional flight space, this method uses equal-volume three-dimensional voxels to divide the UAV's workspace and obstacles, such as Figure 2 shown.
[0061] S2, the generation problem of the initial butterfly population based on the BOA algorithm, with the addition of an improved Tent chaotic map that removes short-period characteristics:
[0062] S11, by adding a small disturbance to the Tent chaotic map, the chaotic sequence generated by it can jump out of the short-period cycle.
[0063] S12, adding random numbers based on F distribution to small disturbances makes the values of small disturbances more distributed in a smaller interval, thus destroying the short-period characteristics of the chaotic sequence while maintaining the randomness of the sequence.
[0064] S13, after many experiments, the random perturbation is more reasonable when the values of the first degree of freedom a and the second degree of freedom b in the probability density function of the F distribution are a=3 and b=5 respectively.
[0065] Tent chaos mapping is also called tent mapping. It has uniform probability distribution density and good data correlation. The expression is as follows:
[0066]
[0067] When δ=0.5, the Tent mapping has the most typical form. At this time, the mapping sequence obtained has a uniform distribution characteristic and has a nearly consistent distribution density for different parameters. However, it cannot be ignored that in this case, the sequence generated by the Tent mapping will have short-period characteristics to a certain extent.
[0068] In the process of initializing the butterfly population, the present invention realizes jumping out of the periodic cycle by adding a small disturbance in the Tent chaotic map. n =x n-k And when k∈(1,2,3,4), where k represents any number among 1, 2, 3 or 4, the expression of Tent chaotic map is as follows.
[0069]
[0070] Where frnd(a,b) is a random number generated by F distribution. The probability density function of F distribution presents an asymmetric form, that is, it rises rapidly and then slowly decreases. This makes the values generated by small disturbances more distributed in a smaller interval, destroying the short-period characteristics of the chaotic sequence while maintaining the randomness of the sequence. n represents the number of sequences currently generated by the chaotic map, δ∈[0,1] and generally δ=0.5, x n+1 Represents the next sequence number generated by the chaotic map.
[0071] S3, the present invention proposes an improved BOA algorithm (BOA-TSAR), initializes the parameter information of the BOA-TSAR algorithm, calculates the fitness of the primary butterfly population, and selects the best individual. The BOA-TSAR algorithm combines the nonlinear adaptive inertia weight (NAIW) strategy, the Metropolis criterion of the simulated annealing method (SA), and random mutation with global adaptive characteristics to improve the search performance of the BOA algorithm.
[0072] Iteration assumptions of the BOA algorithm:
[0073] 1) All butterfly individuals should release appropriate scent pheromones so that all individuals can attract each other.
[0074] 2) Each butterfly can move randomly, or move towards a butterfly with better fitness that emits more fragrance.
[0075] 3) The intensity of butterfly stimulation is affected by the algorithm’s objective function.
[0076] The calculation formula of the fragrance pheromone in the present invention is:
[0077] f=cI a
[0078] Where f represents the perceived intensity of the scent pheromone, that is, the intensity of the scent that other butterflies can perceive. I represents the fitness of the butterfly, that is, the stimulation intensity of the scent produced by the current butterfly. c represents the perception mode, which determines the convergence speed of the BOA algorithm. a represents the power index that depends on the scent pheromone, which together with the perception mode determines the movement behavior of the BOA algorithm. Under normal circumstances, the algorithm allows parameters a and c to take values in the range of [0,1].
[0079] S21, the present invention aims at the shortcomings of the BOA algorithm, such as slow convergence speed for processing complex functions and low precision of optimization results, and introduces an adaptive nonlinear inertia weight in the global search stage of the BOA algorithm, as shown below:
[0080]
[0081] where ω BOA Indicates the current inertia weight value of the butterfly. t,g Represents the fitness of the optimal butterfly in the tth iteration. t,i N represents the fitness of the i-th butterfly in the t-th iteration. iter Represents the maximum number of iterations. BOA Split into two weight parts, where ω 1 It is related to the fitness of individual butterflies, and it will automatically adjust according to the changes in the fitness value of individual butterflies. 2 The value of will show a decreasing trend as the number of iterations increases.
[0082] S22, by using the Metropolis criterion in the BOA algorithm, inferior individuals can be retained with a certain probability, the diversity of the population can be increased, and the ability of the BOA algorithm to escape from the local optimum can be improved. Assume that the current state of the butterfly individual is The corresponding fitness is expressed as Fitness t,i After the butterfly moves, its state is Fitness t,i+1 . Then the current state of the butterfly individual is defined by becomes The probability is p metr , the formula is as follows:
[0083]
[0084] Where T frag It represents the residual coefficient of fragrance in the physical environment. Through cyclic decay, it is reduced to the threshold that the butterfly cannot perceive and used as the iconic condition for ending the algorithm.
[0085] S23, the present invention introduces a random variation factor with adaptive characteristics in the global search phase of the BOA algorithm to improve the global search capability of the algorithm. The formula is as follows:
[0086]
[0087] Among them, γ is the mutation operator, and its weight coefficient is positively correlated with the fitness difference between the current butterfly and the optimal butterfly. 0 is the initial mutation operator. After multiple tests, γ 0 When the value of is 0.1, the algorithm performs best. t,g It represents the optimal fitness value of the butterfly population in the tth iteration process, Fitness t,i Indicates the individual state of the butterfly during the tth iteration The corresponding fitness. The expression of mutation operator γ is as follows:
[0088]
[0089] where chi2pdf(χ free ) represents the degree of freedom χ free The chi-square distribution probability density function of , t represents the current iteration number. It shows a trend of rapid increase and then slow decrease, which helps the butterfly individual to adaptively converge to the global optimal position as the number of iterations increases.
[0090] The global search and local search of the BOA algorithm include:
[0091] S31, in the global search phase of the BOA algorithm, butterflies need to migrate to the butterfly individual with the highest current fitness. The formula is as follows:
[0092]
[0093] in represents the solution vector of the i-th butterfly individual in the t-th iteration process. i represents the intensity of the scent pheromone emitted by the i-th butterfly. g* represents the fitness of the best butterfly individual in the current iteration. r is a random number that satisfies r∈[0,1].
[0094] S32, in the local search phase of the BOA algorithm, individual butterflies are in a state of random movement and are affected by other random butterflies in the contemporary population. The formula is as follows:
[0095]
[0096] in and Represents the j-th and k-th butterfly individuals in the solution space.
[0097] According to the above introduction, the calculation steps of the butterfly optimization algorithm include:
[0098] (1) The number of butterflies in the BOA algorithm (N), the number of algorithm iterations (N iter ), the transition probability of local search and global search (p), the perception mode (c), the power index (a), the dimension of the solution space (Dim) and the boundary conditions (ub, lb) are initialized;
[0099] (2) Each time a first-generation butterfly population is randomly generated in the solution space, the fitness value of each individual is calculated according to the fitness function and the optimal butterfly of the first generation is found;
[0100] (3) Calculate the perceived intensity of the scent pheromones of all butterflies according to the scent formula, and determine the movement behavior of the current butterfly by the random number rand and the transition probability p;
[0101] (4) When rand < p, the current butterfly performs a global search and migrates to the optimal individual. When rand ≥ p, the current butterfly performs a local walk;
[0102] (5) If the number of algorithm iterations reaches the termination condition, the loop ends and the optimal individual is output. Otherwise, the sensory modality is further updated and returns to step (3). The update of the sensory modality is as follows.
[0103]
[0104] where c t Represents the value of the sensory modality at the tth iteration.
[0105] S4, the specific steps of the initial population generation strategy based on the three-dimensional LOS (three-dimensional Bresenham line algorithm line of sight) detection method are as follows:
[0106] S41, discretizes and segments the three-dimensional workspace of the UAV through equal-volume voxels. Considering the safety of autonomous flight of the UAV, the volume of the voxel is set to 1.2 to 1.5 times the volume of the UAV, such as Figure 2 shown.
[0107] S42, for the x-axis, y-axis, and z-axis in the discretized UAV flight area, the Tent chaotic map with short-cycle characteristics removed is used to generate feasible path nodes, and the LOS reachability between the generated nodes and their parent nodes and the target point is detected, as shown in Figure 3 shown.
[0108] S43, if the current node and its parent node and the target point are all LOS reachable, then output this individual and generate the next butterfly individual. If the current node only has LOS reachability with its parent node, then keep the current node as the parent node and continue to generate the next node. If the current node and its parent node are not reachable, then directly discard the current node, such as Figure 4 shown.
[0109] S44, the algorithm generates the initial population in an iterative manner until all the initial butterflies meet the feasible solution and the algorithm ends.
[0110] According to the analysis of the experimental results, it can be seen that the initial population generation strategy based on the three-dimensional LOS detection method proposed in the present invention can further reduce the generation of path discontinuities while ensuring the diversity of feasible solutions. Through horizontal comparative tests based on public data sets, it can be seen that the three-dimensional path generated by the BOA-TSAR algorithm performs well in the tests of path length and path smoothness indicators.
Claims
1. Path planning method for near-ground delivery UAV based on BOA-TSAR algorithm, It is characterized in that The following steps are involved: S1, the generation problem of the initial butterfly population based on the BOA algorithm, adding an improved Tent chaotic map that removes short-period characteristics, specifically including: S11, adding small perturbations to the Tent chaotic map; S12, adding random numbers based on F distribution to small perturbations; The formula of the improved chaotic mapping based on F distribution to remove the short-period characteristics is as follows: Where frnd(a,b) is a random number generated by F distribution, x n represents the number of sequences currently generated by the chaotic map, δ∈[0,1], x n+1 Represents the next sequence number generated by the chaotic map; S2, improves the BOA algorithm by combining nonlinear adaptive inertia weight, Metropolis criterion of simulated annealing method and random mutation with global adaptive characteristics; S21, introduces adaptive nonlinear inertia weights in the global search phase of the BOA algorithm as follows: where ω BOA Indicates the current butterfly's inertia weight value, Fitness t,g Represents the fitness of the optimal butterfly in the tth iteration, Fitness t,i represents the fitness of the i-th butterfly in the t-th iteration, N iter Represents the maximum number of iterations, and ω BOA Split into two weight parts, where ω 1 It is related to the fitness of individual butterflies. It will automatically adjust according to the changes in the fitness value of individual butterflies. 2 The value of will show a decreasing trend as the number of iterations increases; S22, the Metropolis criterion of simulated annealing process is introduced in the iterative process of BOA algorithm, as shown below: The current state of the butterfly individual is The corresponding fitness is expressed as Fitness t,i , the butterfly is in the following state after moving Fitness t,i+1 , then the state of the current butterfly individual is defined by becomes The probability is p metr , the formula is as follows: Where T frag Indicates the fragrance residual coefficient in the physical environment; S23, a random mutation factor with adaptive features is introduced in the global search phase of the BOA algorithm. The formula is as follows: Among them, Mu represents the random variation factor with adaptive characteristics, Fitness t,g It represents the optimal fitness of the butterfly population in the tth iteration process, Fitness t,i Indicates the individual state of the butterfly during the tth iteration The corresponding fitness, γ is the mutation operator, γ 0 is the initial mutation operator, and the expression of the mutation operator γ is as follows: where chi2pdf(χ free ) represents the degree of freedom χ free The chi-square distribution probability density function, N iter Indicates the maximum number of iterations; The calculation steps of the improved BOA algorithm specifically include: (1) The number of butterflies N and the number of algorithm iterations N in the BOA algorithm iter , the transition probability p of local search and global search, the perception mode c, the power index a, the dimension of the solution space Dim and the boundary conditions (ub, lb) are initialized; (2) Each time a first-generation butterfly population is randomly generated in the solution space, the fitness value of each individual is calculated according to the fitness function and the optimal butterfly of the first generation is found; (3) Calculate the perceived intensity of the scent pheromones of all butterflies according to the scent formula, and determine the movement behavior of the current butterfly by the random number rand and the transition probability p; (4) When rand < p, the current butterfly performs a global search and migrates to the optimal individual; when rand ≥ p, the current butterfly performs a local walk; (5) If the number of algorithm iterations reaches the termination condition, the loop ends and the optimal individual is output; otherwise, the sensory modality is further updated and returns to step (3); the update of the sensory modality is as follows: where c t represents the value of the sensory modality at the tth iteration; S3, combining the improved BOA algorithm with the UAV path planning, and realizing the rational generation of the initial path population through the line of sight (LOS) detection of the improved 3D Bresenham line algorithm; S31, discretize and segment the three-dimensional workspace of the UAV through equal-volume voxels, and the volume of the voxel is set to 1.2 to 1.5 times the volume of the UAV; S32, for the x-axis, y-axis and z-axis respectively in the discretized UAV flight area, a tent chaotic map with short-cycle characteristics removed is used to generate feasible path nodes, and the LOS reachability between the generated nodes and their parent nodes and the target point is detected; S33, if the current node and its parent node and the target point are all reachable by LOS, then this individual is output and the next butterfly individual is generated; if the current node is only reachable by LOS with its parent node, then the current node is retained as the parent node and the next node is generated; if the current node is not reachable with its parent node, then the current node is directly discarded; S34, the algorithm generates the initial population in an iterative manner until all the initial butterflies meet the feasible solution and the algorithm ends.
2. According to the BOA-TSAR algorithm-based near-ground delivery UAV path planning method of claim 1, Features: Improve the global search and local search of the BOA algorithm, including: 1) In the global search phase, butterflies need to migrate to the butterfly individual with the highest current fitness. The formula is as follows: in represents the solution vector of the i-th butterfly individual in the t-th iteration process, f i represents the intensity of the scent pheromone emitted by the i-th butterfly, g* represents the fitness of the best butterfly individual in the current iteration, and r is a random number satisfying r∈[0,1]; 2) In the local search phase, individual butterflies are in a state of random movement and are affected by other random butterflies in the contemporary population. The formula is as follows: in and Represents the j-th and k-th butterfly individuals in the solution space.
