aiplan4eu / unified-planning

The AIPlan4EU Unified Planning Library
Apache License 2.0
181 stars 39 forks source link

Issue with Plus (+) Expression Handling Multiple Arguments in ANML #587

Closed carladavesa closed 4 days ago

carladavesa commented 5 months ago

Hello,

The Plus expression in Unified Planning is expected to handle more than two arguments, such as Plus(a, b, c) or Plus([a, b, c]). However, during the conversion process from PDDL to ANML, the handling of this expression seems to be incorrect. ANML throws an error, stating that it only accepts a fixed number of two arguments.

The expected behavior is to sum all the provided arguments, giving preference to summing from left to right.

image

image

Desktop:

mikand commented 5 months ago

@alvalentini It looks like a bug in up-tamer...

alvalentini commented 5 months ago

Yes! I'll fix it asap

alvalentini commented 5 months ago

This issue should be fixed updating up-tamer to version 1.1.3