Hostname: page-component-76d6cb85b7-s74w7 Total loading time: 0 Render date: 2026-07-09T22:45:30.169Z Has data issue: false hasContentIssue false

On the Generalization of Learned Constraints for ASP Solving in Temporal Domains

Published online by Cambridge University Press:  06 February 2025

JAVIER ROMERO
Affiliation:
University of Potsdam, Potsdam, Brandenburg, Germany, (e-mails: javier@cs.uni-potsdam.de, torsten@cs.uni-potsdam.de, kstrauch@uni-potsdam.de)
TORSTEN SCHAUB
Affiliation:
University of Potsdam, Potsdam, Brandenburg, Germany, (e-mails: javier@cs.uni-potsdam.de, torsten@cs.uni-potsdam.de, kstrauch@uni-potsdam.de)
KLAUS STRAUCH
Affiliation:
University of Potsdam, Potsdam, Brandenburg, Germany, (e-mails: javier@cs.uni-potsdam.de, torsten@cs.uni-potsdam.de, kstrauch@uni-potsdam.de)
Rights & Permissions [Opens in a new window]

Abstract

The representation of a temporal problem in answer set programming (ASP) usually boils down to using copies of variables and constraints, one for each time stamp, no matter whether it is directly encoded or expressed via an action or temporal language. The multiplication of variables and constraints is commonly done during grounding, and the solver is completely ignorant about the temporal relationship among the different instances. On the other hand, a key factor in the performance of today’s ASP solvers is conflict-driven constraint learning. Our question in this paper is whether a constraint learned for particular time steps can be generalized and reused at other time steps, and ultimately whether this enhances the overall solver performance on temporal problems. Knowing well the domain of time, we study conditions under which learned dynamic constraints can be generalized. Notably, we identify a property of temporal representations that enables the generalization of learned constraints across all time steps. It turns out that most ASP planning encodings either satisfy this property or can be easily adapted to do so. In addition, we propose a general translation that transforms programs to fulfill this property. Finally, we empirically evaluate the impact of adding the generalized constraints to an ASP solver.

Information

Type
Original Article
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2025. Published by Cambridge University Press
Figure 0

Fig. 1. Representation of different shifted versions of the nogood $\delta = \{{{\mathbf {T}} {a_3}}\}$. The surrounding rectangles cover the interval of the nogoods needed to prove them. For example, the rectangle of $\{{{\mathbf {T}} {a_2}}\}$ covers the interval $[1,3]$ because $\{{{\mathbf {T}} {a_2}}\}$ is a resolvent of $\Psi _{\Pi _1}{[1,3]}$.

Figure 1

Fig. 2. Transition $\mathit {G}(\Pi _1)$ of temporal program $\Pi _1$. The nodes that belong to some solution of length $4$ have a gray background. The transitions of those solutions are represented by normal arrows, while the other arrows are dashed.

Figure 2

Table 1. Single-shot solving of PDDL benchmarks

Figure 3

Table 2. Single-shot solving of ASP benchmarks

Figure 4

Table 3. Multi-shot solving of PDDL benchmarks

Figure 5

Table 4. Multi-shot solving of ASP benchmarks

Supplementary material: File

Romero et al. supplementary material

Romero et al. supplementary material
Download Romero et al. supplementary material(File)
File 319.7 KB