Abstract
Recent research in unmanned system autonomy has focused on multi-robot systems, such as vehicles or unmanned aerial vehicles (UAVs), performing missions autonomously without mutual collisions in dynamic environments. In multi-agent operational settings, conventional centralized path planning methods face limitations in system scalability, as computational complexity increases sharply with the number of agents. Therefore, this research proposes a collision-aware adaptive horizon model predictive control (MPC) algorithm based on distributed model predictive control, which is advantageous for scalability. For computational efficiency, the proposed algorithm dynamically adjusts the length of the prediction horizon based on whether a collision is predicted on the planned path, and integrates a control barrier function (CBF) as a constraint to ensure safety even when the prediction horizon is shortened. The entire optimization problem is formulated as a computationally efficient quadratic programming; however, the linearized constraints used in this formulation can lead to deadlock. To address this issue, this work applies a detour strategy to increase the success rate of path planning. The performance of the proposed algorithm was validated in a three-dimensional simulation of a path-crossing scenario with a multi-agent system of UAVs. Specifically, an ablation study analyzing the computational efficiency of the adaptive horizon and the safety enhancement from the CBF demonstrated that the proposed method enables agents to reach their target destinations efficiently and safely, reducing the average computation time by 35% and increasing the mission success rate by 13%.
Introduction
Path planning for obstacle avoidance in constrained environments is an essential element for the safe operation of unmanned systems. A variety of studies have been conducted, ranging from a single-agent avoiding static obstacles to multi-agent systems coping with dynamic situations.1,2 Path planning for multi-agent systems can be categorized into centralized planning, where a single problem is formulated to plan all paths, and distributed planning, where each agent plans its path independently. Early research favored centralized path planning due to computational limitations and the need to ensure the safe navigation of a small number of agents.3,4 In recent research, however, distributed approaches with enhanced scalability are being actively studied to apply a large number of agents to diverse missions. 5
Techniques such as a potential field method and geometric guidance have been used for path planning in unmanned systems, and more recently, learning-based methods have also been researched. First, a potential field method 6 defines a potential field function with a negative gradient toward the target and a positive gradient away from obstacles, and generates a path that decreases this energy function. The potential field method is easy to implement and can intuitively avoid obstacles; however, it is known to have the disadvantage of easily getting trapped in local minima when used alone. To improve upon this, Sun et al. 7 enhanced the conventional artificial potential field to resolve the issue of getting trapped in local minima. However, their work did not include simulations for complex scenarios with potential inter-agent collisions, and it has limitations in generating efficient paths, as agents may stop to avoid collisions. Second, geometric guidance refers to a class of techniques that reactively avoid collisions based on the agent’s current kinematic state, using a collision-predicting geometry. Geometric guidance 8 includes methods such as the velocity obstacle and collision cone, which enable reactive collision avoidance by forming geometries based on the obstacle’s velocity and the relative velocity between agents. Jenie et al. 9 devised the selective velocity obstacle method, an improvement on the conventional velocity obstacle, and successfully performed collision avoidance by following a right-of-way rule. However, reactive techniques generate avoidance paths based on the current kinematic state, without considering their own or other agents’ predicted trajectories. This approach fails to guarantee path optimality and is susceptible to local minima. Therefore, enabling safe and efficient navigation for large-scale multi-agent systems requires a more systematic avoidance strategy wherein agents exchange their planned trajectories.
With recent advancements in artificial intelligence-based technologies, research on learning-based collision avoidance is also being actively conducted. In learning-based collision avoidance methods, an agent collects data by interacting with the surrounding environment and other agents in simulation, ultimately generating a policy that optimizes a reward function. Long et al. 10 trained a policy that enables a neural network to select appropriate collision avoidance velocities, based on how optimal reciprocal collision avoidance responds to the environment. Meanwhile, inspired by how humans store limited past experiences and recall the most relevant information for the current situation, Singla et al. 11 trained a unmanned aerial vehicle (UAV) using a temporal attention mechanism to emphasize data from past observations that are critical for decision-making. However, learning-based algorithms require extensive training time, and securing sufficient training data presents a challenge. Insufficient training limits the ability to handle unforeseen dynamic situations. Therefore, approaches that use an explicit system model to generate analyzable and stable trajectories are still being studied as an important alternative.
Model predictive control (MPC) is a technique that performs optimization over a finite time window, known as horizon, using system constraints and a user-defined cost function. In the past, its application was limited to systems with slow dynamics due to high-computational complexity. However, with advancements in computing power, it is now actively being applied to various unmanned systems. For instance, several studies have applied centralized MPC to collision avoidance for networked vehicles.12,13 In a centralized MPC framework for path planning, the states of all agents must be considered simultaneously, leading to an exponential increase in computation time as the number of agents grows. In contrast, a distributed MPC approach is more advantageous for scalability. Because each agent plans its path independently, the problem is formulated using only its own state, thereby reducing the overall computational complexity. A comparative study between distributed and centralized MPC has demonstrated that the distributed approach offers enhanced scalability. 14
To address the high-computational complexity of MPC, some studies have tackled the problem by linearizing the collision avoidance constraints. 3 Additionally, to achieve faster computation, other research has attempted to approximate trajectories using various polynomials, without explicitly considering dynamics or kinematics constraints. 15 However, the linearization of constraints shrinks the feasible space for planning, and trajectories approximated by polynomials can be difficult for an agent to actually follow due to actuator limits. Furthermore, existing studies that either linearly approximate collision avoidance constraints or represent trajectories as polynomials share a common limitation: they do not directly address the length of the prediction horizon, which is the key factor determining the scale of the optimization problem.
Conventional MPC calculates an optimal control command that satisfies given constraints over a fixed horizon, irrespective of collision risk. While rapid computation is required for on-line local path planning, conventional fixed-horizon methods are computationally inefficient, as they must compute over the entire horizon even in safe regions where no collisions are anticipated. To reduce unnecessary computational costs, Ma et al. 16 proposed an event-triggered approach where the time interval for solving the optimization problem is increased based on the optimal path and current state error, thereby reducing the problem size and computational burden. Additionally, Zhang et al. 17 reduced the computational burden for an omnidirectional mobile robot tracking a reference trajectory by adaptively adjusting the prediction horizon according to its current velocity and path curvature. However, the criteria for adjusting the prediction horizon in the studies16,17 are based on system state tracking error and single-robot kinematic metrics, respectively. Thus, they do not incorporate potential collision risks from a multi-agent environment into the horizon length adjustment. Persson and Wahlberg 18 also solved the problem of landing a helicopter on a moving deck by incorporating the horizon length into the cost function. However, the method proposed by Persson and Wahlberg 18 increases the problem’s complexity by including the horizon length as an optimization variable, which limits its on-line applicability. Although other attempts have been made to mitigate the computational burden in multi-agent collision avoidance, research focused on maximizing computational efficiency by adaptively adjusting the prediction horizon based on predicted collision information has not yet been reported. Therefore, this article proposes a collision-aware adaptive horizon MPC (CA-AH-MPC) framework to enhance both safety and computational efficiency. The proposed algorithm organically integrates two key strategies. First, the algorithm improves computational efficiency by dynamically adjusting the length of the prediction horizon in response to an anticipated collision. Second, it addresses the potential safety degradation caused by a reduced prediction horizon, a control barrier function (CBF), which guarantees safety through set invariance, is incorporated as a constraint.
Analogous to how control Lyapunov function theory ensures stability via asymptotic stability, CBF theory guarantees safety by ensuring the set invariance of a predefined safe set. A CBF guarantees the set invariance of a safe set
This study proposes the CA-AH-MPC algorithm to achieve efficient on-line path planning and safe collision avoidance in multi-agent operations. The proposed algorithm addresses the limitations of conventional approaches by integrating several key features. First, the length of the prediction horizon is dynamically adjusted based on collision detection on the predicted path. This enhances computational efficiency by reducing the horizon when no collision is detected while extending it to ensure safe maneuvers when a collision is predicted. To mitigate the potential safety degradation from a shortened horizon, a CBF-based safety constraint is incorporated. This guarantees a safe path margin at all times, regardless of the horizon’s length. Finally, the algorithm employs a detour strategy, which modifies the initial path guess to resolve deadlocks that can occur when formulating the quadratic programming (QP) problem with linearized constraints.
The remainder of this article is organized as follows. Section “Problem statement” defines the basic MPC problem for path planning. Section “CA-AH-MPC algorithm” explains the process of formulating the MPC problem defined in Section “Problem statement” into a QP form suitable for on-line optimization, and describes how the CBF constraint is integrated. It then details the mechanism for adjusting the prediction horizon and the detour strategy for deadlock prevention. Finally, Section “Numerical simulation” discusses the impact of the CA-AH-MPC algorithm on computational efficiency and path safety based on simulation results. Section “Conclusions and future works” concludes the article.
Problem statement
This section presents the problem definition for distributed multi-agent system path planning and outlines the assumptions made in this work. The mission is for a team of
Each agent generates a trajectory that satisfies the following dynamics:
To formulate the optimal path planning problem as an optimization problem, the continuous-time dynamics of the agent
The objective function

