Journal of Logic and Computation Advance Access published online on November 6, 2009
Journal of Logic and Computation, doi:10.1093/logcom/exp071
Original Papers |
Answer Set Programming with Resources
Dipartimento di Informatica, Università di LAquila, via Vetoio, I-67010 LAquila, Italy.
E-mail: stefcost{at}di.univaq.it
Dipartimento di Matematica e Informatica, Università di Perugia, via Vanvitelli, 1, I-06123 Perugia, Italy.
E-mail: formis{at}dipmat.unipg.it
Received 1 January 2008.
| Abstract |
|---|
In this article, we propose an extension of Answer Set Programming (ASP) to support declarative reasoning on consumption and production of resources. We call the proposed extension RASP, standing for Resourced ASP. Resources are modeled by introducing special atoms, called amount-atoms, to which we associate quantities that represent the available amount of a certain resource. The firingof aRASP rule involving amount-atoms can both consume and produce resources. A RASP rule can be fired several times, according to its definition and to the available quantities of required resources. We define the semantics for RASP programs by extending the usual answer set semantics. Different answer sets correspond to different possible allocations of available resources. We then propose an implementation based on standard ASP-solvers. The implementation consists of a standard translation of each RASP rule into a set of plain ASP-rules and of an inference engine that manages the firing of RASP rules.
Keywords: Answer set programming; non-monotonic logic programming; quantitative reasoning; language extensions