Abstract:In three-dimensional environments where terrain and obstacles coexist, unmanned aerial vehicle (UAV) path planning must simultaneously balance safety constraints, cost minimization and trajectory executability. However, conventional particle swarm optimization (PSO) is prone to premature convergence and insufficient search efficiency in high-dimensional waypoint optimization, while directly optimizing discrete waypoints makes it difficult to ensure trajectory smoothness. To address these issues, this paper proposes a spherical-encoded adaptive hybrid particle swarm optimization algorithm termed SAHPSO-J, refined by adaptive differential evolution with optional external archive (JADE). By introducing spherical incremental parameterization and prior constraints toward the target direction, the search difficulty is reduced. A nonlinear decreasing inertia weight and time-varying learning factors are further adopted to realize adaptive search, while JADE is incorporated to refine the global best solution. Finally, waypoint sparsification and cubic B-spline smoothing are combined to generate continuous and executable trajectories. Experiments conducted in simple and complex scenarios constructed from digital elevation model (DEM) show that, compared with conventional PSO, SAHPSO-J reduces the average cost by 27.44% and 51.46%, shortens the path length by 5.88% and 12.06%, and decreases the standard deviation by 84.19% and 83.00%, respectively. In addition, it demonstrates superior cost control performance and solution stability compared with other PSO variants.