Unmanned aerial vehicle three-dimensional path planning method based on multi-operator online learning enhanced particle swarm optimization

By using a method based on multi-operator online learning to enhance particle swarm optimization, the problem of multi-constraint coupling in UAV 3D trajectory planning is solved, achieving efficient trajectory planning in complex environments and obtaining high-quality trajectories.

CN123154891APending Publication Date: 2026-11-24NANJING UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611255009.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-18
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing UAV 3D trajectory planning methods struggle to uniformly evaluate multiple constraints in complex 3D risk environments. Traditional particle swarm optimization algorithms are prone to premature convergence, while multi-strategy algorithms rely on fixed switching rules, making it difficult to balance local refinement capabilities with global exploration capabilities.

Method used

A method based on multi-operator online learning to enhance particle swarm optimization is adopted to construct a three-dimensional risk environment model and a trajectory coding model, establish a comprehensive cost function, construct a multi-operator search library by time-varying scheduling of particle swarm inertia weights and learning factors, and dynamically select search operators using the EXP3 online learning scheduling mechanism to optimize trajectory planning.

Benefits of technology

It improves the global search capability and local refinement capability of UAV trajectory planning, and obtains three-dimensional trajectories with less risk exposure, shorter flight range, reasonable flight altitude and smooth angle changes, thereby improving the stability and adaptability of the planning results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123154891A_ABST
    Figure CN123154891A_ABST
Patent Text Reader

Abstract

The application is a kind of unmanned aerial vehicle three-dimensional path planning method based on multi-operator online learning enhanced particle swarm optimization, which comprises the following steps: obtaining three-dimensional terrain information, risk area information, starting point and ending point information of the unmanned aerial vehicle in the task area, and constructing a comprehensive fitness function; determining the encoding mode of the path control point, taking the lateral coordinate and height coordinate of the intermediate path point as the particle position variable; introducing time-varying annealing parameters and speed limiting mechanism in the particle swarm optimization framework, and constructing a multi-operator search library; adopting EXP3 online learning strategy to adaptively select the current iteration operator according to the fitness improvement reward and group diversity reward, iteratively updating the particle position, and outputting the three-dimensional path meeting the safety constraints. The application can improve the global search ability, local refining ability and planning result stability of the unmanned aerial vehicle path planning in a complex three-dimensional risk environment, and obtain a three-dimensional path with less risk exposure, shorter distance, reasonable flight height and gentle corner change.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of UAV autonomous navigation, intelligent optimization and 3D path planning technology, specifically involving a UAV 3D trajectory planning method based on multi-operator online learning enhanced particle swarm optimization. Background Technology

[0002] As the application of drones in inspection, surveying, emergency rescue, low-altitude logistics, area surveillance, and autonomous operations in complex environments continues to expand, drones need to complete autonomous trajectory planning in environments with three-dimensional terrain undulations, obstacle distribution, airspace restrictions, and dynamic or static risk areas. Three-dimensional trajectory planning not only requires the trajectory to be connected from the start point to the end point, but also needs to simultaneously meet multiple constraints such as flight altitude, safe airspace, obstacle avoidance, no-fly zone avoidance, range, and trajectory smoothness.

[0003] Existing 3D path planning methods mainly include graph search, sampling planning, trajectory optimization, and swarm intelligence optimization. Graph search methods have the advantage of strong interpretability, but the search space expands rapidly in large-scale 3D grid environments; sampling planning methods are highly adaptable, but the generated paths often require further smoothing; traditional swarm intelligence algorithms such as particle swarm optimization, genetic algorithms, dung beetle optimization, moth-to-a-flame optimization, and sine / cosine optimization can handle non-convex, multi-peak, and discontinuous constraint problems, but they are prone to premature convergence, local optima trapping, and late-stage search stagnation in complex and risky scenarios.

[0004] Some improved methods enhance algorithm performance by introducing adaptive parameters, chaotic perturbations, Lévy flight, elite learning, or reinforcement learning strategies. However, these methods still have the following shortcomings: First, the search strategy usually relies on fixed rules or a single adaptive mechanism, making it difficult to dynamically select the most effective operator based on the actual search feedback during the iteration process; second, there is a clear coupling between track length, low-altitude flight, risk avoidance, and smoothness in complex three-dimensional risk environments. Without a unified cost evaluation, it is easy to obtain tracks with short range but high risk or good safety but serious detours; third, the single particle swarm update structure is prone to reducing population diversity in multi-peak, strongly constrained, and discontinuous penalty environments, thus affecting the final track quality.

[0005] Therefore, there is a need for a UAV 3D trajectory planning method that can uniformly model 3D terrain, risk areas, flight altitude and trajectory smoothness, and can adaptively select different search operators based on search feedback during the optimization process. Summary of the Invention

