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 sIn the crates
decoupled-searchFF heuristic on decoupled states, seeded with per-fact leaf prices.
miniplanRelaxed-plan FF heuristic on the grounded bitset task.
planning-heuristicsCost of a relaxed plan extracted from h_add best supporters, with preferred operators.
Lineage
Comes from
builds on hadd
Led to
Red-black planning generalizes it
Papers
- The FF Planning System: Fast Plan Generation Through Heuristic Search Jörg Hoffmann, Bernhard Nebel · 2001· Journal of Artificial Intelligence Research