Abstract
Multi-Agent Path Finding (MAPF) traditionally relies on discrete time-step indexing, which often leads to a "horizon problem" and state explosion in fine-grained scheduling. This report introduces a paradigm shift in MAPF modeling using Answer Set Programming (ASP) by replacing discrete time with partial event orderings. By employing hybrid constraints—specifically acyclicity and difference logic—the proposed approach decouples routing from scheduling. This eliminates the need for fixed plan horizons and allows for efficient, fine-grained scheduling that significantly outperforms traditional methods on complex benchmarks.
Introduction
In Multi-Agent Path Finding (MAPF), the objective is to navigate multiple agents from their respective start locations to designated goals without collisions. Standard approaches in ASP, SAT, and Constraint Programming (CP) typically handle time by indexing every state variable with a discrete time step (e.g., at(agent, location, time)).
This "vanilla" approach suffers from two primary drawbacks. First, the Horizon Problem requires an a priori guess of the maximum plan length; an incorrect guess leads to either no solution or an unnecessarily massive search space. Second, Granularity Explosion occurs when actions have varying durations, necessitating a fine time scale that drastically increases the number of grounded variables and degrades performance.
Methodology
The researchers propose an Ordering Encoding that treats time as a flow of events rather than a sequence of snapshots. This methodology consists of two primary components:
- Event Orderings (Routing): Instead of tracking agent positions at every second, the model defines events (e.g., an agent visiting a vertex). It establishes a partial order of these events to ensure safety—for instance, requiring Agent A to leave a vertex before Agent B arrives. Acyclicity constraints are used to ensure these relative orders are consistent and free of contradictions.
- Arrival Time Mappings (Scheduling): For Weighted MAPF, where moves have specific durations, the model extends the ordering logic with difference constraints (e.g., $arrival(v) \geq arrival(u) + duration(u, v)$).
This hybrid approach leverages specialized propagators within the clingo solver (specifically clingo[dl] for difference logic). This allows the core SAT solver to manage the logic of the paths while the propagator handles the mathematical timing constraints.
Evaluation and Results
The approach was evaluated using a custom ASP-based benchmark generator across various map types, including random grids, mazes, and room configurations. The study compared the "Order" encodings (AC for acyclicity, DC for difference constraints) against a "Vanilla" time-step encoding.
- Efficiency and Scalability: The Order DC encoding was the clear winner, particularly on "Room" and "Maze" instances where plan horizons are naturally longer. While the Vanilla encoding performed well on short, simple plans, its performance dropped sharply as complexity increased.
- Conflict Handling: The ordering approach handled "follow conflicts" (one agent entering a square as another leaves) with minimal overhead, a scenario that significantly challenged the Vanilla encoding.
Conclusion
By treating time as a partial order rather than a discrete sequence, this preliminary report demonstrates a robust method for solving MAPF without the limitations of fixed horizons. While the current model assumes "path-like" trajectories (where agents generally do not revisit vertices), it provides a foundation for more complex industrial scheduling problems, such as warehouse robotics and train scheduling, where durative actions are standard.
Summary updated