Skip to Content
BiomimeticsBiomimetics
  • Article
  • Open Access

5 July 2026

26 Pages

A Reinforcement-Learning-Driven Multi-Strategy Spherical-Vector Grey Wolf Optimizer for UAV 3D Path Planning

and
School of Mathematics and Science, Hebei GEO University, Shijiazhuang 050031, China
*
Author to whom correspondence should be addressed.

Abstract

Unmanned aerial vehicles (UAVs) have been widely used in surveying and mapping, inspection, emergency rescue, and environmental monitoring. However, effective path planning remains a key challenge in complex three-dimensional terrain, where UAVs must simultaneously cope with terrain undulations, no-fly zones, safety-clearance requirements, and trajectory-smoothness constraints. In addition, conventional intelligent optimization algorithms often suffer from search instability and premature convergence. To address these challenges, this study proposes a reinforcement-learning-driven multi-strategy spherical-vector grey wolf optimizer, termed TLQ-SGWO, where TLQ denotes the combined use of Tent–Logistic hybrid initialization and Q-learning search-strategy scheduling. In the proposed method, candidate trajectories are encoded using spherical-vector increments; Tent–Logistic hybrid initialization is introduced to enhance population diversity; and Q-learning is incorporated to adaptively select search strategies, thereby dynamically balancing exploration and exploitation. A comprehensive cost function integrating path length, threat avoidance, terrain clearance, and trajectory smoothness is further constructed to improve the feasibility and safety of the planned trajectories. Experiments are conducted on the CEC2017 benchmark functions and artificially generated complex mountainous terrain scenarios. On the CEC2017 benchmark suite, TLQ-SGWO achieves the best average rankings in both mean error and standard deviation among the seven compared algorithms, indicating a stronger balance between optimization accuracy and robustness. In artificial mountainous scenarios, TLQ-SGWO obtains the lowest mean path cost in three of the four scenarios and remains statistically comparable to the strongest hybrid baseline in the remaining scenario, while maintaining stable feasible 3D trajectories under increasing no-fly-zone complexity.

1. Introduction

Unmanned aerial vehicles (UAVs) are increasingly used in mapping, inspection, emergency rescue, environmental monitoring, and other autonomous missions. Advances in multi-sensor fusion and attitude control have improved autonomous inspection accuracy and have also raised the requirement for safe and reliable flight operation [1]. For autonomous UAVs, path planning aims to generate a safe, flyable, and low-cost trajectory between a prescribed start point and goal point. Existing surveys indicate that UAV path planning in complex environments must simultaneously consider mission constraints, environmental threats, computational requirements, and multi-objective trade-offs [2,3]. Compared with two-dimensional planning, 3D path planning in mountainous terrain further involves terrain undulation, no-fly zones, terrain clearance, maximum flight altitude, turning-angle constraints, and climb/descent smoothness. The resulting problem is therefore high-dimensional, nonlinear, and strongly constrained. In tasks such as 3D structural coverage, path planning must also consider coverage efficiency, structural geometry, and flight reachability [4].
Traditional path-planning methods include Dijkstra, A*, RRT, artificial potential fields, and grid search [5,6]. These methods are interpretable on structured maps, but search-space dimensionality, path-smoothness requirements, and susceptibility to local minima often constrain their performance in continuous 3D terrain. In addition to graph-search methods, LSTM-based real-time path planning has been investigated to improve UAV prediction and response under time-varying environmental information [7]. Swarm intelligence algorithms, including particle swarm optimization (PSO), grey wolf optimizer (GWO), whale optimization algorithm (WOA), and differential evolution, do not require gradient information and are suitable for complex non-convex optimization problems [8,9,10]. However, their performance may still be limited by unstable random initialization, fixed search-stage transitions, and insufficient robustness in complex threat regions.
Genetic algorithms (GAs) provide a complementary evolutionary-search paradigm for vehicle maneuverability and UAV path planning because crossover and mutation can preserve diverse candidate routes while recombining promising trajectory segments. Akopov et al. developed a parallel biobjective real-coded GA to improve maneuverability in a multiagent fuzzy transportation system, demonstrating the suitability of real-valued evolutionary search for balancing conflicting motion objectives [11]. Pehlivanoglu and Pehlivanoglu proposed an enhanced GA for autonomous UAV target-coverage path planning and showed that tailored genetic operators can improve route quality under task-specific constraints [12]. These studies highlight the relevance of GA-based search to continuous trajectory optimization and motivate its consideration when evaluating population-based UAV path-planning methods.
Hybrid evolutionary and swarm-intelligence algorithms have also attracted increasing attention because they can combine the population-diversity preservation of evolutionary operators with the fast information-sharing ability of swarm search. However, exhaustively comparing all hybrid variants is difficult because different hybrid algorithms often use different encoding schemes, operators, parameter settings, and computational budgets. Therefore, this study introduces RCGA-PSO as a representative hybrid continuous-optimization baseline, together with GA and PSO, to examine whether the proposed TLQ-SGWO remains competitive against both classical and hybrid population-based search mechanisms.
Spherical-vector path encoding describes a 3D UAV trajectory using radial step length, pitch angle, and horizontal heading angle, making the decision variables more consistent with the geometric characteristics of UAV motion. Previous studies have combined spherical vectors with PSO, angle-coded swarm intelligence methods, and improved swarm optimization algorithms, demonstrating the applicability of this encoding strategy to 3D UAV path planning [13,14,15,16]. In parallel, nonlinear convergence factors, event-triggered mechanisms, and adaptive weights have been introduced into GWO to improve 3D trajectory-planning performance [17].
Nevertheless, three issues remain insufficiently addressed. First, randomly initialized populations may concentrate in high-penalty terrain or threat regions, reducing early-stage search quality. Second, fixed GWO search strategies are difficult to adapt to different evolutionary states. Third, under dense no-fly-zone constraints, the population may stagnate around low-quality feasible corridors or obstacle boundaries. Studies on improved GWO and multi-strategy path planning have shown that adaptive strategies can alleviate exploration–exploitation imbalance and premature convergence [18,19,20,21]. Motivated by these observations, this study proposes a Tent–Logistic- and Q-learning-based multi-strategy spherical-vector grey wolf optimizer, abbreviated as TLQ-SGWO, for UAV 3D path planning. Here, TLQ refers to the combination of Tent–Logistic hybrid initialization and Q-learning search-strategy scheduling; rather than a separate variant of Q-learning. The hybrid initialization is designed to combine the nonlinear state dispersion of the Logistic map with the piecewise expansion of the Tent map, thereby reducing dependence on a single chaotic sequence. Within the spherical-vector SGWO framework, the proposed algorithm schedules search actions through Q-learning and combines hybrid initialization, controlled Lévy perturbation, Alpha local refinement, and a safety-oriented elite branch to improve search quality under complex 3D constraints.
The main contributions of this study are summarized as follows:
  • A spherical-vector multi-constraint path-planning model is constructed for complex 3D terrain. The model represents trajectory segments using spherical-vector increments and integrates path length, cylindrical no-fly-zone threat, terrain collision and clearance, trajectory smoothness, low-terrain guidance, and altitude constraints into a seven-term comprehensive cost function, thereby providing an optimization space consistent with UAV motion characteristics.
  • A Q-learning-based search-strategy scheduling mechanism is developed for SGWO. To balance exploration, exploitation, and stagnation handling under complex constraints, the search state is defined by the improvement level, population diversity, and iteration stage. The algorithm then adaptively selects local exploitation, standard search, enhanced exploration, and Lévy escape actions. In addition, hybrid initialization and heuristic seed paths are incorporated as an initial-distribution improvement module to provide higher-quality feasible search directions early in the search.
  • Controlled stagnation escape, Alpha local refinement, and safety-redundancy mechanisms are designed, and the algorithm is evaluated through a two-level experimental framework. CEC2017 benchmark testing is first used to examine the general continuous optimization capability. Artificial complex mountainous scenarios are then used for task-specific UAV path-planning validation, supported by algorithm comparisons, convergence analysis, ablation studies, and nonparametric statistical tests.

2. UAV 3D Path Planning Model

2.1. 3D Terrain and No-Fly Zone Model

