CBS
Also known as Conflict-Based Search
search mapf-search
Conflict-Based Search (CBS) finds a collision-free plan for many agents with an optimal sum of costs or makespan. Its high level searches a constraint tree: each node holds constraints such as "agent i must not be at vertex v at time t" and one cheapest path per agent under them. CBS expands the cheapest node, picks one conflict between two paths and splits it into two children, each of which forbids the conflict to one of the two agents. The low level, a space-time A*, then replans only that agent. CBS is optimal and fast when agents interact little; cbs turns on all improvements (conflict priorities, bypass, the DG heuristic, disjoint splitting, a conflict avoidance table), and cbs_with selects them one by one.
Pseudocode
algorithm CBS(agents, objective)input: agents with start and goal vertices, objective (sum of costs or makespan)output: a conflict-free plan with the optimal objective value, or failurefor each agent i doroot.paths[i] ← replan(i, ∅) ▷ space-time A*if root.paths[i] = nil thenreturn failureroot.constraints ← ∅OPEN ← {root} ▷ ordered by cost + heuristic, then conflictswhile OPEN ≠ ∅ don ← extract-min(OPEN)c ← choose-conflict(n.paths) ▷ cardinal first, then semi-cardinalif c = nil thenreturn n.pathsfor each constraint k in split(c) do ▷ one constraint per childm ← copy(n)m.constraints ← n.constraints ∪ {k}for each agent j in affected(k, m.paths) dom.paths[j] ← replan(j, m.constraints)if no replanned path is nil theninsert(OPEN, m)return failure ▷ the tree ran emptyIn the crates
mapf-searchConflict-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.
Lineage
Comes from
builds on Space-Time A*
Led to
Bypass builds on it
CBS-TA generalizes it
Disjoint Splitting builds on it
ECBS builds on it
FOCBS builds on it
MO-CBS generalizes it
Prioritizing Conflicts builds on it
Papers
- Conflict-based search for optimal multi-agent pathfinding Guni Sharon, Roni Stern, Ariel Felner, Nathan R. Sturtevant · 2015· Artificial Intelligence
- ICBS: Improved Conflict-Based Search Algorithm for Multi-Agent Pathfinding Eli Boyarski, Ariel Felner, Roni Stern, Guni Sharon, David Tolpin, Oded Betzalel, Eyal Shimony · 2015· International Joint Conference on Artificial Intelligence (IJCAI)