[0006] The purpose of this invention is to provide a UAV 3D trajectory planning method based on multi-operator online learning-enhanced particle swarm optimization, which solves the technical problems of existing UAV 3D trajectory planning methods in complex 3D risk environments, such as the difficulty in unified evaluation of multi-constraint coupling, the tendency of traditional particle swarm algorithms to converge prematurely, the dependence of multi-strategy algorithms on fixed switching rules, and the difficulty in balancing local refinement capabilities and global exploration capabilities.

[0007] The technical solution to achieve the purpose of this invention is: a UAV 3D trajectory planning method based on multi-operator online learning enhanced particle swarm optimization, comprising the following steps:

[0008] Step S1: Construct a three-dimensional risk environment model;

[0009] Step S2: Construct the UAV trajectory coding model;

[0010] Step S3: Establish a comprehensive cost function based on the 3D risk environment model and the trajectory coding model. ;

[0011] Step S4: Initialize the particle swarm position, velocity, individual optimal position, swarm global optimal position, and search operator weights. Decode each initial particle position into a 3D candidate trajectory. Calculate the initial fitness value using the comprehensive cost function from Step S3. Determine the initial individual optimal position and the initial swarm global optimal position based on the initial fitness value. Set the maximum number of iterations. Number of particles Number of operators ;

[0012] Step S5: Based on the current iteration progress The particle swarm inertia weight, learning factor, and velocity limit are time-varyingly scheduled to form a search process that emphasizes global exploration in the early stage and local development in the later stage.

[0013] Step S6: Construct a multi-operator search library, update the particle position and velocity through the selected search operator, perform boundary correction and track decoding on the updated particle position to obtain updated candidate tracks, and recalculate the fitness value of the updated candidate tracks using the comprehensive cost function of step S3.

[0014] Step S7: Update the individual optimal position and the global optimal position of the swarm based on the fitness value of the updated candidate tracks, and construct the fitness improvement reward based on the change of the comprehensive cost of the global optimal position of the swarm in adjacent iterations. Combine the particle swarm diversity reward and use the EXP3 online learning scheduling mechanism to update the search operator weights.

[0015] Step S8: Repeat steps S5 to S7 until the iteration termination condition is met, and output the UAV 3D trajectory corresponding to the group's global optimal position as the target trajectory.

[0016] Furthermore, the three-dimensional risk environment model in step S1 includes the terrain height field. and at least two types of space risk areas;

[0017] For any point in space The first type of risk area is represented by a spherical, hemispherical, cylindrical, or gridded area. A spherical risk area satisfy:

[0018] ,

[0019] in, For the first One risk area center, To influence the radius;

[0020] The second type of risk area is represented by a conical, truncated conical, polyhedral, or gridded region. A cone-shaped risk area satisfy:

[0021] ,

[0022] ,

[0023] in, Represents a spatial location point In the horizontal plane to the first The horizontal distance from the center of the fire threat zone and They represent the first The coordinates of the center of the fire threat area in the horizontal plane. The radius of action at the bottom. Represents horizontal coordinates The terrain elevation at that location; Indicates location point The height coordinates; Indicates the first The maximum effective height of the fire threat zone relative to the terrain surface.

[0024] Furthermore, step S2 specifically involves representing the UAV trajectory as an ordered set of points consisting of a starting point, several intermediate trajectory points, and a destination. The lateral and altitude coordinates of intermediate track points are used as variables to be optimized in the particle swarm optimization model, which satisfies the following:

[0025] ,

[0026] ,

[0027] ,

[0028] ,

[0029] ,

[0030] In the formula, This represents a candidate 3D flight path for a UAV consisting of several waypoints. Indicates the starting point of the flight path. Indicates the end point of the flight path. Indicates the distance between the start and end points One intermediate track control point; Indicates the starting point of the drone mission. Indicates the endpoint of the drone mission; Indicates the first There are several intermediate track control points, whose three-dimensional coordinates are represented as follows: ,in , and These represent the longitudinal, lateral, and altitude coordinates of the waypoint in the three-dimensional coordinate system, respectively. ;

[0031] in, and These represent the starting points of the tasks. and the end of the mission exist The coordinates of the direction, the kth intermediate track point Coordinates are determined at equal intervals along the direction of the line connecting the start and end points, with each intermediate track point... Coordinates are not used as optimization variables and are predetermined by the number of start, end, and intermediate waypoints.

[0032] Indicates the first The particle in the first The position vector at the next iteration; and They represent the first The particle in the first The corresponding iteration at the nth iteration The lateral and altitude coordinates of each intermediate waypoint.

[0033] Furthermore, the comprehensive cost function of step S3 satisfies:

[0034] ,

[0035] in, The cost of hitting the first type of risk. The cost of hitting the second type of risk. For the cost of track length, The cost is the average terrain clearance or height. As a trade-off for corner smoothness, To constrain penalties, , , , , These are the corresponding weighting coefficients.

