基于Levy飞行的动态调整策略改进SPSO算法无人机三维航迹规划

Dynamic adjustment strategy based on Levy flight to improve SPSO algorithm for UAV three-dimensional trajectory planning

  • 摘要: 针对三维环境中无人机航迹规划问题,在球面矢量粒子群优化算法(Spherical vector-based particle swarm optimization algorithm, SPSO)的基础上提出了一种新的基于Levy飞行的动态调整策略改进球面矢量粒子群优化算法(Spherical vector particle swarm optimization algorithm for dynamic adjustment strategy based on Levy flight,LDS-SPSO),以解决收敛速度慢和易陷入局部最优解的问题. 首先,将航迹规划问题转化为多约束目标优化问题,构造了基于航迹长度、障碍物威胁、平滑度和高度变化的适应度目标函数;其次,提出了学习因子动态调整策略,提升收敛速度;然后,当粒子陷入局部最优解时,引入Levy飞行扰动因子促使粒子迅速逃出局部最优解;最后,在三维环境下对提出的算法进行了仿真测试,在4个复杂度不同的数字高程三维场景下开展三维航迹规划仿真. 仿真结果验证了改进算法的性能:该算法生成的航迹在保证避障安全的前提下,航迹代价更低、质量更高、路径更平滑,具有更优的寻优精度和更快的收敛速度. 在障碍物密集的场景下,LDS-SPSO算法相比传统的粒子群算法(Particle Swarm Optimization, PSO)、惯性权重线性递减基于球面矢量的改进粒子群算法(Improved Particle Swarm Optimization algorithm, IPSO)和SPSO算法的最佳适应度值分别减少了22.92%、0.51%、0.34%,平均适应度值分别减少了31.18%、6.33%、4.54%,最差适应度值分别减少了36.45%、16.73%、14.77%. 研究结果表明,LDS-SPSO算法在三维航迹规划中展现出更快的收敛性、更好的稳定性和可靠性.

     

    Abstract: To solve the trajectory planning problem of unmanned aerial vehicles in three-dimensional (3D) environments, a dynamic adjustment strategy based on Levy flight is proposed to improve the spherical vector-based particle swarm optimization (SPSO) algorithm, thus forming the SPSO algorithm based on Levy flight dynamic adjustment strategy (LDS-PSO). This algorithm balances the global and local search capabilities, and alleviates the problems of slow convergence speed and being trapped in local optima. First, the trajectory planning problem is transformed into a multi-constraint objective optimization problem, and a fitness objective function is constructed based on trajectory length, obstacle threat, smoothness, and height changes. Second, the PSO algorithm is analyzed based on spherical vectors. In the initial stage of the search, the algorithm needs to expand the search range to ensure population diversity. In the later stage, it needs to achieve rapid convergence and improve accuracy for inter-group collaboration. Therefore, a strategy for dynamically adjusting learning cognitive factors based on power exponent inertia weight factors and quadratic functions is proposed. Compared with the fixed learning cognitive factors of traditional PSO and SPSO algorithms, this strategy not only balances global and local search capabilities, but also improves the convergence speed. Third, when the difference between the fitness values of particles in adjacent iterations is smaller than a preset small constant, the particles are considered to be trapped in a local optimum. The Levy flight disturbance factor is introduced to prompt particles to quickly escape from local optima. Finally, the effectiveness and convergence speed of the algorithm in a 3D environment are evaluated through simulation testing. Based on the flight environment of drones, four 3D elevation environment models with different obstacle densities were established, and simulation experiments of 3D trajectory planning using the proposed algorithm were carried out in each environment. The simulation results validate the performance of the improved algorithm. The trajectory generated by this algorithm has a lower cost and higher quality while ensuring obstacle avoidance safety, and it exhibits better optimization accuracy and faster convergence speed. In scenarios with sparse obstacles, the performance of this algorithm is consistent with that of the SPSO algorithm. In scenarios with dense obstacles, there are differences in the fitness and convergence speed between this algorithm and the SPSO algorithm. The LDS-PSO algorithm has a lower fitness value, faster convergence speed, and smoother path compared with the SPSO algorithm. In dense obstacle scenarios, various algorithms were run repeatedly 20 times to reduce random errors. Compared with the traditional PSO, linearly decreasing inertia weight IPSO (Improved particle swarm optimization algorithm), and SPSO algorithms, the LDS-PSO algorithm has the best stability and the lowest trajectory cost. In the 20 tests, the average best fitness value of the LDS-PSO algorithm decreased by 22.92%, 0.51%, and 0.34% compared with the above three algorithms respectively; the average fitness value decreased by 31.18%, 6.33%, and 4.54% respectively; and the average worst fitness value decreased by 36.45%, 16.73%, and 14.77% respectively. The research results indicate that the LDS-PSO algorithm has faster convergence speed, better stability, and higher reliability in 3D trajectory planning.

     

/

返回文章
返回