mapf-search
Multi-agent pathfinding on grids and graphs: CBS with its improvements, CBS-TA, FOCBS, ECBS, ICTS, PBS, PIBT, PIBT*_T, M*, EPEA*, MAPF-LNS2 and multi-objective MO-CBS
cargo add mapf-search Who it is for
- Robotics and warehouse automation: fleets of mobile robots or AGVs on a grid or a roadmap graph that must reach their goals without collisions.
- Game developers moving groups of units through tight corridors, where independent A* per unit deadlocks or collides.
- Researchers who want CBS and its improvements (prioritized conflicts, bypass, CG/DG/WDG heuristics, disjoint splitting) switchable one by one, next to ECBS, ICTS, PBS, M* and EPEA* on the same instance type.
- Planners that trade off several costs per agent (time, energy, risk): MO-CBS returns every Pareto-optimal joint plan, using multiobjective-search as its low level.
- For a single agent, use heuristic-search directly; for many connectors on a diagram that may cross at a cost rather than never meet, connector-routing is the better fit.
Algorithms 20
- Bypass BP · Conflict bypass
CBS option that adopts a child's paths instead of splitting when the child is as cheap for its replanned agent as the parent and has fewer conflicts.
- CBS Conflict-Based Search
Conflict-based search, optimal for sum of costs or makespan, with prioritized conflicts, bypass, the CG, DG and WDG heuristics, a conflict avoidance table and disjoint splitting, each switchable.
- CBS-TA Conflict-Based Search with Task Assignment
Conflict-based search with task assignment: each agent has candidate goals, and the plan is optimal over all assignments, for sum of costs or makespan.
- CG Heuristic Conflict Graph heuristic · CG
Admissible CBS high-level heuristic: a lower bound on the minimum vertex cover of the graph of agents with cardinal conflicts.
-
CBS option where the low level returns, among an agent's cheapest paths, one with the fewest conflicts with the other agents' current paths.
- DG Heuristic Dependency Graph heuristic · DG
Admissible CBS high-level heuristic over the graph of dependent agents, whose MDDs have no conflict-free combination; at least CG.
- Disjoint Splitting Positive constraints
CBS splitting where one child forbids the conflict to one agent and the other requires it of that agent with a positive constraint, so the two subtrees share no solution.
- ECBS Enhanced CBS · Enhanced Conflict-Based Search
Enhanced CBS, bounded-suboptimal within a weight w, with focal search at both levels.
- EPEA* Enhanced Partial Expansion A*
Enhanced partial expansion A* in the joint space of all agents: generates only the children at the node's stored f, optimal, proves unsolvability.
- FOCBS Flow-Oracle CBS · Flow-Oracle Conflict-Based Search
Flow-oracle CBS for agents without goals: CBS over the agents with goals while a min-cost flow routes the idle ones and its minimum cut tells CBS which reservations block them.
- ICTS Increasing Cost Tree Search
Increasing cost tree search with pairwise pruning, optimal for sum of costs or makespan.
- M* rM* · OD-M* · ODrM* · Recursive M* · Subdimensional expansion
M* with subdimensional expansion, basic and recursive (rM*), each with or without operator decomposition (OD-M*, ODrM*); optimal and proves unsolvability.
- MAPF-LNS2 LNS2 · Large Neighborhood Search 2
Large neighborhood search repair: starts from a plan with collisions and replans a few agents at a time with SIPPS until none are left; seeded, neither optimal nor complete.
- MO-CBS Multi-Objective CBS · Multi-Objective Conflict-Based Search · MO-CBS-t feature
multi-objectiveMulti-objective CBS returning every Pareto-optimal plan when moves and waits cost vectors, plain or tree-by-tree (MO-CBS-t), over BOA* or NAMOA*dr, with an opt-in feasibility check, conflict prioritization, bypass and disjoint splitting.
- PBS Priority-Based Search
Priority-based search, a depth-first search over partial priority orders between agents; fast, neither optimal nor complete.
- PIBT Priority Inheritance with Backtracking
Priority inheritance with backtracking: plans one time step for all agents at a time, very fast, neither optimal nor complete.
- PIBT*_T PIBT with turns
PIBT for robots that face a heading, move only forward and need time to turn in place, with cycle handling, swaps and a push escape trigger, on grids or any oriented graph.
- Prioritizing Conflicts Prioritized conflicts · Cardinal conflicts · PC
CBS option that splits cardinal conflicts first, then semi-cardinal ones, then the rest, classified by MDDs.
-
The single-agent low level under constraints, built on the heuristic-search crate's A*.
- WDG Heuristic Weighted Dependency Graph heuristic · WDG
Admissible CBS high-level heuristic: the DG graph with each edge weighted by how much the pair's sum of costs must rise, bounded by an edge-weighted vertex cover; at least DG.