Skip to main content

Crate decoupled_search

Crate decoupled_search 

Source
Expand description

Decoupled (star-topology) search for factored SAS+ planning tasks from sas_plus (Gnad & Hoffmann, ICAPS 2015 and AIJ 2018).

A Factoring splits the variables into a center and leaves. search(), astar and gbfs then explore paths of global actions (operators that are not confined to one leaf) and keep, for every leaf, the price of each leaf state reachable along the current path. They return a sequential Plan for the original task, cost-optimal for the first two; Plan::validate checks one independently. Config chooses the dominance criterion (Pruning) and whether leaves keep prices at all (Leaves).

graph LR
    task[sas_plus::Task] --> factoring[Factoring: auto, fork, star, explicit]
    factoring --> search[search / astar / gbfs over decoupled states]
    task --> search
    config[Config: pruning, leaves] --> search
    heuristic[HMax / HFf / MasHeuristic] --> search
    search --> plan[Plan: sequential, validated]

§Scope

Fork, inverted-fork, X-shape, incident-arcs and independent-set star factorings (Gnad, Poser and Hoffmann, IJCAI 2017) and explicit ones, scored and chosen by Factoring::auto; uniform-cost, A*, anytime A* and greedy search with basic, frontier, effective-price, simulation and adaptive dominance pruning and simulation-based leaf reduction; decoupled strong stubborn sets (Gnad, Hoffmann and Wehrle, JAIR 2019); symbolic leaves behind the symbolic-leaves feature (Gnad, Torralba and Hoffmann 2017); reachability-only leaves for greedy search; h^max and h^FF on decoupled states, a merge-and-shrink adapter behind the merge-and-shrink feature, and an LM-cut adapter behind the lm-cut feature. Conditional effects and axioms are supported where the decoupled semantics can express them and rejected with precise errors otherwise.

Repository: https://github.com/sunsided/decoupled-search

Structs§

Config
Options for decoupled search.
FactPrices
The cheapest price at which each fact holds in some member state of a decoupled state.
Factoring
A partition of a task’s variables into one center and any number of leaves.
FactoringScore
How well a factoring decouples a task.
HFf
The FF heuristic h^FF (Hoffmann and Nebel 2001) seeded with fact prices: the cost of a relaxed plan built from h^add best supporters, plus the largest price of a seed fact it uses. Not admissible; meant for crate::gbfs.
HMax
The max heuristic h^max (Bonet and Geffner 2001) seeded with fact prices: admissible on decoupled states.
LmCutHeuristic
h^LM-cut (Helmert and Domshlak 2009) on decoupled states, from planning_heuristics::LmCut.
MasHeuristic
A merge-and-shrink heuristic adapted to decoupled states; admissible, so it can drive crate::astar.
Outcome
The result of a search run: the plan, if any, and counters.
Plan
A sequential plan for the original task.
Statistics
Counters of one search run.

Enums§

Error
Why a task or factoring cannot be searched.
Leaves
What a decoupled state keeps per leaf state.
Objective
What Factoring::auto_by_sample selects for.
PlanError
Why Plan::validate rejected a plan.
Pruning
The dominance criterion that prunes generated decoupled states.
Strategy
A factoring strategy of Factoring.

Constants§

MAX_LEAF_STATES
The largest number of states a leaf may have. Leaf reachability works on dense price vectors of this size, and stored leaf-state ranks fit in u16.

Traits§

DecoupledHeuristic
A heuristic on decoupled states.

Functions§

astar
Finds a cheapest plan for task by decoupled A* over factoring, guided by heuristic, with the default Config.
gbfs
Finds some plan for task by decoupled greedy best-first search over factoring, ordered by heuristic alone, with the default Config, and returns the first one found. The plan is valid but not necessarily cheapest.
search
Finds a cheapest plan for task by uniform-cost decoupled search over factoring, with the default Config.