Assigning a division value in PDDL 2.1 , Metric FF

I have 3 variables in functions section: (x) (y) (z)

I have initialized all of them to 0 in my problem init.

An action in my domain changes the value of x and y.

Now when I try to assign the value of x/y to z , it says it is not a linear task.

(assign (z) (/ (x) (y) ) )

But when I write (assign (z) (/ (x) 2 ) ) it assigned correct value which is x/2, similarly (assign (z) (/ (y) 2 ) ) it is assigned correct value (y/2). This ensured that x and y are not zeroes.

Now why (assign (z) (/ (x) (y) ) ) is not working? Please help me out.



Read more here: https://stackoverflow.com/questions/67011691/assigning-a-division-value-in-pddl-2-1-metric-ff

Content Attribution

This content was originally published by algo_learner at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: