Optimally Relaxing Partial-Order Plans with MaxSAT

Christian J. Muise, Sheila A. McIlraith, J. Christopher Beck

Abstract

Modern automated planning often produces rigid sequential plans that are brittle in dynamic environments. This paper introduces a novel method for transforming these sequences into flexible partial-order plans (POPs) using Partial Weighted MaxSAT. By optimally relaxing or rearranging action constraints, the approach generates plans that are significantly more robust to real-world execution delays while minimizing the total number of actions. Our evaluation across standard benchmarks shows that optimal reordering can increase plan flexibility by several orders of magnitude compared to existing heuristic-based deordering techniques.

Introduction

In automated planning, solvers typically output a sequential plan: a strict, ordered list of actions. While efficient to generate, these plans are inherently brittle. If an agent is delayed or a resource is temporarily unavailable, the entire sequence may fail, even if the specific ordering of actions was not strictly necessary for achieving the goal.

Partial-Order Plans (POPs) address this by specifying only the essential ordering constraints (e.g., "load the truck before driving it"). This "least commitment" strategy provides execution-time flexibility. However, generating optimal POPs is NP-hard. Historically, researchers have "relaxed" sequential plans into POPs using heuristics. This paper proposes the first approach to find the mathematically optimal relaxation—either by removing unnecessary constraints (deordering) or rearranging them (reordering)—using MaxSAT optimization.

Methodology

The authors utilize Partial Weighted MaxSAT to encode the plan relaxation problem. Unlike traditional SAT-based planning that replicates the world state for every time step, this approach employs a succinct encoding:

  • Action Representation: Each action from the initial sequential plan is represented as a single variable.
  • Ordering Variables: Variables define whether action $A$ precedes action $B$.
  • Causal Links: Variables track which actions satisfy specific preconditions.

By using a weighted objective, the solver can prioritize different optimization criteria:

  1. Minimum Deordering (MD): Retains the original plan's relative order while removing all non-essential constraints.
  2. Minimum Reordering (MR): Allows the solver to swap action orders if it reduces the total number of constraints.
  3. Least Commitment POP (LCP): A hierarchical criterion that first minimizes the number of actions in the plan, then minimizes ordering constraints.

Experimental Results

The approach was evaluated using six domains from the International Planning Competition (IPC), including depots, logistics, and rovers. Initial plans were generated using the FF planner, and the MaxSAT problems were solved using Sat4j.

Figure 1: Performance comparison showing the number of problems solved over time for different relaxation methods.

As shown in Figure 1, the MaxSAT-based methods (MD, MR, LCP) are computationally feasible for a wide range of problems, with over 60% of instances solved in under 5 seconds. While the heuristic-based KK algorithm is faster, it is limited to simple deordering.

Key Insights and Flexibility Gains

A primary finding is that reordering is significantly more powerful than deordering. By allowing the solver to change the sequence of actions, the resulting plans exhibit much higher flexibility, measured by the number of valid "linearizations" (sequential paths) within the POP.

Figure 2: Ratio of linearizations between optimal reordering (MR) and the KK heuristic across problem instances, highlighting massive flexibility gains.

In approximately 40% of the test cases, optimal reordering provided substantially more flexibility than deordering. As illustrated in Figure 2, for some complex instances, the reordered plan was over a million times more flexible than the plan produced by the standard KK heuristic. Interestingly, the study also found that the KK heuristic is surprisingly effective at finding the optimal deordering, but it cannot perform the reordering necessary to achieve these massive flexibility gains.

Conclusion and Future Work

This research demonstrates that MaxSAT is a viable and powerful tool for generating optimal partial-order plans. The succinct encoding allows the solver to handle NP-hard optimization problems efficiently. Future work may address the "transitivity explosion" in the encoding, where the number of clauses grows cubically with plan length, and explore MaxSAT solvers specifically tuned for planning domains to further scale the approach.

Summary updated

BibTeX
@inproceedings{muise2012optimally,
  author = {Christian J. Muise and Sheila A. McIlraith and J. Christopher Beck},
  title = {{Optimally Relaxing Partial-Order Plans with MaxSAT}},
  booktitle = {ICAPS},
  year = {2012},
}
Figure