[0036] Furthermore, in step S3, the track length cost, average terrain clearance or altitude cost, and corner smoothness cost are determined by the following formulas:

[0037] ,

[0038] ,

[0039] ,

[0040] ,

[0041] in, Indicates candidate tracks The actual length of the flight path; Indicates the first candidate track One waypoint Indicates the next waypoint adjacent to it. For reference flight altitude, Indicates the first The altitude coordinates of each waypoint Indicates the first Each waypoint is on the horizontal coordinate Corresponding terrain height To prevent positive numbers with a denominator of zero;

[0042] The cost of hitting the first type of risk and the cost of hitting the second type of risk are determined by whether the path sampling point falls into the corresponding risk area; for track sampling points The risk hit cost is satisfied:

[0043] ,

[0044] ,

[0045] in, This is an indicator function that takes the value when a sampling point falls into the corresponding risk area. Otherwise, the value is ;

[0046] Constraints and penalties It includes at least terrain safety penalties, altitude boundary penalties, search boundary penalties, and track infeasibility penalties, and applies to any track point. At least the following conditions must be met:

[0047] ,

[0048] ,

[0049] in, For terrain safety intervals, and These are the lower and upper bounds of the search space for the optimization variables, respectively.

[0050] Furthermore, the time-varying scheduling in step S5 satisfies:

[0051] ,

[0052] ,

[0053] ,

[0054] ,

[0055] in, Indicates the first The inertia weight of the particle swarm optimization algorithm in each iteration is used to adjust the degree to which the particles retain the motion state of the previous generation. and These represent the maximum and minimum values ​​of the inertia weight, respectively. Indicates the first The individual learning factor at each iteration is used to adjust the degree to which a particle learns from its own historical best position. and These represent the maximum and minimum values ​​of the individual learning factor, respectively. Indicates the first The group learning factor in the next iteration is used to adjust the degree to which particles learn towards the global optimal position of the group; and These represent the maximum and minimum values ​​of the group learning factor, respectively. This represents the maximum allowable value of particle velocity, used to limit the single movement range of a particle in the search space, and to avoid excessive jumps or frequent boundary crossings during particle updates. This represents the speed limiting ratio coefficient, used to control the ratio of the maximum speed to the search space scale; and These represent the upper and lower bounds of the particle search space, respectively.

[0056] Furthermore, the multi-operator search library constructed in step S6 includes at least the standard particle swarm update operator, the full-information particle swarm update operator, the comprehensive learning particle swarm update operator, the Lévy transition operator, and the covariance refinement injection operator.

[0057] The update process is represented as follows:

[0058] ,

[0059] in, Indicates the first The position matrix of the particle swarm during the next iteration is used to characterize the candidate trajectory control variables corresponding to all particles in the current particle swarm. Indicates the first The velocity matrix of the particle swarm during each iteration is used to characterize the update direction and update magnitude of each particle in the search space. and They represent the results obtained after updating by the current search operator. The particle position matrix and velocity matrix of the next iteration; Indicates the first The set of individual historical best positions of each particle at each iteration, where each individual historical best position corresponds to the best candidate trajectory obtained by a particle in the previous search process. Indicates the first The global optimal position of the particle swarm at the next iteration, which is the optimal candidate trajectory control variable obtained by the entire particle swarm in the historical search process. Indicates the first The search operator number or operator index selected by the online learning scheduling mechanism in each iteration; Indicates the presence of multiple operators in the library. The corresponding search operator.

[0060] Furthermore, the standard particle swarm update operator in step S6 Update using the following formula:

[0061] ,

[0062] ,

[0063] in, Indicates the first The particle in the first The velocity vector at the next iteration Indicates the first The particle in the first The velocity vector at the next iteration; Indicates the first The particle in the first The position vector at the next iteration, i.e., the candidate trajectory control variable corresponding to the particle; This represents the result obtained after velocity update and boundary correction. The particle in the first The position vector at the next iteration. For the first The optimal position of each individual particle. The optimal position for the entire group. , For random vectors, This indicates element-wise multiplication. Indicates boundary truncation. and These represent the lower and upper bounds of the particle position vector, respectively.

[0064] Fully Information Particle Swarm Optimization Update Operator Integrated learning particle swarm update operator Lévy transition operator Covariance Refining Injection Operator At least the following update relationships must be satisfied:

[0065] ;

[0066] ,

[0067] ,

[0068] ,

[0069] in, For particles The neighborhood set, Indicates the first The learning weights of each neighboring particle. Indicates the first The particle in the first The first dimension variable The velocity component at the next iteration Indicates that it is in the first The velocity component at the next iteration To comprehensively learn the first particle swarm optimization Wei serves as a model for learning. Indicates the first The particle in the first The first dimension variable Position components at the next iteration Represents the comprehensive learning factor. Let Lévy be the random step size. Here are the Lévy distribution parameters. and These are the position mean and covariance matrix of the elite particle ensemble, respectively. This indicates the position of the new candidate particle generated through the covariance refining injection mechanism; The mean vector of the elite particle set is used to characterize the center position of the current good solution region; This represents the scaling factor for the covariance perturbation. This represents a random vector that follows a multivariate normal distribution. This represents the position covariance matrix of the elite particle set. This represents a very small positive number, used to ensure the numerical stability of the covariance matrix; Represents the identity matrix.