Goal point projection to ensure path feasibility. If the actual goal
All agents must operate within a predefined 3D space. This is expressed as a position constraint for each axis as follows:
CA-AH-MPC algorithm
The constraint equations for velocity (15), acceleration (16), and collision avoidance (19), as defined in the Section “Problem statement,” are either non-linear or non-convex. Even if the non-convex constraints are relaxed, the optimization problem becomes a quadratically constrained quadratic program, which is too computationally complex for on-line path planning. Therefore, to transform the problem into a computationally efficient QP problem, this study linearly approximates the constraints as follows. Typically, the linearization of the non-linear
However, while using axis-wise velocity constraints is computationally efficient, it has an inherent limitation: the coordinate system of the constraints is fixed to the global frame. As illustrated in Figure 2, an axis-wise velocity constraint that is not aligned with the direction vector to the destination,

Comparison of different velocity constraint formulations. The black dashed circle represents the original non-linear
The collision avoidance constraint (19), based on the Euclidean distance between agents, is non-convex and cannot be directly applied in a QP problem. To address this, the time instances at which path planning is executed are defined as discrete planning steps
A CBF is a control technique that prevents a system from leaving a predefined safe set
As shown in the flowchart in Figure 3, the proposed CA-AH-MPC algorithm operates in the following steps. The algorithm begins with an Initialization step, where each agent generates an initial trajectory toward its destination without considering collision avoidance constraints. At each planning step

