Solving Temporal Problems Using SMT: Weak Controllability

Alessandro Cimatti, Andrea Micheli, Marco Roveri

Introduction

In automated planning and scheduling, agents often face Temporal Problems with Uncertainty (TPU). These problems involve "controllable" durations, which the agent decides, and "uncontrollable" durations, such as the time it takes for a sensor to calibrate or a door to open.

Weak Controllability (WC) is a theoretical benchmark that asks: if an agent were "clairvoyant" and knew all uncontrollable durations in advance, could it find a valid schedule? While this assumes perfect foresight, it is a critical step for pre-computing solutions and establishing theoretical bounds. This paper introduces the first practical decision procedure for WC in complex problem classes like Disjunctive Temporal Problems (DTPU) by leveraging Satisfiability Modulo Theory (SMT).

SMT-Based Decision Procedure

The authors frame Weak Controllability as a refutation problem within the SMT framework, specifically using Linear Real Arithmetic (LRA). Instead of directly searching for a strategy, they use an "inverted SMT encoding" to search for a set of uncontrollable durations that cannot be countered by any controllable assignment. If the solver determines this search is "unsatisfiable," the problem is proven to be weakly controllable.

To scale this approach to large problem sets, the authors developed a Gamma Extraction encoding. This optimized encoding significantly improves the efficiency of the Z3 solver, allowing it to handle instances with thousands of time points.

Performance comparison showing that Gamma Extraction encoding significantly outperforms the basic inverted encoding in terms of cumulative time and solved instances.

Strategy Extraction and Piecewise-Linearity

Beyond simply deciding if a problem is solvable, the paper provides methods to extract the actual execution strategy—the mathematical function guiding the agent's actions.

  • Linear Strategies: The authors first attempt to find a single linear function where each controllable time point is a combination of uncontrollable ones. However, they prove that even simple convex problems may not admit a single linear strategy.
  • Piecewise-Linear Strategies: To address this, they partition the space of possibilities into "simplexes" and find a linear strategy for each.
  • Lazy Expansion: To prevent an exponential explosion of pieces, the authors introduced a Lazy Expansion algorithm. This method only creates a new "piece" of the strategy when the current ones fail, resulting in much smaller and more manageable strategies.
Comparison of strategy extraction methods, demonstrating that Lazy Expansion and Incremental Weakening scale better than exhaustive simplex decomposition.

Key Results and Insights

The evaluation on a benchmark of 1,524 instances (including DTPU, TCSPU, and STPU) yielded several key insights:

  • Refutation Power: Framing the problem as a search for counter-examples allows the use of highly optimized off-the-shelf SMT solvers.
  • Efficiency of Lazy Methods: In piecewise-linear extraction, the Lazy method often found solutions in just a few iterations (e.g., 4 iterations) where exhaustive methods would require dozens of regions.
  • Scalability: The proposed techniques represent the first implemented decision procedure capable of handling the weak controllability of DTPUs at scale.

Conclusion and Future Work

This research bridges the gap between theoretical temporal logic and practical scheduling tools. While Weak Controllability assumes clairvoyance, the authors acknowledge that Dynamic Controllability—where durations are observed in real-time—is the ultimate goal. Future work will focus on using SMT proof-extraction to build strategies more directly and extending these methods to dynamic environments.

Summary updated

BibTeX
@inproceedings{cimatti2012solving,
  author = {Alessandro Cimatti and Andrea Micheli and Marco Roveri},
  title = {{Solving Temporal Problems Using SMT: Weak Controllability}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2012},
  doi = {10.1609/aaai.v26i1.8136},
}
Figure