[0070] Furthermore, the selection probability, overall reward, and weight update in step S7 respectively satisfy:

[0071] ,

[0072] ,

[0073] ,

[0074] in, For the first The selection probability of each search operator For the first The weights of each search operator Indicates the first During the nth iteration The weight values ​​of each search operator This represents the total number of candidate search operators in the multi-operator library. To explore coefficients, and As a reward weight, The learning rate; Indicates the first The comprehensive reward obtained from the currently selected search operator in the next iteration; This represents the fitness improvement reward, used to measure the contribution of the current search operator to the decrease in global optimal fitness or the improvement in the quality of candidate paths; Represents the population diversity reward, used to measure the effect of the current search operator on maintaining the dispersion of the particle swarm distribution and the ability to cover the search space; and These represent the weight coefficients for fitness improvement reward and population diversity reward, respectively, used to adjust the balance between convergence accuracy and search diversity in the algorithm; express The search operator selected in the next iteration The updated weights express The original weights of the search operator in the next iteration Indicates the first The search operator number selected by the EXP3 online learning scheduling module in the next iteration. Indicates the first Search operator in the next iteration The probability of being selected. This indicates that the learning rate is updated for weights. This represents the total reward obtained in the current iteration. This represents the total number of candidate search operators. Represents an exponential function;

[0075] Adaptability Improvement Rewards Group diversity rewards and comprehensive rewards Determine using the following formula:

[0076] ,

[0077] ,

[0078] ,

[0079] ,

[0080] in, Indicates the first Fitness improvement reward in the next iteration For the first The optimal fitness value of the generation population This represents a very small positive number, used to avoid the denominator being zero. Indicates the first The diversity measure of the particle swarm at the next iteration Indicates the particle swarm size. Indicates the first The particle in the first The position vector at the next iteration. Indicates the first The mean of all particle position vectors at the next iteration. Indicates the first Group diversity reward in the next iteration This represents a measure of the diversity of the particle swarm during the initial iteration. Indicates the first The overall reward for selecting the search operator in the next iteration. This represents the weighting coefficient for fitness improvement rewards. This represents the weighting coefficient for rewards based on group diversity.

[0081] Furthermore, step S7, "updating the search operator weights using the EXP3 online learning scheduling mechanism," specifically involves:

[0082] Calculate the operator selection probability:

[0083] ,

[0084] Update the weights of the selected operators:

[0085] .

[0086] Compared with the prior art, the significant advantages of this invention are:

[0087] This method transforms the UAV 3D trajectory planning problem into a nonlinear optimization problem with terrain safety constraints, risk area avoidance constraints, altitude constraints, and trajectory smoothing constraints. It establishes a multi-operator search library within the particle swarm optimization framework and uses the EXP3 online learning mechanism to dynamically select operators based on current search feedback. This method can improve the global search capability, local refinement capability, and stability of planning results in complex 3D risk environments, obtaining 3D trajectories with lower risk exposure, shorter flight range, reasonable flight altitude, and smoother angle changes. Attached Figure Description

[0088] Figure 1 This is a flowchart of the three-dimensional trajectory planning method;

[0089] Figure 2 This is a schematic diagram of the EXP3 online learning operator scheduling process;

[0090] Figure 3 These are different algorithmic path planning methods in a three-dimensional threat environment;

[0091] Figure 4 It is a top-down projection of the planned path;

[0092] Figure 5 It is the fitness convergence curve;

[0093] Figure 6 This is a comparison chart of various indicators along the path. Detailed Implementation

[0094] The present invention will now be described in further detail with reference to the accompanying drawings.

[0095] A method for UAV 3D trajectory planning based on multi-operator online learning-enhanced particle swarm optimization includes the following steps:

[0096] 3D Risk Environment Modeling

[0097] The task area is defined in a three-dimensional coordinate system. Among them and Represents the horizontal coordinate. Representing altitude coordinates. The terrain of the mission area is represented by an altitude field. express, The terrain is generated from simulation.

[0098] The risk area set includes Category I and Category II risk areas. Category I risk areas can be represented using a spherical or hemispherical model, such as a detection risk area, a no-fly zone, or a space obstacle impact area.

[0099]

[0100] The second type of risk area can be represented using a cone or truncated cone model, such as a ground-level hazard zone or a risk zone that decreases with altitude:

[0101]

[0102]