This study considers a discrete 3D terrain region with the horizontal coordinate range [ 1 , N x ] × [ 1 , N y ] , where the terrain elevation is given by the height matrix H ( x , y ) . The UAV flies from the start point
S = ( x s , y s , z s ) .
to the goal point
G = ( x g , y g , z g ) .
The experimental scenarios are generated from artificial complex mountainous terrain, including ridges, valleys, and several cylindrical no-fly zones. Scenario 1–Scenario 4 are configured with 2, 3, 4, and 5 cylindrical no-fly zones, respectively, to investigate the influence of threat-density variation on algorithmic performance. Each no-fly zone N F i is represented by its center ( x i , y i , z i ) , horizontal radii ( a i , b i ) , half-height c i , and threat intensity λ i . For a path sampling point p = ( x , y , z ) , the normalized horizontal distance is defined as
d i x y ( p ) = x − x i a i 2 + y − y i b i 2 ,
When d i x y ≤ 1 and z ∈ [ z i − c i , z i + c i ] , the sampling point lies inside the cylindrical no-fly zone and receives a high-intensity penalty. In the experiments, the cylindrical no-fly zones satisfy a i = b i = r i .

2.2. Spherical-Vector Path Encoding

Assume that a candidate path contains n intermediate trajectory segments. The k-th trajectory segment is represented by the spherical vector
ω k = ( ρ k , φ k , θ k ) , k = 1 , 2 , … , n ,
where ρ k is the radial step length of the k-th trajectory segment, φ k is the pitch angle, and θ k is the horizontal heading angle. To make the search direction consistent with the overall direction from the start point to the goal point, the variable ranges are set as
ρ k ∈ [ 0 , ρ max ] , φ k ∈ [ − π / 4 , π / 4 ] , θ k ∈ [ θ 0 − π / 4 , θ 0 + π / 4 ] ,
where
ρ max = 2 ∥ G − S ∥ n , θ 0 = atan 2 ( y g − y s , x g − x s ) .
The incremental mapping from the spherical vector to Cartesian coordinates is given by
x k = x k − 1 + ρ k cos φ k cos θ k , y k = y k − 1 + ρ k cos φ k sin θ k , z k = z k − 1 + ρ k sin φ k .
During path generation, x k and y k are constrained within the valid map boundaries, and z k is corrected to be no lower than the terrain elevation at the current position plus a safety margin. This repair operation prevents candidate paths from becoming directly invalid during generation because of boundary violation or terrain penetration.

2.3. Comprehensive Cost Function

The path planning problem is transformed into a comprehensive cost minimization problem:
min Ω J ( Ω ) = ∑ i = 1 7 b i J i ( Ω ) ,
where Ω = { ω 1 , … , ω n } denotes a candidate spherical-vector path. The complete trajectory nodes are defined as p 0 = S and p n + 1 = G , and the intermediate nodes are generated by Equation (7). To detect the relationship between each trajectory segment and the terrain or no-fly zones, the k-th trajectory segment is uniformly sampled as
q k , l = p k + l N s − 1 p k + 1 − p k , k = 0 , 1 , … , n , l = 0 , 1 , … , N s − 1 ,
where N s = 20 , namely each trajectory segment contains 20 equally spaced sampling points including the two endpoints. Let H ( x , y ) be the terrain-elevation query function. The terrain clearance of a sampling point is
δ k , l = z ( q k , l ) − H x ( q k , l ) , y ( q k , l ) .
The seven cost terms are summarized in Table 1 and defined as follows.
Table 1. Cost terms and weights.

2.3.1. 3D Path Length Function

The 3D path length measures the total distance traveled by the UAV along the planned trajectory from the start point to the goal point and is an important metric for evaluating trajectory economy. The planned path consists of the start point, n intermediate trajectory points, and the goal point, and is expressed as P = { p 0 , p 1 , ⋯ , p n , p n + 1 } ,
J 1 = ∑ k = 0 n p k + 1 − p k 2 = ∑ k = 0 n ( x k + 1 − x k ) 2 + ( y k + 1 − y k ) 2 + ( z k + 1 − z k ) 2 .

2.3.2. No-Fly Zone Threat Function

The no-fly-zone threat term J 2 is calculated according to the horizontal elliptical distance and altitude range of the cylindrical no-fly zones. For the i-th cylindrical no-fly zone, its center is ( x i , y i , z i ) , its horizontal semi-axes are a i , b i , its half-height is c i , and its threat intensity is λ i . The normalized horizontal distance from a sampling point q to the no-fly zone is
d i x y ( q ) = x ( q ) − x i a i 2 + y ( q ) − y i b i 2 ,
The vertical boundaries are z i − = z i − c i and z i + = z i + c i , and the distance to the vertical boundary is
Δ z i ( q ) = min | z ( q ) − z i − | , | z ( q ) − z i + | .
The cylindrical threat penalty of a single sampling point is written as
Γ i ( q ) = M λ i 3 − d i x y ( q ) , d i x y ( q ) ≤ 1 , z i − ≤ z ( q ) ≤ z i + , 180 λ i 35 − Δ z i ( q ) 2 , d i x y ( q ) ≤ 1 , Δ z i ( q ) < 35 , 14000 λ i 2.25 − d i x y ( q ) 2 , 1 < d i x y ( q ) ≤ 2.25 , z i − − 35 ≤ z ( q ) ≤ z i + + 35 , 0 , otherwise ,
where M = 10 8 is a large penalty coefficient for infeasible regions. The branches in Equation (14) are evaluated from top to bottom in priority order. The method first determines whether the sampling point enters the interior of the cylindrical no-fly zone, then determines whether it is close to the upper or lower cylindrical boundary, and finally determines whether it enters the horizontally expanded buffer zone. The no-fly-zone threat cost of the entire path is
J 2 = ∑ k = 0 n ∑ l = 0 N s − 1 ∑ i = 1 N T Γ i ( q k , l ) ,
where N T is the number of no-fly zones. If a sampling point falls inside a no-fly zone, a high-intensity infeasible penalty is imposed. If a sampling point enters the expanded buffer zone or approaches the upper or lower cylindrical boundary, a continuous soft penalty is imposed. A schematic of the threat cost is shown in Figure 1. In the figure, the interior of the no-fly zone corresponds to a high-intensity infeasible penalty, whereas the buffer zone corresponds to a continuous soft penalty.
Figure 1. Schematic diagram of flight threat cost analysis.

2.3.3. Terrain Collision and Clearance Function

The terrain collision and clearance term J 3 simultaneously considers four cases: terrain penetration, flight below the minimum safe clearance, flight below the desired terrain clearance, and excessively high flight. Let the terrain clearance of a sampling point q be
δ ( q ) = z ( q ) − H x ( q ) , y ( q ) ,
The minimum safe clearance is δ min = 30 m , and the desired clearance is δ opt = 55 m . The point-wise clearance penalty is
Π δ ( q ) = M exp min ( 10 , − δ ( q ) / 8 ) , δ ( q ) < 0 , 400 δ min − δ ( q ) 2 , 0 ≤ δ ( q ) < δ min , 0.08 δ opt − δ ( q ) , δ min ≤ δ ( q ) < δ opt , 0.025 δ ( q ) − δ opt 2 , δ ( q ) ≥ δ opt .
Then
J 3 = ∑ k = 0 n ∑ l = 0 N s − 1 Π δ ( q k , l ) .

2.3.4. Horizontal Turning-Angle Smoothness Function

The horizontal turning-angle smoothness term J 4 constrains the turning magnitude of the trajectory on the horizontal plane. Let
u k = x k + 1 − x k , y k + 1 − y k , 0 T ,
The horizontal turning angle between two adjacent trajectory segments is
α k = 180 π arccos u k − 1 T u k ∥ u k − 1 ∥ 2 ∥ u k ∥ 2 , k = 1 , 2 , … , n ,
where α k is measured in degrees. In practical computation, if the length of a horizontal segment is close to 0, the corresponding turning-angle term is skipped. Meanwhile, the ratio inside the arccosine function is clipped to [ − 1 , 1 ] to avoid numerical round-off errors. An additional penalty is imposed for sharp turns exceeding α max = 45 ∘ :
J 4 = ∑ k = 1 n 0.15 α k 2 + 3 max 0 , α k − α max 2 .

2.3.5. Low-Terrain Guidance Function

To reduce flight risk in complex mountainous environments, this study introduces a low-terrain guidance function to guide trajectories preferentially through relatively low-lying and smooth regions. Let the k-th path segment be discretized into N s sampling points with coordinates q k , l , and let H ( x , y ) be the terrain-elevation function. The low-terrain guidance term is defined as
J 5 = 1 ( n + 1 ) N s ∑ k = 0 n ∑ l = 0 N s − 1 H x ( q k , l ) , y ( q k , l ) .
Because the comprehensive cost function is formulated as a minimization problem, a smaller J 5 encourages the algorithm to select lower-terrain corridors, thereby reducing the probability that the path crosses high ridges and strongly undulating regions.

