Hostname: page-component-77f85d65b8-v2srd Total loading time: 0 Render date: 2026-03-28T18:47:00.803Z Has data issue: false hasContentIssue false

Multi-Shot Answer Set Programming for Flexible Payroll Management

Published online by Cambridge University Press:  02 May 2024

BENJAMIN CALLEWAERT
Affiliation:
De Nayer Campus, Department of Computer Science, KU Leuven, J.-P. De Nayerlaan 5, Sint-Katelijne-Waver 2860, Belgium Leuven.AI- KU Leuven Institute for AI, Leuven, B-3000, Belgium Flanders Make – DTAI-FET, Leuven, Belgium (e-mail: benjamin.callewaert@kuleuven.be)
JOOST VENNEKENS
Affiliation:
De Nayer Campus, Department of Computer Science, KU Leuven, J.-P. De Nayerlaan 5, Sint-Katelijne-Waver 2860, Belgium Leuven.AI- KU Leuven Institute for AI, Leuven, B-3000, Belgium Flanders Make – DTAI-FET, Leuven, Belgium (e-mail: joost.vennekens@kuleuven.be)
Rights & Permissions [Opens in a new window]

Abstract

Payroll management is a critical business task that is subject to a large number of rules, which vary widely between companies, sectors, and countries. Moreover, the rules are often complex and change regularly. Therefore, payroll management systems must be flexible in design. In this paper, we suggest an approach based on a flexible answer set programming (ASP) model and an easy-to-read tabular representation based on the decision model and notation standard. It allows HR consultants to represent complex rules without the need for a software engineer and to ultimately design payroll systems for a variety of different scenarios. We show how the multi-shot solving capabilities of the clingo ASP system can be used to reach the performance that is necessary to handle real-world instances.

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 (http://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), 2024. Published by Cambridge University Press
Figure 0

Fig. 1. Example of DMN table determining eligibility for holiday bonus.

Figure 1

Fig. 2. Axioms of the discrete functional event calculus.

Figure 2

Fig. 3. Axioms of the simplified discrete functional event calculus.

Figure 3

Fig. 4. Case-specific representation of a basic scenario.

Figure 4

Fig. 5. Case-specific representation of conditional effects and triggered actions.

Figure 5

Fig. 6. Case-specific representation of defined and count fluents.

Figure 6

Fig. 7. Extended case-specific representation of triggered actions and effects.

Figure 7

Fig. 8. Case-specific representation of relevant fluents.

Figure 8

Fig. 9. Case-specific representation of relevant fluents and output.

Figure 9

Algorithm 1 Solving algorithm

Figure 10

Algorithm 2 searchNext algorithm

Figure 11

Fig. 10. Computation time of single-shot and multi-shot implementation.

Figure 12

Fig. 11. Run time of multi-shot approach for various numbers of changepoints.

Figure 13

Table B1. Level mapping of DFEC implementation