Planning & Search in Rust
Esc

Loading…

↑↓ move ↵ open Esc close
Colour theme
All algorithms

Prioritizing Conflicts

Also known as Prioritized conflicts, Cardinal conflicts, PC

other mapf-search

Prioritizing conflicts is an improvement to CBS: it chooses which conflict to split, so that the constraint tree stays small. A conflict is cardinal for an agent if every cheapest path of that agent under its constraints passes through it, so each child that forbids it raises the agent's cost. CBS reads this from the agent's MDD (multi-valued decision diagram: all its cheapest paths, layered by time): the conflict is cardinal for the agent if the conflicting vertex (for a swap, both ends) is the only MDD node at that time. CBS splits a conflict that is cardinal for both agents first, then one that is cardinal for one agent (semi-cardinal), then the rest, the earliest within each class. Any choice of conflict keeps CBS optimal, so this changes only the speed.

Pseudocode

algorithm Choose-Conflict(n)input: a CBS node n with its paths and constraintsoutput: the conflict that CBS splits at nbest ← nilfor each κ in conflicts(n.paths) do        ▷ earliest firstk ← 0for each agent a in agents-of(κ) doif cardinal-for(a, κ, n) thenk ← k + 1if best = nil or k > class thenbest, class ← κ, k                     ▷ 2: cardinal, 1: semi-cardinal, 0: otherreturn bestfunction cardinal-for(a, κ, n)M ← mdd(a, cost(n.paths[a]), n.constraints[a])  ▷ every cheapest path of a, by timefor each (v, t) in cells-of(κ, a) do       ▷ a vertex, or both ends of a swap, as a crosses itif nodes(M, t) ≠ {v} thenreturn falsereturn true

In the crates

  • mapf-search

    CBS option that splits cardinal conflicts first, then semi-cardinal ones, then the rest, classified by MDDs.

    CbsConfig

Lineage

Comes from

builds on CBS

Led to

CG Heuristic builds on it

Papers

  1. 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· Proceedings of the Twenty-Fourth International Joint Conference on Artificial Intelligence (IJCAI 2015) introduces