2.3.6. Vertical Smoothness Function

To avoid frequent abrupt climbs or descents in the UAV trajectory, this study uses the second-order difference of the altitude sequence to describe vertical smoothness. Let z k denote the altitude of the k-th trajectory point. The vertical smoothness cost is defined as
J 6 = 1 n ∑ k = 1 n ( z k + 1 − z k ) − ( z k − z k − 1 ) 2 .
This term constrains the continuity of altitude variation between adjacent path segments. A smaller J 6 indicates that the trajectory is smoother in the vertical direction, which helps reduce flight-control difficulty and improve path executability.

2.3.7. Maximum Altitude Constraint Function

Considering that UAV flight missions are typically constrained by airspace altitude and platform performance, this study defines a maximum altitude constraint function. Let the maximum altitude of the flight region be z max , and reserve a safety margin. The altitude upper bound is defined as
z safe = z max − 60 ,
The maximum altitude constraint term is then defined as
J 7 = ∑ k = 0 n ∑ l = 0 N s − 1 max 0 , z ( q k , l ) − z safe 2 .
When the altitude of a path sampling point exceeds z safe , this term generates a squared penalty, thereby suppressing excessive climbing and ensuring that the planned path satisfies the maximum flight-altitude constraint.

3. TLQ-SGWO Algorithm

3.1. Grey Wolf Optimizer

GWO divides the wolf population into four hierarchical levels, as illustrated in Figure 2. The α wolf acts as the population decision maker, the β wolf assists the α wolf and serves as its candidate, the δ wolf follows the α and β wolves while dominating the remaining individuals, and the ω wolves follow all superior wolves. In the algorithm, these wolves correspond to candidate solutions, and their positions are updated around the α , β , and δ wolves during iteration.
Figure 2. Basic schematic of the grey wolf optimizer.
For any variable vector X, the standard GWO update is given by
X 1 = X α − A 1 | C 1 X α − X | , X 2 = X β − A 2 | C 2 X β − X | , X 3 = X δ − A 3 | C 3 X δ − X | , X n e w = X 1 + X 2 + X 3 3 ,
where
A i = 2 a r i − a , C i = 2 r i , i = 1 , 2 , 3 ,
r i is a random vector in [ 0 , 1 ] , and a is the convergence factor, which decreases linearly from 2 to 0 as the number of iterations increases. X α denotes the position of the population-best solution, namely the α wolf, whereas X β and X δ denote the positions of the β and δ wolves, respectively. In spherical-vector SGWO, the search variables of GWO are defined as three groups of vectors, { ρ , φ , θ } , which are converted into a 3D trajectory by Equation (7) before cost evaluation.

3.2. Improved Grey Wolf Optimizer

To address the sensitivity of basic GWO to initial population quality, fixed search-stage transitions, and local stagnation in complex 3D terrain, this study develops TLQ-SGWO within the spherical-vector encoding framework. The main improvements include hybrid initialization and heuristic seed paths, Q-learning-based search-strategy scheduling, Lévy stagnation escape, Alpha local refinement, and a safety-oriented elite branch. These mechanisms retain the leader-wolf update structure of GWO while improving the quality of the initial distribution, adaptive action selection, and controlled handling of stagnation in the cooperative population search process. This design is consistent with the idea of preserving the main optimizer framework while improving strategy adaptivity in reinforcement-learning-assisted and improved GWO studies [18,22].

3.2.1. Hybrid Initialization and Seed Paths

In basic GWO, the population is usually initialized by uniform random sampling. In complex terrain, such initialization may place many individuals in high-penalty terrain or threat regions, weakening early-stage search quality. To reduce this risk, TLQ-SGWO generates 55% of the individuals using a Tent–Logistic hybrid chaotic sequence, while the remaining 45% are generated by uniform random sampling.
The Logistic map is defined as
z t + 1 L = μ z t L 1 − z t L , μ = 4 , z t L ∈ ( 0 , 1 ) ,
The Tent map is defined as
z t + 1 T = 2 z t T , 0 < z t T < 0.5 , 2 1 − z t T , 0.5 ≤ z t T < 1 ,
where z 0 L and z 0 T are both randomly generated in ( 0.1 , 0.9 ) . For the i-th chaotic individual and the j-th decision dimension, normalized chaotic numbers are generated by alternately using the Logistic map in odd dimensions and the Tent map in even dimensions:
ξ i , j = z i , j L , j is odd , z i , j T , j is even ,
Then, ξ i , j is linearly mapped to the spherical-vector variable bounds:
ω i , j = ω j min + ξ i , j ω j max − ω j min ,
where ω i , j denotes the initial value of the corresponding dimension in ρ , φ , or θ . Alternating the two chaotic maps reduces the distribution bias caused by using a single chaotic map in some dimensions.
In addition to chaotic and random individuals, the algorithm injects three heuristic seed paths. The first seed path follows the straight-line trend from the start point to the goal point. The second slightly increases the pitch angle based on the straight-line trend to provide an initial candidate for crossing terrain undulations. The third introduces a small linear deflection in the heading angle to provide an initial search direction for bypassing threat regions. This design enables the initial population to include both globally dispersed individuals and directionally guided individuals with engineering feasibility, thereby reducing the probability that all candidates fall into high-penalty regions at the initial stage.

3.2.2. Q-Learning Search-Strategy Scheduling

To improve SGWO’s adaptive search capability in complex 3D path planning, this study introduces a Q-learning mechanism for search-strategy scheduling. Q-learning is a model-free reinforcement learning method based on the action-value function [23]. In path planning and metaheuristic optimization, Q-learning and related reinforcement learning mechanisms have been used for hybrid search, strategy selection, and experience learning in swarm intelligence algorithms [22,24,25,26]. In the proposed TLQ-SGWO, Q-learning does not directly generate UAV path-control variables. Instead, it selects different optimizer-level search actions according to the current evolutionary state. The search state consists of the improvement level of the best solution, the population diversity level, and the iteration stage, yielding 3 × 3 × 3 = 27 discrete states.
The action space consists of five search actions, as shown in Table 2. Different actions correspond to local exploitation, standard SGWO update, enhanced exploration, mild Lévy perturbation, and strong Lévy perturbation. With this action design, the algorithm can dynamically adjust its search behavior based on the search state, rather than relying solely on a fixed convergence factor to linearly transition from exploration to exploitation.
Table 2. Q-learning action space.
The Q-table is updated in Bellman form:
Q ( s t , a t ) ← Q ( s t , a t ) + α R L R t + γ max a ′ Q ( s t + 1 , a ′ ) − Q ( s t , a t ) ,
where α R L is the learning rate, γ is the discount factor, and R t is the immediate reward after executing the action. α R L = 0.10 and γ = 0.90 . In this study, the reward is primarily determined by the improvement in the best fitness in the current iteration and is further adjusted based on changes in population diversity and the success of Lévy perturbation. When an action effectively reduces the comprehensive cost or improves the search state, a positive reward is assigned. When an action causes stagnation or produces no effective improvement, a smaller reward or penalty is assigned.
Action selection adopts a Boltzmann softmax strategy with temperature decay, where the temperature parameter is denoted as T
P ( a | s ) = exp ( q a / T ) ∑ j = 1 5 exp ( q j / T ) .
A higher temperature maintains action exploration in the early stage. As the iterations proceed, the temperature gradually decreases, and the algorithm increasingly favors actions with higher current Q values, thereby improving late-stage search stability.Through this mechanism, Q-learning adaptively schedules the TLQ-SGWO search process based on evolutionary feedback, rather than merely tuning a convergence parameter, thereby improving robustness under complex terrain and no-fly zone constraints.

3.2.3. Lévy Stagnation Escape and α Local Refinement

