A Nonlinear Model Predictive Control Method for Trajectory Planning of UAV Swarms
Highlights
- A distributed NMPC-based trajectory planning framework was developed for UAV swarms to jointly address terminal target reaching, formation maintenance, obstacle avoidance, and inter-UAV collision avoidance.
- Control parameterization and exact-penalty-based constraint transcription were integrated to reduce online optimization complexity while generating dynamically feasible and collision-free trajectories.
- The proposed framework improves the tractability of cooperative UAV swarm trajectory planning under coupled formation and safety constraints.
- The results indicate that distributed NMPC is suitable for online cooperative planning of UAV swarms in obstacle-rich environments.
Abstract
1. Introduction
- Unlike the existing DMPC-based UAV trajectory planning methods in [16,18,20,21,22,23,24,25,26], the proposed distributed NMPC framework incorporates terminal target-reaching, prescribed formation maintenance, obstacle avoidance, and minimum inter-UAV safety separation into a unified trajectory planning formulation.
- Different from the existing methods in [15,16,17,18,19,20,21,22,23,24,25,26], where the optimization dimension is directly related to the prediction horizon length N, a control parameterization strategy based on M control segments is developed in this paper, thereby reducing the online optimization complexity.
- An exact-penalty-based constraint transcription method is further developed to transform the original constrained optimization problem into a lower-complexity optimization problem, which significantly improves the online computational efficiency and real-time performance of the proposed distributed NMPC framework.
2. Problem Formulation
2.1. Quadrotor UAV Dynamics and Control Architecture
2.2. Problem Statement
2.2.1. Constraints
2.2.2. Objective Function
2.2.3. Optimal Control Problem
3. Proposed NMPC Algorithm
3.1. Constraints Handling Based on Exact Penalty Function
3.2. Transformed Optimization Problem
| Algorithm 1 Distributed NMPC-Based Trajectory Planning Algorithm |
Require:
|
4. Experiments and Discussion
4.1. Simulation Experiments
4.2. Flight Experiments
5. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- 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] [Scilit] [PubMed]
- Zhou, X.; Wen, X.; Wang, Z.; Gao, Y.; Li, H.; Wang, Q.; Yang, T.; Lu, H.; Cao, Y.; Xu, C.; et al. Swarm of micro flying robots in the wild. Sci. Robot. 2022, 7, eabm5954. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Ren, Y.; Zhu, F.; Lu, G.; Cai, Y.; Yin, L.; Kong, F.; Lin, J.; Chen, N.; Zhang, F. Safety-assured high-speed navigation for MAVs. Sci. Robot. 2025, 10, eado6187. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Javed, S.; Hassan, A.; Ahmad, R.; Ahmed, W.; Ahmed, R.; Saadat, A.; Guizani, M. State-of-the-Art and Future Research Challenges in UAV Swarms. IEEE Internet Things J. 2024, 11, 19023–19045. [Google Scholar] [CrossRef] [Scilit]
- Xiao, R.; Wang, S.; Xie, Y.; Zhang, Y.; Xie, S.Q. Safety-Aware UAV Formation Scheme for Guiding UGVs Through Obstacle-Laden Environments. IEEE Robot. Autom. Lett. 2025, 10, 6999–7006. [Google Scholar] [CrossRef] [Scilit]
- Cheng, Z.; Yang, J.; Sun, J.; Zhao, L. Trajectory Planning of Unmanned Aerial Vehicles in Complex Environments Based on Intelligent Algorithm. Drones 2025, 9, 468. [Google Scholar] [CrossRef] [Scilit]
- Fan, X.; Li, H.; Chen, Y.; Dong, D. UAV Swarm Search Path Planning Method Based on Probability of Containment. Drones 2024, 8, 132. [Google Scholar] [CrossRef] [Scilit]
- Yuan, W.; Chen, S.; He, H.; Hou, Y.; Chen, S.; Tan, X.; Yang, J. Hierarchical Reinforcement Learning-Based Joint Trajectory Planning and Resource Allocation in UAV-Assisted IoT-Sensor Networks. IEEE Trans. Commun. 2025, 73, 14517–14533. [Google Scholar] [CrossRef] [Scilit]
- Khargharia, H.S.; Ouali, A.; Shakya, S.; Ahmad, S. Collision Avoidance in UAV Swarms: A Learning-Centric Perspective on Collaborative Intelligence. Neurocomputing 2026, 663, 132020. [Google Scholar] [CrossRef] [Scilit]
- Sun, H.; Chen, H.; Ni, Z.; Fan, X.; Li, G.; Xia, F. Computing While Navigating: A Novel Task Offloading and Trajectory Planning Scheme for UAV-Assisted MEC System. IEEE Trans. Veh. Technol. 2026, 75, 3149–3159. [Google Scholar] [CrossRef] [Scilit]
- Huang, S.; Zhang, H.; Huang, Z. E2CoPre: Energy Efficient and Cooperative Collision Avoidance for UAV Swarms with Trajectory Prediction. IEEE Trans. Intell. Transp. Syst. 2024, 25, 6951–6963. [Google Scholar] [CrossRef] [Scilit]
- Huang, T.; Pan, H.; Sun, W.; Gao, H. Sine Resistance Network-Based Motion Planning Approach for Autonomous Electric Vehicles in Dynamic Environments. IEEE Trans. Transp. Electrif. 2022, 8, 2862–2873. [Google Scholar] [CrossRef] [Scilit]
- Huang, T.; Wang, J.; Pan, H. Approximation-Free Prespecified Time Bionic Reliable Control for Vehicle Suspension. IEEE Trans. Autom. Sci. Eng. 2024, 21, 5333–5343. [Google Scholar] [CrossRef] [Scilit]
- Huang, T.; Wang, J.; Pan, H.; Sun, W. Finite-Time Fault-Tolerant Integrated Motion Control for Autonomous Vehicles with Prescribed Performance. IEEE Trans. Transp. Electrif. 2023, 9, 4255–4265. [Google Scholar] [CrossRef] [Scilit]
- 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] [Scilit]
- Yu, Y.; Wang, H.; Liu, S.; Guo, L.; Yeoh, P.L.; Vucetic, B.; Li, Y. Distributed Multi-Agent Target Tracking: A Nash-Combined Adaptive Differential Evolution Method for UAV Systems. IEEE Trans. Veh. Technol. 2021, 70, 8122–8133. [Google Scholar] [CrossRef] [Scilit]
- Song, C.; Zhang, X.; She, Y.; Li, B.; Zhang, Q. Trajectory Planning for UAV Swarm Tracking Moving Target Based on an Improved Model Predictive Control Fusion Algorithm. IEEE Internet Things J. 2025, 12, 19354–19369. [Google Scholar] [CrossRef] [Scilit]
- Tang, J.; Wan, Y.; Lao, S.; Zhao, Z. A Distributed Autonomous System for Multi-UAVs with Limited Visualization: Employing Dual-Horizon NMPC Controller. IEEE Trans. Aerosp. Electron. Syst. 2024, 60, 6910–6924. [Google Scholar] [CrossRef] [Scilit]
- Pan, H.; Zahmatkesh, M.; Rekabi-Bana, F.; Arvin, F.; Hu, J. T-STAR: Time-Optimal Swarm Trajectory Planning for Quadrotor Unmanned Aerial Vehicles. IEEE Trans. Intell. Transp. Syst. 2025, 26, 12532–12547. [Google Scholar] [CrossRef] [Scilit]
- Zhao, J.; Sun, J.; Cai, Z.; Wang, Y.; Wu, K. Distributed coordinated control scheme of UAV swarm based on heterogeneous roles. Chin. J. Aeronaut. 2022, 35, 81–97. [Google Scholar] [CrossRef] [Scilit]
- Huang, D.; Li, H.; Li, X. Formation of Generic UAVs-USVs System Under Distributed Model Predictive Control Scheme. IEEE Trans. Circuits Syst. II Express Briefs 2020, 67, 3123–3127. [Google Scholar] [CrossRef] [Scilit]
- Luis, C.E.; Schoellig, A.P. Trajectory Generation for Multiagent Point-To-Point Transitions via Distributed Model Predictive Control. IEEE Robot. Autom. Lett. 2019, 4, 375–382. [Google Scholar] [CrossRef] [Scilit]
- Yu, C.; Chen, K.; Chen, C.L.P.; Liu, Z.; Wang, J. Adaptive Boundary Prescribed-Performance MPC for 3D UAV Formation with Obstacle/Collision Avoidance. Syst. Control Lett. 2026, 208, 106327. [Google Scholar] [CrossRef] [Scilit]
- Song, C.; Xi, G.; Li, H.; Li, J.; Li, B. Trajectory Planning for Multi-UAV Collaborative Target Tracking Based on Policy Search Optimized DMPC. Aerosp. Sci. Technol. 2026, 175, 111959. [Google Scholar] [CrossRef] [Scilit]
- Zhan, J.; Niu, C.; Liu, W.; Wang, S.; Wan, X.; Wang, Y. Multi-UAV Cooperative Search for Moving Targets With Impaired Communication Using Improved Gray Wolf Optimizer. Int. J. Aerosp. Eng. 2024, 2024, 5876393. [Google Scholar] [CrossRef] [Scilit]
- Qian, W.; Yi, W.; Yuan, S.; Guan, J. Control-Oriented Real-Time Trajectory Planning for Heterogeneous UAV Formations. Drones 2025, 9, 78. [Google Scholar] [CrossRef] [Scilit]
- Bomze, I.M.; Demyanov, V.F.; Fletcher, R.; Terlaky, T. Nonlinear Optimization: Lectures Given at the CIME Summer School Held in Cetraro, Italy, 1–7 July 2007; Springer: Berlin/Heidelberg, Germany, 2010. [Google Scholar]
- Liu, G.; Li, B.; Duan, G. An optimal FASA approach for UAV Trajectory Tracking Control. Guid. Navig. Control 2023, 3, 78. [Google Scholar] [CrossRef] [Scilit]
- Teo, K.; Li, B.; Yu, C.; Rehbock, V. Applied and Computational Optimal Control: A Control Parametrization Approach; Springer: Berlin/Heidelberg, Germany, 2021. [Google Scholar]
- Li, B.; Yu, C.J.; Teo, K.L.; Duan, G.R. An Exact Penalty Function Method for Continuous Inequality Constrained Optimal Control Problem. J. Optim. Theory Appl. 2011, 151, 260–291. [Google Scholar] [CrossRef] [Scilit]
- Ze, K.; Wang, W.; Liu, K.; Lü, J. Time-Varying Formation Planning and Distributed Control for Multiple UAVs in Clutter Environment. IEEE Trans. Ind. Electron. 2024, 71, 11305–11315. [Google Scholar] [CrossRef] [Scilit]
- Dai, L.; Cao, Q.; Xia, Y.; Gao, Y. Distributed MPC for Formation of Multi-Agent Systems with Collision Avoidance and Obstacle Avoidance. J. Frankl. Inst. 2017, 354, 2068–2085. [Google Scholar] [CrossRef] [Scilit]
- Guo, Y.; Zhou, J.; Liu, Y. Distributed Lyapunov-Based Model Predictive Control for Collision Avoidance of Multi-Agent Formation. IET Control Theory Appl. 2018, 12, 2569–2577. [Google Scholar] [CrossRef] [Scilit]
- Andersson, J.; Akesson, J.; Diehl, M. CasADi: A Symbolic Package for Automatic Differentiation and Optimal Control. In International Conference on Automatic Differentiation; Springer: Berlin/Heidelberg, Germany, 2012. [Google Scholar]
- Dolgov, D.; Thrun, S.; Montemerlo, M.; Diebel, J. Path Planning for Autonomous Vehicles in Unknown Semi-structured Environments. Int. J. Robot. Res. 2010, 29, 485–501. [Google Scholar] [CrossRef] [Scilit]
- Wei, H.; Liu, C.; Shi, Y. A Robust Distributed MPC Framework for Multiagent Consensus with Communication Delays. IEEE Trans. Autom. Control 2024, 69, 7418–7432. [Google Scholar] [CrossRef] [Scilit]


















