Planning & Search in Rust
Esc

Loading…

↑↓ move ↵ open Esc close
Colour theme
All algorithms

hFF

Also known as FF heuristic, hFF, relaxed plan heuristic

heuristic decoupled-searchminiplanplanning-heuristics

hFF estimates the cost to the goal by the cost of a relaxed plan: a plan for the task without delete effects, where a fact that becomes true stays true. First it computes hadd, which records for each fact its best supporter: the operator that adds it most cheaply, with precondition costs summed. Then it walks back from the goal along the best supporters and sums the costs of the operators it collects, each operator once. hFF can overestimate, so it does not give optimal plans, but it guides greedy best-first search well. Decoupled search keeps a price (cheapest cost) for each reached leaf state; there, facts start at these prices, and the estimate adds the largest price that the relaxed plan starts from.

Pseudocode

algorithm h-FF(s, O, G)input: state s, operators O, goal facts Goutput: the cost of a relaxed plan from s to G, or ∞ if G is unreachablec, supporter ← h-add(s, O)               ▷ like h^max, but an operator costs cost(o) + ∑ of its precondition costsif ∃ g ∈ G: c[g] = ∞ thenreturn ∞PLAN ← ∅STACK ← GSEEN ← ∅while STACK ≠ ∅ dop ← pop(STACK)if p ∉ SEEN thenSEEN ← SEEN ∪ {p}o ← supporter[p]                     ▷ nil for a fact of sif o ≠ nil thenPLAN ← PLAN ∪ {o}push(STACK, pre(o))return ∑ { cost(o) : o ∈ PLAN }          ▷ each operator once; preferred operators: those of PLAN applicable in s

In the crates

  • decoupled-search

    FF heuristic on decoupled states, seeded with per-fact leaf prices.

    HFf

  • miniplan

    Relaxed-plan FF heuristic on the grounded bitset task.

    HFF

  • planning-heuristics

    Cost of a relaxed plan extracted from h_add best supporters, with preferred operators.

    HFf

Lineage

Comes from

builds on hadd

Led to

Red-black planning generalizes it

Papers

  1. The FF Planning System: Fast Plan Generation Through Heuristic Search Jörg Hoffmann, Bernhard Nebel · 2001· Journal of Artificial Intelligence Research introduces doi 10.1613/jair.855