As the iteration process proceeds, the grey wolf population gradually contracts toward the dominant regions determined by the α , β , and δ wolves. This mechanism improves convergence efficiency. However, in complex mountainous terrain and under multiple no-fly-zone constraints, the search space often exhibits pronounced non-convexity and multimodality, and the population can prematurely aggregate near local feasible corridors or obstacle boundaries, leading to search stagnation. Lévy flights have a long-tailed step-length distribution and are often used for global jumps and local-optimum escape in nature-inspired optimization [27]. Recent optimization studies combining chaotic and Lévy mechanisms also indicate that such perturbations help enhance search diversity and the ability to escape local regions [28]. To alleviate these issues, this study introduces a stagnation-escape mechanism based on Lévy flights and combines it with an α -wolf local- refinement strategy to enhance global escape and late-stage fine search.
Lévy flight is a random search mechanism with a heavy-tailed distribution. Its search process is dominated by small-scale local perturbations while occasionally producing a small number of large-scale jumps. Therefore, this mechanism can maintain local exploitation around the current dominant region while increasing the probability of escaping local optima when stagnation occurs. In this study, the Mantegna algorithm is used to generate Lévy step lengths:
L = u | v | 1 / β , u ∼ N ( 0 , σ u 2 ) , v ∼ N ( 0 , 1 ) , β = 1.5 ,
where
σ u = Γ ( 1 + β ) sin ( π β / 2 ) Γ ( ( 1 + β ) / 2 ) β 2 ( β − 1 ) / 2 1 / β .
Considering that the Lévy distribution may generate excessively large jump lengths, directly applying it to path-encoding variables may disrupt the feasible path structure already obtained. To improve the stability of the perturbation process, this study truncates the Lévy step length as
L ^ = sign ( L ) min ( | L | , 3 ) .
Let the current iteration progress be τ = t / T . TLQ-SGWO does not activate Lévy perturbation when τ < 0.45 , so as to preserve the natural diffusion of early-stage global search. When τ ≥ 0.45 and the number of consecutive stagnant generations reaches the threshold, Q-learning is allowed to select Lévy actions. Mild Lévy is used for moderate mid-stage stagnation and perturbs approximately 6 % of poorer individuals. Strong Lévy is used for more severe late-stage stagnation, perturbs approximately 12 % of poorer individuals, and randomly restarts candidate solutions with a small probability. For the selected poorer individuals, the algorithm generates candidates using α as the reference:
ρ ′ = ρ α + L ^ ρ ρ max − ρ min s ρ , φ ′ = φ α + L ^ φ s φ , θ ′ = θ α + L ^ θ s θ ,
where s ρ , s φ , and s θ are perturbation scales set according to the iteration stage. After boundary repair and Cartesian path conversion, the candidate solution is re-evaluated, and it is retained only when it is better than the original poorer individual. Thus, the Lévy module performs directed escape after stagnation rather than unconditionally increasing randomness.
α local refinement is used to compensate for the insufficient fine exploitation of Lévy long jumps and GWO population updates in the late stage. When Q-learning selects the exploit action, or when the iteration progress exceeds 0.82 , the algorithm generates several Gaussian-neighborhood candidates around the current α :
ρ ′ = ρ α + N ( 0 , σ ρ 2 ) , φ ′ = φ α + N ( 0 , σ a 2 ) , θ ′ = θ α + N ( 0 , σ a 2 ) ,
where
σ ρ = ρ max − ρ min 0.050 ( 1 − τ ) + 0.004 , σ a = 0.070 ( 1 − τ ) + 0.004 .
As τ increases, the perturbation scale gradually decreases, allowing the search to transition from mid-stage neighborhood probing to late-stage small-range refinement. If a local candidate path obtains a lower cost, α , β , and δ are updated immediately. In coordination with the exploit action of Q-learning, this mechanism enables the algorithm to continue reducing path cost, improving smoothness, and decreasing altitude redundancy after a feasible corridor is found, thereby improving the quality of the final path solution.
Therefore, Lévy stagnation escape mainly enhances the algorithm’s ability to escape local feasible corridors under complex constraints, whereas local refinement mainly improves late-stage search accuracy around the current best solution. Their complementary roles allow TLQ-SGWO to combine controlled escape with fine trajectory refinement, thereby improving search stability and path quality in complex 3D path-planning problems.

3.3. Complexity Analysis

Let the population size be N p , the number of trajectory segments be n, the number of sampling points per segment be N s , and the maximum number of iterations be T. The main cost of one path evaluation comes from sampling each path segment and calculating the threat and terrain costs, with a complexity of approximately O ( n N s ) . Therefore, the time complexity of the main loop is
O ( T N p n N s ) .
The Q-learning module only maintains a 27 × 5 Q-table, and its computational overhead is negligible relative to path evaluation. If R s safety branches are enabled, the additional complexity is approximately O ( R s T N p ′ n N s ) , where N p ′ ≈ 0.6 N p . The space complexity is mainly determined by the population and Q-table, namely O ( N p n + 27 × 5 ) .

3.4. TLQ-SGWO Algorithm Procedure

The novelty of TLQ-SGWO does not lie in the spherical-vector representation itself or in the conventional leader-based SGWO update mechanism. Instead, it lies in embedding a state-dependent strategy scheduler into the spherical-vector SGWO framework. In the proposed method, the search state is characterized by the current improvement level, population diversity, and evolutionary phase. Based on this state information, Q-learning is used to adaptively select among exploitation, standard search, enhanced exploration, and mild or strong stagnation-escape actions. The Tent–Logistic hybrid initialization improves the diversity and ergodicity of the initial population, whereas Lévy perturbation and Alpha refinement are conditionally activated according to the selected search action and stagnation condition. Therefore, the proposed contribution is a coordinated adaptive search framework for constrained 3D trajectory optimization, rather than a new trajectory-encoding scheme alone.
Algorithm 1 summarizes the complete optimization procedure of TLQ-SGWO. The inputs include the terrain model M , the comprehensive cost function J, the population size N p , and the maximum number of iterations T. The outputs are the best Cartesian path and the corresponding best-cost curve. The procedure integrates spherical-vector population initialization, state-dependent action selection, leader-based population updating, conditional stagnation escape, and local refinement within a unified SGWO framework.
Algorithm 1 begins by generating a mixed population in the spherical-vector decision space and replacing three individuals with heuristic seed paths. After all candidates are decoded into Cartesian trajectories and evaluated by the seven-term cost function, the three leader wolves are identified and the 27 × 5 Q-table is initialized. At iteration t, the relative improvement of the best cost, the population diversity relative to its moving baseline, and the normalized iteration phase are each quantized into three levels, producing one of 27 discrete search states. Specifically, the improvement thresholds are 10 − 5 and 10 − 2 , the diversity-ratio thresholds are 0.5 and 1.2, and the iteration phases are divided at t / T = 0.33 and t / T = 0.66 .
For the current state, an action is sampled using the Boltzmann softmax policy. The temperature decays from T init = 1.30 to T final = 0.25 according to
T t = T init T final T init t / T .
The selected action adjusts the SGWO control parameter and determines whether standard updating, enhanced exploration, Lévy-based escape, or local exploitation is emphasized. The standard SGWO update is then applied to ( ρ , φ , θ ) for every wolf. Each updated solution is repaired to satisfy the variable bounds, decoded into a Cartesian trajectory, evaluated by J, and used to update the three leader wolves.
Algorithm 1 TLQ-SGWO for UAV 3D Path Planning.
  1:
Input: terrain model M , cost function J, population size N p , max iteration T
  2:
Generate 55% chaos-based wolves and 45% random wolves
  3:
Inject three heuristic seeded paths
  4:
Evaluate all wolves and identify α , β , and δ
  5:
Initialize Q ∈ R 27 × 5
  6:
for  t = 1 to T do
  7:
      Encode state s t using improvement, diversity and phase
  8:
      Select action a t by Boltzmann softmax on Q ( s t , · )
  9:
      Set GWO control parameter according to the selected action
10:
      for each wolf do
11:
           Update ( ρ , φ , θ ) by SGWO rule
12:
           Repair bounds, convert to Cartesian path and evaluate J
13:
           Update α , β , and δ
14:
      end for
15:
      if  a t is Lévy_mild or Lévy_strong then
16:
           Apply controlled Lévy perturbation to poor wolves
17:
      end if
18:
      if  a t is exploit or t / T > 0.82  then
19:
           Refine α by local Gaussian perturbation
20:
      end if
21:
      Compute reward and update Q-table
22:
      Record best cost
23:
end for
24:
if safety branch is enabled then
25:
      Run independent safety SGWO restarts and keep the better result
