Suspected timeout problem in PDDL (function usage)

1.1k views Asked by At

I am starting to learn PDDL and make a domain where 2 agents fight each other and simulate a fight where my hero should win and maximize it's health points. I am facing Suspected timeout plan error when trying to compile my project on http://editor.planning.domains/

My idea is to create some functions for hit points, mana or attack and use different actions/abilities to decrease the agent's health/mana when they fight each other, for that I needed to decrease the values and to set a goal where the enemy hero is killed.

I started with this simple example, this is my session: http://editor.planning.domains/#read_session=xoSpf2es0Y

The plan I expected to get when writing this code is to get 4 melee attacks in order to kill the enemy.

Can I write something like (:goal (= (health arthas) 0)) in the problem file? I haven't seen any PDDL example write anything similar to that.

1

There are 1 answers

4
haz On

So if it returns that error immediately, it means that there is something wrong with the PDDL (a true timeout would be around 10s).

What's happening there is that you're trying to handle a numeric-type planning problem with a non-numeric planner.

As an aside, you should share the read_session links to the editor sessions rather than the edit_session one you have (otherwise you are giving us all access to edit the one session you've shared).