| Collision Constraint | Obstacle Constraint | Optimization Complexity | |
|---|---|---|---|
| [15,17,18,19,23,24] | ✔ | ✔ | |
| [16,20,22] | ✔ | × | |
| [21] | × | × | |
| [25,26] | × | ✔ | |
| This work | ✔ | ✔ |
| Average Trajectory Cost | Average Computation Time (s) | Computational Complexity | |
|---|---|---|---|
| Proposed DNMPC | 1.5411 | 0.0441 | |
| Proposed CNMPC | 1.4926 | 0.3761 | |
| NMPC [22] | 1.2198 | 0.4470 |
| Average Computation Time (ms) | Maximum Computation Time (ms) | |
|---|---|---|
| UAV 1 | 15.248 | 39.117 |
| UAV 2 | 13.858 | 39.035 |
| UAV 3 | 13.620 | 38.989 |
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. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Cui, Y.; Zeng, T.; Li, B. A Nonlinear Model Predictive Control Method for Trajectory Planning of UAV Swarms. Drones 2026, 10, 647. https://doi.org/10.3390/drones10090647
Cui Y, Zeng T, Li B. A Nonlinear Model Predictive Control Method for Trajectory Planning of UAV Swarms. Drones. 2026; 10(9):647. https://doi.org/10.3390/drones10090647
Chicago/Turabian StyleCui, Yi, Tongxin Zeng, and Bin Li. 2026. "A Nonlinear Model Predictive Control Method for Trajectory Planning of UAV Swarms" Drones 10, no. 9: 647. https://doi.org/10.3390/drones10090647
APA StyleCui, Y., Zeng, T., & Li, B. (2026). A Nonlinear Model Predictive Control Method for Trajectory Planning of UAV Swarms. Drones, 10(9), 647. https://doi.org/10.3390/drones10090647