26:
end if
27:
Output: best Cartesian path and best-cost curve
The two Lévy actions are disabled before 45% of the iterations and are activated only after the corresponding stagnation threshold is reached. Mild and strong Lévy perturbations are applied to approximately 6% and 12% of the poorer wolves, respectively. When the exploitation action is selected, or when t / T > 0.82 , Gaussian-neighborhood candidates are generated around the current Alpha wolf for local refinement. The immediate reward is calculated from the relative best-cost improvement and is adjusted according to the diversity change and the success of stagnation escape. The Q-table is subsequently updated with learning rate α R L = 0.10 and discount factor γ = 0.90 . Table 3 summarizes the principal thresholds used in the procedure.
Table 3. Principal parameters and thresholds in the TLQ-SGWO procedure.
After the main loop terminates, the best spherical-vector solution is converted into the final Cartesian path. Therefore, TLQ-SGWO forms a closed-loop adaptive optimization procedure in which the current search state guides the selection of search actions, and the resulting search performance further updates the Q-table for subsequent iterations.

4. Simulation Experiments and Result Analysis

4.1. Experimental Settings

To evaluate TLQ-SGWO from both general optimization and task-specific path-planning perspectives, the experiments are organized into two levels. The first level uses CEC2017 benchmark-function testing to examine general continuous optimization capability. The second level uses artificial complex mountainous path-planning experiments to evaluate constrained UAV 3D path-planning performance. The seven evaluated algorithms are GWO, SGWO, TLQ-SGWO, WOA, GA, PSO, and RCGA-PSO. GWO provides the basic optimizer baseline, whereas SGWO is the closest spherical-vector predecessor of the proposed method. WOA and PSO represent widely used swarm-intelligence optimizers, and GA represents a classical evolutionary-search paradigm. RCGA-PSO is implemented following the established GA–PSO hybridization principle, which combines PSO-based individual and social learning with real-coded crossover and mutation operations [29]; it is selected to examine whether the proposed method remains competitive against a stronger hybrid evolutionary-search mechanism. Together, these methods enable comparisons with baseline, closely related, mainstream, evolutionary, and hybrid approaches. MATLAB R2024b (MathWorks, Natick, MA, USA) is used as the simulation tool. The experimental environment is a computer equipped with an Intel(R) Core(TM) i7-11600H processor and 16 GB RAM, running the Windows 11 operating system (64-bit).
The CEC2017 test uses the official evaluator and its shift, rotation, and permutation data. The test functions are F1–F30, and the problem dimension is set to D = 30 . To ensure fair comparison, all algorithms use the same function-evaluation budget for each function and each independent run, namely MaxFEs = 10 , 000 D = 300 , 000 . The population size is N p = 30 , and each algorithm is independently run 30 times. The CEC2017 test examines the general continuous optimization capability of the algorithms and does not include UAV terrain, no-fly-zone, or trajectory-smoothness constraints.
The artificial terrain experiments use artificial complex mountainous terrain. The map size is 1000 m × 1000 m , and the maximum altitude is 500 m . These experiments are designed to systematically compare path-planning performance under controllable numbers of no-fly zones. The number of path nodes is set to n = 12 . All algorithms use the same cost-function weights and the same start and goal points. The parameters for the artificial terrain comparison experiments are T = 300 , N p = 300 , and 15 independent runs. The complete TLQ-SGWO configuration incorporates the main optimization procedure together with additional safety-oriented search mechanisms to further improve path feasibility in complex constrained environments. For computational-cost evaluation, the reported runtime focuses on the main TLQ-SGWO optimization process under the same evaluation setting, including hybrid initialization, Q-learning-based strategy scheduling, L’evy stagnation escape, and Alpha refinement, so that the time comparison reflects the computational burden of the core proposed method.

4.2. CEC2017 Benchmark-Function Testing

To examine the general continuous optimization capability of TLQ-SGWO, this study first evaluates the algorithm on the CEC2017 benchmark suite before conducting the artificial terrain path-planning experiments. CEC2017 contains test functions with different landscape characteristics, including unimodal, multimodal, hybrid, and composition functions, as summarized in Table 4. Therefore, it can be used to evaluate global exploration, local exploitation, and convergence stability under different levels of optimization difficulty [30]. This study uses the official CEC2017 evaluator and its shift, rotation, and permutation data. The test functions are F1–F30, the search range is [ − 100 , 100 ] D , and the problem dimension is set to D = 30 . The official bias value is removed from the final objective value, and the error value is used as the evaluation metric:
Error i = max 0 , f i ( x ) − f i * , f i * = 100 i ,
where f i * is the official optimal bias value of the i-th CEC2017 function.
Table 4. Grouping of CEC2017 test functions.
The compared algorithms include GWO, SGWO, WOA, GA, PSO, RCGA-PSO, and TLQ-SGWO. To ensure a fair comparison, all algorithms use the same function-evaluation budget for each function and each independent run, namely MaxFEs = 10 , 000 D = 300 , 000 . The population size is set to N p = 30 , and each algorithm is independently run 30 times. Table 5 reports the mean error (Mean) and standard deviation (Std) obtained by each algorithm on each function. Since all values are error values after removing the official bias, smaller values indicate better performance. The best result in each Mean or Std row is highlighted in bold.
Table 5. Experimental results on CEC2017 test functions ( D = 30 ; best values in each row are shown in bold).
Because the numerical scales of different CEC2017 functions vary significantly, the detailed Mean/Std table is further summarized using ranking-based indicators. For each function, algorithms are ranked according to their Mean and Std values, respectively, and a smaller rank indicates better performance. Table 6 reports the average ranking and the number of first-place results over the 30 functions.
Table 6. Overall ranking comparison of the compared algorithms on the CEC2017 benchmark functions (best values are shown in bold).
As shown in Table 6, TLQ-SGWO obtains the best average rank in terms of both Mean and Std. Although PSO and RCGA-PSO obtain the largest numbers of best Mean values on some individual functions, TLQ-SGWO provides the most balanced overall performance over the entire benchmark suite. In particular, the best Std rank and the largest Best Std count indicate that TLQ-SGWO has stronger stability across independent runs. This result is consistent with the design motivation of the proposed method: Tent–Logistic initialization improves initial population diversity, while Q-learning-based strategy scheduling adaptively balances exploration and exploitation during the search process.
To further evaluate whether the proposed mechanisms effectively improve the original grey-wolf-based framework, Table 7 summarizes the pairwise comparison between TLQ-SGWO and each competing algorithm. A larger count indicates that TLQ-SGWO obtains a lower Mean or Std value on more benchmark functions.
Table 7. Pairwise comparison between TLQ-SGWO and the other algorithms on the CEC2017 benchmark functions (best values are shown in bold).
The pairwise comparison shows that TLQ-SGWO achieves lower Mean errors than both GWO and SGWO on all 30 functions. This is an important result because TLQ-SGWO is developed from the grey wolf optimization framework. The consistent improvement over GWO and SGWO indicates that the proposed grey-wolf-based adaptive search framework, Tent–Logistic initialization, and Q-learning-driven strategy scheduling substantially enhance the search capability of the original framework. TLQ-SGWO also outperforms WOA and GA on most functions and remains competitive against PSO and RCGA-PSO. Although TLQ-SGWO is not uniformly dominant on every single function, it shows a more robust and balanced performance distribution.
Table 8 further reports the average Mean-error rank on different types of CEC2017 functions. This grouped comparison helps identify the type of search landscape on which each algorithm performs better.
Table 8. Average Mean-error ranking of the compared algorithms on different types of CEC2017 functions (best values are shown in bold).
The grouped ranking results show that TLQ-SGWO has its most evident advantage on the composition functions F21–F30, where it achieves the best average rank of 1.50. Composition functions usually contain more complicated landscape characteristics and stronger interactions among different search components. Therefore, this result suggests that TLQ-SGWO has better adaptability to complex multimodal optimization problems. This property is highly relevant to UAV three-dimensional path planning, because the path-planning problem considered in this study is also nonlinear, constrained, and multimodal. Overall, the CEC2017 results demonstrate that TLQ-SGWO does not merely improve several isolated functions, but provides a consistent improvement over the original GWO and SGWO and achieves strong overall robustness among the compared algorithms.

4.3. Artificial Terrain Scenario Settings

The evaluation scenarios consist of four artificial terrain test scenarios with different levels of difficulty. The four test scenarios differ in the number of cylindrical no-fly zones, while the terrain seed, start and goal points, number of path nodes, and cost-function weights remain the same. Specifically, Scenario 1, Scenario 2, Scenario 3, and Scenario 4 contain 2, 3, 4, and 5 cylindrical no-fly zones, corresponding to NF1–NF2, NF1–NF3, NF1–NF4, and NF1–NF5, respectively.
Each no-fly zone is described by the horizontal center coordinates ( x i , y i ) , bottom altitude z i min , radius r i , vertical height h i , top altitude z i max , and threat intensity λ i . The specific parameters are listed in Table 9. Here, z i max does not exceed the maximum flight altitude of 500 m .
Table 9. Parameters of cylindrical no-fly zones.

