Next Article in Journal
Dynamic Trajectory Control and User Association for Unmanned-Aerial-Vehicle-Assisted Mobile Edge Computing: A Deep Reinforcement Learning Approach
Next Article in Special Issue
Pigeon-Inspired Transition Trajectory Optimization for Tilt-Rotor UAVs
Previous Article in Journal
FUR-DETR: A Lightweight Detection Model for Fixed-Wing UAV Recovery
Previous Article in Special Issue
Advancing Large Language Models with Enhanced Retrieval-Augmented Generation: Evidence from Biological UAV Swarm Control
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Distributed Model Predictive Formation Control for UAVs and Cooperative Capability Evaluation of Swarm

1
School of Aeronautics and Astronautics, Sichuan University, Chengdu 610065, China
2
Department of Applied Mathematics, Hong Kong Polytechnic University, Hong Kong SAR, China
3
School of Automation Science and Electrical Engineering, Beihang University, Beijing 100083, China
*
Author to whom correspondence should be addressed.
Drones 2025, 9(5), 366; https://doi.org/10.3390/drones9050366
Submission received: 5 April 2025 / Revised: 3 May 2025 / Accepted: 6 May 2025 / Published: 13 May 2025
(This article belongs to the Special Issue Biological UAV Swarm Control)

Abstract

This paper utilizes the distributed model predictive control (DMPC) method to investigate the formation control problem of unmanned aerial vehicles (UAVs) in the obstacle environment and establishes cooperative capability evaluation metrics of the swarm. Based on the DMPC approach, the formation cost function is constructed to adjust the relative positions and velocities of UAVs, ensuring the desired formation. Additionally, to address the obstacle avoidance problem in the formation, the obstacle avoidance function is designed to provide safe formation control in the obstacle environment. To evaluate the cooperative capability of UAVs, we design evaluation metrics from multiple dimensions to reflect the swarm’s cooperative capability. Finally, the simulation results show the effectiveness of the formation control method with obstacle avoidance and the applicability of the swarm’s cooperative capability evaluation metrics.

1. Introduction

In recent years, with the increasing complexity of tasks and the growing autonomy of UAVs, UAVs have gained significant attention from researchers and are widely used in applications such as target search, tracking, and surveillance [1,2,3,4]. Unlike a single UAV, UAVs offer enhanced mission execution capabilities and adaptability in dynamic environments. As a result, UAVs can efficiently tackle complex tasks by leveraging the division of labor and cooperation, demonstrating promising application potential.
Formation flight is a key research area in the cooperation of UAVs, which allows UAVs to improve overall fuel efficiency and enhance mission execution efficiency. Currently, there are many methods for generating control input signals in formation control, such as sliding mode control [5], backstepping control [6], and model predictive control (MPC) [7]. However, sliding mode and backstepping control methods struggle to simultaneously handle multiple constraints, such as control input, velocity, and safety constraints. In contrast, MPC effectively handles these constraints and dynamically adjusts control input through rolling optimization strategies, making it widely applicable in real-world scenarios.
In a group of UAVs, each UAV interacts only with neighbors within its communication range to acquire local information for decision-making. Due to the high computational demands and vulnerability to failures, traditional centralized control methods struggle to satisfy practical requirements. To address these challenges, DMPC [8,9] combines the rolling optimization and constraint handling capabilities of MPC with the scalability of distributed control. In [10], a DMPC algorithm is designed for formation control in three-dimensional (3D) space under performance constraints. To handle sensor faults and physical limitations, a distributed sensor-tolerant MPC scheme is proposed in [11]. For the formation flight of UAVs, a DMPC approach based on a leader-follower structure with unidirectional data transmission is introduced in [12]. Additionally, the optimal formation control for UAVs with a leader-follower architecture is investigated in [13], along with developing a two-layer DMPC controller using neighbor information.
To ensure formation safety, collision avoidance should be integrated into the formation controller design, enabling UAVs to avoid obstacles and prevent crashes. When detecting obstacles, the UAVs should adjust their flight path accordingly to ensure timely and effective avoidance. Therefore, realizing an efficient obstacle avoidance mechanism in formation control for UAVs is very important. In [14], a virtual target guidance method is designed and integrated into the DMPC framework to accomplish obstacle avoidance. In [15], an adaptive differential evolution-based DMPC approach is proposed to enable UAVs to avoid obstacles and maintain formation in a complex environment. Considering the potential infeasibility in obstacle avoidance optimization, a relaxed obstacle avoidance constraint is developed in [16]. By integrating the velocity obstacle method with synchronous DMPC, the formation control problem of UAVs in the obstacle environment is addressed in [17]. In [18], collision-free functions are embedded in the cost function to ensure avoidance in a 3D environment.
Although introducing obstacle avoidance strategies can ensure the safe flight of UAVs, excessively high collision avoidance weight may significantly impair their capability to maintain formation during the avoidance process, even preventing them from returning to the ideal formation. Therefore, it is essential to establish the swarm’s cooperative capability evaluation metrics. These metrics reflect the transition of UAVs from disorder to stability and allow for adjustments to the obstacle avoidance strategy based on evaluation results. In [19], velocity correlation, internal collision risk, and obstacle collision risk are used to evaluate the swarm’s capability. Cross-entropy is used in [20] as a metric to assess the robustness of UAVs. In [21], the swarm cohesiveness and degree of alignment are used to evaluate the swarm’s capability. In [22], polarization and differentiation metrics are used to analyze the fission–fusion process of the UAVs. In many studies on formation control, the tracking UAVs are expected to align their behavior with the tracked UAV. However, most existing evaluation metrics overlook the influence of the tracked UAV and lack a comprehensive, multi-dimensional design, leading to incomplete evaluation. Therefore, the contributions of this paper are summarized as follows:
  • The main contribution is establishing a multi-dimensional evaluation framework that integrates coordination, communication equilibrium, and safety metrics. The coordination metric explicitly considers the influence of the tracked UAV, communication equilibrium is evaluated based on channel capacity, and safety is quantified using a hierarchical scoring scheme. This framework offers a more comprehensive and systematic approach to evaluating the swarm’s cooperative capability.
  • To validate the applicability of the proposed evaluation metrics, this paper introduces a formation control algorithm based on the synchronous DMPC method. This method allows each UAV to optimize its control strategy independently while maintaining the overall formation. Moreover, collision avoidance is incorporated into the cost function to ensure safe formation flight.
