Planning & Search in Rust
Esc

Loading…

↑↓ move ↵ open Esc close
Colour theme
All algorithms

MAPF-LNS2

Also known as LNS2, Large Neighborhood Search 2

search mapf-search

MAPF-LNS2 finds a plan without collisions for many agents quickly, by repair. It starts from a plan by prioritized planning in which agents may still collide: each agent takes the path with the fewest collisions with the agents planned before it. Then it repeats one step until no two paths collide: it picks a small group of agents (the neighbourhood, 8 by default), replans them one by one with SIPPS, a safe-interval planner that minimizes collisions, and keeps the new paths only if the number of colliding agent pairs did not grow. Adaptive weights choose among three ways to pick the group (collision-based, failure-based and random), and a seed makes each run reproducible. It is fast on crowded maps, but it is neither optimal nor complete, so always give it a budget.

Pseudocode

algorithm MAPF-LNS2(agents, N, γ)input: agents with starts and goals, neighbourhood size N, reaction factor γoutput: a plan without collisions; the caller's budget may stop it firstP ← ∅for each agent i in random-order(agents) doP[i] ← sipps(i, P)                       ▷ fewest collisions with the paths in Pw ← ⟨1, 1, 1⟩                              ▷ weights: collision-based, failure-based, randomwhile colliding-pairs(P) > 0 dom ← draw-by-weight(w)A ← neighborhood(m, P, N)                ▷ at most N distinct agentsP-old ← Pc⁻ ← colliding-pairs(P)P ← P ∖ paths-of(A)for each agent i in random-order(A) doP[i] ← sipps(i, P)                     ▷ against every other current pathc⁺ ← colliding-pairs(P)if c⁺ > c⁻ thenP ← P-oldw[m] ← γ · max(0, c⁻ − c⁺) + (1 − γ) · w[m]return P

In the crates

  • mapf-search

    Large neighborhood search repair: starts from a plan with collisions and replans a few agents at a time with SIPPS until none are left; seeded, neither optimal nor complete.

    lns2Lns2Config

Lineage

Comes from

builds on Large neighbourhood search

builds on Prioritized planning

Led to

Nothing on this site.

Papers

  1. MAPF-LNS2: Fast Repairing for Multi-Agent Path Finding via Large Neighborhood Search Jiaoyang Li, Zhe Chen, Daniel Harabor, Peter J. Stuckey, Sven Koenig · 2022· Proceedings of the AAAI Conference on Artificial Intelligence introduces doi 10.1609/aaai.v36i9.21266