Extending Classical Planning with State Constraints: Heuristics and Search for Optimal Planning

Patrik Haslum, Franc Ivankovic, Miquel Ramírez, Dan Gordon, Sylvie Thiébaux, Vikas Shivashankar, Dana S. Nau

Introduction

Classical AI planning formalisms, such as STRIPS or SAS+, are highly effective at modeling discrete actions with localized effects. However, they often struggle to represent systems where a single action triggers global, instantaneous consequences across continuous quantities. For instance, in a power grid, toggling a single switch does not merely change that switch's status; it immediately redistributes power flows, voltages, and phase angles across the entire network according to physical laws.

Modeling these global dependencies as direct action effects in a standard planner is computationally prohibitive. This research bridges the gap between discrete planning and complex hybrid systems by introducing a framework that allows planners to delegate global reasoning to specialized external solvers while maintaining the guarantee of finding an optimal (lowest-cost) plan.

The State Constraint Framework

The core of this approach is a principled partitioning of state variables into two categories:

  1. Primary Variables: Discrete variables directly modified by actions (e.g., the position of a block or the status of a switch).
  2. Secondary Variables: Variables whose values are determined by state constraints (e.g., fluid levels or electrical current).

To link these sets, the authors utilize switched constraints—logical implications of the form condition → constraint. This creates a "narrow interface" where the planner only needs to verify if a set of constraints is consistent given the current primary state. By treating the constraint solver as a black box, the planner remains modular and can be extended to various domains (linear, non-linear, or logic-based) without needing to internalize the underlying physics.

Constraint-Aware Heuristics

Standard admissible heuristics must be adapted to account for the impact of secondary variables. The authors focus on two primary types:

  • Monotone Relaxation ($h^{max}, h^+$): The authors introduce "weaker" relaxations of the $h^+$ heuristic. While a full relaxation might be too complex to compute, a "2nd weaker relaxation" was identified as a "sweet spot," providing sufficient guidance for the search while remaining computationally efficient.
  • Pattern Databases (PDBs): These are adapted to ensure they remain admissible (never overestimating the cost to the goal) even when state constraints restrict the reachable state space.

In the synthetic Counters domain, these constraint-aware heuristics achieved perfect optimal values, transforming a problem that is exponentially difficult for classical planners into one solvable in polynomial time.

PrefPEA*: Optimal Search with Preferred Actions

A significant contribution of this work is the PrefPEA algorithm. While "preferred actions" (actions suggested by a heuristic as highly promising) are commonly used in satisficing planning to find any* solution quickly, they are rarely used in optimal planning because pruning actions can risk losing the best solution.

PrefPEA combines Partial Expansion A** with preferred actions to prioritize the most promising successors. If the heuristic is accurate, the algorithm finds the optimal path quickly and avoids evaluating thousands of unpromising sibling nodes in the final search layer. This allows the planner to maintain optimality while significantly reducing the number of expensive state evaluations.

Experimental Evaluation

The framework was tested on 1,292 instances across four domains:

  • AC Power Supply Restoration (AC-PSR): This domain involves non-linear AC power flow equations. The framework successfully solved restoration problems that were beyond the capabilities of off-the-shelf Mixed-Integer Non-Linear Programming (MINLP) solvers. In this domain, PrefPEA reduced state evaluations by up to 70% compared to standard A.
  • Hydraulic Blocks World (HBW): A didactic domain where moving blocks affects fluid levels in connected cylinders via hydraulic pressure.
  • Multi-commodity Linehaul Transportation: A logistics problem where secondary constraints manage complex cargo delivery logic.
  • Counters: A benchmark highlighting the strengths of the $h^+$ relaxation in the presence of constraints.

Conclusion and Future Work

This framework provides a robust middle ground between classical planning and undecidable hybrid systems. By maintaining a narrow interface with external solvers, it ensures decidability as long as the underlying constraint satisfaction problem is decidable.

Future research will address current limitations, such as the lack of persistence for secondary variables (which currently do not "remember" values between states, like a draining battery). Additionally, the authors aim to optimize the communication overhead between the planner and the solver, which accounted for a significant portion of the total runtime in initial tests.

Summary updated

BibTeX
@article{haslum2018extending,
  author = {Patrik Haslum and Franc Ivankovic and Miquel Ramírez and Dan Gordon and Sylvie Thiébaux and Vikas Shivashankar and Dana S. Nau},
  title = {{Extending Classical Planning with State Constraints: Heuristics and Search for Optimal Planning}},
  journal = {J. Artif. Intell. Res.},
  year = {2018},
  doi = {10.1613/jair.1.11213},
}
Figure