Optimal Target Assignment and Path Finding for Teams of Agents

Hang Ma, Sven Koenig

Abstract

This paper introduces Conflict-Based Min-Cost-Flow (CBM), an algorithm designed to solve the Combined Target-Assignment and Path-Finding (TAPF) problem. TAPF bridges the gap between anonymous and non-anonymous multi-agent pathfinding by grouping agents into teams where they are interchangeable. CBM utilizes a hierarchical approach, combining Conflict-Based Search (CBS) at the high level with min-cost max-flow on time-expanded networks at the low level. Experimental results demonstrate that CBM scales to hundreds of agents in complex warehouse environments while maintaining optimality in makespan.

Introduction

In the field of Multi-Agent Path Finding (MAPF), researchers traditionally focus on two extremes. Non-anonymous MAPF requires every robot to reach a specific, unique destination, a problem that is NP-hard to solve optimally. Conversely, anonymous MAPF allows any robot to go to any destination, which can be solved efficiently in polynomial time.

However, many real-world applications—most notably automated warehouse systems like those used by Amazon Robotics—fall into a middle ground. In these systems, robots are often partitioned into teams. While it doesn't matter which specific robot in a "shipping team" retrieves a particular inventory pod, a robot from that team cannot swap tasks with one from a "maintenance team." This hybrid challenge is formalized as the Combined Target-Assignment and Path-Finding (TAPF) problem. The objective is to minimize the makespan (the time the last robot reaches its goal) while ensuring collision-free paths.

A simulated warehouse environment modeled after a Kiva system, where teams of robots move between stations and storage areas.

The CBM Algorithm

To address TAPF, the authors developed CBM (Conflict-Based Min-Cost-Flow), a hierarchical algorithm that exploits the partial anonymity of the problem structure. CBM operates on two levels:

  • High-Level: Conflict-Based Search (CBS). CBM treats each team as a single "meta-agent." It performs a best-first search on a constraint tree. If robots from different teams collide, the high-level search splits the node and adds constraints to prevent that specific collision in future iterations.
  • Low-Level: Min-Cost Max-Flow. Within a single team, the problem is entirely anonymous. CBM leverages this by using a min-cost max-flow algorithm on a time-expanded network. This allows the algorithm to simultaneously assign robots to targets and plan their paths optimally and efficiently.
The low-level solver uses a time-expanded network to find optimal, collision-free paths for interchangeable agents within a team.

A key innovation in CBM is the use of edge-weight biasing. The low-level solver doesn't just find any optimal path; it uses weights to favor paths that avoid locations where other teams are currently planned to be. This proactive avoidance significantly reduces the number of high-level conflicts, drastically improving search speed.

Experimental Evaluation and Results

The researchers evaluated CBM using random 30×30 grids with 10% obstacles and a large-scale simulated warehouse layout.

Scalability and Efficiency

CBM demonstrated superior scalability compared to standard MAPF solvers. In random grid tests, it successfully solved instances with up to 450 agents (90 teams of 5). Standard non-anonymous solvers typically fail much earlier because they cannot exploit the flexibility of team-based target assignment. In a 420-robot warehouse simulation (210 incoming and 210 outgoing agents), CBM found optimal solutions in an average of 91 seconds. In many cases, the makespan achieved was the theoretical minimum, indicating highly efficient pathing.

Impact of Team Configuration

The performance of CBM is sensitive to team composition. The algorithm is most efficient when there are fewer, larger teams, as this increases the degree of anonymity the low-level flow solver can exploit. Conversely, a large number of very small teams increases the complexity for the high-level CBS, as there are more potential inter-team conflicts to resolve.

Conclusion

CBM provides a powerful framework for solving TAPF problems optimally. By combining the strengths of flow-based assignment for anonymous groups and conflict-based search for unique teams, it achieves a level of scalability previously unattainable for optimal multi-agent coordination. Future work may involve extending CBM to dynamic environments where obstacles move or new tasks are assigned asynchronously.

Summary updated

Abstract

We study the TAPF (combined target-assignment and path-finding) problem for teams of agents in known terrain, which generalizes both the anonymous and non-anonymous multi-agent path-finding problems. Each of the teams is given the same number of targets as there are agents in the team. Each agent has to move to exactly one target given to its team such that all targets are visited. The TAPF problem is to first assign agents to targets and then plan collision-free paths for the agents to their targets in a way such that the makespan is minimized. We present the CBM (Conflict-Based Min-Cost-Flow) algorithm, a hierarchical algorithm that solves TAPF instances optimally by combining ideas from anonymous and non-anonymous multi-agent path-finding algorithms. On the low level, CBM uses a min-cost max-flow algorithm on a time-expanded network to assign all agents in a single team to targets and plan their paths. On the high level, CBM uses conflict-based search to resolve collisions among agents in different teams. Theoretically, we prove that CBM is correct, complete and optimal. Experimentally, we show the scalability of CBM to TAPF instances with dozens of teams and hundreds of agents and adapt it to a simulated warehouse system.
BibTeX
@inproceedings{ma2016optimal,
  author = {Hang Ma and Sven Koenig},
  title = {{Optimal Target Assignment and Path Finding for Teams of Agents}},
  booktitle = {AAMAS},
  year = {2016},
  url = {https://openreview.net/forum?id=B4hhSA_wnBq},
}
Figure