Flowchart of the CA-AH-MPC’s planning and conflict resolution logic. The algorithm first adapts the prediction horizon based on the outcome of a Collision Check to balance safety and efficiency. If the resulting optimization problem is infeasible, a Detour is attempted. If the problem remains infeasible even after the Detour, Emergency Stop is executed to guarantee safety. CA-AH-MPC: collision-aware adaptive horizon model predictive control.
Detour aims to solve the problem of solution space reduction caused by linearized constraints. This is accomplished by modifying the initial trajectory guess for the collision avoidance constraints. Figure 4 illustrates a head-on scenario where agent

Deadlock caused by a linearized constraint in a head-on approach. The linearized collision avoidance constraint (red line) forms perpendicular to the path exploration direction, which hinders the optimizer from exploring lateral maneuvers and results in a deadlock.
The detour strategy proposed in this study is implemented by modifying the trajectory based on the right-of-way rule, which is widely used for collision avoidance maneuvers in fixed-wing aircraft. According to this strategy, each agent generates a new trajectory by turning at a predefined angle
After the optimization with the new initial path from the detour strategy, the algorithm performs another Feasibility Check to determine if a solution exists. If a feasible solution is still not found during this second verification step, the Emergency Stop phase is initiated to prevent a collision. The emergency stop is a fail-safe maneuver aimed at rapidly dissipating the agent’s momentum to bring it to a hovering state. To this end, a desired acceleration
At each synchronized planning period
Numerical simulation
This section describes the simulation results conducted to verify the performance of the proposed CA-AH-MPC algorithm. The simulations were performed using UAVs, a representative 3D multi-agent system, in a crossing scenario designed to increase the frequency and complexity of inter-agent interactions. The effects of the algorithm’s core components were analyzed and quantitatively evaluated: the CBF, the adaptive prediction horizon, and the detour strategy for deadlock avoidance. The simulations were conducted in the MATLAB 2023a environment. From the Sections “Analysis of conflict resolution in an example scenario” to “Performance analysis of the detour strategy,” the fundamental performance of the algorithm was assessed without considering time delays, using the quadprog solver in MATLAB for its numerical accuracy. In contrast, the Section “Performance evaluation against communication delay” presents simulation results that take trajectory computation time and communication delays into consideration in order to emulate imperfect information-sharing scenarios. To account for practical computational overhead and ensure real-time feasibility, the OSQP 24 solver was employed in this analysis. All computations were executed on a PC equipped with a 24-core Intel i9 CPU and 32 GB of RAM.
All agents are homogeneous, with the parameters set as
Analysis of conflict resolution in an example scenario
In this section, the effects of the dynamic adjustment of the prediction horizon and the CBF, which are core elements of CA-AH-MPC, were analyzed through an example scenario. Six agents are placed at equal intervals on the circumference of a circle with a radius of 15 m, and each navigates toward its diametrically opposite target point at the same altitude. First, with
Figure 5 illustrates the flight path of each UAV generated through the simulation, while Figure 6 shows the maximum and minimum envelopes of the distance between all UAV pairs over time. As confirmed in Figure 6, all UAVs navigate safely while adhering to the minimum safe separation distance (

Flight paths of the six agents generated by the CA-AH-MPC algorithm in the example scenario. CA-AH-MPC: collision-aware adaptive horizon model predictive control.

Variation of the minimum and maximum distances between all agent pairs over time in the simulation from Figure 1 (the dashed line indicates the minimum safe separation distance

Comparison of the prediction horizon length variation for each agent in the simulation from Figure 5 (blue solid line) and the fixed horizon length of FH-MPC (red dashed line). FH-MPC: fixed-horizon model predictive control.
The proposed CA-AH-MPC algorithm is designed to enhance the two objectives of computational efficiency and path safety. From the results in Table 1, it can be observed that dynamically adjusting the prediction horizon reduces computation time compared to the fixed-horizon approach (
Performance comparison between CA-AH-MPC and FH-MPC.
CA-AH-MPC: collision-aware adaptive horizon model predictive control; FH-MPC: fixed-horizon model predictive control.
Computation time: CPU time per agent, FH-MPC: fixed prediction horizon length (
Ablation study in a high-density crossing environment
In this section, an ablation study is conducted to evaluate the performance of the proposed CA-AH-MPC algorithm and its core components: the CBF and the detour strategy. The simulation environment consists of a Success rate (%): The percentage of agents that reach their destination within a limited time (15 s) while maintaining the minimum separation distance. Average flight time (s): The average flight time of agents that successfully reached their destination. Flight length ratio: The ratio of the actual distance traveled by an agent to the straight-line distance between its initial position and destination. A value greater than 1 indicates a more significant detour. This is also recorded only for agents that successfully reach their target. Computation time (s): The recorded CPU time for each agent to travel to its destination. Average minimum distance (m): The average minimum distance of agents
Analysis of the adaptive horizon’s computational efficiency
In this section, to verify the effectiveness of the adaptive prediction horizon, which is central to the proposed CA-AH-MPC, its performance was compared and analyzed against a FH-MPC model using a fixed prediction horizon (

Performance comparison between FH-MPC and CA-AH-MPC showing the average computation time and mission success rate versus the number of agents (15–25). Results are averaged over 100 simulation runs per condition. FH-MPC: fixed-horizon model predictive control; CA-AH-MPC: collision-aware adaptive horizon model predictive control.
Analysis of safety enhancement from the CBF
In this section, simulations are performed to examine the relationship between the safety margin and path efficiency according to the key CBF parameter,

Performance comparison of CA-AH-MPC with varying
Performance analysis of the detour strategy
In this section, to analyze the performance of the detour strategy, simulations were performed for 50 runs under each condition in the same scenario with

Performance comparison of CA-AH-MPC with and without the detour strategy. The mission success rate and average computation time are shown versus the number of agents (30–60). Results are averaged over 50 simulation runs per condition. CA-AH-MPC: collision-aware adaptive horizon model predictive control.
To analyze the reason for the higher success rate, mission failure cases were investigated and categorized as either collisions or deadlocks. Figure 11 shows the number of failures based on their cause. Without the detour strategy, failures due to deadlocks occur frequently as the number of agents increases. In contrast, when the detour strategy is applied, failures caused by deadlocks are reduced. This indicates that the detour strategy effectively helps agents escape from the local minima created by the linearized constraints. Furthermore, it was observed that by proactively resolving deadlocks, the strategy also has the secondary effect of partially reducing the incidence of collisions.

Failure cause analysis for the simulation in Figure 10. Comparison of failure frequencies due to collisions and deadlocks versus the number of agents.
Performance evaluation against communication delay
In this section, the robustness of the proposed algorithm against communication delays was evaluated. With the number of agents fixed at 30, the mission success rate and minimum separation distance were analyzed by varying
As illustrated in Figure 12, both the success rate and minimum separation distance decreased in the region where

Performance evaluation of CA-AH-MPC against varying communication delays (
Conclusions and future works
This article proposed a distributed path planning algorithm, the CA-AH-MPC, for the cooperative mission execution of multi-agent systems, considering both computational efficiency and safety. The proposed algorithm ensures computational efficiency by dynamically adjusting the prediction horizon based on whether a collision is predicted, while simultaneously guaranteeing safety by integrating a CBF as a constraint, even when the prediction horizon is shortened. Furthermore, the deadlock issue caused by linearized constraints in the QP formulation was addressed with a detour strategy. Through numerical simulations, including an ablation study, it was demonstrated that the proposed algorithm reduces computation time compared to a fixed-horizon approach while also increasing the mission success rate and safety margin through the use of the CBF and the detour strategy. While this study focuses on the algorithmic and conceptual verification of the CA-AH-MPC framework, practical validation using high-fidelity simulators to assess the algorithm’s performance under realistic communication constraints is planned for our future investigation.
Footnotes
Ethical considerations
This article does not contain any studies with human or animal participants.
Funding
The authors disclosed receipt of the following financial support for the research, authorship and/or publication of this article: This research was supported by the GRRC Program of Gyeonggi province [GRRC-KAU-2023-B01, Fusion Technology Research Center for Advanced Air Mobility].
Declaration of conflicting interests
The authors declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Data availability
The datasets generated during and/or analyzed during the current study are available from the corresponding author on request.
