Planning & Search in Rust
Esc

Loading…

↑↓ move ↵ open Esc close
Colour theme
All algorithms

Conflict Avoidance Table

Also known as CAT

other mapf-search

A conflict avoidance table (CAT) records where the other agents' current paths are at each time step. CBS uses it to break ties in its low level: among an agent's cheapest paths, the search returns one with the fewest conflicts with the other agents. To do this, A* uses a cost pair (time steps, conflicts) that it compares in that order, so the path stays cheapest and the conflict count is only a second criterion. The result is still optimal, and the constraint tree usually gets smaller. In mapf-search it is the conflict_avoidance field of CbsConfig, and ECBS uses the same table for its focal key.

Pseudocode

algorithm Plan-Avoiding(i, C, PATHS)input: agent i, its constraints C, the other agents' current paths PATHSoutput: a cheapest path of i with the fewest conflicts among the cheapest, or failureCAT ← conflict-table(PATHS without i)         ▷ who is where at each time stepg[(start_i, 0)] ← (0, 0)                     ▷ cost pair (time steps, conflicts)OPEN ← {(start_i, 0)}                        ▷ ordered by g + (dist(v, goal_i), 0), compared in orderwhile OPEN ≠ ∅ do(v, t) ← extract-min(OPEN)if v = goal_i and t > blocked-until(C, goal_i) thenreturn path-to((v, t))for each u in {v} ∪ neighbours(v) do        ▷ wait or moveif allows(C, v, u, t) thenk ← conflicts(CAT, v, u, t)            ▷ vertex conflicts, swaps, parked agentsif g[(v, t)] + (1, k) < g[(u, t + 1)] theng[(u, t + 1)] ← g[(v, t)] + (1, k)parent[(u, t + 1)] ← (v, t)insert-or-update(OPEN, (u, t + 1))return failure

In the crates

  • mapf-search

    CBS option where the low level returns, among an agent's cheapest paths, one with the fewest conflicts with the other agents' current paths.

    CbsConfig

Papers

  1. Conflict-based search for optimal multi-agent pathfinding Guni Sharon, Roni Stern, Ariel Felner, Nathan R. Sturtevant · 2015· Artificial Intelligence applies doi 10.1016/j.artint.2014.11.006