[0103] in, As the center of the first-category risk area, Radius of risk impact; As the center of the second-category risk area, The radius of action at the bottom. This represents the maximum effective height. This embodiment uses the aforementioned spherical and conical risk regions for illustration, but does not exclude cylindrical, polyhedral, voxel grid, or regions represented by a probability risk field.

[0104] Track coding and constraint settings

[0105] The flight path starts from the origin, It consists of intermediate waypoints and a destination. To reduce the optimization dimensionality, intermediate waypoints... Coordinates are determined at equal intervals along the direction of the line connecting the origin and destination, with intermediate track points... coordinates and Coordinates are used as variables in particle swarm optimization.

[0106]

[0107] This encoding method ensures that the entire track unfolds along the mission direction from start to finish, while retaining the ability to laterally bypass obstacles and adjust altitude. For any track point, terrain safety constraints and search boundary constraints are set:

[0108]

[0109]

[0110] If a candidate waypoint violates equation (5) or equation (6), then a penalty term is applied. Imposing a significant penalty is necessary to prevent unfeasible paths from being selected as the optimal path.

[0111] Construction of comprehensive cost function

[0112] The comprehensive cost function of candidate tracks consists of components such as risk hit rate, track length, average terrain clearance, and track smoothness. A set of sampling points is obtained by sampling continuous tracks. The costs of hitting a Type I risk and the costs of hitting a Type II risk are as follows:

[0113]

[0114] in, This is the indicator function. The track length cost is used to constrain range and energy consumption:

[0115]

[0116]

[0117] Average terrain clearance or altitude cost is used to constrain the drone's flight altitude relative to the ground:

[0118]

[0119] The corner smoothness cost is used to suppress sharp turns in the flight path and improve executability:

[0120]

[0121] The final comprehensive cost function is:

[0122]

[0123] By adjusting the weighting coefficients, different task requirements can be adapted. For example, in safety-priority tasks, increasing... and Improve in missions with limited endurance Improve in low-altitude flight or terrain-following missions ; Improve in missions requiring flight control operability .

[0124] Multi-operator online learning enhances particle swarm optimization

[0125] This embodiment introduces time-varying parameters, a multi-operator search library, and the EXP3 online learning scheduling mechanism based on the standard particle swarm optimization framework. The standard particle swarm update operator is represented as:

[0126]

[0127]

[0128] At different iteration stages, the algorithm adjusts the inertia weight, learning factor, and velocity cap according to S5. In the early stages of iteration, a larger inertia weight and individual learning factor help to expand the exploration range; in the later stages of iteration, a larger social learning factor helps to refine local areas around the best trajectory.

[0129] To enhance the diversity of search behavior, this embodiment constructs a multi-operator library including five types of operators. The full-information particle swarm operator guides particle updates through the optimal information of neighboring individuals:

[0130]

[0131] The comprehensive learning particle swarm operator selects different demonstration learning objects according to the dimension:

[0132]

[0133] The Lévy transition operator is used to achieve cross-region search during the stagnant phase:

[0134]

[0135] The covariance refining injection operator establishes a local statistical model based on an elite particle ensemble and generates candidate refined solutions:

[0136]

[0137] The aforementioned operators complement each other in search behavior. The standard particle swarm operator provides a stable basic search, the full-information particle swarm operator enhances group collaboration, the comprehensive learning particle swarm operator enhances dimensional reorganization, the Lévy transition operator improves the ability to escape local optima, and the covariance refining injection operator enhances local refinement capabilities.

[0138] EXP3 Online Learning Scheduling Mechanism

[0139] In multi-operator search libraries, the core issue is which operator to select in each generation. Using fixed probabilities or manual empirical rules makes it difficult to adapt to changes in terrain, risk distribution, and search stages. Therefore, this embodiment employs the EXP3 online learning mechanism to adaptively adjust the operator selection probability based on search feedback.

[0140]

[0141] In the formula, the first term tends to select high-weight operators based on historical search results, while the second term ensures that all operators have the opportunity to be explored. The first term is selected... After executing the update with each operator, the reward is calculated based on the overall cost improvement and particle swarm diversity:

[0142]

[0143]

[0144]

[0145]

[0146] The fitness improvement reward reflects the current operator's contribution to improving the quality of the optimal trajectory, while the swarm diversity reward helps prevent premature particle aggregation. The weights of the selected operators are updated according to their importance.

[0147]

[0148]

[0149] Through equations (19) to (25), the algorithm can automatically favor more effective search operators at different optimization stages, thereby taking into account global exploration, local obstacle avoidance and track refinement.

[0150] Track generation and smoothing

[0151] When the iteration terminates, the globally optimal particle will be... The data is decoded into discrete waypoints. To adapt to flight control execution, cubic spline interpolation can be performed on the discrete waypoints to generate continuous paths. After path generation, resampling and risk area detection and terrain safety detection are performed; if risk hits or terrain collisions are found, local nodes are raised, detoured, or re-optimized.

