1. Introduction
With the continuous advancement of intelligent technology, unmanned aerial vehicle (UAV) technology has become one of the hotspots of technological innovation today. Especially in scenarios that require the collaborative work of numerous UAVs, ensuring their efficient and safe completion of tasks is particularly crucial. Path planning is a key technology in the application of UAV swarms. It involves the coordination and cooperation of multi-UAVs during task execution, directly affecting the efficiency of task completion and the safety of the UAVs. An excellent path planning scheme needs to comprehensively consider various factors such as collisions between UAVs, environmental factors, and mission requirements, to ensure that UAVs can complete tasks with minimal time and space consumption while guaranteeing their own safety.
After years of development, significant progress has been made in multi-UAV path planning algorithms. Existing path planning algorithms are mainly divided into two categories: traditional algorithms and heuristic algorithms. Excellent traditional algorithms include the A* algorithm [
1,
2], the Rapidly-exploring Random Tree (RRT) algorithm [
3,
4], artificial potential field [
5], etc. As the complexity of problems increases, traditional methods often cannot solve NP problems such as 3D path planning, so heuristic algorithms have gradually become the mainstream approach for solving such problems. Heuristic algorithms mainly include Differential Evolution (DE) [
6,
7], Ant Colony Optimization (ACO) [
8,
9], Particle Swarm Optimization (PSO) [
10,
11,
12], the Genetic Algorithm (GA) [
13,
14], the Artificial Bee Colony (ABC) algorithm [
15], the Firefly Algorithm (FA) [
16], the Teaching–Learning-Based Optimization (TLBO) algorithm [
17], and other heuristic algorithms that are currently widely used in multi-UAV path planning. Based on different principles and strategies, these algorithms can find effective flight paths in complex environments.
Evolutionary algorithms exhibit strong flexibility and adaptability in dealing with multi-UAV path planning problems. They can easily handle various complex constraints (such as threat zones, flight altitude restrictions, turning requirements, etc.) and optimization objectives (such as flight time, safety, energy consumption, etc.). Hui et al. [
18] proposed an asynchronous Ant Colony Optimization algorithm that solves the problem of detecting large and complex buildings through an asynchronous forward strategy. Nafis Ahmed [
19] derived distributed full-coverage optimal path planning using the PSO algorithm, while Wang et al. [
20] designed a method based on the Lévy flight search strategy and the improved velocity-dependent Bat algorithm. These methods demonstrate the effectiveness of swarm intelligence in solving complex path planning problems. Using evolutionary algorithms alone has issues such as slow convergence speed and parameter sensitivity, leading to the emergence of various hybrid algorithms. For example, the combination of evolutionary algorithms and reinforcement learning, such as the multi-strategy Cuckoo Search algorithm based on reinforcement learning proposed by Yu et al. [
21], improves the convergence speed of optimization methods. Additionally, Mickey et al. [
22] used Genetic Algorithm optimization methods to find the RA-MCPP path planning that maximizes PoC, while Chen et al. [
23] calculated the quasi-optimal trajectory of a rotorcraft using an improved Wolf Pack Search algorithm. To improve the overall performance of the algorithm, researchers have also proposed hybrid algorithms and hierarchical strategies. For instance, Qu et al. [
24] combined the Simplified Grey Wolf Optimizer (SGWO) and the Modified Symbiotic Organisms Search (MSOS) to propose a new hybrid algorithm, HSGWO-MSOS, aimed at solving complex domain problems. Yang et al. [
25] proposed a Hierarchical Recursive Multi-Agent Genetic Algorithm (HR-MAGA) to achieve real-time path planning.
Among these algorithms, swarm intelligence algorithms such as Particle Swarm Optimization (PSO) have shown particularly impressive performance in multi-UAV path planning. Known for its simplicity and efficiency, the PSO algorithm has achieved remarkable results. In recent years, many researchers have attempted to leverage the PSO algorithm to tackle path planning problems. Phung et al. [
26] proposed an enhanced Discrete Particle Swarm Optimization (DPSO) algorithm for solving the Traveling Salesman Problem (TSP). A distributed PSO-based exploration algorithm to aid in disaster scenarios was introduced by [
27]. Xiande et al. [
28] presented a method that utilizes the Rauch–Tung–Striebel (RTS) smoothing algorithm to optimize the parameters affecting the performance of the PSO algorithm, aiming to reduce efficiency losses and the occurrence of suboptimal solutions when using PSO for path planning. Das et al. [
29] suggested a hybrid approach combining Improved Particle Swarm Optimization (IPSO) with the Improved Gravitational Search Algorithm (IGSA) to determine optimal trajectories for multi-robot paths in cluttered environments. P.K. Das et al. [
30] proposed a method that combines Improved Particle Swarm Optimization (IPSO) with a Differential Perturbation Velocity (DV) algorithm to determine optimal trajectories for multi-robot paths in cluttered environments. This approach adjusts the robots’ velocities by incorporating differential evolution (DE) vector differential operators inherited from IPSO. Yu et al. [
31] introduced a new hybrid Particle Swarm Optimization (PSO) algorithm called SDPSO, which avoids local optima by incorporating a simulated annealing algorithm. Ji et al. [
32] proposed a novel Dual Dynamic Biogeography-Based Learning Particle Swarm Optimization (DDBLPSO) algorithm to optimize convergence efficiency. He et al. [
33] adopted a Timestamp Segmentation (TSS) model to simplify the handling of UAV coordination costs. They then combined Improved Particle Swarm Optimization (IPSO) with Modified Symbiotic Organisms Search (MSOS) to propose a new hybrid algorithm called HIPSOMSOS. Therefore, this article chooses to use a PSO hybrid algorithm for multi-UAV path planning.
However, using the PSO method for multi-UAV path planning still faces the following challenges: (1) When there are a large number of obstacles in the environment, especially in narrow passages, it is difficult for evolutionary algorithms to find feasible solutions. (2) It is challenging to handle the collaborative constraints of multi-UAVs. Due to the numerous collision avoidance constraints that need to be satisfied among the paths of multi-UAVs, it is difficult for the particles to update their paths towards the current optimal direction, which leads to difficulties in convergence during the optimization process. (3) It is hard to ensure the diversity of the particle swarm, which leads to the problem of converging too quickly and falling into a local optimal solution.
To address the first challenge, we use the RRT* algorithm to generate initial paths. The RRT* algorithm possesses the advantages of asymptotic optimality and rapid solution finding in solving path planning problems. As the number of sampling points increases, it gradually discovers paths closer to the optimal one, showcasing good adaptability and flexibility. To solve the second challenge, we utilize a problem decoupling approach to convert multi-UAV path planning into single-UAV path planning, thereby diminishing problem complexity. Specifically, we adopt the Prioritized Planning (PP) method [
34], assigning a priority to each agent and planning in descending order of priority. Each agent must avert collisions with higher-priority agents and obstacles. This method effectively resolves collisions among multi-UAVs, diminishes computational costs by reducing the number of evaluations, and consequently lowers the computational complexity of the algorithm. To tackle the third challenge, we introduce random path generation into the initial paths and integrate path randomization during subsequent iterations to augment particle diversity.
By combining the advantages of the Priority Planning method and the RRT* algorithm, this paper proposes a novel hybrid Particle Swarm Optimization (PSO) algorithm named PPSwarm to address the multi-UAV path planning problem. Additionally, to enhance the flexibility of the algorithm and reduce the difficulty of problem-solving, a two-level path planning strategy consisting of a high-level and a low-level strategy is introduced. At the high level, the Rapidly-exploring Random Tree (RRT*) and the Priority Planning (PP) algorithms are utilized to initialize the flight paths of UAVs and assign priorities to the UAVs. At the low level, high-priority individual UAVs employ the PSO algorithm for path planning, while the initial particle swarm selectively inherits the results of the RRT* initialization. In the proposed algorithm, we fully integrate the local optimization capabilities of the PSO algorithm with the global search capabilities of the RRT* algorithm, improving the efficiency of finding feasible solutions. Moreover, the Priority Planning algorithm is used to assign priorities to the UAVs, resolving potential collisions between them. Experimental results in four scenarios with 40 UAVs demonstrate that the proposed PPSwarm algorithm exhibits better performance in terms of path quality and convergence speed. Furthermore, experimental outcomes on a problem instance with 500 UAVs demonstrate the algorithm’s ability to solve large-scale problems.
The remainder of this paper is organized as follows:
Section 2 designs the cost function for the multi-UAV path planning problem.
Section 3 explains the basic principles of the PSO, RRT*, and priority planning algorithms.
Section 4 details the proposed PPSwarm algorithm.
Section 5 presents the comparative experiments with the algorithms, as well as the analysis of algorithmic schemes and parameters. Finally,
Section 6 and
Section 7 are the discussion and conclusions, respectively.
2. Problem Description
In this paper, our core objective is to determine a set of optimal or sub-optimal flight paths from the starting point to the destination while ensuring safety requirements. These paths are designed for multiple UAVs. Safety refers to the ability of UAVs to successfully avoid obstacles in complex environments and prevent collisions among themselves.
Let the flight environment be denoted by
E and the number of UAVs be denoted by
M, with each UAV traveling at a speed
. We define the set of all UAV tasks as
T. For each UAV
, its specific task
includes the starting point
and the destination point
. Assuming that the path from the starting point to the destination point consists of
waypoints, the path of UAV
m is denoted by:
where
represents the
i-th waypoint of the
m-th UAV, with the definitions
and
.
Our core objective is to determine a set of paths such that the total cost of the paths in the set is minimized. It is important to note that we also penalize various constraints in the form of costs; when a constraint is not satisfied, we penalize it with a cost of infinity.
2.1. Path Cost
We divide the flight path of the UAV into multiple nodes and sum the lengths of the flight path by calculating the distances between the nodes. The formula for calculating the path cost of the UAV is as follows:
where
represents the vectors between two nodes,
denotes the coordinates of the
m-th UAV node, and
n is the number of nodes in the path.
2.2. Threat Cost
During flight, a UAV must account for the hazards presented by obstacles to ensure flight safety. In the analysis of flight constraints, obstacles are commonly modeled as cylinders, and the hazard risk escalates with decreasing distance to the cylinder’s center. The threat cost for a UAV can be calculated using the following formula:
where
represents the threat cost of the
j-th obstacle to the path segment
. The calculation method is based on the relative distance
between the UAV and the obstacle as follows:
where
denotes the safety distance (the collision avoidance zone for the UAV),
is the cylindrical radius of the
j-th obstacle, and
J represents the total number of obstacles.
2.3. Altitude Constraint Cost
The altitude of a UAV during flight is typically bounded by a lower and upper limit. The formula for calculating the altitude cost is as follows:
where
represents the height constraint cost,
is the altitude at node
i of the path, and
and
are the maximum and minimum altitude constraints, respectively.
2.4. Path Smoothing and Turn Cost
To calculate the trajectory smoothing cost for a UAV, we need to determine the turning angles. The formula for the turning angles is as follows:
The formula for the climb angle of the UAV is:
Finally, the formula for the smoothing cost is:
where
and
are penalty coefficients for the turning angle and climb angle, respectively.
2.5. Collision Constraint Cost between UAVs
Let
represent the distance between UAVs
and
, and let
denote the safe distance between UAVs. Then, the collision constraint is as follows:
2.6. Total Cost
Converting the cost constraints of UAVs into a cost function allows us to quantify the quality of their paths based on the value of this function. The cost function is as follows:
where
represents the weight coefficient of the cost for the
c-th constraint, and
F denotes the total path cost for multi-UAVs.
7. Conclusions
This paper proposes a heuristic algorithm based on PPSwarm to address the collaborative path planning problem for multiple unmanned aerial vehicles (UAVs) in complex three-dimensional environments. In the proposed algorithm, a reasonable multi-objective optimization cost function is designed, considering the performance of the UAVs and the constraints of the flight environment. Secondly, to decouple the multi-UAV path planning problem and reduce the difficulty of solving it, a two-level path planning strategy consisting of a high-level and a low-level planning strategy is proposed to hierarchically implement the PPSwarm algorithm. Specifically, by combining the exploration advantages of RRT*, the high-level planning strategy adopts the RRT* algorithm for path initialization. Meanwhile, a priority planning algorithm is utilized in this strategy to assign priorities to the UAVs, and the optimal UAV path obtained is incorporated into the cost function as an obstacle, which can significantly save search space and enhance path safety. In the low-level planning strategy, the Particle Swarm Optimization (PSO) algorithm is employed for path planning of UAVs with higher priorities. Subsequently, Dubins curves are used for smoothing the paths, enabling the UAVs to meet actual flight requirements. In the proposed algorithm, to fully leverage the results obtained from the RRT* algorithm and iterations and to accelerate convergence, several strategies are introduced, including a restart strategy, population initialization, and population diversification. Additionally, a time-discretized global obstacle list is introduced to consider collisions between UAVs. Finally, experimental results demonstrate that the PPSwarm algorithm can effectively satisfy collision constraints among multiple UAVs and successfully plan safe and efficient UAV flight paths, especially in large-scale and complex environments. Comparative experiments indicate that the PPSwarm algorithm outperforms five other algorithms in terms of convergence accuracy and stability, exhibiting higher optimization capabilities. In larger-scale experiments involving 500 UAVs, the proposed algorithm also showcases excellent processing power and scalability.