The rest of this paper is organized as follows: Section 2 introduces the preliminaries. In Section 3, we derive the distributed model predictive controller. The swarm’s cooperative capability evaluation metrics are designed in Section 4. Section 5 presents numerical simulation results, and Section 6 concludes this paper.

2. Preliminaries

2.1. Graph Theory

Consider a system of M + 1 UAVs in a 3D environment, consisting of one tracked UAV and M tracking UAVs. The communication topology is expressed by the graph G = { V , E , A } , where V = 1 , 2 , , M represents the set of vertices and E { ( i , j ) : i , j V , i j } is the edge set indicating the communication relations among the UAVs. The adjacency matrix is given by A = a i j R M × M . If UAV i can receive the data from UAV j, then ( j , i ) E and a i j = 1 ; otherwise, a i j = 0 . The graph is undirected, meaning that if a i j = 1 , then a j i = 1 . The set of neighbors of UAV i is denoted as N i = { j V : ( j , i ) E } , and its in-degree is given by N i = j N i a i j . B = { b 1 , b 2 , , b M } R M × M is a diagonal matrix. If UAV i can receive the data from the tracked UAV, then b i = 1 ; otherwise, b i = 0 .

2.2. Model of UAV

The UAV i is modeled by the following discrete-time dynamics:
p i ( k + 1 ) = p i ( k ) + Δ T v i ( k ) + Δ T 2 2 u i ( k ) v i ( k + 1 ) = v i ( k ) + Δ T u i ( k )
where p i ( k ) = [ p i , 1 ( k ) , p i , 2 ( k ) , p i , 3 ( k ) ] T and v i ( k ) = [ v i , 1 ( k ) , v i , 2 ( k ) , v i , 3 ( k ) ] T represent the position and velocity of UAV i, respectively. Δ T is the sampling period, and u i ( k ) = [ u i , 1 ( k ) , u i , 2 ( k ) , u i , 3 ( k ) ] T denotes the control input signal of UAV i.
In addition to (1), there are multiple constraints that each UAV needs to meet during flight. The velocity constraint is defined as follows:
V min | | v i ( l | k ) | | V max
where v i ( l | k ) is the predicted velocity of UAV i. V min and V max are the minimum and maximum velocities allowed for the UAV.
The flight height constraint is designed as follows:
Ξ min p i , 3 ( l | k ) Ξ max
where p i , 3 ( l | k ) is the predicted height of UAV i. Ξ min and Ξ max are the minimum and maximum height allowed for the UAV.
The control input constraint is defined as follows:
U min u i , r ( l | k ) U max , r = 1 , 2 , 3
where u i ( l | k ) represents the predicted control input of UAV i. U min and U max represent the minimum and maximum control inputs allowed for the UAV.
The inter-UAV collision avoidance constraint is designed as follows:
p i ( l | k ) p ^ j ( l | k ) d c , saf
where p i ( l | k ) and p ^ j ( l | k ) are the predicted position of UAV i and UAV j, respectively. d c , saf is the safety distance.

2.3. Problem Formulation