[0152] In one embodiment eight, the simulation scenario includes complex 3D terrain, multiple Class I risk areas, and multiple Class II risk areas. Compared with standard particle swarm optimization, the moth-to-a-flame algorithm, and the sine-cosine algorithm, this invention can achieve lower overall cost and shorter trajectory length while satisfying safety constraints, indicating that this invention has better path optimization capabilities and adaptability to complex environments.

[0153] Electronic devices and storage media

[0154] This invention can also be implemented in software, hardware, or a combination of both. The electronic device may include a processor, memory, communication interface, and bus. The memory stores a computer program, and when the processor executes the computer program, it implements the above-described method steps. A non-transitory computer-readable storage medium stores a computer program, which, when executed by a processor, implements the above-described UAV three-dimensional trajectory planning method.

[0155] Example

[0156] The following is a demonstration with reference to specific embodiments.

[0157] The rationality and effectiveness of the proposed path planning solution are verified in a simulated environment, and compared with methods from related algorithms. A scaling factor is used on the simulation map. The horizontal range of the map is The terrain consists of basic undulating terrain, multiple Gaussian peaks, and local disturbances to simulate low-altitude flight constraints in a mountainous environment. The mission starts in the left-hand area of ​​the map and ends in the right-hand area. The path must minimize overall cost while avoiding ground collisions, entering radar and fire threat zones.

[0158] The path is encoded using 6 intermediate control nodes, and the optimization dimension for each candidate path is 12. During path generation, discrete waypoints are first determined based on the control nodes, and then continuous tracks are generated using cubic spline interpolation. The simulation scenario includes 11 radar threats and 25 fire threats. The algorithm population size is set to 36, and the maximum number of iterations is set to 350.

[0159] The quantitative evaluation results of each algorithm in the 3D path planning task are shown in the table below.

[0160] Table 1. Performance Comparison of Path Planning Algorithms

[0161]

[0162] Following the steps of this invention, path planning is performed, and the optimal path obtained is as follows: Figure 3 and Figure 4 As shown.

[0163] Quantitative evaluation results show that all algorithms achieved zero-threat hits at the current path sampling resolution, indicating that the constructed fitness function can effectively constrain path safety. Under the condition of satisfying all safety constraints, MOEA-PSO achieved the lowest overall cost of 1381.8925 and the shortest path length of 4331.1327 m. Compared with PSO, MOEA-PSO reduces the overall cost by approximately 4.34% and shortens the path length by approximately 3.20%; compared with MFO, it reduces the overall cost by approximately 0.89% and shortens the path length by approximately 3.32%; and compared with SCA, it reduces the overall cost by approximately 28.21% and shortens the path length by approximately 23.39%. These results demonstrate that the advantages of MOEA-PSO are not only reflected in the final fitness value but also in the path geometry length and task executability.

[0164] In summary, this method can better coordinate the relationship between trajectory length, flight altitude and path smoothness while ensuring safety, and can effectively improve the overall performance of UAV trajectory planning in complex three-dimensional threat environments, thus having certain engineering application value.

[0165] This invention is applicable to global flight path planning for UAVs in three-dimensional environments such as mountainous areas, hilly areas, urban edges, complex low-altitude airspace, and areas containing multiple types of risks.

Claims

1. A method for UAV 3D trajectory planning based on multi-operator online learning-enhanced particle swarm optimization, characterized in that, Includes the following steps: Step S1: Construct a three-dimensional risk environment model; Step S2: Construct the UAV trajectory coding model; Step S3: Establish a comprehensive cost function based on the 3D risk environment model and the trajectory coding model. ; Step S4: Initialize the particle swarm position, velocity, individual optimal position, swarm global optimal position, and search operator weights. Decode each initial particle position into a 3D candidate trajectory. Calculate the initial fitness value using the comprehensive cost function from Step S3. Determine the initial individual optimal position and the initial swarm global optimal position based on the initial fitness value. Set the maximum number of iterations. Number of particles Number of operators ; Step S5: Based on the current iteration progress The particle swarm inertia weight, learning factor, and velocity limit are time-varyingly scheduled to form a search process that emphasizes global exploration in the early stage and local development in the later stage. Step S6: Construct a multi-operator search library, update the particle position and velocity through the selected search operator, perform boundary correction and track decoding on the updated particle position to obtain updated candidate tracks, and recalculate the fitness value of the updated candidate tracks using the comprehensive cost function of step S3. Step S7: Update the individual optimal position and the global optimal position of the swarm based on the fitness value of the updated candidate tracks, and construct the fitness improvement reward based on the change of the comprehensive cost of the global optimal position of the swarm in adjacent iterations. Combine the particle swarm diversity reward and use the EXP3 online learning scheduling mechanism to update the search operator weights. Step S8: Repeat steps S5 to S7 until the iteration termination condition is met, and output the UAV 3D trajectory corresponding to the group's global optimal position as the target trajectory.

