Flow-Based Task Assignment for Large-Scale Online Multi-Agent Pickup and Delivery

Yue Zhang, Zhe Chen, Daniel Harabor, Pierre Le Bodic, Peter J. StuckeyarXiv 2025 · DOI

Abstract

Multi-Agent Pickup and Delivery (MAPD) is a foundational challenge in automated logistics. Traditional online assignment methods face a "scalability wall" due to the high computational cost of all-pairs distance calculations. This paper proposes a novel flow-based framework that models task assignment as a minimum-cost flow problem directly on the environment map. By bypassing the traditional bipartite matching bottleneck and incorporating traffic-aware costs, the system scales to 20,000 agents and 30,000 tasks, enabling real-time, high-quality coordination in under one second.

Introduction

Automated warehouses and robotic logistics systems rely on Multi-Agent Pickup and Delivery (MAPD) to manage fleets of agents fulfilling a continuous stream of tasks. In the "online" version of this problem, tasks appear dynamically, requiring immediate assignment and routing decisions. As fleet sizes scale to tens of thousands, calculating the distance between every available agent and task—a prerequisite for traditional linear assignment—becomes computationally prohibitive. This forces many systems to rely on sub-optimal greedy heuristics that ignore global traffic patterns.

Methodology: The Flow-Based Model

The authors introduce a Flow-Based Model that shifts the perspective from individual agent-task matching to the collective flow of agents through the environment.

Spatial Flow Network

Instead of an abstract bipartite graph, the problem is embedded directly into the map's topology. A flow network is constructed where nodes represent grid cells and edges represent possible moves between adjacent cells. A "source" node connects to all free agents, while a "sink" node connects to all available pickup locations.

Flow network construction: (a) environment map, (b) traditional bipartite matching, and (c) the proposed spatial flow network.

Traffic-Aware Costs and Guide Paths

To prevent bottlenecks, the system incorporates dynamic cost models, such as execution-based tracking of historical waiting times. Solving for the minimum-cost flow on this graph simultaneously determines task assignments and suggests spatial paths. These solutions act as "guide paths" to warm-start the collision-avoidance planner (Guided PIBT), significantly reducing the computational effort required to find valid, collision-free routes.

Experimental Evaluation

The framework was evaluated using standard MAPD benchmarks, including "Warehouse Small" (WS) and "Sortation Large" (SL), as well as ultra-large maps like "Iron Harvest" with over 6.5 million traversable cells.

Scalability and Real-Time Performance

The flow-based approach demonstrates unprecedented scalability compared to traditional linear assignment methods.

Solving time comparison across different map sizes and team sizes. The flow-based method (green) remains efficient even as team sizes reach 20,000 agents, while traditional methods (blue) exhibit exponential growth in solving time.

Key results include:

  • Unmatched Scalability: The system successfully coordinated 20,000 agents on the Sortation Large map within a 1-second planning limit.
  • Higher Throughput: The flow-based approach outperformed greedy baselines by up to 11.42% in task completion rates.
  • Ultra-Large Map Stability: On the "Iron Harvest" map, the solver returned solutions for 20,000 agents in under 20 seconds—a feat previously impossible for joint assignment and routing.

Key Insights

The primary "aha" moment is that shortest path distances are a natural byproduct of the flow calculation on the map, allowing the system to bypass the $O(n \cdot m)$ bottleneck of bipartite matching. Furthermore, incorporating congestion awareness (e.g., contraflow and vertex congestion) into the flow costs significantly boosts throughput by preventing agents from crowding into the same hallways.

Limitations and Future Work

While the spatial flow model is fast, it is currently time-independent, meaning it does not explicitly account for specific timing collisions, relying instead on the downstream planner for resolution. Future research will focus on developing more adaptive cost models and extending the framework to handle heterogeneous agent capabilities and constraints like battery levels.

Conclusion

By reformulating task assignment as a minimum-cost flow problem on a spatial graph, this work provides a scalable solution for large-scale robotic coordination. The ability to provide high-quality, traffic-aware assignments in real-time marks a significant step forward for automated warehouse management.

Summary updated

BibTeX
@misc{zhang2025flow,
  author = {Yue Zhang and Zhe Chen and Daniel Harabor and Pierre Le Bodic and Peter J. Stuckey},
  title = {{Flow-Based Task Assignment for Large-Scale Online Multi-Agent Pickup and Delivery}},
  year = {2025},
  eprint = {2508.05890},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.05890},
}
Figure