For each UAV, the state is denoted as x i ( k ) = p i T ( k ) , v i T ( k ) T . Then, (1) can be rewritten as
x i ( k + 1 ) = A x i ( k ) + B u i ( k )
where A = 1 Δ T 0 1 I 3 and B = Δ T 2 2 Δ T I 3 .
The control goal is to propose a DMPC method that ensures the following:
(1) The control strategy ensures that the tracking UAVs maintain the desired relative state concerning the tracked UAV, thereby achieving a stable formation.
(2) Tracking UAVs can effectively realize inter-UAV collision avoidance, simultaneously avoiding obstacles in the complex environment.
To achieve a stable formation, the formation error of UAV i is defined by considering its deviation from the tracked UAV and its relative error concerning neighboring UAVs. Therefore, the formation error of UAV i is defined as
z i ( l | k ) = b i x i ( l | k ) x r ( l | k ) x i r + j = 1 M a i j x i ( l | k ) x i r x ^ j ( l | k ) + x j r
where z i ( l | k ) = [ z i , p T ( l | k ) , z i , v T ( l | k ) ] T is the formation error, z i , p ( l | k ) represents the position error, and z i , v ( l | k ) denotes the velocity error. x r ( l | k ) = [ p r T ( l | k ) , v r T ( l | k ) ] T is the state of the tracked UAV. p r ( l | k ) and v r ( l | k ) represent the position and velocity of the tracked UAV, respectively. x i r = [ p i r T , 0 , 0 , 0 ] T and x j r = [ p j r T , 0 , 0 , 0 ] T represent the desired relative states of UAV i and j concerning the tracked UAV, respectively. Additionally, p i r and p j r represent the desired relative positions of UAV i and j concerning the tracked UAV, respectively.
Based on the optimal state x j * ( l + 1 | k 1 ) of the UAV j at k 1 time instant, the assumed state x ^ j ( l | k ) is defined as
x ^ j ( l | k ) = x j * ( l + 1 | k 1 ) , l [ 0 , N p 1 ] A x j * ( N p | k 1 ) , l = N p
where N p is the prediction horizon.
Additionally, we define the obstacle avoidance function for UAV i, which considers the detection range of the UAV and the necessary safety distance from obstacles. The function adjusts based on the distance between the UAV and the obstacles, increasing the avoidance behavior as the UAV nears the obstacles.
H i h ( l | k ) = max exp d i h ( l | k ) d o , saf d i , det d o , saf + 1 1 , 0
where h denotes the hth obstacle, d i h ( l | k ) = [ p i , 1 ( l | k ) , p i , 2 ( l | k ) ] T p h o , and p h o represents the coordinate of the hth obstacle. The detection range of the ith UAV is denoted as d i , det . If the distance between the ith UAV and the hth obstacle exceeds d i , det , the function value is 0, meaning the UAV does not need to consider the obstacle. However, if the distance is smaller than d i , det , the function value increases rapidly.

3. Distributed Model Predictive Controller Design

This section outlines the application of the DMPC algorithm for UAVs. The control input for each UAV is optimized by solving the constrained optimization problem synchronously.

3.1. Cost Function

The cost function consists of two terms: formation error J i , for ( k ) and obstacle avoidance function J i , obs ( k ) . By combining these two factors, the cost function directs the UAV to maintain the desired formation and avoid obstacles. Specifically, it is defined as
J i ( k ) = J i , for ( k ) + λ i , 1 J i , obs ( k )
where λ i , 1 is the weighting coefficient for obstacle avoidance.
To minimize formation error and maintain the desired formation, the cost function for each UAV i is defined as the cumulative predicted formation error over a given prediction horizon N p . This approach guarantees a reduction in stage and terminal errors, enhancing precision in formation control. Specifically, it is expressed as
J i , for ( k ) = l = 0 N p 1 z i ( l | k ) 2 + z i ( N p | k ) P i 2
where P i is a symmetric positive definite matrix.
The obstacle avoidance function is formulated as the cumulative penalty associated with obstacles over the prediction horizon to guarantee flight safety. This approach quantifies collision risk and ensures that each UAV maintains a safe distance from potential obstacles. Specifically, it is formulated as
J i , obs ( k ) = l = 0 N p h = 1 N o H i h ( l | k )
where N o indicates the number of obstacles.

3.2. Optimization Problem and Algorithm

The DMPC method utilizes receding horizon optimization to balance different objectives, including formation error and obstacle avoidance. Specifically, the optimal control input signal u i ( l | k ) of UAV i is derived by minimizing the following cost function:
min u i ( l | k ) J i ( k )
subject to
x i ( 0 | k ) = x i ( k )
x i ( l + 1 | k ) = A x i ( l | k ) + B u i ( l | k )
V min | | v i ( l | k ) | | V max
Ξ min p i , 3 ( l | k ) Ξ max
U min u i , r ( l | k ) U max
p i ( l | k ) p ^ j ( l | k ) d c , saf
where (14a) is the initial state constraint of the UAV i, ensuring that the state at time instant k is its actual state. (14b) represents the dynamics model constraint of the UAV i, describing its evolution over time based on its current state and control input. In addition, (14c)–(14f) represent the velocity, flight height, control input, and inter-UAV collision avoidance constraints, respectively.
Algorithm 1 presents the pseudocode of the DMPC algorithm, where each UAV independently solves a local optimization problem to determine its optimal control input. In the synchronous update scheme, all UAVs simultaneously update their control strategies at each time instant.
Algorithm 1 DMPC algorithm
  • Initialization
  •   (1) At the initial time instant k = 0 , set the initial state x i ( 0 ) of each UAV, the prediction horizon N p , the sampling period Δ T , the simulation step K s , and the weighting coefficient λ i , 1 . In addition, V min , V max , Ξ min , Ξ max , U min , U max , d c , saf , d o , saf , and d i , det are specified.
  •   (2) The state x r of the tracked UAV is set. Additionally, the desired relative states between the tracking UAVs and the tracked UAV are specified.
  • Repeat:
  • for  k K s do
  •   (1) The UAV i receives the state data of the tracked UAV or its neighboring UAVs.
  •   (2) The optimal solution is obtained by solving the optimization problem (13).
  •   (3) Apply u i * ( 0 | k ) to the UAV i.
  •   (4) k = k + 1 .
  • End