2. The method according to claim 1, characterized in that, The three-dimensional risk environment model in step S1 includes the terrain height field. and at least two types of space risk areas; For any point in space The first type of risk area is represented by a spherical, hemispherical, cylindrical, or gridded area. A spherical risk area satisfy: , in, For the first One risk area center, To influence the radius; The second type of risk area is represented by a conical, truncated conical, polyhedral, or gridded region. A cone-shaped risk area satisfy: , , in, Represents a spatial location point In the horizontal plane to the first The horizontal distance from the center of the fire threat zone and They represent the first The coordinates of the center of the fire threat area in the horizontal plane. The radius of action at the bottom. Represents horizontal coordinates The terrain elevation at that location; Indicates location point The height coordinates; Indicates the first The maximum effective height of the fire threat zone relative to the terrain surface.

3. The method according to claim 2, characterized in that, Step S2 specifically involves representing the UAV trajectory as an ordered set of points consisting of a starting point, several intermediate trajectory points, and a destination. The lateral and altitude coordinates of intermediate track points are used as variables to be optimized in the particle swarm optimization model, which satisfies the following: , , , , , In the formula, This represents a candidate 3D flight path for a UAV consisting of several waypoints. Indicates the starting point of the flight path. Indicates the end point of the flight path. Indicates the distance between the start and end points One intermediate track control point; Indicates the starting point of the drone mission. Indicates the endpoint of the drone mission; Indicates the first There are several intermediate track control points, whose three-dimensional coordinates are represented as follows: ,in , and These represent the longitudinal, lateral, and altitude coordinates of the waypoint in the three-dimensional coordinate system, respectively. ; in, and These represent the starting points of the tasks. and the end of the mission exist The coordinates of the direction, the kth intermediate track point Coordinates are determined at equal intervals along the direction of the line connecting the start and end points, with each intermediate track point... Coordinates are not used as optimization variables and are predetermined by the number of start, end, and intermediate waypoints. Indicates the first The particle in the first The position vector at the next iteration; and They represent the first The particle in the first The corresponding iteration at the nth iteration The lateral and altitude coordinates of each intermediate waypoint.

4. The method according to claim 3, characterized in that, The comprehensive cost function of step S3 satisfies: , in, The cost of hitting the first type of risk. The cost of hitting the second type of risk. For the cost of track length, The cost is the average terrain clearance or height. As a trade-off for corner smoothness, To constrain penalties, , , , , These are the corresponding weighting coefficients.

5. The method according to claim 4, characterized in that, In step S3, the cost of track length, average terrain clearance or altitude, and corner smoothness are determined by the following formulas: , , , , in, Indicates candidate tracks The actual length of the flight path; Indicates the first candidate track One waypoint Indicates the next waypoint adjacent to it. For reference flight altitude, Indicates the first The altitude coordinates of each waypoint Indicates the first Each waypoint is on the horizontal coordinate Corresponding terrain height To prevent positive numbers with a denominator of zero; The cost of hitting the first type of risk and the cost of hitting the second type of risk are determined by whether the path sampling point falls into the corresponding risk area; for track sampling points The risk hit cost is satisfied: , , in, This is an indicator function that takes the value when a sampling point falls into the corresponding risk area. Otherwise, the value is ; Constraints and penalties It includes at least terrain safety penalties, altitude boundary penalties, search boundary penalties, and track infeasibility penalties, and applies to any track point. At least the following conditions must be met: , , in, For terrain safety intervals, and These are the lower and upper bounds of the search space for the optimization variables, respectively.

6. The method according to claim 5, characterized in that, The time-varying scheduling in step S5 satisfies: , , , , in, Indicates the first The inertia weight of the particle swarm optimization algorithm in each iteration is used to adjust the degree to which the particles retain the motion state of the previous generation. and These represent the maximum and minimum values ​​of the inertia weight, respectively. Indicates the first The individual learning factor at each iteration is used to adjust the degree to which a particle learns from its own historical best position. and These represent the maximum and minimum values ​​of the individual learning factor, respectively. Indicates the first The group learning factor in the next iteration is used to adjust the degree to which particles learn towards the global optimal position of the group; and These represent the maximum and minimum values ​​of the group learning factor, respectively. This represents the maximum allowable value of particle velocity, used to limit the single movement range of a particle in the search space, and to avoid excessive jumps or frequent boundary crossings during particle updates. This represents the speed limiting ratio coefficient, used to control the ratio of the maximum speed to the search space scale; and These represent the upper and lower bounds of the particle search space, respectively.