4.4. Algorithm Comparison Experiments

Table 10 summarizes the artificial mountainous path-planning results of the seven algorithms in the four scenarios with 2–5 cylindrical no-fly zones. The terrain seed, start and goal points, number of path nodes, and cost-function weights are fixed, whereas the number of no-fly zones is gradually increased to raise threat density and constraint complexity. Overall, TLQ-SGWO shows the most stable performance trend across the four scenarios. RCGA-PSO is also a strong competitor, especially in the lower-complexity setting, but its overall performance remains weaker than that of TLQ-SGWO as the scenarios become more constrained.
Table 10. Algorithm comparison results in four artificial mountainous scenarios ( best values in each scenario are shown in bold).
In Scenario 1, the threat density is relatively low, and TLQ-SGWO and RCGA-PSO form the leading group. RCGA-PSO achieves the lowest mean cost of 3306.63, whereas TLQ-SGWO yields a nearly identical mean cost of 3316.58. The difference between the two methods is not statistically significant ( p = 0.3837 ). However, TLQ-SGWO attains the smallest standard deviation, 313.22, indicating more stable performance across independent runs. This result suggests that when the feasible corridor is still relatively wide, several strong optimizers can identify comparable low-cost routes, and the advantage of TLQ-SGWO is not yet strongly separated from that of RCGA-PSO.
As the number of cylindrical no-fly zones increases, the advantage of TLQ-SGWO becomes clearer. In Scenario 2, TLQ-SGWO achieves the lowest mean cost of 3728.22, whereas RCGA-PSO increases to 6017.83. In Scenario 3, TLQ-SGWO again yields the lowest mean cost, 5542.61, compared with 6590.84 for RCGA-PSO. In Scenario 4, TLQ-SGWO maintains the lowest mean cost, 5269.77, while RCGA-PSO gives 6004.86. These results indicate that TLQ-SGWO adapts more effectively to the progressive increase in threat density and path-planning complexity. This improvement may be attributed to the combined effect of improved initial population quality, Q-learning-based search-strategy scheduling, and controlled stagnation escape, which help the population avoid high-penalty regions and refine feasible trajectories in the middle and late stages.
The computational time of each algorithm is measured using MATLAB’s tic and toc functions. The timing interval covers only the optimization process and excludes terrain construction, post-optimization path-length statistics, statistical post-processing, figure generation, and file input/output. As reported in Table 11, GA and RCGA-PSO have the lowest overall mean runtimes of 11.730 and 11.893 s, respectively, followed by TLQ-SGWO with an overall mean runtime of 12.973 s. The corresponding overall mean runtimes of GWO, SGWO, WOA, and PSO are 13.164, 14.675, 13.475, and 17.921 s, respectively. Therefore, TLQ-SGWO is not the fastest algorithm in terms of pure runtime, but its computational cost remains competitive among the compared methods. Its Q-table update, strategy-selection operation, chaotic initialization, and controlled stagnation escape introduce only modest overhead relative to repeated path-cost evaluations.
Table 11. Runtime comparison in four artificial mountainous scenarios with the optional TLQ-SGWO safety-redundancy branch disabled (mean ± standard deviation, s).
More importantly, this slight increase in runtime is accompanied by a clear improvement in path-planning performance. Compared with RCGA-PSO, TLQ-SGWO increases the overall mean runtime by only about 1.08 s, corresponding to approximately 9.1%. Compared with GA, the increase is about 1.24 s, corresponding to approximately 10.6%. However, in the more complex scenarios, TLQ-SGWO achieves substantially lower path costs. Taking RCGA-PSO as a representative competitive hybrid algorithm, TLQ-SGWO reduces the mean path cost by approximately 38.0%, 15.9%, and 12.2% in Scenarios 2, 3, and 4, respectively. These results indicate that the proposed improvement mechanisms do not simply increase computational complexity, but effectively convert a small amount of additional computation into better feasible-trajectory refinement and stronger avoidance of high-penalty regions.
In addition, TLQ-SGWO exhibits the smallest overall runtime standard deviation, 0.407 s, indicating more stable computational behavior across different scenarios. Its mean runtimes in Scenarios 1–4 are 13.020, 12.682, 13.062, and 13.130 s, respectively, showing that the runtime does not increase significantly as the number of cylindrical no-fly zones increases. Therefore, TLQ-SGWO achieves a favorable balance between solution quality, path feasibility, and computational efficiency. However, the average running time of approximately 13 seconds also indicates that the current MATLAB implementation is more suitable for offline or pre-task drone path planning.
Figure 3 shows the best 3D paths generated by the seven algorithms in the four scenarios. All algorithms can produce feasible trajectories, but their path quality becomes increasingly differentiated as the no-fly-zone configuration becomes denser. In Scenario 1, TLQ-SGWO and RCGA-PSO both bypass the threat regions effectively and maintain relatively smooth routes, which agrees with their close mean-cost results. From Scenario 2 onward, however, TLQ-SGWO more consistently preserves smoother and lower-cost trajectories in the presence of narrower feasible corridors and stronger terrain–threat coupling. This behavior suggests that the proposed method maintains more effective search quality when the path-planning environment becomes more constrained.
Figure 3. 3D comparison of the best paths obtained by the seven algorithms in four scenarios. Path colors identify the algorithms as shown in each legend; the green circle and red star denote the start and goal, respectively, and the translucent red cylinders denote no-fly zones. (a) Scenario 1: 2 cylindrical no-fly zones; (b) Scenario 2: 3 cylindrical no-fly zones; (c) Scenario 3: 4 cylindrical no-fly zones; (d) Scenario 4: 5 cylindrical no-fly zones.
Figure 4 shows the average convergence curves of the seven algorithms in the four scenarios. In Scenario 1, the curves of TLQ-SGWO and RCGA-PSO remain close in the middle and late stages, which is consistent with the near tie in their final mean costs. As the number of cylindrical no-fly zones increases from Scenario 2 to Scenario 4, TLQ-SGWO maintains a lower middle-to-late-stage fitness level than the comparison algorithms, including RCGA-PSO, and its advantage becomes visually clearer in the enlarged convergence view. This result suggests that the proposed method provides stronger robustness under increasing constraint complexity. The continued late-stage decrease also indicates that Q-learning-based strategy scheduling, Lévy stagnation escape, and α local refinement jointly contribute to local-region escape and late-stage trajectory refinement.
Figure 4. Comparison of average fitness convergence curves of different algorithms under scenarios with different complexity levels. (a) Scenario 1: 2 cylindrical no-fly zones; (b) Scenario 2: 3 cylindrical no-fly zones; (c) Scenario 3: 4 cylindrical no-fly zones; (d) Scenario 4: 5 cylindrical no-fly zones.
To assess whether the observed final-cost differences are statistically reliable, nonparametric statistical tests are conducted based on 15 independent runs. The Friedman test is first used to examine the overall performance differences among the seven algorithms in each scenario. Then, with TLQ-SGWO as the reference, the Wilcoxon rank-sum test is used for pairwise comparisons between TLQ-SGWO and each comparison algorithm. The significance level is set to α = 0.05 .
The Friedman test yields p = 3.014 × 10 − 11 , 3.132 × 10 − 6 , 2.263 × 10 − 7 , and 7.578 × 10 − 11 for Scenario 1 to Scenario 4, respectively, indicating significant overall differences in final cost in all four scenarios. Pairwise Wilcoxon rank-sum tests show that TLQ-SGWO is significantly better than GWO, SGWO, WOA, GA, and PSO in every scenario. With respect to RCGA-PSO, the difference is not significant in Scenario 1 ( p = 0.3837 ), but becomes significant in Scenario 2 ( p = 0.004795 ), Scenario 3 ( p = 0.01440 ), and Scenario 4 ( p = 0.01140 ). These results support the interpretation that RCGA-PSO is a strong comparison method under relatively mild constraints, whereas TLQ-SGWO shows clearer advantages when threat density and constraint complexity increase.

4.5. Ablation Study