4. Cooperative Capability Evaluation Metrics of Swarm

To evaluate the swarm’s cooperative capability, this section proposes evaluation metrics based on three dimensions: coordination, communication equilibrium, and safety.

4.1. Coordination

Regarding the swarm’s coordination capability, the metric considers internal consistency and leader guidance impact. Specifically, coordination capability is composed of two parts: velocity consistency and position matching. These are quantified using exponential functions of velocity difference and position error, capturing the leader’s role in promoting swarm coordination.

4.1.1. Velocity Consistency

In formation control, if the velocity difference between different UAVs is too large, it may cause drastic changes in the relative positions among UAVs, disrupting the formation and even leading to collisions. Therefore, by quantifying the velocity difference within the swarm, the velocity consistency of the UAVs can be monitored in real time.
The velocity consistency E 1 , 1 k is designed as
E 1 , 1 k = 1 M i = 1 M e i , v k
e i , v k = exp z i , v ( k )
where the higher the degree of velocity consistency of the swarm, E 1 , 1 k is close to 1; otherwise, E 1 , 1 k approaches 0.

4.1.2. Position Matching

The position matching is quantified by calculating the difference between the actual and desired position of the UAVs.
Specifically, the position matching E 1 , 2 k of the swarm is designed as
E 1 , 2 k = 1 M i = 1 M e i , p k
e i , p k = exp z i , p ( k )
where the higher the position matching of the swarm, E 1 , 2 k approaches 1; otherwise, E 1 , 2 k is close to 0.

4.2. Communication Equilibrium

Communication equilibrium reflects the uniformity of communication quality among UAVs from the perspective of channel capacity. A high communication equilibrium indicates that the current average communication rate of UAVs is close to the maximum communication rate, indicating a balanced distribution of communication capability. Conversely, a low communication equilibrium implies noticeable disparities in communication performance, which may reduce the overall cooperativity.
The communication equilibrium E 2 k is defined as
E 2 k = 1 M i = 1 M e i , c k e i , m a x k
e i , c k = 1 N i j = 1 M a i j B i j log 2 1 + α i j ( k )
where e i , m a x k = max { B i j log 2 1 + α i j ( k ) } , j N i . B i j denotes the communication bandwidth from j to i. α i j ( k ) = P h i j 2 ( k ) / σ i j 2 is the signal-to-noise ratio at UAV i from UAV j. Assuming all UAVs transmit with the same power P, h i j ( k ) = ρ / p i ( k ) p j ( k ) 2 is the channel gain between UAV i and UAV j, ρ represents the channel power gain at the reference distance of 1 m, and σ i j 2 is the noise power. When E 2 ( k ) is close to 1, the communication capacity of the UAVs in the swarm is more equilibrium. Conversely, if E 2 ( k ) is significantly less than 1, it indicates poor communication between certain UAVs.

4.3. Safety

The safety metric evaluates the swarm’s capacity to take formation safely in the environment with multiple obstacles, based on the distances between UAVs and nearby obstacles. A layered scoring approach is employed, assigning safety scores according to predefined distance intervals, enabling a comprehensive assessment of the swarm’s overall safety level during obstacle avoidance.
The safety E 3 k is expressed as
E 3 k = min S i h k
S i h k = 0 , d i h ( k ) d o , saf 2 d i h ( k ) d o , saf d i , det d o , saf , d o , saf < d i h ( k ) < d o , saf + d i , det 2 1 , d i h ( k ) d o , saf + d i , det 2
where the value of E 3 ( k ) is obtained by minimizing the safety of all tracking UAVs. When E 3 ( k ) approaches 1, the safety of the swarm is high, indicating that all tracking UAVs are maintaining sufficient distance from obstacles. Conversely, when E 3 ( k ) is close to 0, it indicates that some tracking UAVs in the swarm are too close to obstacles, posing a potential collision risk.

5. Simulation Results

Based on the ideas proposed in [23], this section verifies the proposed method’s effectiveness through various simulation analyzes.

5.1. Formation Control for UAVs Without and with Obstacles

