Multi-Agent Path Finding with Deadlines: Preliminary Results

Hang Ma, Glenn Wagner, Ariel Felner, Jiaoyang Li, T. K. Satish Kumar, Sven Koenig

Abstract

Multi-Agent Path Finding (MAPF) typically focuses on minimizing arrival times for all agents. However, many real-world scenarios involve strict deadlines where the primary goal is to maximize the number of agents that reach their destinations on time. This paper introduces the Multi-Agent Path Finding with Deadlines (MAPF-DL) problem, proves its NP-hardness, and proposes an optimal solver based on an Integer Linear Programming (ILP) formulation of a multi-commodity flow network. To enhance scalability, a graph pruning technique is introduced. Preliminary results demonstrate the effectiveness of this approach in low-to-medium density environments.

Introduction

Multi-Agent Path Finding (MAPF) is a fundamental problem in robotics and AI, with applications ranging from automated warehouses to air traffic control. Standard MAPF formulations aim to find collision-free paths for all agents while minimizing a global objective like makespan or sum-of-costs.

In many time-critical applications, such as emergency response or logistics with strict delivery windows, the priority shifts. If an agent cannot reach its goal by a specific deadline, its arrival may be worthless. We formalize this as Multi-Agent Path Finding with Deadlines (MAPF-DL). In this variant, the objective is to maximize the number of agents that reach their designated goals within a hard time limit $T_{end}$. Agents that cannot meet the deadline are considered unsuccessful and, in this preliminary model, are removed from the environment at $t=0$ to avoid obstructing others.

Methodology

The authors prove that MAPF-DL is NP-hard through a reduction from the $(\le 3, = 3)$-SAT problem. To address this complexity, they propose an optimal solver that leverages network flow theory.

Multi-Commodity Flow Reduction

The core of the proposed solution is transforming the MAPF-DL instance into a time-expanded flow network. In this network, nodes represent specific locations at specific time steps. To ensure a valid MAPF solution, the network must account for two types of collisions:

  1. Vertex Collisions: Two agents occupying the same location at the same time.
  2. Edge Collisions: Two agents swapping positions across an edge in a single time step.

The authors use specialized "gadgets" within the flow network to enforce these constraints. For instance, to prevent vertex collisions, a single vertex in the physical graph is split into "in" and "out" nodes in the time-expanded graph, connected by an edge with a capacity of one.

Figure 1: (a) A simple MAPF instance with agents at $v_1, v_2$ and goals at $v_5, v_4$. (b) A flow network gadget designed to prevent collisions between agents $u$ and $v$.

Integer Linear Programming (ILP)

The problem is then framed as a maximum flow problem where each agent is treated as a distinct commodity. The objective function maximizes the total integral flow reaching the goal vertices by time $T_{end}$. This formulation is solved using the CPLEX ILP solver, which provides an optimal solution for the given constraints.

Optimization: Reduced Abstracted Flow Network

A significant challenge with time-expanded graphs is their size, which grows linearly with the deadline $T_{end}$ and the number of vertices in the physical graph. To make the ILP tractable, the authors implement a pruning strategy called the Reduced Abstracted Flow Network.

The pruning involves two steps:

  1. Forward Reachability: A Breadth-First Search (BFS) from each agent's start vertex to identify all nodes reachable within $T_{end}$ steps.
  2. Backward Reachability: A BFS backward from each agent's goal vertex to identify all nodes from which the goal can be reached by $T_{end}$.

Only the intersection of these two sets—nodes and edges that lie on a path of length $\le T_{end}$ between an agent's start and goal—are kept. In scenarios where the deadline is tight (close to the shortest path distance), this pruning drastically reduces the search space for the ILP solver.

Figure 4: Visualization of the time-expanded graph (left) and the pruned "Reduced Abstracted Flow Network" (right). Pruning removes nodes and edges that cannot lead to a goal within the deadline.

Experimental Results

The algorithm was evaluated on $40 \times 40$ grids with 20% random obstacles. The deadline $T_{end}$ was set to 50, and agents were placed such that their shortest path to the goal was 48-50 steps.

The results show that the ILP-based solver is highly effective for lower agent densities. It achieved a 100% success rate (finding the optimal solution within 60 seconds) for up to 40 agents. However, as the number of agents increased, the complexity of the collision constraints led to a performance drop:

  • 50 Agents: 98% success rate.
  • 60 Agents: 88% success rate.
  • 70 Agents: 50% success rate.
  • 90+ Agents: 0% success rate within the time limit.

These results highlight the inherent difficulty of the MAPF-DL problem as congestion increases, even with aggressive graph pruning.

Conclusion and Future Work

This work provides a formal foundation for MAPF with deadlines and demonstrates that an ILP-based flow network approach is viable for moderately crowded environments. The "Reduced Abstracted Flow Network" optimization is crucial for performance.

Future research will focus on improving scalability, perhaps by incorporating heuristic search methods like Conflict-Based Search (CBS). Additionally, the authors plan to relax the assumption that unsuccessful agents are removed, exploring scenarios where they remain as obstacles or must be actively routed to "safe zones" to minimize interference with successful agents.

Summary updated

BibTeX
@inproceedings{ma2018multi,
  author = {Hang Ma and Glenn Wagner and Ariel Felner and Jiaoyang Li and T. K. Satish Kumar and Sven Koenig},
  title = {{Multi-Agent Path Finding with Deadlines: Preliminary Results}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.24963/ijcai.2018/58},
}
Figure