To analyze the contribution of each module, this study adopts a two-level ablation design. The ablation study is conducted on Scenario 3 with four cylindrical no-fly zones, which represents a medium-to-high constraint-density environment. First, five equal-budget core ablation schemes, A1–A5, are configured, all with T = 300 , N p = 400 , and 20 independent runs. A1 is the basic spherical-vector grey wolf optimizer and retains only the main SGWO search. A2 adds Tent–Logistic hybrid initialization and heuristic seed paths to A1. A3 further introduces Q-learning search-strategy scheduling but does not enable Lévy perturbation, Alpha refinement, or the safety-oriented elite branch. A4 adds stagnation-triggered Lévy perturbation to A3. A5 adds conservative terminal Alpha local refinement to A4. Second, to evaluate the robust output capability of the complete TLQ-SGWO in offline safety planning, A6 further enables the safety-oriented elite branch on the basis of A5. Because A6 includes additional safety-redundancy search, its computational budget is higher than those of A1–A5. Therefore, A6 is not used for strict equal-budget module attribution, but is interpreted as supplementary robustness validation of the complete algorithm. The results are shown in Table 12.
Table 12. Statistical results of the ablation study (20 independent runs).
Figure 5 and Figure 6 respectively present the convergence trends and mean-cost comparison of the ablation schemes.
Figure 5. Average convergence curves in the ablation study.
Figure 6. Cost analysis of the ablation study.
Figure 5 shows the average convergence trends of the ablation schemes over 20 independent runs. A1–A5 are used to examine the stepwise effects of the equal-budget core modules. Compared with A1, the mean cost of A2 decreases from 7272.32 to 6040.75, corresponding to a reduction of 1231.56 and 16.9%, indicating that hybrid initialization and heuristic seed paths provide the most evident average-cost reduction in this scenario. After Q-learning strategy scheduling is added alone in A3, the mean cost increases to 6784.04, suggesting that adaptive strategy switching may introduce additional search fluctuations when it is not coordinated with stagnation-escape operations. After Lévy perturbation is added to A3, the mean cost of A4 decreases to 6159.45 and the best cost decreases to 3885.69, indicating that stagnation-triggered Lévy perturbation can partially compensate for the search fluctuation introduced by strategy scheduling and improve the ability to discover lower-cost solutions. However, A4 and A5 still do not outperform A2 in terms of mean cost under the equal-budget setting, so these results should not be interpreted as monotonic improvement from every added module. The terminal Alpha refinement in A5 produces only a 0.54 reduction in mean cost, suggesting that it mainly acts as a conservative fine-tuning mechanism with limited independent contribution to average-cost reduction in the current experiment. After the additional safety-oriented elite branch is enabled in A6, the mean cost decreases to 4877.74, showing that the complete TLQ-SGWO further improves robust output quality under an offline planning setting that allows an additional safety-redundancy search budget. Because the benefit of A6 includes both the safety-branch mechanism and the additional search budget, A6 is not used for strict equal-budget attribution, but is treated as robustness validation of the complete algorithm.
Stepwise Wilcoxon signed-rank paired tests show that the improvement from A1 to A2 is statistically significant ( p = 0.0132 ), and the improvement from A3 to A4 is also statistically significant ( p = 0.0072 ). The transitions from A2 to A3 and from A4 to A5 do not reach statistical significance in the current batch. A Friedman overall test is conducted on the equal-budget core ablation schemes A1–A5, yielding χ 2 = 8.5445 and p = 0.07355 . Because this result does not reach the 0.05 significance level, the equal-budget ablation provides only partial statistical support for the differences among the core-module combinations. The difference between A6 and A5 is not interpreted as an equal-budget ablation, but is used to show that the complete algorithm has stronger robustness under an additional safety-redundancy budget. Overall, the ablation results partially support the effectiveness of the proposed modules: hybrid initialization and seed paths make the clearest contribution to average-cost reduction, Q-learning appears more useful when coupled with Lévy stagnation escape than when used alone, Alpha terminal refinement mainly plays a conservative fine-tuning role, and the safety-oriented elite branch improves robust output quality under an additional search budget.

5. Conclusions

To address UAV path planning in complex 3D terrain with terrain, no-fly-zone, clearance, smoothness, and altitude constraints, this study proposes TLQ-SGWO, a Tent–Logistic- and Q-learning-based multi-strategy spherical-vector grey wolf optimizer. The proposed method encodes trajectory segments using spherical vector increments and formulates 3D path planning as a multi-constraint cost-minimization problem via a seven-term comprehensive cost function.
The algorithm improves the initial distribution through Tent–Logistic hybrid initialization and heuristic seed paths, uses Q-learning to schedule local exploitation, standard search, enhanced exploration, and Lévy escape actions, and combines Alpha local refinement with a safety-oriented elite branch to improve feasible-solution quality in the later search stage.
The CEC2017 benchmark results show that TLQ-SGWO achieves the best overall average rankings in both mean error and standard deviation among the seven compared algorithms. Although PSO and RCGA-PSO obtain the best mean values on more individual functions, TLQ-SGWO provides a more balanced performance distribution across the whole benchmark suite and consistently outperforms the original GWO and SGWO on all 30 functions. These results indicate that the proposed adaptive search framework effectively improves the original grey-wolf-based optimizer while maintaining strong robustness across different function landscapes. In the artificial mountainous scenarios with 2–5 cylindrical no-fly zones, TLQ-SGWO achieves the lowest mean cost in Scenario 2 to Scenario 4 and remains statistically comparable to RCGA-PSO in Scenario 1 while yielding the smallest standard deviation. Statistical tests support the reliability of the observed final-cost differences. The ablation study indicates that Q-learning-based strategy scheduling is most effective when coupled with stagnation-escape operations, suggesting that adaptive strategy selection should be coordinated with diversity-restoration mechanisms. Hybrid initialization and seed paths provide the most evident average-cost reduction, while Alpha terminal refinement mainly serves as a conservative fine-tuning mechanism. Under an additional safety-redundancy budget, the complete TLQ-SGWO reduces the average cost by 32.9% compared with the baseline SGWO. With the optional safety-redundancy branch disabled, its overall mean runtime in the artificial-terrain experiments is 12.973 s, compared with 14.675 s for SGWO. This result indicates that the core adaptive search mechanisms do not impose excessive computational overhead, although the current implementation remains primarily intended for offline or pre-mission planning.
The current experiments are mainly based on artificial terrain, fixed start and goal points, and static cylindrical no-fly zones, and they do not yet systematically cover dynamic obstacles, realistic flight dynamics, or real-flight validation. Dynamic urban environments usually require both offline global search and online replanning [31]. The weights of the cost function are also manually specified; future work may combine multi-objective multi-task optimization with source-task transfer to reduce dependence on manual parameter tuning [32]. If the method is extended to multi-UAV cooperative tasks, event-triggered formation control, communication delays, cooperative risk perception, and complex map structure representation should also be considered [33,34,35]. Future research will extend the method to broader environmental and task scales, investigate adaptive weighting or multi-objective optimization, and verify the executability of trajectories under realistic UAV dynamic constraints. In future work, field experiments will be conducted to further validate the algorithm under real-world terrains and non-cylindrical, irregularly shaped no-fly zones.

Author Contributions

Conceptualization, A.L. and Y.Y.; methodology, A.L.; software, A.L.; validation, A.L.; formal analysis, A.L.; investigation, A.L.; data curation, A.L.; writing—original draft preparation, A.L.; writing—review and editing, Y.Y.; supervision, Y.Y.; project administration, Y.Y.; funding acquisition, Y.Y. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Doctoral Research Startup Fund of Hebei GEO University (No. BQ2018024).

Institutional Review Board Statement

Not applicable.

Data Availability Statement

Data will be made available on request.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
UAVUnmanned aerial vehicle
GWOGrey wolf optimizer
SGWOSpherical-vector grey wolf optimizer
TLQTent–Logistic hybrid initialization and Q-learning search-strategy scheduling
TLQ-SGWOTent–Logistic and Q-learning-based multi-strategy spherical-vector grey wolf optimizer
PSOParticle swarm optimization
WOAWhale optimization algorithm
GAGenetic algorithm
RCGA-PSOReal-coded genetic algorithm–particle swarm optimization
MaxFEsMaximum number of function evaluations
StdStandard deviation
CECCongress on Evolutionary Computation