To validate the effectiveness of the formation control algorithm without and with obstacles, we select a tracked UAV (0) and ten tracking UAVs ( 1 , 2 , , 10 ) in the simulation. The communication topology is illustrated in Figure 1.
The initial state of the tracked UAV is designed as [ 14 , 0 , 2 , 3 , 0 , 0 ] T , and it flies at a constant velocity [ 3 , 0 , 0 ] T . The initial state of ten tracking UAVs, along with the relative state of UAV i concerning the tracked UAV, are shown in Table 1. In addition, simulation parameters are designed as shown in Table 2.
Figure 2a displays the 3D formation trajectories of UAVs without obstacles, while Figure 2b shows the 3D formation trajectories of UAVs with obstacles. In Figure 2a, the UAVs do not implement the obstacle avoidance strategy during flight because no obstacles are detected. In Figure 2b, the UAVs detect the obstacle and actively adjust their paths using the obstacle avoidance strategy, resulting in significant fluctuations in their trajectories.
Figure 3a displays the 2D formation trajectories of UAVs without obstacles, ensuring that the UAVs maintain a stable formation in the absence of obstacles. In contrast, Figure 3b shows the 2D formation trajectories of UAVs with obstacles, indicating that the proposed strategy allows the tracking UAVs to return to their desired relative positions after avoiding obstacles. Specifically, UAV 3 and UAV 5 take approximately 0.6 s and 1.2 s to avoid the first obstacle. In addition, UAV 2 and UAV 4 take approximately 1.2 s to avoid the second obstacle.
Figure 4a presents the flight velocities of UAVs without obstacles, while Figure 4b shows the flight velocities of UAVs with obstacles. From Figure 4a,b, it is clear that the velocities of tracking UAVs remain within the specified constraints. In addition, as can be seen in Figure 4b, the velocities of UAVs tend to be consistent in the initial stage, approaching the flight velocity of the tracked UAV. However, due to the detection of obstacles during the flight, the velocities exhibit significant fluctuations and stabilize again after the second obstacle avoidance maneuver.
The swarm’s cooperative capability evaluation results without and with obstacles are shown in Figure 5. When UAVs fly in an environment without obstacles, metrics such as velocity consistency, position matching, and communication equilibrium gradually approach 1, while safety remains consistently at 1. When UAVs fly in the environment with obstacles, metrics such as velocity consistency, position matching, and communication equilibrium exhibit significant fluctuations during obstacle avoidance maneuvers, and then gradually approach 1 after the second obstacle avoidance maneuver. Additionally, since UAVs implement obstacle avoidance strategies upon detecting obstacles, safety remains consistently at 1. These proposed metrics reflect the dynamic changes during swarm flight and demonstrate the applicability of the metrics design.
To validate the advantages of the swarm coordination evaluation metrics proposed in this paper, we conduct a comparative analysis with existing velocity consistency and position matching metrics that do not account for the state of the tracked UAV. The compared metrics are shown below:
E ˜ 1 , 1 k = 1 M i = 1 M 1 N i j N i v i k · v j k v i k v j k
E ˜ 1 , 2 k = 1 M i = 1 M exp 1 N i j N i p i ( k ) p i r p j ( k ) + p j r
where (23) is used to judge whether the velocity directions of UAVs are aligned. If the velocity direction tends to be the same, the value approaches 1. In addition, (24) is used to judge whether the UAVs maintain a desired formation shape during movement. If the relative position deviation between UAVs is slight, the value is close to 1.
In Figure 6 and Figure 7, since the tracking UAVs have the same initial velocities and their relative position errors match the expected values, the compared metrics equal 1. However, these metrics overlook the influence of the tracked UAV on the swarm’s collective motion, resulting in incomplete assessment results. Consequently, the metrics values should not equal 1 at the initial moment. Additionally, the velocity consistency metric evaluates only directional alignment while disregarding velocity magnitude consistency, leading to imprecise assessments. In contrast, the coordination metrics presented in this paper consider the state of the tracked UAV and velocity magnitude, ensuring evaluation results of coordination that better reflect actual conditions.

5.2. Formation Control for UAVs in Different Scenarios

To verify the effectiveness of the proposed method in different scenarios, Table 3 shows the coordinates of the four groups of obstacles.
The 3D and 2D formation trajectories of UAVs in different scenarios are demonstrated in Figure 8 and Figure 9, respectively. It can be seen that the UAVs successfully avoid obstacles in four scenarios, verifying the effectiveness of the proposed method.
The swarm’s cooperative capability evaluation results in different scenarios are shown in Figure 10. In different scenarios, velocity consistency, position matching, and communication equilibrium exhibit significant fluctuations during obstacle avoidance maneuvers, and then gradually approach 1 after the second obstacle avoidance maneuver. Additionally, since UAVs implement obstacle avoidance strategies upon detecting obstacles, safety remains consistently at 1 in different scenarios.

5.3. Cooperative Capability Evaluation Results Under Different Weighting Coefficients

Although the method proposed in Section 5.1 achieves obstacle avoidance when λ i , 1 = 100 , the empirically selected weight significantly decreases swarm coordination and communication equilibrium during obstacle avoidance. Therefore, based on the established evaluation metrics, we obtained a weight of λ i , 1 = 43 , which ensures swarm safety E 3 ( k ) = 1 while having a minor impact on the other evaluation metrics. Then, we compared it with several other weighting coefficients. The three groups of weighting coefficients are shown in Table 4.
The swarm’s cooperative capability evaluation results under different weighting coefficients are shown in Figure 11. Compared with Case 1, Case 2 ensures that the safety of UAVs remains at 1 throughout the flight. Additionally, compared with Case 3, Case 2 maintains safety at 1 while mitigating the excessive decline in velocity consistency, position matching, and communication equilibrium caused by excessively high obstacle avoidance weight. This validates the effectiveness of adjusting the obstacle avoidance weight based on evaluation metrics, ensuring a proper balance between safety and other cooperative capability metrics.

6. Conclusions

In this paper, we propose a formation control algorithm based on synchronized DMPC. The algorithm integrates formation error and obstacle avoidance into a distributed optimization framework, ensuring optimal control input for each UAV while satisfying multiple constraints. To comprehensively evaluate the cooperative capability of the swarm, we adopt coordination, communication equilibrium, and safety as key evaluation metrics, effectively reflecting the swarm’s cooperative capability. Finally, simulation results show the effectiveness of the designed method.

Author Contributions

