Multi-UAV trajectory planning method and system based on doujinshi group mechanism
Through the UAV track planning method based on the bean colicine group mechanism, the existing technology problems of complex UAV track planning, slow search speed and poor anti-interference ability are solved, and the effective avoidance of threats in the urban environment is achieved. Track planning improves navigation safety and efficiency.
Patent Information
- Application Number
- CN202410363847.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-28
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-03-28
AI Technical Summary
Existing UAV trajectory planning methods are complex, slow in search speed, high in threat cost, poor in anti-interference and anti-noise capabilities, and difficult to effectively avoid different levels of threats in urban protection and dispatch tasks.
A multi-UAV track planning method based on the bean colicine swarm mechanism is adopted. By marking and classifying threats, empirical pheromone and cantharidin concentrations are used to select paths, establish a grid method model, initialize the bean colicine group and set corresponding parameters. , select the next node according to the state transition strategy, adjust the transition probability, update the global pheromone and cantharidin, and optimize the trajectory planning.
Effectively avoid threats, improve the navigation safety and efficiency of UAV clusters in urban environments, balance the minimum comprehensive cost and shortest path conditions, ensure safety and effectiveness in multi-threat situations, and quickly converge to the optimal untie.
Smart Images

Figure CN118276604B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of unmanned aerial vehicle (UAV) path planning, and in particular to a multi-UAV trajectory planning method and system based on a pod group mechanism. Background Art
[0002] The path planning technology of drone swarm is one of the key technologies for drones to achieve autonomous obstacle avoidance and autonomous decision-making to complete the given tasks. Due to the diversity of urban construction and the complexity of climate change, when drones perform urban resource scheduling and urban protection tasks, they face multi-faceted communication pressure and multi-level threats, which affect the task realization of drone swarms. In order to meet the execution conditions of flight missions, it is necessary to design several tracks from the starting point to the end point under the conditions of the minimum threat cost and the shortest path, and comprehensively evaluate an optimal flight track. On the other hand, in view of the complex and changeable environmental factors and human electromagnetic influence factors in the city, drone swarms are required to make corresponding decision changes in real time when performing tasks to reduce flight costs, thereby effectively avoiding threats and improving the efficiency and accuracy of operations. It is of great significance and value to promote the construction of smart cities, strengthen urban defense, and accelerate the dispatch and circulation of materials.
[0003] Through searching the existing technical literature, it is found that Gou Jinlu et al. published "UAV formation flight trajectory planning method based on swarm intelligence-consistency theory" in Control and Decision (2023, 38(05): 1464-1472), which proposed an improved multi-step optimization particle swarm algorithm and introduced model predictive control rolling optimization waypoints to make the planning method more suitable for formation flight. However, the algorithm has a slow search speed and a large amount of calculation, and it is difficult to ensure the real-time performance of the algorithm when solving the optimal trajectory. Zheng Kai et al. published "UAV task allocation and trajectory planning optimization method based on improved A* algorithm" in Electro-Optics and Control (2022, 29(10): 7-11+101), which applied the improved A* algorithm to trajectory planning to achieve trajectory optimization, and applied the cubic B-spline curve method for trajectory smoothing to achieve local trajectory dynamic planning, but the calculation is complex and the threat cost is high, so it is difficult to ensure that the optimal path is found at the minimum threat cost. Pan Nan et al. proposed a hybrid differential crow search algorithm (LDCSA) based on the Levy flight strategy in the article "Collaborative trajectory planning of multiple UAVs for urban patrol" published in Information and Control (2022, 51(04): 411-422). They added pruning and Logistic chaos mapping mechanisms to the rapidly traversing random trees (RRT) algorithm, and initialized the trajectory through the improved RRT algorithm, which improved the global convergence of the algorithm and shortened the convergence time. However, the algorithm is complex and consumes a lot of computing power. When dealing with path planning problems in cities with high complexity factors, the performance may deteriorate. Gu Haiyan et al. published a paper titled "UAV spatiotemporal collaborative trajectory planning based on model predictive control" in Computer Engineering and Applications (2021, 57(23): 270-279). The paper established a multi-UAV distributed spatiotemporal collaborative trajectory planning framework consisting of an MPC (Model Predictive Control) controller, a spatial collaboration module, and a temporal collaboration module, solving the problem of action consistency in the distributed spatiotemporal collaboration problem. However, the model prediction and establishment depend on the state and reference information at the sampling time, and interference and measurement noise have a great impact on the establishment and prediction of the model, which is not conducive to solving the UAV trajectory planning problem in actual complex environments.
[0004] The existing literature search results show that the existing UAV trajectory planning has problems such as low environmental modeling complexity, high algorithm complexity, slow algorithm search speed, high threat cost, poor anti-interference and anti-noise capabilities; and there is a lack of efficient solutions for the UAV trajectory planning problem of urban protection and scheduling, and the different levels of threats to UAVs when performing tasks are unclear. Therefore, the Douyanjing mechanism is designed to solve the optimal UAV group navigation path, which has practical significance for the construction of smart cities and urban scheduling and protection. Summary of the invention
[0005] The technical problems to be solved by the present invention are:
[0006] In order to solve the problems that the existing UAV trajectory planning methods are complex, the search speed is slow, the threat cost is high, the anti-interference and anti-noise capabilities are poor, and the judgment is unclear when facing different threats when facing urban protection and dispatch tasks.
[0007] The present invention adopts the following technical solutions to solve the above technical problems:
[0008] The present invention provides a multi-UAV trajectory planning method based on the swarm mechanism of euphorbia pulex, which marks and grades threats and selects paths by using empirical pheromone and cantharidin concentrations, comprising the following steps:
[0009] S100, establishing a two-dimensional planning space model based on a grid method;
[0010] S200, establish a UAV cluster trajectory planning model that includes the UAV's own constraints and the comprehensive flight cost, and initialize the flight start and end points, set up F lag The vector marks the type of threat;
[0011] S300, initializing the sphagnum cyrtonematrix and setting corresponding parameters, wherein the parameters include empirical pheromone concentration, empirical pheromone matrix, empirical pheromone increase intensity, empirical pheromone importance, heuristic factor importance, empirical pheromone volatility coefficient, cantharidin concentration, cantharidin weight, cantharidin matrix, threat intensity factor and cantharidin diffusion factor; after initialization, obtaining the empirical pheromone concentration difference from the current node to the next node, the cantharidin concentration difference, the cost of the current node and the heuristic factor;
[0012] S400, assigning the scutellaria baicalensis group to an initial node, marking the cantharidin threat perception factor and the marking vector, and then obtaining a path set of the scutellaria baicalensis group;
[0013] S500, the Douyanjing group selects the next node and transfers according to the state transfer strategy, and lag The vector determines the threat level and adjusts the next generation transfer probability. This step is repeated until the visited node is the midpoint of the track, and the track set is obtained;
[0014] S600, update the global experience pheromone and cantharidin according to the threat intensity factor and the diffusion factor, and determine whether the set maximum number of iterations is reached. If so, the iteration is terminated, and the UAV track mapping from the starting point to the end point of the number of UAVs is obtained in the coordinate system as the planning path output; if not, repeat S500-S600 until the maximum number of iterations is reached and then terminated.
[0015] Further, in S100, the starting coordinates of the planning space are set to The ending coordinates are Assume that the grid size is l×w, where l is the length of the grid and w is the width of the grid, then the number of grid rows in the planning space is The number of grid columns in the planning space is The total number of nodes N = R ow ×C ol , let the i-th node The coordinates of
[0016] Furthermore, in S200, specifically including:
[0017] S210, let the starting coordinates of the g-th UAV track be The end point coordinates are The number of three potential threats is defined as in, is the number of high-rise building threats, is the number of severe weather threats, is the number of electromagnetic interference threats;
[0018] Assume that the threat range of high-rise buildings is a square, the threat range of severe weather and electromagnetic interference are circles with different radii, and the coordinates of the center point of the u-th high-rise building threat are for Among them, 1≤u≤(d hb / 2); coordinates of the center point of the vth severe weather threat for Among them, 1≤v≤d sw ; Coordinates of the qth electromagnetic interference threat center point for Among them, 1≤q≤d em ; The side length of the high-rise building threat is d hb , the radius of severe weather threat is d sw , the radius of electromagnetic interference threat is d em ;
[0019] Then the i-th node The total cost received can be expressed as,
[0020]
[0021] in, is the i-th node The sum of the threat costs, where i = 0, 1, 2, ..., N; is the i-th node The threat cost of being threatened by the u-th high-rise building, in is the i-th node The distance from the threat center of the u-th high-rise building; is the i-th node The threat cost of the vth severe weather threat, in is the i-th node The distance to the center of the vth severe weather threat; is the i-th node The threat cost of being threatened by the qth electromagnetic interference, in is the i-th node The distance from the qth electromagnetic interference threat center; δ hb ,δ sw and δ em are the threat costs and weights of the three threats respectively, and δ hb ∈[0,1],δ sw ∈[0,1],δ em ∈[0,1],δ hb +δ sw +δ em =1;
[0022] S220, initialize the starting point and end point of the track of the drone cluster, and set the starting coordinates of the g-th drone track to The end point coordinates are Assume the total number of drones is G, then 1≤g≤G;
[0023] S230, set the threat in, Represents the threat of high-rise buildings, Represents severe weather threats, Represents electromagnetic interference threat;
[0024] Let F lag Vector marking whether it is affected by T er Threat, get F lag =[F lag (1),F lag (2),F lag (3)], where F lag (1) represents whether a high-rise building threat is detected, F lag (2) represents whether severe weather threats are detected, F lag (3) Indicates whether an electromagnetic interference threat is detected;
[0025] Define the threat perception factor as θ = [θ hb ,θ sw ,θ em ],remember,
[0026]
[0027] Among them, P d is the threat perception distance, and Corresponding to the perception distance of three threats;
[0028] when When F lag (1)=1, otherwise F lag (1) = 0; when When F lag (2)=1, otherwise F lag (2) = 0; when When F lag (3)=1, otherwise F lag (3)=0.
[0029] Furthermore, in S300, specifically including:
[0030] Initialize the current node v of the tth generation t Go to the next node e t Empirical pheromone concentration Where 1≤v t ≤N,1≤e t ≤N, t is the number of iterations, and the N×N matrix of empirical pheromones is obtained
[0031] Initialize experience pheromone to increase strength Q τ ; Experience pheromone importance α τ ; Importance of heuristic factor β; Empirical pheromone volatility coefficient ρ τ ;
[0032] Initialize the current node v of the tth generation t Go to the next node e t Cantharidin concentration The weight of cantharidin is λ; the N×N matrix of cantharidin is obtained Assume that the threat intensity factor is φ = [φ(1), φ(2), φ(3)]; the diffusion factor of cantharidin is ζ = [ζ(1), ζ(2), ζ(3)]; where the threat factor of cantharidin is Let the cantharidin factor be
[0033] Initially, t=0, and the initial t-th generation empirical pheromone concentration difference from the current node to the next node is get,
[0034]
[0035] Initial cantharidin concentration difference from the current node to the next node in the tth generation get,
[0036]
[0037] Calculate the i-th node The price paid in,
[0038]
[0039] The i-th node The inspiration factor
[0040] Furthermore, in S400, specifically including:
[0041] S410, read the starting point coordinates The starting point number of the g-th UAV track of the t-th generation is The end number is The current node number of the t-th generation bean curd is The set of its adjacent nodes is
[0042] S420, place the kth bean sprouts of the tth generation at the starting point, even if At the starting point, add the kth generation of t-generation lycopersicon cyanidin threat perception factor θ = [θ hb ,θ sw ,θ em ] and the label vector F lag =[F lag (1),F lag (2),F lag (3)], when a threat is detected, the threat type is marked and the starting point is numbered The path set of k bean sprouts added to the tth generation middle.
[0043] Furthermore, in S500, it specifically includes:
[0044] S510: Find adjacent nodes, exclude the diagonal nodes that cannot be directly reached from the eight adjacent nodes of each node, and the remaining four nodes constitute an accessible set set up For accessible collections The threat perception distance of the jth node in Delete The jth node of gets the updated accessible set of k beans of the tth generation
[0045] S520: Determine the accessible set obtained in S510 Is it empty? If it is empty, execute S550; if it is not empty, continue to execute S530;
[0046] S530, let the set of nodes accessible to k bean curds of the tth generation be The number is For the nth node accessible to the kth bean sprout of the tth generation, Its state transition probability is,
[0047]
[0048] in, is the empirical pheromone concentration of the nth node accessible to the kth bean sprout of the tth generation, is the heuristic factor of the nth node accessible to the kth bean sprout of the tth generation, is the cantharidin concentration of the nth node pathway g accessible to the kth bean curd of the tth generation;
[0049] According to the roulette method, select the nth node set to be visited by the k-bean buds of the tth generation The node number to be visited is recorded as
[0050] S540: Determine the node to be visited by the k-th bean curd of the tth generation obtained in S530. Is it the end point of the g-th track of the t-th generation? Where g=1,2,3,…,G, if Then add the end point number to , continue to execute S550; otherwise, Then Number Add , return to S510 to continue execution;
[0051] S550, if k=K, execute the next step; otherwise return to S410 and repeat S400-S500.
[0052] Furthermore, in S600, specifically including:
[0053] S610, select the shortest path that the bean curd in the tth generation passes through Calculate the shortest path length L of the tth generation t The comprehensive cost of the shortest path is
[0054] in, is the sum of the threat costs on the shortest path, is the resource consumption cost on the shortest path, specifically expressed as fuel consumption. Assuming the unit fuel consumption per kilometer is h0, then
[0055] S620, updating the experience pheromone and cantharidin according to historical knowledge, the increment of the experience pheromone of the t+1 generation is,
[0056]
[0057] After global update of the experience pheromone,
[0058]
[0059] The increment of the t+1 generation cantharidin is,
[0060]
[0061] After global update of cantharidin,
[0062]
[0063] A multi-UAV trajectory planning system based on the Beanstalk swarm mechanism, the system has a program module corresponding to the above steps, and executes the steps in the above-mentioned multi-UAV trajectory planning method based on the Beanstalk swarm mechanism when running.
[0064] A computer-readable storage medium stores a computer program, wherein the computer program is configured to implement the steps of a multi-UAV trajectory planning method based on a Beanstalk group mechanism when called by a processor.
[0065] Compared with the prior art, the present invention has the following beneficial effects:
[0066] The present invention discloses a drone swarm trajectory planning model that imitates the behavior of cantharidin secreted by bean sprouts for threat marking when encountering external threats during foraging. Each potential threat is classified and identified through a threat classification system, thereby effectively avoiding the threat, facilitating jumping out of the local optimal solution, and specifically solving the trajectory planning problem of using drone swarms for material dispatch or disaster rescue in urban construction.
[0067] The set threat costs include the threat cost of high-rise buildings, electromagnetic interference cost, severe weather threat cost and the resource cost of the UAV itself, which effectively improves the anti-noise performance of the UAV cluster in trajectory planning, balances the optimal path from the starting point to the end point under the conditions of minimum comprehensive cost and shortest path, and ensures the safety and effectiveness of UAV cluster navigation under multiple threat situations.
[0068] At the same time, through the guidance of historical experience information and the constraint of threat information, the advancement of the optimal trajectory is guaranteed, so that the designed method can quickly converge to the optimal solution. In addition, the present invention can not only realize the trajectory planning of a single UAV, but also solve the multi-path trajectory planning problem of multiple UAVs from a starting point to multiple destinations, with stronger universality. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] Figure 1 It is a flow chart of a multi-UAV trajectory planning method based on a bean group mechanism in an embodiment of the present invention;
[0070] Figure 2 A comparison diagram of the trajectory planning performed by the method in the embodiment of the present invention and the classic ant colony algorithm;
[0071] Figure 3 This is a multi-UAV trajectory planning diagram for multiple UAVs from different starting points to the same end point using this method in an embodiment of the present invention. Description of the drawings:
[0073] Figure 2 The EHA is the multi-UAV trajectory planning method based on the ant colony mechanism of the present invention, and ACO is the classic ant colony algorithm. DETAILED DESCRIPTION
[0074] In the description of the present invention, it should be noted that the terminology nouns in the various embodiments, such as "up", "down", "front", "back", "left", "right", etc., which indicate directions, are only for simplifying the description of the positional relationship based on the drawings in the specification, and do not mean that the referred elements and devices must be operated according to the specific directions and defined operations and methods and structures in the specification. Such directional nouns do not constitute a limitation on the present invention.
[0075] In the description of the present invention, it should be noted that the terms "first", "second", and "third" mentioned in the embodiments of the present invention are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first", "second", and "third" may explicitly or implicitly include one or more of the features.
[0076] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0077] Specific implementation plan 1: Combine Figure 1 As shown, the present invention provides a multi-UAV trajectory planning method based on the bean group mechanism, comprising the following steps:
[0078] S100, establish a planning space model based on the grid method,
[0079] For the trajectory planning of drone swarms in smart cities to avoid obstacles and potential threats, the present invention makes the following assumptions about the urban planning space: when conducting urban threat prevention and control and resource scheduling, the reachable height range of the drone swarm is limited. Therefore, in order to simplify the complexity of the model, the flight trajectories of the drone swarm are approximately regarded as the same plane, and the drone trajectory planning problem under the premise of multiple types of threats and obstacles is solved in two-dimensional space.
[0080] Therefore, let the starting coordinates of the planning space be The ending coordinates are Assume that the grid size is l×w, where l is the length of the grid and w is the width of the grid, then the number of grid rows in the planning space is The number of grid columns in the planning space is The total number of nodes N = R ow ×C ol , number the nodes, let the i-th node The coordinates of The order is from bottom to top, from left to right;
[0081] S200, establish a UAV cluster trajectory planning model that includes the UAV's own constraints and the comprehensive flight cost, and initialize the flight start and end points, set up F lag The vector marks the type of threat, including:
[0082] S210, let the starting coordinates of the g-th UAV track be The end point coordinates are The number of three potential threats is defined as in, is the number of high-rise building threats, is the number of severe weather threats, is the number of electromagnetic interference threats;
[0083] Assume that the threat range of high-rise buildings is a square, the threat ranges of severe weather and electromagnetic interference are circles with different radii, and the coordinates of the center point of the u-th high-rise building threat are for Among them, 1≤u≤(d hb / 2); coordinates of the center point of the vth severe weather threat for Among them, 1≤v≤d sw ; Coordinates of the qth electromagnetic interference threat center point for Among them, 1≤q≤d em ; The side length of the high-rise building threat is d hb , the radius of severe weather threat is dsw , the radius of electromagnetic interference threat is d em ;
[0084] Then the i-th node The total cost received can be expressed as,
[0085]
[0086] in, is the i-th node The sum of the threat costs, where i = 0, 1, 2, ..., N; is the i-th node The threat cost of being threatened by the u-th high-rise building, in is the i-th node The distance from the threat center of the u-th high-rise building; is the i-th node The threat cost of the vth severe weather threat, in is the i-th node The distance to the center of the vth severe weather threat; is the i-th node The threat cost of being threatened by the qth electromagnetic interference, in is the i-th node The distance from the qth electromagnetic interference threat center; δ hb , δ sw and δ em are the threat costs and weights of the three threats respectively, so it is required that δ hb ∈[0,1],δ sw ∈[0,1],δ em ∈[0,1], and to satisfy normalization, δ hb +δ sw +δ em =1;
[0087] S220, initialize the starting point and end point of the track of the drone cluster, and set the starting coordinates of the g-th drone track to The end point coordinates are Assume the total number of drones is G, then 1≤g≤G;
[0088] S230, due to the classification of threats, define threats as in Represents the threat of high-rise buildings, Represents severe weather threats, Represents the threat of electromagnetic interference; therefore, F is setlag Vector marking whether it is affected by T er Threat, get F lag =[F lag (1),F lag (2),F lag (3)], where F lag (1) represents whether a high-rise building threat is detected, F lag (2) represents whether severe weather threats are detected, F lag (3) Indicates whether an electromagnetic interference threat is detected;
[0089] Define the threat perception factor as θ = [θ hb ,θ sw ,θ em ],remember,
[0090]
[0091] Among them, P d is the threat perception distance, and Corresponding to the perception distance of three threats;
[0092] when When F lag (1)=1, otherwise F lag (1) = 0; when When F lag (2)=1, otherwise F lag (2) = 0; when When F lag (3)=1, otherwise F lag (3) = 0;
[0093] S300, initialize the bean group and set the corresponding parameters,
[0094] Initialize the current node v of the tth generation t Go to the next node e t Empirical pheromone concentration Where 1≤v t ≤N,1≤e t ≤N, t is the number of iterations, and the N×N matrix of empirical pheromones is obtained
[0095] Initialize experience pheromone to increase strength Q τ ; Experience pheromone importance α τ ; Importance of heuristic factor β; Empirical pheromone volatility coefficient ρ τ ;
[0096] Initialize the current node v of the tth generation t Go to the next node et Cantharidin concentration The weight of cantharidin is λ; the N×N matrix of cantharidin is obtained Define threat intensity factor φ = [φ(1), φ(2), φ(3)]; cantharidin diffusion factor ζ = [ζ(1), ζ(2), ζ(3)]; where the threat factor of cantharidin is Define the cantharidin factor as
[0097] Initially, t=0, and the initial t-th generation empirical pheromone concentration difference from the current node to the next node is get,
[0098]
[0099] Initial cantharidin concentration difference from the current node to the next node in the tth generation get,
[0100]
[0101] Calculate the i-th node The price paid in,
[0102]
[0103] The i-th node The inspiration factor
[0104] S400, assigning k bean sprouts to an initial node, and performing the following steps to obtain a path set of bean sprouts, where 1≤k≤K,
[0105] S410, read the starting point coordinates The starting point number of the g-th UAV track of the t-th generation is The end number is The current node number of the t-th generation bean curd is The set of its adjacent nodes is
[0106] S420, place the kth bean sprouts of the tth generation at the starting point, even if At the starting point, add the kth generation of t-generation lycopersicon cyanidin threat perception factor θ = [θ hb ,θ sw ,θ em ] and the label vector F lag =[F lag (1),F lag (2),F lag (3)], when a threat is detected, the threat type is marked and the starting point is numbered The path set of k bean sprouts added to the tth generation middle;
[0107] S500, Douyanjing group selects the next node according to the state transfer strategy, including:
[0108] S510, find adjacent nodes. Since the grid method is used, each node has eight adjacent nodes to form a set. Excluding the diagonal nodes that cannot be reached directly, the remaining four nodes constitute the accessible set set up For accessible collections The threat perception distance of the jth node in Delete The jth node of gets the updated accessible set of k beans of the tth generation
[0109] S520: Determine the accessible set obtained in S510 Is it empty? If it is empty, execute S550; if it is not empty, continue to execute S530;
[0110] S530, let the set of nodes accessible to k bean curds of the tth generation be The number is For the nth node accessible to the kth bean sprout of the tth generation, Its state transition probability is,
[0111]
[0112] in, is the empirical pheromone concentration of the nth node accessible to the kth bean sprout of the tth generation, is the heuristic factor of the nth node accessible to the kth bean sprout of the tth generation, The cantharidin concentration of the nth node pathway g accessible to the kth bean sprout of the tth generation;
[0113] According to the roulette method, the state transition probabilities of the accessible nth nodes are calculated and regarded as the sectors of the roulette wheel. By using [0,1] random numbers to simulate the sectors pointed to when the pointer stops, the nth node set to be visited by the tth generation k beans is selected. The node number to be visited is recorded as
[0114] S540: Determine the node to be visited by the k-th bean curd of the tth generation obtained in S530. Is it the end point of the g-th track of the t-th generation, where g = 1, 2, 3, ..., G? Then add the end point number to , continue to execute S550; otherwise, Then Number Add , return to S510 to continue execution;
[0115] S550, if k=K, execute S600; otherwise return to S410 and repeat S400-S500;
[0116] S600, updating global experience pheromones and cantharidin, specifically including:
[0117] S610, select the shortest path that the bean curd in the tth generation passes through Calculate the shortest path length L of the tth generation t The comprehensive cost of the shortest path is
[0118] in, is the sum of the threat costs on the shortest path, is the resource consumption cost on the shortest path, specifically expressed as fuel consumption. Assuming the unit fuel consumption per kilometer is h0, then
[0119] S620, updating the experience pheromone and cantharidin according to historical knowledge, the increment of the experience pheromone of the t+1 generation is,
[0120]
[0121] After global update of the experience pheromone,
[0122]
[0123] The increment of the t+1 generation cantharidin is,
[0124]
[0125] After global update of cantharidin,
[0126]
[0127] S700, determine whether t reaches the maximum number of iterations, if so, the iteration is terminated and enter S800, otherwise set t = t + 1, return to S500 and continue iterating until the maximum number of iterations is reached;
[0128] S800, mapping the G drone tracks from the starting point to the end point obtained in S700 in the coordinate system as a planned path output.
[0129] Specific implementation scheme 2: The present invention provides a multi-UAV trajectory planning system based on the bean curd group mechanism, which has a program module corresponding to the above steps, and executes the steps in the above-mentioned multi-UAV trajectory planning method based on the bean curd group mechanism during operation.
[0130] The other combinations and connection relationships of this embodiment are the same as those of the first embodiment.
[0131] Specific implementation scheme three: The present invention provides a computer-readable storage medium, which stores a computer program, and the computer program is configured to implement the steps of a multi-UAV trajectory planning method based on a bean swarm mechanism when called by a processor.
[0132] The other combinations and connection relationships of this embodiment are the same as those of the first embodiment.
[0133] Comparative simulation experiment 1
[0134] The algorithm of the present invention and the classic ant colony algorithm are used to solve the UAV trajectory planning in a complex threat environment under the same parameters.
[0135] Parameter design:
[0136] Considering the actual size of the city, the coordinate unit is set to km, the starting point coordinate is (10, 20), the end point coordinate is (45, 50), the horizontal coordinate range of the planning space is set to [10, 60], and the vertical coordinate range is set to [20, 70]. Number of high-rise building threats The coordinates of the threat center points are (26,50), (52,45), (39,30), and (51,25), and the threat side length is d. hb =4, the threat weight is δ hb =0.2; Number of severe weather threats The coordinates of the threat center are (17,22), (24,40), (30,62), and the threat radius is d sw =3, the threat weight is δ sw =0.3; Number of electromagnetic interference threats The threat center coordinates are (10,30), (30,30), (14,46), (40,50), and the threat radius is d em =4, the threat weight is δ em =0.4, fuel consumption cost is δ oil =0.1, unit fuel consumption is c oil =1. Set the population size K = 100 and the number of iterations to 500. Initial empirical pheromone concentration τ0 = 2, increase the strength Q τ =1, experience pheromone importance α τ=1, the importance of the heuristic factor β = 0.6, the volatility coefficient of the empirical pheromone ρ τ =0.4; initial cantharidin concentration χ0=2, cantharidin weight λ=0.5, cantharidin threat perception factor θ=[2,3,1], threat intensity factor φ=[0.2,0.5,0.3], cantharidin diffusion factor ζ=[0.4,0.2,0.2].
[0137] Combination Figure 2 As shown, the drone cluster trajectory planning based on the ant colony mechanism designed by the present invention is superior to the traditional ant colony mechanism path planning method. Its path is relatively shorter, there are fewer detours, and the threat avoidance is more efficient.
[0138] Comparative simulation experiment 2
[0139] The UAV cluster trajectory planning method based on the bean curd mechanism of the present invention is used to perform trajectory planning comparison under different starting points and the same end point, with the same parameter design as the comparative simulation experiment 1.
[0140] Combination Figure 3 As shown in the figure, the trajectory planning diagrams of UAV 1, UAV 2 and UAV 3 are from the starting point (10, 20), (10, 35), (20, 60) to the end point (55, 40), respectively. The results show that the three UAVs can effectively avoid threats and reach the same end point. The trajectory planning efficiency of UAV clusters when performing flight missions in cities can be greatly improved, ensuring that when an emergency occurs in a certain place, the UAVs in other places can coordinate to reach the destination for support, ensuring the execution of urban dispatch and emergency rescue missions.
[0141] Although the present invention is disclosed as above, the protection scope of the present invention is not limited thereto. Those skilled in the art may make various changes and modifications without departing from the spirit and scope of the present invention, and these changes and modifications will fall within the protection scope of the present invention.
Claims
1. A multi-UAV trajectory planning method based on bean group mechanism, characterized in that: The threats are marked and ranked, and the routes are selected using empirical pheromone and cantharidin concentrations, including the following steps: S100, establishing a two-dimensional planning space model based on a grid method; S200, establish a UAV cluster trajectory planning model that includes the UAV's own constraints and the comprehensive flight cost, and initialize the flight start and end points, set up F lag The vector marks the type of threat; S300, initializing the bean group and setting corresponding parameters, wherein the parameters include empirical pheromone concentration, empirical pheromone matrix, empirical pheromone increase intensity, empirical pheromone importance, heuristic factor importance, empirical pheromone volatility coefficient, cantharidin concentration, cantharidin weight, cantharidin matrix, threat intensity factor and cantharidin diffusion factor; after initialization, obtaining the empirical pheromone concentration difference from the current node to the next node, the cantharidin concentration difference, the cost of the current node and the heuristic factor, including, Initialize the current node v of the tth generation t Go to the next node e t Empirical pheromone concentration Where 1≤v t ≤N,1≤e t ≤N, t is the number of iterations, and the N×N matrix of empirical pheromones is obtained Initialize experience pheromone to increase strength Q τ ; Experience pheromone importance α τ ; Importance of heuristic factor β; Empirical pheromone volatility coefficient ρ τ ; Initialize the current node v of the tth generation t Go to the next node e t Cantharidin concentration The weight of cantharidin is λ; the N×N matrix of cantharidin is obtained Assume that the threat intensity factor is φ = [φ(1), φ(2), φ(3)]; the diffusion factor of cantharidin is ζ = [ζ(1), ζ(2), ζ(3)]; where the threat factor of cantharidin is Let the cantharidin factor be Initially, t=0, and the initial t-th generation empirical pheromone concentration difference from the current node to the next node is get, Initial cantharidin concentration difference from the current node to the next node in the tth generation get, Calculate the i-th node The price paid in, The i-th node The inspiration factor S400, assigning the scutellaria baicalensis group to the initial node, marking the cantharidin threat perception factor and the marking vector, and obtaining the path set of the scutellaria baicalensis group, including: S410, read the starting point coordinates The starting point number of the g-th UAV track of the t-th generation is The end number is The current node number of the t-th generation bean curd is The set of its adjacent nodes is S420, place the kth bean sprouts of the tth generation at the starting point, even if Add the kth generation of lycopods at the starting point, and the threat perception factor θ = [θ hb ,θ sw ,θ em ] and the label vector F lag =[F lag (1),F lag (2),F lag (3)], when a threat is detected, the threat type is marked and the starting point is numbered The path set of k bean sprouts added to the tth generation middle; S500, the Douyanjing group selects the next node and transfers according to the state transfer strategy. lag The vector determines the threat level and adjusts the next generation transfer probability. This step is repeated until the visited node is the midpoint of the track, and the track set is obtained; S600, update the global experience pheromone and cantharidin according to the threat intensity factor and the diffusion factor, and determine whether the set maximum number of iterations is reached. If so, the iteration is terminated, and the UAV track mapping from the starting point to the end point of the number of UAVs is obtained in the coordinate system as the planning path output; if not, repeat S500-S600 until the maximum number of iterations is reached and then terminated.
2. The multi-UAV trajectory planning method based on the bean cyanine group mechanism according to claim 1 is characterized in that: In S100, the starting coordinates of the planning space are set to The ending coordinates are Assume that the grid size is l×w, where l is the length of the grid and w is the width of the grid, then the number of grid rows in the planning space is The number of grid columns in the planning space is The total number of nodes N = R ow ×C ol , let the i-th node The coordinates of 3. The multi-UAV trajectory planning method based on the bean cyanine group mechanism according to claim 2 is characterized in that: In S200, specifically, S210, let the starting coordinates of the g-th UAV track be The end point coordinates are The number of three potential threats is defined as in, is the number of high-rise building threats, is the number of severe weather threats, is the number of electromagnetic interference threats; Assume that the threat range of high-rise buildings is a square, the threat range of severe weather and electromagnetic interference are circles with different radii, and the coordinates of the center point of the u-th high-rise building threat are for Among them, 1≤u≤(d hb / 2); coordinates of the center point of the vth severe weather threat for Among them, 1≤v≤d sw ; Coordinates of the qth electromagnetic interference threat center point for Among them, 1≤q≤d em ; The side length of the high-rise building threat is d hb , the radius of severe weather threat is d sw , the radius of electromagnetic interference threat is d em ; Then the i-th node The total cost received can be expressed as, in, is the i-th node The sum of the threat costs, where i = 0, 1, 2, ..., N; is the i-th node The threat cost of being threatened by the u-th high-rise building, in is the i-th node The distance from the threat center of the u-th high-rise building; is the i-th node The threat cost of the vth severe weather threat, in is the i-th node The distance to the center of the vth severe weather threat; is the i-th node The threat cost of being threatened by the qth electromagnetic interference, in is the i-th node The distance from the qth electromagnetic interference threat center; δ hb , δ sw and δ em are the threat costs and weights of the three threats respectively, and δ hb ∈[0,1],δ sw ∈[0,1], d em ∈[0,1],δ hb +d sw +d em =1; S220, initialize the starting point and end point of the track of the drone cluster, and set the starting coordinates of the g-th drone track to The end point coordinates are Assume the total number of drones is G, then 1≤g≤G; S230, set the threat in, Represents the threat of high-rise buildings, Represents severe weather threats, Represents electromagnetic interference threat; Let F lag Vector marking whether it is affected by T er Threat, get F lag =[F lag (1),F lag (2),F lag (3)], where F lag (1) represents whether a high-rise building threat is detected, F lag (2) represents whether severe weather threats are detected, F lag (3) Indicates whether an electromagnetic interference threat is detected; Define the threat perception factor as θ = [θ hb ,θ sw ,θ em ],remember, Among them, P d is the threat perception distance, and Corresponding to the perception distance of three threats; when When F lag (1)=1, otherwise F lag (1) = 0; when When F lag (2)=1, otherwise F lag (2) = 0; when When F lag (3)=1, otherwise F lag (3)=0.
4. The multi-UAV trajectory planning method based on the bean cyanine group mechanism according to claim 3 is characterized in that: In S500, specifically, S510, find adjacent nodes, exclude the diagonal nodes that cannot be directly reached from the eight adjacent nodes of each node, and the remaining four nodes constitute an accessible set set up For accessible collections The threat perception distance of the jth node in Delete The jth node of gets the updated accessible set of k beans of the tth generation S520: Determine the accessible set obtained in S510 Is it empty? If it is empty, execute S550; if it is not empty, continue to execute S530; S530, let the set of nodes accessible to k bean curds of the tth generation be The number is For the nth node accessible to the kth bean sprout of the tth generation, Its state transition probability is, in, is the empirical pheromone concentration of the nth node accessible to the kth bean sprout of the tth generation, is the heuristic factor of the nth node accessible to the kth bean sprout of the tth generation, is the cantharidin concentration of the nth node pathway g accessible to the kth bean curd of the tth generation; According to the roulette method, select the nth node set to be visited by the k-bean buds of the tth generation The node number to be visited is recorded as S540: Determine the node to be visited by the k-th bean curd of the tth generation obtained in S530. Is it the end point of the g-th track of the t-th generation? Where g=1,2,3,...,G, if Then add the end point number to , continue to execute S550; otherwise, Then Number Add , return to S510 to continue execution; S550, if k=K, execute the next step; otherwise return to S410 and repeat S400-S500.
5. The multi-UAV trajectory planning method based on the bean cyanine group mechanism according to claim 4 is characterized in that: In S600, specifically, S610, select the shortest path that the bean curd in the tth generation passes through Calculate the shortest path length L of the tth generation t The comprehensive cost of the shortest path is in, is the sum of the threat costs on the shortest path, is the resource consumption cost on the shortest path, specifically expressed as fuel consumption. Assuming the unit fuel consumption per kilometer is h0, then S620, updating the experience pheromone and cantharidin according to historical knowledge, the increment of the experience pheromone of the t+1 generation is, After global update of the experience pheromone, The increment of the t+1 generation cantharidin is, After global update of cantharidin, 6. The multi-UAV trajectory planning system based on the Beanstalk group mechanism is characterized by: The system has a program module corresponding to the steps of any one of claims 1 to 5 above, and executes the steps in the above-mentioned multi-UAV trajectory planning method based on the bean swarm mechanism when running.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is configured to implement the steps of the multi-UAV trajectory planning method based on the bean swarm mechanism described in any one of claims 1 to 5 when called by a processor.
