Planning & Search in Rust
Esc

Loading…

↑↓ move ↵ open Esc close
Colour theme
All algorithms

PBS

Also known as Priority-Based Search

search mapf-search

PBS finds a plan for many agents quickly by searching over priorities between agents. A node of its search tree holds a partial priority order (which agents must give way to which) and one path per agent: the cheapest path that avoids the paths of all agents above it. For the earliest conflict between agents a and b, PBS makes two children, "a above b" and "b above a". Each child replans the new lower agent, then every agent below it that now collides with an agent above it. The search is depth-first and tries the cheaper child first; it is neither optimal nor complete, so use it when a good plan is needed fast.

Pseudocode

algorithm PBS(agents)input: agents with starts and goalsoutput: a conflict-free plan, or failurefor each agent i dohigher[i] ← ∅                            ▷ every agent above ipaths[i] ← plan(i, ∅)if paths[i] = failure thenreturn failureSTACK ← ⟨(higher, paths)⟩while STACK ≠ ∅ do(higher, paths) ← pop(STACK)κ ← first-conflict(paths)if κ = nil thenreturn paths(a, b) ← agents-of(κ)CHILDREN ← ∅for each (hi, lo) in ⟨(a, b), (b, a)⟩ doif lo ∉ higher[hi] thenn′ ← child(higher, paths, hi, lo)if n′ ≠ failure thenCHILDREN ← CHILDREN ∪ {n′}push(STACK, CHILDREN)                    ▷ the cheaper child is popped firstreturn failurefunction child(higher, paths, hi, lo)A ← {lo} ∪ {j : lo ∈ higher[j]}            ▷ lo and every agent below itfor each j in A dohigher[j] ← higher[j] ∪ higher[hi] ∪ {hi}for each j in A by increasing |higher[j]| do   ▷ a topological orderif j = lo or collides(paths[j], paths-of(higher[j])) thenpaths[j] ← plan(j, paths-of(higher[j]))    ▷ space-time A* around the higher pathsif paths[j] = failure thenreturn failurereturn (higher, paths)

In the crates

  • mapf-search

    Priority-based search, a depth-first search over partial priority orders between agents; fast, neither optimal nor complete.

    pbs

Lineage

Comes from

builds on Space-Time A*

Led to

Nothing on this site.

Papers

  1. Searching with Consistent Prioritization for Multi-Agent Path Finding Hang Ma, Daniel Harabor, Peter J. Stuckey, Jiaoyang Li, Sven Koenig · 2019· Proceedings of the AAAI Conference on Artificial Intelligence introduces doi 10.1609/aaai.v33i01.33017643