Conceptualization, M.Y.; methodology, X.G., M.S., B.L., C.W. and K.-F.C.Y.; validation, M.Y. and X.G.; writing—review and editing, M.Y., X.G., M.S., B.L., C.W. and K.-F.C.Y. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the National Natural Science Foundation of China under Grant U24B20156.

Data Availability Statement

The data presented in this study are available on request from the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Luo, Q.; Luan, T.H.; Shi, W.; Fan, P. Edge Computing Enabled Energy-Efficient Multi-UAV Cooperative Target Search. IEEE Trans. Veh. Technol. 2023, 72, 7757–7771. [Google Scholar] [CrossRef]
  2. Dai, J.; Pu, W.; Yan, J.; Shi, Q.; Liu, H. Multi-UAV Collaborative Trajectory Optimization for Asynchronous 3-D Passive Multitarget Tracking. IEEE Trans. Geosci. Remote Sens. 2023, 61, 1–16. [Google Scholar] [CrossRef]
  3. Sun, L.; Wang, J.; Wang, J.; Lin, L.; Gen, M. Efficient Joint Deployment of Multi-UAVs for Target Tracking in Traffic Big Data. IEEE Trans. Intell. Transp. Syst. 2024, 25, 7780–7791. [Google Scholar] [CrossRef]
  4. Gu, J.; Su, T.; Wang, Q.; Du, X.; Guizani, M. Multiple Moving Targets Surveillance Based on a Cooperative Network for Multi-UAV. IEEE Commun. Mag. 2018, 56, 82–89. [Google Scholar] [CrossRef]
  5. Yu, Y.; Guo, J.; Ahn, C.K.; Xiang, Z. Neural Adaptive Distributed Formation Control of Nonlinear Multi-UAVs With Unmodeled Dynamics. IEEE Trans. Neural Netw. Learn. Syst. 2022, 34, 9555–9561. [Google Scholar] [CrossRef]
  6. Ding, C.; Zhang, Z.; Zhang, J. Dynamics Event-Triggered-Based Time-Varying Bearing Formation Control for UAVs. Drones 2024, 8, 185. [Google Scholar] [CrossRef]
  7. Zheng, R.; Lyu, Y. Nonlinear tight formation control of multiple UAVs based on model predictive control. Def. Technol. 2023, 25, 69–75. [Google Scholar] [CrossRef]
  8. Zhan, J.; Jiang, Z.P.; Wang, Y.; Li, X. Distributed Model Predictive Consensus With Self-Triggered Mechanism in General Linear Multiagent Systems. IEEE Trans. Ind. Inf. 2019, 15, 3987–3997. [Google Scholar] [CrossRef]
  9. Wang, J.; Li, S. Distributed Model Predictive Control for Consensus of Multi-Agent Systems With Connectivity Maintenance. IEEE Trans. Circuits Syst. I Regul. Pap. 2023, 71, 1299–1310. [Google Scholar] [CrossRef]
  10. Chen, Q.; Jin, Y.; Wang, T.; Wang, Y.; Yan, T.; Long, Y. UAV Formation Control Under Communication Constraints Based on Distributed Model Predictive Control. IEEE Access 2022, 10, 126494–126507. [Google Scholar] [CrossRef]
  11. Liu, S.S.; Ge, M.F.; Ding, T.F.; Liu, Z.W.; Dong, X.G.; Liang, C.D. Distributed Sensor-Tolerant MPC for Formation Tracking of Networked Multicopters With Input/State Constraints. IEEE Trans. Circuits Syst. II Express Briefs 2023, 70, 4429–4433. [Google Scholar] [CrossRef]
  12. Yuan, Q.; Li, X. Distributed Model Predictive Formation Control for a Group of UAVs With Spatial Kinematics and Unidirectional Data Transmissions. IEEE Trans. Netw. Sci. Eng. 2023, 10, 3209–3222. [Google Scholar] [CrossRef]
  13. Xu, T.; Liu, J.; Zhang, Z.; Chen, G.; Cui, D.; Li, H. Distributed MPC for Trajectory Tracking and Formation Control of Multi-UAVs With Leader-Follower Structure. IEEE Access 2023, 11, 128762–128773. [Google Scholar] [CrossRef]
  14. Cai, Z.; Wang, L.; Zhao, J.; Wu, K.; Wang, Y. Virtual target guidance-based distributed model predictive control for formation control of multiple UAVs. Chin. J. Aeronaut. 2020, 33, 1037–1056. [Google Scholar] [CrossRef]
  15. Zhang, B.; Sun, X.; Liu, S.; Deng, X. Adaptive differential evolution-based distributed model predictive control for multi-UAV formation flight. Int. J. Aeronaut. Space Sci. 2020, 21, 538–548. [Google Scholar] [CrossRef]
  16. Chen, G.; Zhao, C.; Gong, H.; Zhang, S.; Wang, X. Formation Transformation Based on Improved Genetic Algorithm and Distributed Model Predictive Control. Drones 2023, 7, 527. [Google Scholar] [CrossRef]
  17. He, Y.; Shi, X.; Lu, J.; Zhao, C.; Zhao, G. Grouping Formation and Obstacle Avoidance Control of UAV Swarm Based on Synchronous DMPC. Int. J. Aerosp. Eng. 2024, 2024, 4934194. [Google Scholar] [CrossRef]
  18. Du, Z.; Zhang, H.; Wang, Z.; Yan, H. Model Predictive Formation Tracking-Containment Control for Multi-UAVs With Obstacle Avoidance. IEEE Trans. Syst. Man Cybern. Syst. 2024, 54, 3404–3414. [Google Scholar] [CrossRef]
  19. Vásárhelyi, G.; Virágh, C.; Somorjai, G.; Nepusz, T.; Eiben, A.E.; Vicsek, T. Optimized flocking of autonomous drones in confined environments. Sci. Robot. 2018, 3, eaat3536. [Google Scholar] [CrossRef]
  20. Cofta, P.; Ledziński, D.; Śmigiel, S.; Gackowska, M. Cross-entropy as a metric for the robustness of drone swarms. Entropy 2020, 22, 597. [Google Scholar] [CrossRef]
  21. Bahaidarah, M.; Rekabi-Bana, F.; Marjanovic, O.; Arvin, F. Swarm flocking using optimisation for a self-organised collective motion. Swarm Evol. Comput. 2024, 86, 101491. [Google Scholar] [CrossRef]
  22. Zhang, X.; Wang, Y.; Ding, W.; Wang, Q.; Zhang, Z.; Jia, J. Bio-Inspired Fission–Fusion Control and Planning of Unmanned Aerial Vehicles Swarm Systems via Reinforcement Learning. Appl. Sci. 2024, 14, 1192. [Google Scholar] [CrossRef]
  23. Rodríguez, I.; Rubio, D.; Rubio, F. Complexity of adaptive testing in scenarios defined extensionally. Front. Comput. Sci. 2023, 17, 173206. [Google Scholar] [CrossRef]
