SHOP: Simple Hierarchical Ordered Planner

Dana S. Nau, Yue Cao, Amnon Lotem, Héctor Muñoz-AvilaIJCAI 1999

Abstract

SHOP (Simple Hierarchical Ordered Planner) is a domain-independent Hierarchical Task Network (HTN) planner that challenges the traditional view that total-order forward search is inefficient. By decomposing tasks in the order of execution, SHOP leverages complete world-state knowledge at each step, enabling highly expressive domain representations and significant performance gains over state-of-the-art planners.

Introduction

In the late 1990s, the prevailing "conventional wisdom" in AI planning suggested that total-order forward search—planning from the start state to the goal in a linear sequence—was inherently inefficient due to the risk of excessive backtracking. Consequently, research shifted toward partial-order planners and SAT-based approaches like Blackbox. However, these methods often sacrificed expressivity, struggling with complex numeric computations or sophisticated domain-specific knowledge. SHOP was developed to demonstrate that HTN-guided forward search can achieve both extreme speed and high expressivity.

Methods: Ordered Task Decomposition

SHOP is a domain-independent HTN planner that distinguishes itself through several key architectural choices:

  1. Ordered Task Decomposition: Unlike previous HTN planners (e.g., SIPE-2, O-PLAN) that could decompose tasks in any order, SHOP decomposes tasks strictly in the order they will be executed.
  2. Complete World-State Knowledge: Linear planning ensures that the planner knows the exact state of the world at every step. This allows for highly expressive domain representations, including complex Lisp function calls or numeric calculations within preconditions.
  3. Reduced Complexity: By maintaining a left-to-right execution order, SHOP avoids the "goal interaction" problems common in other planners, as earlier steps are fully determined before later ones are considered.
Example of SHOP domain axioms, methods, and operators.

The implementation integrates directly with Lisp, allowing domain axioms and method preconditions to call the Lisp evaluator. This enables features like the closed-world assumption (negation) and interaction with external agents.

Evaluation and Results

SHOP was evaluated using classic benchmarks: the Blocks-World and Logistics domains. It was compared against Blackbox (a SAT-based planner) and TLplan (a forward-chaining planner using temporal logic).

The experimental results were dramatic. In logistics problems, SHOP was several orders of magnitude faster than Blackbox. For instance, on the difficult log-x-14 problem, SHOP found a plan in 17.05 seconds, while TLplan required 1577.6 seconds. Blackbox frequently timed out or exceeded memory limits on these larger instances.

Performance comparison of SHOP against Blackbox and TLplan in the Blocks-World domain.

In the Blocks-World domain, SHOP not only outperformed TLplan in speed but also found shorter, more optimal plans for larger problem sets. Despite being implemented in Lisp, SHOP consistently outperformed planners written in C, highlighting the importance of search-space pruning and algorithmic efficiency over raw execution speed.

Conclusion

SHOP proves that planning in execution order is not only feasible but highly efficient when guided by well-defined HTN methods. Its ability to handle numeric computations and complex logic allows for "smarter" domain descriptions that effectively prune the search space. Future work includes addressing potential infinite search spaces through iterative deepening and exploring ways to incorporate partial-order operations without sacrificing the efficiency of the left-to-right control strategy.

Summary updated

BibTeX
@inproceedings{nau1999shop,
  author = {Dana S. Nau and Yue Cao and Amnon Lotem and Héctor Muñoz-Avila},
  title = {{SHOP: Simple Hierarchical Ordered Planner}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {1999},
}
Figure