Planning & Search in Rust
Esc

Loading…

↑↓ move ↵ open Esc close
Colour theme
Classical planning: heuristics

planning-heuristics

Heuristics for classical planning: delete relaxation (hmax, hadd, hFF), red-black, landmarks, LM-cut, operator counting and abstraction adapters

cargo add planning-heuristics

Who it is for

  • Planning researchers who want to compare heuristics on the same task representation without porting Fast Downward's C++, or who need a reference implementation of red-black planning or RHW landmarks to check their own against.
  • Anyone building a classical planner in Rust: pick h_FF or red-black for satisficing greedy search, LM-cut or landmark cost partitioning for optimal A*, and LAMA-style landmark tracking for path-dependent search.
  • Embedded and robotics teams that plan onboard: the crate runs on no_std targets with an allocator.
  • If the problem is a plain graph rather than a factored planning task, an explicit-state search with a domain-specific heuristic in heuristic-search is the better fit.
  • For merge-and-shrink abstractions or saturated cost partitioning themselves, use merge-and-shrink and cost-partition; this crate only adapts them to the Heuristic trait.

Algorithms 17

  • Additive hmax additive h_max · h^max over an operator partition

    Admissible sum of h_max values over an operator partition.

    AdditiveHMax

  • Goal-intention ranking ol_rp · op_rp · goal intention

    Goal-intention ranking keys from sampled relaxed plans, with a path tracker.

    GoalIntentionIntentionTracker

  • h1 landmarks delete-relaxation fact landmarks · h^m landmarks

    Fact landmarks of the delete relaxation with natural orderings.

    RelaxationLandmarkGraph

  • h2 h² · h^m with m = 2

    The h^m heuristic with m = 2: cheapest regression over fact pairs.

    H2

  • hadd h_add · Additive heuristic · additive heuristic

    Delete-relaxation heuristic summing the goal fact costs.

    HAdd

  • hFF FF heuristic · h_FF · relaxed plan heuristic

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

    HFf

  • hmax max heuristic · h_max

    Admissible delete-relaxation heuristic: the cost of the most expensive goal fact.

    HMax

  • hsa set-additive heuristic · h_sa

    Set-additive heuristic: like h_add, but each fact carries a set of operators.

    HSetAdd

  • Landmark count heuristic LAMA landmark heuristic · landmark tracking

    Inadmissible landmark count, per state or with LAMA-style tracking along the search path.

    LandmarkCountLandmarkTracker

  • LM-cut landmark-cut · h^LM-cut · h_LM-cut

    Admissible landmark-cut heuristic with axioms and conditional effects by context splitting.

    LmCut

  • Operator counting state equation heuristic · operator-counting heuristic feature lp

    Operator-counting LP from the state equation with LM-cut constraints, solved with microlp.

    OperatorCounting

  • Optimal landmark cost partitioning optimal cost partitioning feature lp

    Optimal landmark cost partitioning solved as a linear program, per state or along the search path.

    OptimalLandmarkCostOptimalLandmarkTracker

  • Pattern database PDB · Projection · Pattern databases · projection heuristic

    Pattern database heuristics over sas_plus projections, and any sas_plus abstraction as a heuristic.

    AbstractionHeuristic

  • Red-black planning red-black heuristic · h_RB

    Red-black heuristic with relaxed plan repair or red facts following, every painting strategy of the papers, and an h_FF fallback outside the fragments.

    RedBlackPainting

  • Relevance score hΞ relevance score · h_Xi

    Landmark-like, inadmissible relevance score over a partially explored backtracking tree.

    RelevanceScore

  • RHW landmarks back-chained landmarks · Richter-Helmert-Westphal landmarks

    Back-chained landmarks with disjunctive and DTG landmarks, greedy-necessary and reasonable orderings.

    RelaxationOrderedLandmarks

  • Uniform landmark cost partitioning uniform cost partitioning

    Admissible landmark heuristic that shares each operator's cost uniformly among the landmarks it achieves.

    UniformLandmarkCostLandmarkTracker