Figure 1. Communication topology of UAVs.
Figure 1. Communication topology of UAVs.
Drones 09 00366 g001
Figure 2. Three-dimensional formation trajectories without and with obstacles: (a) Three-dimensional formation trajectories without obstacles. (b) Three-dimensional formation trajectories with obstacles.
Figure 2. Three-dimensional formation trajectories without and with obstacles: (a) Three-dimensional formation trajectories without obstacles. (b) Three-dimensional formation trajectories with obstacles.
Drones 09 00366 g002
Figure 3. Two-dimensional formation trajectories without and with obstacles: (a) Two-dimensional formation trajectories without obstacles. (b) Two-dimensional formation trajectories with obstacles.
Figure 3. Two-dimensional formation trajectories without and with obstacles: (a) Two-dimensional formation trajectories without obstacles. (b) Two-dimensional formation trajectories with obstacles.
Drones 09 00366 g003
Figure 4. The flight velocities without and with obstacles: (a) The flight velocities without obstacles. (b) The flight velocities with obstacles.
Figure 4. The flight velocities without and with obstacles: (a) The flight velocities without obstacles. (b) The flight velocities with obstacles.
Drones 09 00366 g004
Figure 5. Swarm’s cooperative capability evaluation results without and with obstacles: (a) Velocity consistency of swarm. (b) Position matching of swarm. (c) Communication equilibrium of swarm. (d) Safety of swarm.
Figure 5. Swarm’s cooperative capability evaluation results without and with obstacles: (a) Velocity consistency of swarm. (b) Position matching of swarm. (c) Communication equilibrium of swarm. (d) Safety of swarm.
Drones 09 00366 g005
Figure 6. Comparison results of the swarm coordination evaluation metrics without obstacles: (a) Velocity consistency of the swarm. (b) Position matching of the swarm.
Figure 6. Comparison results of the swarm coordination evaluation metrics without obstacles: (a) Velocity consistency of the swarm. (b) Position matching of the swarm.
Drones 09 00366 g006
Figure 7. Comparison results of the swarm coordination evaluation metrics with obstacles: (a) Velocity consistency of the swarm. (b) Position matching of the swarm.
Figure 7. Comparison results of the swarm coordination evaluation metrics with obstacles: (a) Velocity consistency of the swarm. (b) Position matching of the swarm.
Drones 09 00366 g007
Figure 8. Three-dimensional formation trajectories in different scenarios: (a) Three-dimensional formation trajectories in scenario 1. (b) Three-dimensional formation trajectories in scenario 2. (c) Three-dimensional formation trajectories in scenario 3. (d) Three-dimensional formation trajectories in scenario 4.
Figure 8. Three-dimensional formation trajectories in different scenarios: (a) Three-dimensional formation trajectories in scenario 1. (b) Three-dimensional formation trajectories in scenario 2. (c) Three-dimensional formation trajectories in scenario 3. (d) Three-dimensional formation trajectories in scenario 4.
Drones 09 00366 g008
Figure 9. Two-dimensional formation trajectories in different scenarios: (a) Two-dimensional formation trajectories in scenario 1. (b) Two-dimensional formation trajectories in scenario 2. (c) Two-dimensional formation trajectories in scenario 3. (d) Two-dimensional formation trajectories in scenario 4.
Figure 9. Two-dimensional formation trajectories in different scenarios: (a) Two-dimensional formation trajectories in scenario 1. (b) Two-dimensional formation trajectories in scenario 2. (c) Two-dimensional formation trajectories in scenario 3. (d) Two-dimensional formation trajectories in scenario 4.
Drones 09 00366 g009
Figure 10. Swarm’s cooperative capability evaluation results in different scenarios: (a) Velocity consistency of swarm. (b) Position matching of swarm. (c) Communication equilibrium of swarm. (d) Safety of swarm.
Figure 10. Swarm’s cooperative capability evaluation results in different scenarios: (a) Velocity consistency of swarm. (b) Position matching of swarm. (c) Communication equilibrium of swarm. (d) Safety of swarm.
Drones 09 00366 g010
Figure 11. Swarm’s cooperative capability evaluation results under different weighting coefficients: (a) Velocity consistency of swarm. (b) Position matching of swarm. (c) Communication equilibrium of swarm. (d) Safety of swarm.
Figure 11. Swarm’s cooperative capability evaluation results under different weighting coefficients: (a) Velocity consistency of swarm. (b) Position matching of swarm. (c) Communication equilibrium of swarm. (d) Safety of swarm.
Drones 09 00366 g011
Table 1. Initial state and desired relative state.
Table 1. Initial state and desired relative state.
IDInitial StateDesired Relative State
1 [ 6 , 5 , 1.8 , 2.5 , 0 , 0 ] T [ 8 , 5 , 0 , 0 , 0 , 0 ] T
2 [ 6 , 5 , 1.8 , 2.5 , 0 , 0 ] T [ 8 , 5 , 0 , 0 , 0 , 0 ] T
3 [ 2 , 10 , 1.8 , 2.5 , 0 , 0 ] T [ 12 , 10 , 0 , 0 , 0 , 0 ] T
4 [ 2 , 10 , 1.8 , 2.5 , 0 , 0 ] T [ 12 , 10 , 0 , 0 , 0 , 0 ] T
5 [ 2 , 15 , 1.8 , 2.5 , 0 , 0 ] T [ 16 , 15 , 0 , 0 , 0 , 0 ] T
6 [ 2 , 15 , 1.8 , 2.5 , 0 , 0 ] T [ 16 , 15 , 0 , 0 , 0 , 0 ] T
7 [ 6 , 20 , 1.8 , 2.5 , 0 , 0 ] T [ 20 , 20 , 0 , 0 , 0 , 0 ] T
8 [ 6 , 20 , 1.8 , 2.5 , 0 , 0 ] T [ 20 , 20 , 0 , 0 , 0 , 0 ] T
9 [ 10 , 25 , 1.8 , 2.5 , 0 , 0 ] T [ 24 , 25 , 0 , 0 , 0 , 0 ] T
10 [ 10 , 25 , 1.8 , 2.5 , 0 , 0 ] T [ 24 , 25 , 0 , 0 , 0 , 0 ] T
Table 2. Simulation parameters.
Table 2. Simulation parameters.
ParameterValue
Weighting coefficient λ i , 1 100
Prediction horizon N p 5
Sampling period Δ T (s) 0.2
Velocity range V min , V max (m/s) [ 1 , 4 ]
Height range Ξ min , Ξ max (m) [ 1.5 , 2.5 ]
Control input range U min , U max   ( m / s 2 ) [ 1.5 , 1.5 ]
Safety distances d c , saf (m) and d o , saf (m)1.2, 2.5
UAV detection range d i , det (m)4
Channel’s power gain ρ (dB)−20
Noise power σ i j 2 (dBm)−80
Communication bandwidth B i j (MHz)1
Transmitted power P (dBm)10
Table 3. The coordinates of obstacles in different scenarios.
Table 3. The coordinates of obstacles in different scenarios.
ScenarioCoordinate for Obstacle 1Coordinate for Obstacle 2
1 [ 25 , 11 ] T [ 55 , 6 ] T
2 [ 20 , 7 ] T [ 50 , 11 ] T
3 [ 25 , 13 ] T [ 55 , 23 ] T
4 [ 20 , 23 ] T [ 50 , 17 ] T
Table 4. The weighting coefficient in the cost function.
Table 4. The weighting coefficient in the cost function.
Case λ i , 1
142
243
3100
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.