7. The method according to claim 6, characterized in that, The multi-operator search library constructed in step S6 includes at least the standard particle swarm optimization update operator, the full-information particle swarm optimization update operator, the comprehensive learning particle swarm optimization update operator, the Lévy transition operator, and the covariance refinement injection operator. The update process is represented as follows: , in, Indicates the first The position matrix of the particle swarm during the next iteration is used to characterize the candidate trajectory control variables corresponding to all particles in the current particle swarm. Indicates the first The velocity matrix of the particle swarm during each iteration is used to characterize the update direction and update magnitude of each particle in the search space. and They represent the results obtained after updating by the current search operator. The particle position matrix and velocity matrix of the next iteration; Indicates the first The set of individual historical best positions of each particle at each iteration, where each individual historical best position corresponds to the best candidate trajectory obtained by a particle in the previous search process. Indicates the first The global optimal position of the particle swarm at the next iteration, which is the optimal candidate trajectory control variable obtained by the entire particle swarm in the historical search process. Indicates the first The search operator number or operator index selected by the online learning scheduling mechanism in each iteration; Indicates the presence of multiple operators in the library. The corresponding search operator.

8. The method according to claim 7, characterized in that, Standard particle swarm update operator in step S6 Update using the following formula: , , in, Indicates the first The particle in the first The velocity vector at the next iteration Indicates the first The particle in the first The velocity vector at the next iteration; Indicates the first The particle in the first The position vector at the next iteration, i.e., the candidate trajectory control variable corresponding to the particle; This represents the result obtained after velocity update and boundary correction. The particle in the first The position vector at the next iteration. For the first The optimal position of each individual particle. The optimal position for the entire group. , For random vectors, This indicates element-wise multiplication. Indicates boundary truncation. and These represent the lower and upper bounds of the particle position vector, respectively. Fully Information Particle Swarm Optimization Update Operator Integrated learning particle swarm update operator Lévy transition operator Covariance Refining Injection Operator At least the following update relationships must be satisfied: , , , , in, For particles The neighborhood set, Indicates the first The learning weights of each neighboring particle. Indicates the first The particle in the first The first dimension variable The velocity component at the next iteration Indicates that it is in the first The velocity component at the next iteration To comprehensively learn the first particle swarm optimization Wei serves as a model for learning. Indicates the first The particle in the first The first dimension variable Position components at the next iteration Represents the comprehensive learning factor. Let Lévy be the random step size. Here are the Lévy distribution parameters. and These are the position mean and covariance matrix of the elite particle ensemble, respectively. This indicates the position of the new candidate particle generated through the covariance refining injection mechanism; The mean vector of the elite particle set is used to characterize the center position of the current good solution region; This represents the scaling factor for the covariance perturbation. This represents a random vector that follows a multivariate normal distribution. This represents the position covariance matrix of the elite particle set. This represents a very small positive number, used to ensure the numerical stability of the covariance matrix; Represents the identity matrix.

9. The method according to claim 8, characterized in that, The selection probability, overall reward, and weight update in step S7 respectively satisfy: , , , in, For the first The selection probability of each search operator For the first The weights of each search operator Indicates the first During the nth iteration The weight values ​​of each search operator This represents the total number of candidate search operators in the multi-operator library. To explore coefficients, and As a reward weight, The learning rate; Indicates the first The comprehensive reward obtained from the currently selected search operator in the next iteration; This represents the fitness improvement reward, used to measure the contribution of the current search operator to the decrease in global optimal fitness or the improvement in the quality of candidate paths; Represents the population diversity reward, used to measure the effect of the current search operator on maintaining the dispersion of the particle swarm distribution and the ability to cover the search space; and These represent the weight coefficients for fitness improvement reward and population diversity reward, respectively, used to adjust the balance between convergence accuracy and search diversity in the algorithm; express The search operator selected in the next iteration The updated weights express The original weights of the search operator in the next iteration Indicates the first The search operator number selected by the EXP3 online learning scheduling module in the next iteration. Indicates the first Search operator in the next iteration The probability of being selected. This indicates that the learning rate is updated for weights. This represents the total reward obtained in the current iteration. This represents the total number of candidate search operators. Represents an exponential function; Adaptability Improvement Rewards Group diversity rewards and comprehensive rewards Determine using the following formula: , , , , in, Indicates the first Fitness improvement reward in the next iteration For the first The optimal fitness value of the generation population This represents a very small positive number, used to avoid the denominator being zero. Indicates the first The diversity measure of the particle swarm at the next iteration Indicates the particle swarm size. Indicates the first The particle in the first The position vector at the next iteration. Indicates the first The mean of all particle position vectors at the next iteration. Indicates the first Group diversity reward in the next iteration This represents a measure of the diversity of the particle swarm during the initial iteration. Indicates the first The overall reward for selecting the search operator in the next iteration. This represents the weighting coefficient for fitness improvement rewards. This represents the weighting coefficient for rewards based on group diversity.

10. The method according to claim 9, characterized in that, Step S7, "updating search operator weights using the EXP3 online learning scheduling mechanism," specifically refers to: Calculate the operator selection probability: , Update the weights of the selected operators: 。