Planning & Search in Rust
Esc

Loading…

↑↓ move ↵ open Esc close
Colour theme
All algorithms

hadd

Also known as hadd, Additive heuristic, additive heuristic

heuristic width-searchminiplanplanning-heuristics

The additive heuristic hadd estimates the cost from a state to the goal of a planning task. It uses the delete relaxation: actions only add facts and never remove them. A fact true in the state costs 0. Any other fact costs the minimum, over the rules that add it, of the rule's cost plus the sum of its conditions' costs. hadd is the sum of these costs over all goal facts. It is not admissible (it can overestimate the true cost), because it counts a shared subgoal once for each goal that needs it, so use it to guide greedy search or, as BFWS-f5 does, take its best supporters to build a relaxed plan.

Pseudocode

algorithm h^add(s)input: state s; delete-free rules r with conditions pre(r), added fact head(r) and cost c(r)output: the additive estimate of the cost from s to the goal facts G, or ∞for each fact p docost[p] ← 0 if p holds in s, otherwise ∞repeat                             ▷ one rule per operator effect, axioms cost 0changed ← falsefor each rule r dov ← c(r) + ∑ q ∈ pre(r) cost[q]if v < cost[head(r)] thencost[head(r)] ← vsupporter[head(r)] ← r       ▷ best supporter, used to extract relaxed planschanged ← trueuntil not changedreturn ∑ p ∈ G cost[p]             ▷ ∞ if some goal fact cannot be reached

In the crates

  • width-search feature sas-plus

    The additive heuristic on SAS+ tasks, whose best supporters give the relaxed plans for BFWS.

    h_add

  • miniplan

    Additive delete-relaxation heuristic on the grounded task.

    HAdd

  • planning-heuristics

    Delete-relaxation heuristic summing the goal fact costs.

    HAdd

Lineage

Comes from

Nothing on this site.

Led to

BFWS-f5 builds on it

hFF builds on it

hsa builds on it

Papers

  1. Planning as heuristic search Blai Bonet, Hector Geffner · 2001· Artificial Intelligence introduces doi 10.1016/S0004-3702(01)00108-4