Solving Sum-of-Costs Multi-Agent Pathfinding with Answer-Set Programming


  • Rodrigo N. Gómez Pontificia Universidad Católica de Chile
  • Carlos Hernández Universidad Andrés Bello
  • Jorge A. Baier Pontificia Universidad Católica de Chile



Solving a Multi-Agent Pathfinding (MAPF) problem involves finding non-conflicting paths that lead a number of agents to their goal location. In the sum-of-costs variant of MAPF, one is also required to minimize the total number of moves performed by agents before stopping at the goal. Not surprisingly, since MAPF is combinatorial, a number of compilations to Satisfiability solving (SAT) and Answer Set Programming (ASP) exist. In this paper, we propose the first family of compilations to ASP that solve sum-of-costs MAPF over 4-connected grids. Unlike existing compilations to ASP that we are aware of, our encoding is the first that, after grounding, produces a number of clauses that is linear on the number of agents. In addition, the representation of the optimization objective is also carefully written, such that its size after grounding does not depend on the size of the grid. In our experimental evaluation, we show that our approach outperforms search- and SAT-based sum-of-costs MAPF solvers when grids are congested with agents.




How to Cite

Gómez, R. N., Hernández, C., & Baier, J. A. (2020). Solving Sum-of-Costs Multi-Agent Pathfinding with Answer-Set Programming. Proceedings of the AAAI Conference on Artificial Intelligence, 34(06), 9867-9874.



AAAI Technical Track: Planning, Routing, and Scheduling