Abstract
Hybrid planning domains, characterized by both discrete actions and continuous processes, present significant challenges for automated reasoning. This paper introduces the first approach to solving PDDL+ planning problems using Constraint Answer Set Programming (CASP). By translating hybrid dynamics into a combination of logic rules and numerical constraints, the proposed system handles non-linear continuous changes effectively. Evaluated on standard benchmarks like the Generator and Car domains, the CASP-based solver demonstrates superior performance over several state-of-the-art planners in non-linear settings, establishing a new bridge between logic programming and complex hybrid planning.
Introduction
In classical AI planning, transitions are typically modeled as discrete steps. However, real-world applications—such as autonomous drones or industrial power systems—operate in hybrid domains where discrete actions (e.g., turning on a switch) coexist with continuous processes (e.g., fuel consumption or battery drainage). PDDL+ is the standard language for modeling such systems, incorporating instantaneous actions, durative actions, exogenous events, and continuous processes. Despite its expressiveness, few planners can handle the full PDDL+ specification, particularly when non-linear dynamics are involved. This work investigates the efficacy of Constraint Answer Set Programming (CASP) in modeling and solving full PDDL+ problems.
Methodology
The core contribution is a novel encoding scheme that maps PDDL+ models into CASP problems, leveraging the EZCSP solver. EZCSP integrates the logical reasoning of Answer Set Programming (ASP) with the numerical solving capabilities of Constraint Programming (CP).
Encoding Scheme
- Global Timeline Mapping: Discrete states are anchored to a global continuous timeline. Durative actions are decomposed into
startandendevents, with the CP solver determining the precise time elapsed between them. - "Must" Semantics: PDDL+ requires that processes and events trigger immediately when preconditions are met. This is captured using ASP choice rules coupled with numerical constraints that invalidate a rule if the required continuous conditions are not satisfied.
- Discretize and Validate: To maintain continuous invariants (e.g., fuel levels remaining non-negative) between discrete steps, the system employs an external validation tool (VAL). If VAL detects an invariant violation, the solver dynamically expands the encoding with new variables at the failure point and re-solves.
Experimental Evaluation
The approach was tested on two benchmark domains:
- Generator Domain: Managing fuel transfer to a generator. The non-linear variant incorporates Torricelli’s law for fluid dynamics.
- Car Domain: Controlling a vehicle with acceleration and velocity bounds.
Comparative Results
The EZCSP-based approach was compared against dReal, UPMurphi, and SMTPlan+.
- Performance vs. dReal and UPMurphi: EZCSP significantly outperformed dReal in the non-linear Generator domain, where dReal frequently timed out. Similarly, EZCSP exhibited better scalability than UPMurphi, which failed to solve non-linear Car domain instances that EZCSP handled in seconds.
- Performance vs. SMTPlan+: While EZCSP proved robust for non-linear dynamics, SMTPlan+ remains faster by orders of magnitude on many instances. This performance gap is attributed to SMTPlan+'s highly optimized architecture compared to the more modular and "elaboration-tolerant" design of the EZCSP encoding.
Discussion and Insights
A key finding of this research is that logic programming offers a highly modular framework for planning. The planning module can be seamlessly integrated with other reasoning tasks, such as system diagnostics. Furthermore, the study revealed that simple, domain-specific encoding heuristics can significantly outperform complex, domain-independent algorithmic heuristics used in other solvers. The native handling of non-linear constraints by the CP component of EZCSP ensures high accuracy in physical modeling without the need for linear approximations.
Conclusion
This work establishes the first successful link between PDDL+ planning and logic programming via CASP. While currently slower than specialized SMT-based solvers, the CASP approach offers unique advantages in modularity and handling non-linearity. Future work will focus on implementing solver optimizations such as incremental grounding and multi-threading to improve execution speed and exploring hybrid reasoning under uncertainty.
Summary updated