Planning & Search in Rust
Esc

Loading…

↑↓ move ↵ open Esc close
Colour theme
All algorithms

LM-cut

Also known as landmark-cut, hLM-cut, hLM-cut

heuristic decoupled-searchplanning-heuristics

LM-cut is an admissible heuristic for cost-optimal planning: it never overestimates the cost to the goal. It finds disjunctive action landmarks, sets of operators of which every plan must use at least one. In each round it computes hmax, takes the operators that cross a cut between the state and the most expensive goal facts, and charges that set the cost of its cheapest operator. It then lowers the costs of these operators by that amount and repeats until hmax of the goal is 0; the estimate is the sum of all charges. The estimate is never below hmax and is often much higher, so A* with LM-cut expands fewer states.

Pseudocode

algorithm LM-cut(s, O, G)input: state s, operators O with costs cost, goal facts Goutput: an admissible estimate of the cost from s to G, or ∞ if G is unreachableh ← 0c ← fact-costs-max(s, O, cost)           ▷ the per-fact table that h^max computesif max { c[g] : g ∈ G } = ∞ thenreturn ∞while max { c[g] : g ∈ G } > 0 dofor each o in O dochoice[o] ← a precondition of o with the largest cZONE ← {a goal fact of largest c} ∪ facts that reach it through rules o of cost 0 from choice[o]START ← facts reachable from s through rules from choice[o] without entering ZONECUT ← { o ∈ O : choice[o] ∈ START and eff(o) ∩ ZONE ≠ ∅ }m ← min { cost(o) : o ∈ CUT }h ← h + mfor each o in CUT docost(o) ← cost(o) - mc ← fact-costs-max(s, O, cost)return h

In the crates

Lineage

Comes from

builds on hmax

Led to

Operator counting combines it

Papers

  1. Landmarks, Critical Paths and Abstractions: What's the Difference Anyway? Malte Helmert, Carmel Domshlak · 2009· International Conference on Automated Planning and Scheduling (ICAPS) introduces doi 10.1609/icaps.v19i1.13370
  2. Optimal Planning in the Presence of Conditional Effects: Extending LM-Cut with Context Splitting Gabriele Röger, Florian Pommerening, Malte Helmert · 2014· European Conference on Artificial Intelligence (ECAI) extends doi 10.3233/978-1-61499-419-0-765