Share and Cite

MDPI and ACS Style

Yang, M.; Guan, X.; Shi, M.; Li, B.; Wei, C.; Yiu, K.-F.C. Distributed Model Predictive Formation Control for UAVs and Cooperative Capability Evaluation of Swarm. Drones 2025, 9, 366. https://doi.org/10.3390/drones9050366

AMA Style

Yang M, Guan X, Shi M, Li B, Wei C, Yiu K-FC. Distributed Model Predictive Formation Control for UAVs and Cooperative Capability Evaluation of Swarm. Drones. 2025; 9(5):366. https://doi.org/10.3390/drones9050366

Chicago/Turabian Style

Yang, Ming, Xiaoyi Guan, Mingming Shi, Bin Li, Chen Wei, and Ka-Fai Cedric Yiu. 2025. "Distributed Model Predictive Formation Control for UAVs and Cooperative Capability Evaluation of Swarm" Drones 9, no. 5: 366. https://doi.org/10.3390/drones9050366

APA Style

Yang, M., Guan, X., Shi, M., Li, B., Wei, C., & Yiu, K.-F. C. (2025). Distributed Model Predictive Formation Control for UAVs and Cooperative Capability Evaluation of Swarm. Drones, 9(5), 366. https://doi.org/10.3390/drones9050366

Article Metrics

Back to TopTop