Lifelong Multi Agent Planning with Conflict Based Search
Multi-agent path finding is NP-hard: route a team of agents from their starts to their goals without collisions, minimizing makespan or total path length. The one-shot version assumes every agent has a single destination and the problem ends when everyone arrives.

Warehouses do not work that way. An agent that reaches its goal is immediately given another, so the problem never ends and the plan is never finished: the lifelong variant. We built a solver for it and evaluated it on maps from the League of Robot Runners, an Amazon Robotics competition built around exactly this coordination problem.

Approach
Conflict-based search splits planning across two levels. Each agent is routed independently with A* or Dijkstra, ignoring the others; the resulting paths are checked for conflicts; and where two agents collide, the search branches into child nodes that each forbid one agent from that cell at that time. Each branch is replanned and pushed back onto the open list by cost, and the cheapest conflict-free node wins.

Making that lifelong meant deciding when to replan. Replanning every timestep is wasteful, since most steps change nothing. Our version keeps a per-agent flag and reruns the search only when an agent reaches its goal and receives a new one, because that is the only event that invalidates the current solution.


Results
| Map | Agents | Tasks completed | Solve time |
|---|---|---|---|
| 32 × 32 | 20 | 3416 | 70.8 s |
| 33 × 57 | 25 | 3666 | 72.7 s |
Takeaway. Replanning only on goal-reached events kept the cost of “lifelong” close to one-shot planning: the larger map completed 7% more tasks for 3% more solve time.
The extra agents did most of that work; the larger search space and higher CBS call count absorbed the rest. Two configurations are not enough to claim the trend holds in general, but they do suggest the replanning trigger keeps the cost of “lifelong” much closer to one-shot than a naive every-timestep solver would.