Hostname: page-component-77f85d65b8-jkvpf Total loading time: 0 Render date: 2026-03-28T14:20:58.229Z Has data issue: false hasContentIssue false

ASP-FZN: A Translation-Based Constraint Answer Set Solver

Published online by Cambridge University Press:  05 September 2025

THOMAS EITER
Affiliation:
TU Wien, Vienna, Austria (e-mails: thomas.eiter@tuwien.ac.at, tobias.geibinger@tuwien.ac.at, nysret.musliu@tuwien.ac.at)
TOBIAS GEIBINGER
Affiliation:
TU Wien, Vienna, Austria (e-mails: thomas.eiter@tuwien.ac.at, tobias.geibinger@tuwien.ac.at, nysret.musliu@tuwien.ac.at)
NYSRET MUSLIU
Affiliation:
TU Wien, Vienna, Austria (e-mails: thomas.eiter@tuwien.ac.at, tobias.geibinger@tuwien.ac.at, nysret.musliu@tuwien.ac.at)
JOHANNES OETSCH
Affiliation:
Jönköping University, Jönköping, Sweden (e-mail: johannes.oetsch@ju.se)
TOBIAS KAMINSKI
Affiliation:
Bosch Center for AI, Renningen, Germany (e-mail: tobias.kaminski@de.bosch.com)
Rights & Permissions [Opens in a new window]

Abstract

We present the solver asp-fzn for Constraint Answer Set Programming (CASP), which extends ASP with linear constraints. Our approach is based on translating CASP programs into the solver-independent FlatZinc language that supports several Constraint Programming and Integer Programming backend solvers. Our solver supports a rich language of linear constraints, including some common global constraints. As for evaluation, we show that asp-fzn is competitive with state-of-the-art ASP solvers on benchmarks taken from past ASP competitions. Furthermore, we evaluate it on several CASP problems from the literature and compare its performance with clingcon, which is a prominent CASP solver that supports most of the asp-fzn language. The performance of asp-fzn is very promising as it is already competitive on plain ASP and even outperforms clingcon on some CASP benchmarks.

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. Running example (left) solved with asp-fzn (dashed lines separate answer sets).

Figure 1

Table 1. ASP problems, $n$ instances, type T = (o)ptimization $\mid$ (d)ecision, (*) non-tight

Figure 2

Table 2. Comparison of asp-fzn with ASP solvers on plain ASP benchmarks. The symbols next to the score indicate whether a higher value ($\uparrow$) or lower value ($\downarrow$) is better

Figure 3

Table 3. asp-fzn vs. clingcon on PMSP (strict / non-strict)

Figure 4

Fig 2. Partial TLSPS encoding used by asp-fzn.

Figure 5

Table 4. asp-fzn vs. clingcon on TLSPS

Figure 6

Table 5. asp-fzn vs. clingcon on MAPF

Supplementary material: File

Eiter et al. supplementary material

Eiter et al. supplementary material
Download Eiter et al. supplementary material(File)
File 1.2 MB