Branch-and-Cut-and-Price for Multi-Agent Pathfinding

Edward Lam, Pierre Le Bodic, Daniel Damir Harabor, Peter J. Stuckey

Introduction

Multi-Agent Pathfinding (MAPF) is a critical challenge in robotics and logistics, requiring the coordination of multiple agents to reach their respective goals without collisions. As the number of agents and the complexity of environments grow, the problem becomes computationally intractable (NP-hard). Traditionally, solvers have been divided into search-based methods, which reason about collisions directly, and compilation-based methods, which translate the problem into mathematical optimization frameworks like Mixed Integer Programming (MIP).

Researchers have now introduced BCP, a hybrid algorithm that leverages the strengths of both worlds. By integrating "Branch-and-Cut-and-Price" techniques from operations research with domain-specific heuristics from AI search, BCP achieves state-of-the-art performance across a wide range of benchmarks.

The BCP Framework

The core of the BCP algorithm is a sophisticated mathematical optimization framework designed to handle the explosive complexity of MAPF. It employs three primary mechanisms:

  1. Branch-and-Price (Column Generation): Instead of evaluating all possible paths—an impossible task—the algorithm uses a "pricer" based on a modified A* search to dynamically add promising paths to a small initial pool.
  2. Branch-and-Cut (Constraint Generation): The solver initially addresses a relaxed version of the problem. When collisions are detected, it generates specific constraints, or "cuts," to eliminate those invalid solutions.
  3. Redundant Constraints (Symmetry Breaking): This is the algorithm's "secret sauce." The authors adapted advanced reasoning from search-based solvers, such as Corridor and Rectangle symmetry, and formulated them as linear constraints. These constraints "tighten" the search space, allowing the solver to rule out large sets of suboptimal solutions quickly.
Illustration of Rectangle Symmetry reasoning used to generate redundant constraints in BCP.

Experimental Evaluation

The BCP algorithm was rigorously tested on 1,350 standard benchmarks from the Moving AI repository, including small 20x20 grids and large, complex game maps like den520d and lak503d. The tests scaled from small teams to 120 agents.

The results were definitive. BCP solved 99% of all test instances, significantly outperforming previous state-of-the-art solvers like CBSH-RM, which solved 85%. One of the most striking findings was the "tightness" of the model: 829 out of 1,335 solved instances were resolved at the root node, meaning the mathematical model was so precise that it required no further branching.

Performance on Complex Maps

The advantage of BCP is most apparent in high-density, complex environments. On the lak503d map—a challenging game environment with structured obstacles—BCP maintained a high success rate even as the number of agents increased.

On this map with 100 agents, BCP solved 96% of instances, whereas the next best solver, CBSH-RM, managed only 34%. Furthermore, BCP was faster on average, completing runs in 5 seconds compared to 8 seconds for its competitors.

Conclusion and Future Work

BCP represents a significant leap forward in MAPF research, proving that the integration of domain-specific AI heuristics into rigorous mathematical optimization frameworks can yield unprecedented scalability and robustness. While the algorithm is more complex to implement and requires high-performance MIP solvers, its ability to find near-optimal solutions (within a 0.5% optimality gap) even when timing out makes it a powerful tool for real-world applications. Future research will focus on developing even more powerful "cuts" to push the boundaries of agent density and map complexity further.

Summary updated

BibTeX
@inproceedings{lam2019branch,
  author = {Edward Lam and Pierre Le Bodic and Daniel Damir Harabor and Peter J. Stuckey},
  title = {{Branch-and-Cut-and-Price for Multi-Agent Pathfinding}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.24963/ijcai.2019/179},
}
Figure