Planning & Search in Rust
Esc

Loading…

↑↓ move ↵ open Esc close
Colour theme
All algorithms

ICTS

Also known as Increasing Cost Tree Search

search mapf-search

ICTS finds a plan for many agents with the least sum of costs or the least makespan (the time at which the last agent arrives). Its high level searches the increasing cost tree: each node is a vector with one path cost per agent, and each child raises one agent's cost by 1. The vectors are visited in order of their sum, so the first vector that has a plan without conflicts is optimal. To test a vector, ICTS builds each agent's MDD (multi-valued decision diagram: all its paths of exactly that cost, layered by time) and searches their product for a combination without conflicts; pairwise pruning first tests each pair of agents alone, which rejects most vectors quickly. ICTS works best when only a few agents must take a detour, because the tree grows exponentially with the total extra cost.

Pseudocode

algorithm ICTS(agents)input: agents, each with a start and a goal on a graphoutput: a conflict-free plan with the least sum of costs, or failurec₀ ← ⟨dist(start_i, goal_i) for each agent i⟩if some c₀[i] = ∞ thenreturn failure                           ▷ an agent cannot reach its goal aloneOPEN ← {c₀}                                ▷ cost vectors, ordered by their sumSEEN ← {c₀}while OPEN ≠ ∅ doc ← extract-min(OPEN)plan ← evaluate(c)if plan ≠ nil thenreturn planfor each agent i doc′ ← raise(c, i)                       ▷ c with c[i] + 1 for agent iif c′ ∉ SEEN thenSEEN ← SEEN ∪ {c′}insert(OPEN, c′)return failure                             ▷ the tree is infinite: in practice the budget ends itfunction evaluate(c)for each agent i doM[i] ← mdd(i, c[i])                      ▷ every path of i that arrives at time c[i]for each pair (i, j) of agents doif joint-paths(M[i], M[j]) = nil thenreturn nil                             ▷ pairwise pruningreturn joint-paths(M[1], …, M[k])          ▷ a conflict-free combination, or nil

In the crates

  • mapf-search

    Increasing cost tree search with pairwise pruning, optimal for sum of costs or makespan.

    icts

Papers

  1. The increasing cost tree search for optimal multi-agent pathfinding Guni Sharon, Roni Stern, Meir Goldenberg, Ariel Felner · 2013· Artificial Intelligence introduces doi 10.1016/j.artint.2012.11.006