References

  1. Fan, Y.; Chen, L.; Zhang, B.; Liu, Y.; Li, Z.; Sun, Y. Autonomous inspection technology of overhead lines of distribution network and attitude control of UAVs based on multi-sensor fusion. Electr. Meas. Instrum. 2024, 61, 186–194. [Google Scholar] [CrossRef]
  2. Rahman, M.; Sarkar, N.I.; Lutui, R. A survey on multi-uav path planning: Classification, algorithms, open research problems, and future directions. Drones 2025, 9, 263. [Google Scholar] [CrossRef] [Scilit]
  3. Jones, M.; Djahel, S.; Welsh, K. Path-planning for unmanned aerial vehicles with environment complexity considerations: A survey. ACM Comput. Surv. 2023, 55, 1–39. [Google Scholar] [CrossRef] [Scilit]
  4. Du, J.; Huang, B.; Jia, B. An efficient uav coverage path planning method for 3-d structures. IEEE Internet Things J. 2025, 12, 31869–31880. [Google Scholar] [CrossRef] [Scilit]
  5. Hart, P.E.; Nilsson, N.J.; Raphael, B. A formal basis for the heuristic determination of minimum cost paths. IEEE Trans. Syst. Sci. Cybern. 1968, 4, 100–107. [Google Scholar] [CrossRef] [Scilit]
  6. Chen, J.; Li, M.; Yuan, Z.; Gu, Q. An improved A* algorithm for UAV path planning problems. In Proceedings of the 2020 IEEE 4th Information Technology, Networking, Electronic and Automation Control Conference (ITNEC); IEEE: New York, NY, USA, 2020; Volume 1, pp. 958–962. [Google Scholar] [CrossRef] [Scilit]
  7. Zhang, J.; Guo, Y.; Zheng, L.; Yang, Q.; Shi, G.; Wu, Y. Real-time UAV path planning based on LSTM network. J. Syst. Eng. Electron. 2024, 35, 374–385. [Google Scholar] [CrossRef] [Scilit]
  8. Kennedy, J.; Eberhart, R. Particle swarm optimization. In Proceedings of the ICNN’95—International Conference on Neural Networks; IEEE: New York, NY, USA, 1995; Volume 4, pp. 1942–1948. [Google Scholar] [CrossRef] [Scilit]
  9. Mirjalili, S.; Mirjalili, S.M.; Lewis, A. Grey Wolf Optimizer. Adv. Eng. Softw. 2014, 69, 46–61. [Google Scholar] [CrossRef] [Scilit]
  10. Storn, R.; Price, K. Differential evolution: A simple and efficient heuristic for global optimization over continuous spaces. J. Glob. Optim. 1997, 11, 341–359. [Google Scholar] [CrossRef] [Scilit]
  11. Akopov, A.S.; Beklaryan, L.A.; Thakur, M. Improvement of Maneuverability Within a Multiagent Fuzzy Transportation System With the Use of Parallel Biobjective Real-Coded Genetic Algorithm. IEEE Trans. Intell. Transp. Syst. 2022, 23, 12648–12664. [Google Scholar] [CrossRef] [Scilit]
  12. Pehlivanoglu, Y.V.; Pehlivanoglu, P. An enhanced genetic algorithm for path planning of autonomous UAV in target coverage problems. Appl. Soft Comput. 2021, 112, 107796. [Google Scholar] [CrossRef] [Scilit]
  13. Phung, M.D.; Ha, Q.P. Safety-enhanced UAV path planning with spherical vector-based particle swarm optimization. Appl. Soft Comput. 2021, 107, 107376. [Google Scholar] [CrossRef] [Scilit]
  14. Hoang, V.; Phung, M.D.; Dinh, T.H.; Ha, Q.P. Angle-encoded swarm optimization for uav formation path planning. In Proceedings of the 2018 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS); IEEE: New York, NY, USA, 2018; pp. 5239–5244. [Google Scholar] [CrossRef] [Scilit]
  15. Wang, W.; Ye, C.; Tian, J. SGGTSO: A spherical vector-based optimization algorithm for 3D UAV path planning. Drones 2023, 7, 452. [Google Scholar] [CrossRef] [Scilit]
  16. Liu, Y.; Zhang, H.; Zheng, H.; Li, Q.; Tian, Q. A spherical vector-based adaptive evolutionary particle swarm optimization for UAV path planning under threat conditions. Sci. Rep. 2025, 15, 2116. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  17. Qin, D.; Yan, X.; Shao, Q.; Yao, Y. Three-dimensional trajectory planning for quadrotor UAV based on event-triggered grey wolf optimization algorithm. CAAI Trans. Intell. Syst. 2025, 20, 699–706. [Google Scholar] [CrossRef]
  18. Nadimi-Shahraki, M.H.; Taghian, S.; Mirjalili, S. An improved grey wolf optimizer for solving engineering problems. Expert Syst. Appl. 2021, 166, 113917. [Google Scholar] [CrossRef] [Scilit]
  19. Lin, W. Improved grey wolf optimization algorithm based on hyperbolic tangent inertia weight. IEEE Access 2023, 11, 135185–135195. [Google Scholar] [CrossRef] [Scilit]
  20. Hou, Y.; Gao, H.; Wang, Z.; Du, C. Improved grey wolf optimization algorithm and application. Sensors 2022, 22, 3810. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  21. Mu, L.; Liu, W.; Wang, H.; Zhang, Y. Research of UAV 3D path planning based on improved Dwarf mongoose algorithm with multiple strategies. Sci. Rep. 2025, 15, 26979. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  22. Emary, E.; Zawbaa, H.M.; Grosan, C. Experienced Gray Wolf Optimization Through Reinforcement Learning and Neural Networks. IEEE Trans. Neural Netw. Learn. Syst. 2017, 29, 681–694. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  23. Watkins, C.J.C.H.; Dayan, P. Q-learning. Mach. Learn. 1992, 8, 279–292. [Google Scholar] [CrossRef] [Scilit]
  24. Liu, S.; Cui, Y.; Yu, Y.; Hu, W. A Q-learning-based hybrid search algorithm integrating PRM and ACO for 3D UAV path planning. Sci. Rep. 2026, 16, 5447. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  25. Wang, Y.; Liu, J.; Qian, Y.; Yi, W. Path planning for multi-UAV in a complex environment based on reinforcement-learning-driven continuous ant colony optimization. Drones 2025, 9, 638. [Google Scholar] [CrossRef] [Scilit]
  26. Sun, W.; Wang, Q.; Huan, J.; Yu, H.; Gao, S. FADQN: A Heuristic Reinforcement Learning Mechanism for UAV Path Planning in Unknown Environment. IEEE Access 2025, 13, 131909–131921. [Google Scholar] [CrossRef] [Scilit]
  27. Yang, X.S. Nature-Inspired Optimization Algorithms; Elsevier: Amsterdam, The Netherlands, 2014. [Google Scholar]
  28. Alabed, T.; Servi, S. A Lévy flight based chaotic black winged kite algorithm for solving optimization problems. Sci. Rep. 2025, 15, 34608. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  29. Kao, Y.T.; Zahara, E. A hybrid genetic algorithm and particle swarm optimization for multimodal functions. Appl. Soft Comput. 2008, 8, 849–857. [Google Scholar] [CrossRef] [Scilit]
  30. Awad, N.H.; Ali, M.Z.; Liang, J.J.; Qu, B.Y.; Suganthan, P.N. Problem definitions and evaluation criteria for the CEC 2017 special session and competition on single objective bound constrained real-parameter numerical optimization. In Proceedings of the Technical Report; Nanyang Technological University: Singapore, 2016. [Google Scholar]
  31. Yin, C.; Xiao, Z.; Cao, X.; Xi, X.; Yang, P.; Wu, D. Offline and online search: UAV multiobjective path planning under dynamic urban environment. IEEE Internet Things J. 2017, 5, 546–558. [Google Scholar] [CrossRef] [Scilit]
  32. Chai, Z.Y.; Li, Y.L.; Nie, Y. A multi-objective multi-task evolutionary algorithm based on source task transfer. Appl. Soft Comput. 2025, 174, 112732. [Google Scholar] [CrossRef] [Scilit]
  33. Yan, Z.; Han, L.; Li, X.; Dong, X.; Li, Q.; Ren, Z. Event-triggered formation control for time-delayed discrete-time multi-agent system applied to multi-UAV formation flying. J. Frankl. Inst. 2023, 360, 3677–3699. [Google Scholar] [CrossRef] [Scilit]
  34. Huang, C.; Wei, R.; Jiang, B.; Wei, P.; Zhang, Q. A Collaborative Navigation Algorithm for Unmanned Aerial Vehicles Based on Joint Cognition and Risk Perception. Drones 2026, 10, 186. [Google Scholar] [CrossRef] [Scilit]
  35. Zhou, S.; Xu, X.; Zhang, T.; Li, N. A Novel Hierarchical Topology-Metric Road Graph (HTMRG) Construction for UGV Navigation. Drones 2026, 10, 188. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.