Unmanned aerial vehicle rescue route planning method based on improved non-monopoly search algorithm
Through the combination of the improved non-monopoly search algorithm and the flight cost function, the problem of slow convergence speed in UAV rescue path planning is solved, more efficient path planning and calculation efficiency are achieved, and the UAV is ensured to be fast and accurate. Arrive at the affected area.
Patent Information
- Application Number
- CN202410924294.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-10-15
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing non-monopoly search algorithms converge slowly in UAV rescue trajectory planning and cannot reach the disaster area in a timely and accurate manner, resulting in slow planning speed.
Using an improved non-monopoly search algorithm, by constructing a flight cost function and iterative update of the candidate solution population, the optimal candidate solution is introduced to accelerate the convergence speed, and different update strategies are used in the exploration and development stages, combining random numerical values and normal distribution vectors Make an update.
The calculation efficiency and flight cost of UAV trajectory planning are improved, ensuring that the UAV can reach the rescue point quickly and accurately, and reducing the limitation of planning speed.
Smart Images

Figure CN118778672A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of unmanned aerial vehicle control, and in particular to a method for unmanned aerial vehicle rescue track planning based on an improved non-monopolistic search algorithm. Background Art
[0002] When emergencies such as earthquake rescue, flood relief and mountain rescue occur, the limitations of human rescue and reconnaissance have become increasingly prominent. However, with the vigorous development of drone-related technologies, the application of drones in the field of emergency rescue has become more and more extensive, providing unprecedented perspectives and flexibility for rescue operations. In addition, in mountainous areas with complex meteorological and geographical conditions, it is of great social value and practical significance to study the trajectory planning method of post-disaster rescue drones, plan a flyable trajectory that can quickly reach the rescue point, and timely understand the situation in the disaster area, and further protect the safety of life and property of the people in the disaster area.
[0003] In the prior art, the planning algorithms for UAV trajectory are mainly divided into two categories, one of which is the classic algorithm based on graph theory, and the other is the meta-heuristic optimization algorithm based on heuristic information. The above meta-heuristic optimization algorithm has been widely used in various engineering practice problems due to its advantages such as simple structure setting and small calculation amount.
[0004] The non-monopolistic search algorithm is a meta-heuristic optimization algorithm with few parameter variables and superior performance. Its advantage is that it can effectively avoid local search problems. However, when solving the UAV trajectory planning problem with complex objective functions and constraints, the non-monopolistic search algorithm cannot guarantee that the rescue UAV will arrive at the disaster area in a timely and accurate manner after a disaster occurs due to its slow convergence speed and low calculation accuracy. Summary of the invention
[0005] The purpose of the present invention is to provide a method for unmanned aerial vehicle rescue trajectory planning based on an improved non-monopolistic search algorithm, which is used to solve the problem of slow planning speed caused by slow algorithm convergence speed in the process of planning the rescue trajectory of the unmanned aerial vehicle using the non-monopolistic search algorithm in the prior art.
[0006] Specifically, the present invention provides a method for unmanned aerial vehicle rescue trajectory planning based on an improved non-monopolistic search algorithm, comprising:
[0007] Constructing a flight environment model of the drone according to the disaster scenario, and setting the starting point, rescue point and no-fly zone of the rescue mission in the flight environment model;
[0008] Constructing a flight cost function of the UAV according to the flight cost and flight safety of the UAV;
[0009] Initializing a candidate solution population, wherein the candidate solution population includes a plurality of candidate solutions, each of the candidate solutions including position information of a plurality of track points;
[0010] An improved non-monopolistic search algorithm is used to iteratively update the candidate solution population for a set number of times to obtain an optimized candidate solution population, wherein the improved non-monopolistic search algorithm at least includes: in an exploration phase, updating the candidate solution population according to the best candidate solution in the candidate solution population;
[0011] The flight cost function is used to obtain a target candidate solution from the optimized candidate solution population, and a track path of the UAV is constructed according to the starting point, the rescue point and the target candidate solution.
[0012] Furthermore, the iterative updating of the candidate solution population by using the improved non-monopolistic search algorithm for a set number of times also includes:
[0013] In the development stage, a random value is obtained, and when the random value is greater than a set threshold, the candidate solution population is updated using the following calculation formula:
[0014] P i (t) = P i (t-1)-A*D
[0015] Where t is the number of iterations, A is a random value generated according to the number of iterations, D is a random candidate solution generated according to the best candidate solution in the candidate solution population before the tth iteration, and
[0016] A=2(1-t / N)(2r 2 -1)
[0017] D=|2r 3 ×P best (t-1)-P i (t-1)|
[0018] When the random value is less than or equal to the set threshold, the candidate solution population is updated using the following calculation formula:
[0019] P i (t) = P i (t-1)-[P SRP (t-1)*rand]*eps-[P i (t)-NO]
[0020] Among them, P i (t) is the i-th candidate solution in the candidate solution population after the t-th iteration update, P i (t-1) is the i-th candidate solution in the candidate solution population before the t-th iteration update, eps represents a small value, P SRP(t-1) is a random candidate solution in the candidate solution population before the t-th iteration update, NO is a tuning parameter, r 2 and r 3 are all random values in the range of [0,1], N is the number of iterations, P best (t-1) is the optimal candidate solution in the candidate solution population before the t-th iterative update.
[0021] Furthermore, the iterative updating of the candidate solution population by using the improved non-monopolistic search algorithm for a set number of times also includes:
[0022] Determining whether the iterative update enters the escape phase;
[0023] If so, a random vector conforming to the normal distribution is obtained, and the candidate solution population is updated according to the random vector.
[0024] Further, the determining whether the iterative update enters the escape phase includes:
[0025] Obtaining the number of update stagnation times of the candidate solution population, and determining whether the number of update stagnation times is greater than or equal to a preset determination threshold;
[0026] If so, the iterative update enters the escape phase.
[0027] Furthermore, the iterative updating of the candidate solution population by using the improved non-monopolistic search algorithm for a set number of times also includes:
[0028] The method of using the improved non-monopolistic search algorithm to iteratively update the candidate solution population for a set number of times also includes:
[0029] After the candidate solution population is updated each time, determining whether each candidate solution in the candidate solution population exceeds a preset search range;
[0030] According to the boundary value of the preset search range, the candidate solutions beyond the preset search range are modified.
[0031] Furthermore, constructing a flight cost function of the drone according to the flight cost and flight safety of the drone includes:
[0032] Constructing a flight length cost function of the UAV according to the length of the flight path;
[0033] Constructing a flight stability cost function of the UAV according to the deflection angle of the UAV;
[0034] Constructing a constraint function for the UAV to avoid risks according to the distance between the flight path and the no-fly zone;
[0035] A flight cost function of the UAV is constructed according to the flight length cost function, the flight stability cost function and the constraint function.
[0036] Furthermore, constructing the flight cost function of the UAV according to the flight length cost function, the flight stability cost function and the constraint function includes:
[0037] Obtaining the rescue efficiency weight, flight stability weight and constraint penalty coefficient of the UAV;
[0038] The flight length cost function is modified by using the rescue efficiency weight, the flight stability cost function is modified by using the flight stability weight, and the constraint function is modified by using the constraint penalty coefficient;
[0039] A flight cost function of the UAV is constructed according to the modified flight length cost function, flight stability cost function and constraint function.
[0040] Furthermore, setting the starting point, rescue point and no-fly zone of the rescue mission in the flight environment model includes:
[0041] Acquire a threat area in the disaster scenario that affects the flight safety of the drone;
[0042] A cylindrical no-fly zone is set in the flight environment model according to the threat area.
[0043] Furthermore, the adopting of the improved non-monopolistic search algorithm to iteratively update the candidate solution population for a set number of times includes:
[0044] Obtaining the number of updates for iteratively updating the candidate solution population;
[0045] If the update number is less than a preset iteration number threshold, performing an iterative update of the candidate solution population in the exploration phase;
[0046] If the update number is greater than or equal to the preset iteration number threshold, the candidate solution population is iteratively updated in the development phase.
[0047] Furthermore, the initializing the candidate solution population includes:
[0048] The upper bound and the lower bound of the preset search space are obtained, and the position information of each of the track points is randomly generated within the range determined by the upper bound and the lower bound to initialize the candidate solution population.
[0049] The unmanned aerial vehicle rescue track planning method of the present invention uses an improved non-monopolistic search algorithm to iteratively update the candidate solution population for a set number of times to obtain an optimized candidate solution population; then the flight cost function of the unmanned aerial vehicle is used to select the target candidate solution from the optimized candidate solution population, and the rescue track of the unmanned aerial vehicle is constructed based on the target candidate solution, the starting point and the rescue point, so that the flight cost required when the unmanned aerial vehicle performs the rescue mission according to the rescue track is minimized. In addition, the technical solution of the present invention introduces the optimal candidate solution in the candidate solution population in the exploration stage during the process of iteratively updating the candidate solution population using the improved non-monopolistic search algorithm, thereby accelerating the convergence speed of the algorithm and improving the computational efficiency of planning the flight track.
[0050] Based on the following detailed description of specific embodiments of the present invention in conjunction with the accompanying drawings, those skilled in the art will become more aware of the above and other objects, advantages and features of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Hereinafter, some specific embodiments of the present invention will be described in detail in an exemplary and non-limiting manner with reference to the accompanying drawings. The same reference numerals in the accompanying drawings indicate the same or similar components or parts. It should be understood by those skilled in the art that these drawings are not necessarily drawn to scale. In the accompanying drawings:
[0052] Figure 1 is a schematic flow chart of a method for unmanned aerial vehicle rescue trajectory planning based on an improved non-monopolistic search algorithm according to an embodiment of the present invention;
[0053] Figure 2 is a schematic flow chart of iteratively updating a candidate solution population according to an embodiment of the present invention;
[0054] Figure 3 is a schematic flow chart of iteratively updating a candidate solution population according to another embodiment of the present invention;
[0055] Figure 4 is a schematic flow chart of modifying an updated candidate solution population according to an embodiment of the present invention;
[0056] Figure 5 is a schematic flow chart of constructing a flight cost function according to an embodiment of the present invention;
[0057] Figure 6 is a schematic flow chart of iteratively updating a candidate solution population according to another embodiment of the present invention;
[0058] Figure 7 is a three-dimensional schematic diagram of a rescue track planned according to an embodiment of the present invention;
[0059] Figure 8is a plan view of a rescue track planned according to an embodiment of the present invention;
[0060] Fig. 9 It is a linear schematic diagram of a rescue track planned according to an embodiment of the present invention. DETAILED DESCRIPTION
[0061] Refer to the following Figures 1 to 9 To describe a method for unmanned aerial vehicle rescue trajectory planning based on an improved non-monopolistic search algorithm in an embodiment of the present invention. In the description of this embodiment, it should be understood that the terms "first" and "second" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features, that is, include one or more of the features. In the description of the present invention, the meaning of "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined. When a feature "includes or contains" one or some of the features it covers, unless otherwise specifically described, this indicates that other features are not excluded and may further include other features.
[0062] See also Figure 1 , Figure 1 What is shown is a method for planning a UAV rescue trajectory based on an improved non-monopolistic search algorithm according to an embodiment of the present invention, the method comprising the following steps:
[0063] Step S101: constructing a flight environment model according to the disaster scenario, setting a departure point and a rescue point in the flight environment model according to the rescue mission information, and setting a no-fly zone in the flight environment model according to the flight threat area of the disaster scenario;
[0064] Step S102: constructing a flight cost function of the UAV according to the flight cost and flight safety of the flight track;
[0065] Step S103: Initializing a candidate solution population, wherein the candidate solution population includes multiple candidate solutions, and each candidate solution includes location information of multiple track points;
[0066] Step S104: using an improved non-monopolistic search algorithm to iteratively update the candidate solution population for a set number of times to obtain an optimized candidate solution population;
[0067] Step S105: using the flight cost function, selecting a target candidate solution from the optimized candidate solution population, and generating a rescue track of the UAV according to the starting point, the rescue point and the target candidate solution.
[0068] In the above step S101, a three-dimensional map can be constructed according to the disaster scene to simulate the terrain and topography of the disaster scene, and the constructed three-dimensional map is loaded into the three-dimensional space coordinate system to complete the construction of the flight environment model. In the constructed flight environment model, the height direction is the z-axis delay direction of the three-dimensional space coordinate system, and the horizontal plane is the plane determined by the x-axis and the z-axis, wherein the lower boundaries of the x-axis, the y-axis and the z-axis are all 0, and the upper boundary of the x-axis is x. max , the upper boundary of the y-axis is y max , the upper boundary of the z-axis is z max , so the preset search range determined by the constructed flight environment model is:
[0069] O={(x,y,z)0≤x≤x max ,0≤y≤y max ,0≤z≤z max}
[0070] In the above step S102, a flight cost function of the flight track can be constructed according to the length of the flight track and the safety of the UAV flying along the flight track, so that the flight cost function can reflect the flight cost of the UAV flying along the flight track, and the quality of the flight track can be evaluated according to the flight cost.
[0071] In the above step S103, it is assumed that the size of the candidate solution population is U, that is, there are U candidate solutions, and each candidate solution has M track points, where the value of U is preferably 60 and the value of M is preferably 80. After the candidate solution population is initialized, each candidate solution in the candidate solution population is encoded. Let the i-th candidate solution in the candidate solution population be P i , and the coordinates of the mth track point in the ith candidate solution are (x i,m ,y i,m ,z i,m ), then after encoding each candidate solution in the candidate solution population, the i-th candidate solution P i for:
[0072] P i =[x 1 ,y 1 ,z 1 ,x 2 ,y 2 ,z 2 ,......x M ,y M ,z M ]
[0073] In the above step S104, the improved non-monopolistic search algorithm is used to iteratively update the candidate solution population, including iterative updates of the candidate solution population in the exploration phase and iterative updates of the candidate solution population in the development phase, wherein the purpose of the exploration phase is to extensively search for possible solutions in the preset search space to find potential favorable areas. The exploration phase is to search through different search directions and strategies to expand the search scope and collect as much information as possible about the problem solution space. Therefore, the iteratively updated development phase conducts an in-depth search in the potential favorable areas that have been discovered to find better candidate solutions. The iteratively more detailed development phase will concentrate resources on the most promising search directions to accelerate convergence to the global optimal solution or a solution close to the global optimal solution.
[0074] In this embodiment, the set number of iterative updates of the candidate solution population is assumed to be N, and the value of N is preferably 500.
[0075] In this embodiment, before each iterative update, it can be determined according to a preset determination condition whether the current iterative update belongs to the exploration stage or the development stage. If the current iterative update belongs to the exploration stage, the method of using the improved non-monopolistic search algorithm to update the candidate solution population includes:
[0076] Assuming the number of iterative updates is t, the following calculation formula is used to update the i-th candidate solution in the candidate solution population:
[0077] P i (t) = P i (t-1)+τ[P best (t-1)-P i (t-1)]
[0078] Among them, P i (t) is the i-th candidate solution in the candidate solution population after the t-th iteration update, P best (t-1) is the optimal candidate solution in the candidate solution population before the t-th iterative update, τ is a random number, and the value range of the random number is greater than or equal to -1 and less than or equal to 1.
[0079] In this embodiment, the best candidate solution P in the candidate solution population before the tth iteration update is obtained. best The method of (t-1) includes: before the t-th iteration update, using the flight cost function to calculate the flight cost of each candidate solution in the candidate solution population, and taking the candidate solution with the smallest flight cost as the optimal candidate solution. The method of calculating the flight cost of the candidate solution includes: connecting the first track point in the candidate solution with the starting point, and connecting the last track point of the candidate solution with the rescue point to form a flight track; then using the flight cost function of the drone to calculate the flight cost of the flight track, and the flight cost is the flight cost of the candidate solution.
[0080] In this embodiment, the optimal candidate solution is introduced into the improved non-monopolistic search algorithm in the exploration phase, so the convergence speed of the exploration phase can be accelerated, thereby improving the calculation speed of obtaining the rescue track.
[0081] In the above step S105, after obtaining the optimized candidate solution population, the flight cost function of the drone can be used to calculate the flight cost of each candidate solution in the optimized candidate solution population, and then the candidate solution with the smallest flight cost is used as the target candidate solution. Then, the first track point in the target candidate solution is connected to the starting point, and the last track point is connected to the rescue point to construct the rescue track of the drone, so that the drone can perform the rescue mission according to the rescue track with the minimum flight cost.
[0082] According to the above content, in the UAV rescue trajectory planning method of this embodiment, the improved non-monopolistic search algorithm is used to iteratively update the candidate solution population for a set number of times to obtain an optimized candidate solution population; then the flight cost function of the UAV is used to select the target candidate solution from the optimized candidate solution population, and the rescue trajectory of the UAV is constructed based on the target candidate solution, the starting point and the rescue point, so that the UAV performs the rescue mission according to the rescue trajectory, and the required flight cost is minimized. And in this embodiment, in the process of iteratively updating the candidate solution population using the improved non-monopolistic search algorithm, the optimal candidate solution in the candidate solution population is introduced in the exploration stage, so that the convergence speed of the algorithm can be accelerated and the calculation efficiency of planning the flight trajectory can be improved.
[0083] In some embodiments of the present invention, in the above step S104, during the iterative update using the improved non-monopolistic search algorithm, the method for updating the candidate solution population in the development stage includes:
[0084] Obtain a random value b, and determine whether the random value b is greater than a set threshold, where the set threshold is preferably 0.5;
[0085] When the random value b is greater than the above-set threshold, the following calculation formula is used to update each candidate solution in the candidate solution population:
[0086] P i (t) = P i (t-1)-A*D
[0087] Where A is a random value generated according to the number of iterations, D is a random candidate solution generated according to the best candidate solution in the candidate solution population before the tth iteration update, and
[0088] A=2(1-t / N)(2r 2 -1)
[0089] D=|2r 3 ×P best (t-1)-P i (t-1)|
[0090] In the above formula, r 2 and r 3 are all random values in the range of [0,1], and N is the set number of times. Parameters A and D in this embodiment can help the improved non-monopoly search algorithm to search in the current last candidate solution and its vicinity to achieve a fast convergence effect.
[0091] When the random value b is less than or equal to the set threshold, the following calculation formula is used to update each candidate solution in the candidate solution population:
[0092] P i (t) = P i (t-1)-[P SRP (t-1)*rand]*eps-[P i (t)-NO]
[0093] Where eps represents a small value, which is preferably 2- 52 ;P SRP (t-1) is the random candidate solution before the development phase update in the t-th iterative update; NO is a tuning parameter, which is preferably 1.
[0094] The technical solution of this embodiment adopts a dual-strategy parallel approach to update the candidate solution population during the development phase of iteratively updating the candidate solution population, that is, different update methods are used to update the candidate solution population according to the size relationship between the random value b and the set threshold, thereby enriching the search method in the development phase and further accelerating the convergence speed and search accuracy of the improved non-monopoly search algorithm, so that the improved non-monopoly search algorithm can quickly find the optimal candidate solution.
[0095] In some embodiments of the present invention, the improved non-monopolistic search algorithm is used in step S104 to iterate and update the candidate solution population for a set number of times. Figure 2 As shown, it also includes:
[0096] Step S201: Determine whether the iterative update of the candidate solution population has entered the escape phase;
[0097] If yes, execute step S202;
[0098] Step S202: Obtain a random vector that conforms to the normal distribution, and update the candidate solution population according to the random vector.
[0099] In this embodiment, the random vector obtained that conforms to the normal distribution is RB i (t), the following calculation formula is used to update the candidate solutions in the candidate solution population:
[0100]
[0101] The technical solution of this embodiment adds an escape phase in the process of updating the candidate solution population to help the improved non-monopolistic search algorithm better escape from the local optimal solution, thereby further improving the overall optimization effect of the algorithm and enhancing the practicability of the algorithm.
[0102] In some embodiments of the present invention, the method for determining whether the improved non-monopoly search algorithm has entered the escape phase in step S202 is as follows: Figure 3 As shown, including:
[0103] Step S301: before updating the candidate solution population, determine whether the updating of the candidate solution population is stagnant;
[0104] If yes, execute step S302;
[0105] Step S302: obtaining the update stagnation times of the candidate solution population, and determining whether the update stagnation times is greater than or equal to a preset determination threshold, wherein the preset determination threshold is preferably 10;
[0106] Step S303: when the number of update stagnation of the candidate solution population is greater than or equal to a preset determination threshold, it is determined that the iterative update of the candidate solution population enters the escape phase.
[0107] In this embodiment, a stagnation update number c of the candidate solution population is set, and the initial value of the stagnation update number c is, and the updating method of the stagnation update number c includes:
[0108] After the candidate solution population is updated by using the improved non-monopolistic search algorithm, the flight cost function of the UAV is used to calculate the flight cost of each candidate solution in the candidate solution population, as well as the flight cost of each candidate solution in the candidate solution population before the update;
[0109] According to the flight cost of each candidate solution in the solution selection cluster before the update and the flight cost of each candidate solution in the solution selection cluster after the update, it is judged whether the update of the candidate solution population is stagnant, specifically including:
[0110] Calculate the average value of the flight cost of each candidate solution in the solution cluster before updating, and the average value of the flight cost of each candidate solution in the solution cluster after updating;
[0111] Determine whether the difference between the average value of the flight costs of each candidate solution in the solution selection cluster before the update and the average value of the flight costs of each candidate solution in the solution selection cluster after the update is within a preset difference range;
[0112] If so, it is determined that the update of the candidate solution population is stagnant, and the value of the stagnant update count c is increased by one.
[0113] In the above step S301, the method for determining whether the updating of the candidate solution population is stagnant includes: obtaining the value of the number of stagnant updates c, and determining whether the value is 0; if so, determining that the updating of the candidate solution is stagnant.
[0114] Through the technical solution of this embodiment, it is possible to determine whether the iterative update of the candidate solution population has entered the escape stage based on whether the candidate solution population has stagnated in updating, thereby accurately judging whether the iterative update of the candidate solution population has entered the escape stage and improving the optimization effect of the improved non-monopolistic search algorithm.
[0115] In some embodiments of the present invention, in the above step S104, during the process of iteratively updating the candidate solution population for a set number of times using the improved non-monopolistic search algorithm, such as Figure 4 As shown, after each update of the candidate solutions in the candidate solution population, it also includes:
[0116] Step S401: determining whether each candidate solution in the updated candidate solution population exceeds a preset search range;
[0117] If yes, execute step S402;
[0118] Step S402: According to the boundary value of the preset search range, the candidate solutions that exceed the preset search range are corrected.
[0119] In this embodiment, the boundary values of the preset search range include the lower boundary value 0 of the x-axis, the upper boundary value x of the x-axis, and the max , the lower limit of the y-axis is 0, the upper limit of the y-axis is y max , the lower limit of the z axis is 0, the upper limit of the z axis is z max .
[0120] Take the i-th candidate solution P in the candidate solution population i For example, in the above step S401, it is determined that the candidate solution P i x in 1 to x M Is the value less than 0 or greater than x? max ,y 1 to y M Is the value less than 0 or greater than y max , z 1 to z M Is the value less than 0 or greater than zmax .
[0121] If the candidate solution P i x in 1 to x M The value is less than 0 or greater than x max , or 1 to y M The value is less than 0 or greater than y max , or 1 to z M The value is less than 0 or greater than z max , then it is determined to be a candidate solution P i The preset search range was exceeded.
[0122] In the above step S402, the method for correcting the candidate solutions beyond the preset search range includes:
[0123] If the candidate solution P i x in m If the value of is less than 0, then x m The value of is set to 0;
[0124] If the candidate solution P i x in m The value is greater than x max , then x m The value of x is set max ;
[0125] If the candidate solution P i The y in m If the value of is less than 0, then y m The value of is set to 0;
[0126] If the candidate solution P i The y in m The value is greater than y max , then y m The value is set to y max ;
[0127] If the candidate solution P i z in m If the value of is less than 0, z m The value of is set to 0;
[0128] If the candidate solution P i z in m The value is greater than z max , then z m The value is set to z max .
[0129] Through the technical solution of this embodiment, the candidate solutions that exceed the preset search range can be corrected according to the boundary value of the preset search range to ensure that each candidate solution in the obtained candidate solution population does not exceed the preset search range, thereby improving the reliability of updating the candidate solution population.
[0130] In some embodiments of the present invention, the method for constructing the flight cost function of the UAV according to the flight cost and flight safety of the flight track in the above step S102 includes:
[0131] According to the length of the flight path, construct the flight length cost function of the UAV;
[0132] According to the deflection angle of the UAV, according to the flight stability cost function of the UAV;
[0133] Construct a constraint function for the drone trajectory risk based on the distance between the flight path and the no-fly zone;
[0134] The flight cost function of the UAV is calculated based on the flight length cost function of the UAV, the flight stability cost function and the constraint function of the UAV trajectory risk.
[0135] In this embodiment, the shorter the flight path of the UAV rescue, the shorter the time required for the UAV to reach the rescue point, so the flight path of the UAV should be as short as possible. Suppose the flight length cost function of the UAV is C l ,but
[0136]
[0137] Among them, (x 0 ,y 0 ,z 0 ) is the coordinate of the starting point, (x M+1 ,y M+1 ,z M+1 ) are the coordinates of the rescue point.
[0138] Due to the limitation of the UAV’s own performance, in order to ensure the stability of the UAV’s flight, it is necessary to avoid the phenomenon of excessive deflection angle of the UAV. Suppose the flight stability cost function of the UAV is C s ,but
[0139]
[0140] where δ m represents the deflection angle of the UAV at the mth track point, and
[0141]
[0142] In the above calculation formula, Represents the vector from the mth track point to the m-1th track point, K m represents the mth track point, and the rescue point is taken as the M+1th track point.
[0143] In this embodiment, the no-fly zone is due to the fact that natural disasters such as landslides and mud-rock flows often occur in mountainous areas with large terrain undulations. Therefore, rescue drones must avoid collisions with obstacles during flight. At the same time, there are often regional extreme weather conditions such as heavy rain and strong winds in mountainous areas after disasters. Drones must try to avoid these areas during flight to ensure flight safety.
[0144] Assume that the constraint function of the drone trajectory risk is f t , then according to the distance between the flight path and the no-fly zone, the method of constructing the constraint function of the drone trajectory risk includes:
[0145] Based on the distance between the flight path and the no-fly zone, determine whether the drone will collide with the no-fly zone;
[0146] If so, then f t =1; if not, then f t =0.
[0147] After obtaining the UAV's flight length cost function, flight stability cost function and constraint function of the UAV's trajectory risk, the flight length cost function, flight stability cost function and constraint function of the UAV's trajectory risk are fused to obtain the UAV's flight cost function, so that the flight cost function can comprehensively reflect the flight cost and flight safety of the UAV's flight.
[0148] Through the technical solution of this embodiment, a flight cost function of the UAV can be constructed according to the flight length, deflection angle and whether it passes through a no-fly zone of the UAV, so that when the flight cost function is used to calculate the candidate solutions in the candidate solution population, the flight cost of the candidate solution can be accurately calculated, thereby improving the accuracy and reliability of the evaluation of the candidate solutions.
[0149] In some embodiments of the present invention, the method for calculating the flight cost function of the drone based on the flight length cost function of the drone, the flight stability cost function and the constraint function of the drone trajectory risk is as follows: Figure 5 As shown, including:
[0150] Step S501: Obtain the rescue efficiency weight, flight stability weight and constraint penalty coefficient of the drone;
[0151] Step S502: using the rescue efficiency weight to modify the flight length cost function, using the flight stability weight to modify the flight stability cost function, and using the constraint penalty coefficient to modify the constraint function;
[0152] Step S503: constructing the flight cost function of the UAV according to the modified flight length cost function, flight stability cost function and constraint function.
[0153] In this embodiment, the rescue efficiency weight is set to w 1 , the flight stability cost function is w 2 , the constraint penalty coefficient is φ, where
[0154] w 1 +w 2 =1
[0155] Then the flight cost function F of the UAV is
[0156]
[0157] In this embodiment, w 1 The value of w is preferably 0.8, 2 The value of is preferably 0.2, and the value of φ is preferably 10 7 .
[0158] The technical solution of this embodiment corrects the flight length cost function, flight stability cost function and constraint function through weight terms, and then constructs the flight cost function of the UAV according to the corrected flight length cost function, flight stability cost function and constraint function, thereby further improving the reliability of the flight cost function and ensuring the accuracy and reliability of the evaluation of candidate solutions.
[0159] In some embodiments of the present invention, the method of setting a no-fly zone in the flight environment model according to the flight threat area of the disaster scene in the above step S101 includes:
[0160] Obtain the projection area of the flight threat area in the disaster scene on the horizontal plane, and obtain the minimum circular area covering the projection area;
[0161] A cylindrical model is established according to the circular area, and the area where the cylindrical model is located is used as a no-fly zone.
[0162] In the technical solution of this embodiment, a cylindrical no-fly zone is set in the flight environment model according to the flight threat area in the disaster scenario, thereby reducing the difficulty of setting the no-fly zone and improving the accuracy and reliability of the flight environment model.
[0163] In some embodiments of the present invention, in the process of iteratively updating the candidate solution population using the improved non-monopolistic search algorithm for a set number of times in step S104, Figure 6 As shown, each iterative update includes:
[0164] Step S601: before iteratively updating the candidate solution population, obtaining the update number t of iteratively updating the candidate solution population;
[0165] Step S602: determining whether the update number t is less than a preset iteration number threshold, where the preset iteration number threshold is preferably N / 2;
[0166] If yes, execute step S603; if no, execute step S604;
[0167] Step S603: performing iterative updates on the candidate solution population in the exploration phase;
[0168] Step S604: Perform iterative updates on the candidate solution population in the development phase.
[0169] The technical solution of this embodiment divides the exploration phase and the development phase according to the number of iterative updates, so as to improve the reliability of iterative updates of candidate solution clusters.
[0170] In the above embodiment, the number of updates of the candidate solution population is used as the preset judgment condition for the exploration phase and the development phase; in other embodiments, the preset judgment condition can be implemented in other ways, for example, the candidate solution population is first iteratively updated in the exploration phase, and when the flight cost of each candidate solution in the candidate solution population is greater than the set cost threshold, the update of the candidate solution population enters the development phase.
[0171] In some embodiments of the present invention, the method for initializing the candidate solution population in step S103 includes:
[0172] Get the upper and lower bounds of the preset search space;
[0173] Within the range determined by the upper and lower bounds of the preset search space, the position information of each track point is randomly generated to initialize the candidate solution population.
[0174] In this embodiment, the lower bound of the preset search space is assumed to be P l , the upper bound is P u , where P l The x-axis coordinate, y-axis coordinate and z-axis coordinate of each track point are all 0; u The x-axis coordinate of each track point is x max , the y-axis coordinate is y max , the z-axis coordinates are all z max , then after initializing the candidate solution population, the i-th candidate solution P i for:
[0175] P i =P l +d i (P u -Pl )
[0176] Among them, d i is a random number in the range [0,1].
[0177] Through the technical solution of this embodiment, candidate solutions can be randomly generated within a preset search range to initialize the candidate solution population, so that the initialized candidate solution population is within the preset search space, thereby improving the reliability of initializing the candidate solution population.
[0178] The following is a comparison between the rescue track of a drone planned based on a non-monopolistic search algorithm in the prior art and the rescue track of a drone planned based on an improved non-monopolistic search algorithm of the present invention, so as to demonstrate the technical effect of the technical solution of the present invention.
[0179] In the flight environment model, the rescue track of the UAV planned based on the non-monopoly search algorithm and the rescue track of the UAV planned based on the improved non-monopoly search algorithm of the present invention are as follows: Figure 7 and Figure 8 As shown, Figure 7 For a three-dimensional view, Figure 8 It is a plane view, the NP algorithm track is the rescue track of the UAV planned based on the non-monopoly search algorithm, and HINO is the rescue track of the UAV planned based on the improved non-monopoly search algorithm of the present invention. It can be seen that the rescue track planned based on the improved non-monopoly search algorithm of the present invention is smoother than the rescue track planned based on the non-monopoly search algorithm, and the planned rescue track is shorter, and the generated rescue track is more flyable.
[0180] Fig. 9 The objective function convergence values of the non-monopoly search algorithm and the improved non-monopoly search algorithm are compared, where the horizontal axis is the number of iterative updates and the vertical axis is the flight cost of the optimal candidate solution in the candidate solution cluster. It can be seen that the improved non-monopoly search algorithm converges faster, and its optimal convergence value is 70.062, while the optimal convergence value of the non-monopoly search algorithm is 81.847. The experimental results prove that the improved non-monopoly search algorithm proposed in the present invention improves the performance by 14.4% compared with the non-monopoly search algorithm.
[0181] At this point, those skilled in the art should recognize that, although multiple exemplary embodiments of the present invention have been shown and described in detail herein, many other variations or modifications that conform to the principles of the present invention can still be directly determined or derived based on the content disclosed in the present invention without departing from the spirit and scope of the present invention. Therefore, the scope of the present invention should be understood and recognized as covering all these other variations or modifications.
Claims
1. A method for unmanned aerial vehicle rescue trajectory planning based on an improved non-monopolistic search algorithm, characterized in that: include: Constructing a flight environment model of the drone according to the disaster scenario, and setting the starting point, rescue point and no-fly zone of the rescue mission in the flight environment model; Constructing a flight cost function of the UAV according to the flight cost and flight safety of the UAV; Initializing a candidate solution population, wherein the candidate solution population includes a plurality of candidate solutions, each of the candidate solutions including position information of a plurality of track points; An improved non-monopolistic search algorithm is used to iteratively update the candidate solution population for a set number of times to obtain an optimized candidate solution population, wherein the improved non-monopolistic search algorithm at least includes: in an exploration phase, updating the candidate solution population according to the best candidate solution in the candidate solution population; The flight cost function is used to obtain a target candidate solution from the optimized candidate solution population, and a track path of the UAV is constructed according to the starting point, the rescue point and the target candidate solution.
2. The method for unmanned aerial vehicle rescue trajectory planning according to claim 1, characterized in that: The step of iteratively updating the candidate solution population a set number of times using the improved non-monopolistic search algorithm further includes: In the development stage, a random value is obtained, and when the random value is greater than a set threshold, the candidate solution population is updated using the following calculation formula: P i (t)=P i (t-1)-A*D Where t is the number of iterations, A is a random value generated according to the number of iterations, D is a random candidate solution generated according to the best candidate solution in the candidate solution population before the tth iteration, and A=2(1-t / N)(2r2-1) D=|2r3×Pbest(t-1)-Pi(t-1) When the random value is less than or equal to the set threshold, the candidate solution population is updated using the following calculation formula: P i (t)=P i (t-1)-[P SRP (t-1)*rand]*eps-[P i (t)-NO] Among them, P i (t) is the i-th candidate solution in the candidate solution population after the t-th iteration update, P i (t-1) is the i-th candidate solution in the candidate solution population before the t-th iteration update, eps represents a small value, P SRP (t-1) is a random candidate solution in the candidate solution population before the tth iteration update, NO is a tuning parameter, r2 and r3 are both random values in the range of [0,1], N is the set number of iterations, P best (t-1) is the optimal candidate solution in the candidate solution population before the t-th iterative update.
3. The method for unmanned aerial vehicle rescue trajectory planning according to claim 1, characterized in that: The step of iteratively updating the candidate solution population a set number of times using the improved non-monopolistic search algorithm further includes: Determining whether the iterative update enters the escape phase; If so, a random vector conforming to the normal distribution is obtained, and the candidate solution population is updated according to the random vector.
4. The method for unmanned aerial vehicle rescue trajectory planning according to claim 3, characterized in that: The determining whether the iterative update enters the escape phase includes: Obtaining the number of update stagnation times of the candidate solution population, and determining whether the number of update stagnation times is greater than or equal to a preset determination threshold; If so, the iterative update enters the escape phase.
5. The method for unmanned aerial vehicle rescue trajectory planning according to claim 1, characterized in that: The method of using the improved non-monopolistic search algorithm to iteratively update the candidate solution population for a set number of times also includes: After the candidate solution population is updated each time, determining whether each candidate solution in the candidate solution population exceeds a preset search range; According to the boundary value of the preset search range, the candidate solutions beyond the preset search range are modified.
6. The method for unmanned aerial vehicle rescue trajectory planning according to claim 1, characterized in that: The step of constructing a flight cost function of the drone according to the flight cost and flight safety of the drone includes: Constructing a flight length cost function of the UAV according to the length of the flight path; Constructing a flight stability cost function of the UAV according to the deflection angle of the UAV; Constructing a constraint function for the UAV to avoid risks according to the distance between the flight path and the no-fly zone; A flight cost function of the UAV is constructed according to the flight length cost function, the flight stability cost function and the constraint function.
7. The method for unmanned aerial vehicle rescue trajectory planning according to claim 6, characterized in that: The step of constructing the flight cost function of the UAV according to the flight length cost function, the flight stability cost function and the constraint function comprises: Obtaining the rescue efficiency weight, flight stability weight and constraint penalty coefficient of the UAV; The flight length cost function is modified by using the rescue efficiency weight, the flight stability cost function is modified by using the flight stability weight, and the constraint function is modified by using the constraint penalty coefficient; A flight cost function of the UAV is constructed according to the modified flight length cost function, flight stability cost function and constraint function.
8. The method for unmanned aerial vehicle rescue trajectory planning according to claim 1, characterized in that: The step of setting the starting point, rescue point and no-fly zone of the rescue mission in the flight environment model includes: Acquire a threat area in the disaster scenario that affects the flight safety of the drone; A cylindrical no-fly zone is set in the flight environment model according to the threat area.
9. The method for unmanned aerial vehicle rescue trajectory planning according to claim 1, characterized in that: The step of using the improved non-monopolistic search algorithm to iteratively update the candidate solution population for a set number of times includes: Obtaining the number of updates for iteratively updating the candidate solution population; If the update number is less than a preset iteration number threshold, performing an iterative update of the candidate solution population in the exploration phase; If the update number is greater than or equal to the preset iteration number threshold, the candidate solution population is iteratively updated in the development phase.
10. The method for unmanned aerial vehicle rescue trajectory planning according to claim 1, characterized in that: The initializing of the candidate solution population includes: The upper bound and the lower bound of the preset search space are obtained, and the position information of each of the track points is randomly generated within the range determined by the upper bound and the lower bound to initialize the candidate solution population.
