Exact Anytime Multi-Agent Path Finding Using Branch-and-Cut-and-Price and Large Neighborhood Search

Edward Lam, Daniel Damir Harabor, Peter J. Stuckey, Jiaoyang Li

Introduction

Multi-Agent Path Finding (MAPF) is a critical challenge in robotics and logistics, requiring a group of agents to navigate from start to target positions without collisions while minimizing total travel costs. Traditionally, the field has been divided between exact solvers, which guarantee optimality but scale poorly, and suboptimal anytime solvers, which find solutions quickly but lack optimality guarantees. This paper, presented at ICAPS 2023, introduces a novel hybrid approach that tightly couples Branch-and-Cut-and-Price (BCP) with Large Neighborhood Search (LNS2) to create an effective anytime algorithm.

The MAPF Challenge

The primary difficulty in MAPF lies in balancing solution quality with computational efficiency.

  • Exact Solvers (e.g., BCP): These provide the best possible solution and a lower bound to prove optimality. However, they are often "all or nothing," potentially failing to return any solution within a strict time limit.
  • Suboptimal/Anytime Solvers (e.g., LNS2): These heuristics find initial solutions rapidly and improve them over time. Their main drawback is the lack of a lower bound, leaving users uncertain about how close the current solution is to the global optimum.

The goal is an "anytime" algorithm that finds a feasible solution immediately and progressively refines it until optimality is proven.

Methodology: A Hybrid Approach

The authors propose a bidirectional integration where BCP serves as the structural backbone and LNS2 acts as a primal heuristic.

  • BCP as the Backbone: BCP explores a search tree, solving continuous relaxations at each node to establish lower bounds on the total cost.
  • LNS2 as a Primal Heuristic: Instead of relying on generic mathematical heuristics, the system uses LNS2 to find valid integer solutions. LNS2 is "warm-started" using fractional paths identified by BCP as promising.
  • Bidirectional Communication:
    • BCP to LNS2: BCP guides LNS2 by providing fractional solutions that highlight potential low-cost paths.
  • LNS2 to BCP: When LNS2 discovers a new valid path, it is added to BCP’s global column database. This helps BCP tighten lower bounds and prune the search tree more effectively.
  • Constraint Management: To ensure LNS2 respects the branching constraints of the BCP search tree, the authors implemented a mechanism to backtrack to the root node, incorporate new paths, and re-propagate constraints.

Experimental Evaluation

The algorithm was tested on 3,850 instances across 12 diverse maps from the standard Moving AI benchmark repository. These included highly structured warehouses, large-scale city layouts (e.g., Berlin), game maps (e.g., Baldur's Gate), and congested mazes or random grids.

Key Results

The integrated "BCP with LNS2" approach demonstrated superior anytime performance, consistently achieving lower optimality gaps faster than standalone versions of BCP or LNS2.

Optimality gap comparison across various map types and agent counts.

Key findings from the evaluation include:

  • Dominance in Congested Environments: On highly complex maps like maze-128-128-1, the hybrid solver was uniquely capable of maintaining low optimality gaps as agent density increased.
  • Efficiency in Open Spaces: On large, sparse maps, the "trivial" lower bound (sum of individual shortest paths) is often near-optimal. In these cases, the overhead of BCP's mathematical framework can make pure LNS2 more efficient.
  • Minimal Overhead: The hybrid solver proved optimality on nearly as many instances as pure BCP (within a 2% margin), indicating that the benefits of the anytime heuristic far outweigh its computational cost.

Conclusion and Future Work

By combining the lower-bounding strengths of BCP with the upper-bounding speed of LNS2, the authors have created a robust framework for MAPF that provides high-quality solutions with provable optimality gaps. While the current implementation involves complex backtracking to manage constraints, future work aims to allow LNS2 to handle branching constraints directly, further enhancing the system's efficiency and scalability.

Summary updated

BibTeX
@inproceedings{lam2023exact,
  author = {Edward Lam and Daniel Damir Harabor and Peter J. Stuckey and Jiaoyang Li},
  title = {{Exact Anytime Multi-Agent Path Finding Using Branch-and-Cut-and-Price and Large Neighborhood Search}},
  booktitle = {ICAPS},
  year = {2023},
  doi = {10.1609/icaps.v33i1.27202},
}
Figure