Skip to content

Commit

Permalink
size constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
rezan21 committed Jan 16, 2019
1 parent 31b4800 commit 70e92d9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions supermarket-domain.pddl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
)

(:functions
(numberofcarrings ?a - agent)
(capacity ?a - agent)
)
(:predicates
Expand All @@ -19,24 +20,23 @@
;(noton ?i - item ?a - agent)
(haspath ?from - location ?to - location)


)


(:durative-action pick
:parameters (?i - item ?a - agent ?l - location)
:duration (= ?duration 100)
:condition(and(over all(at ?a ?l)) (at start(at ?i ?l)) (at start <(capacity ?a) 2)
:condition(and(over all(at ?a ?l)) (at start(at ?i ?l)) (at start <(capacity ?a) 2) (<(numberofcarrings ?a)(capacity ?a))
)
:effect(and (at start(not (at ?i ?l))) (at end(on ?i ?a)))
:effect(and (at start(not (at ?i ?l))) (at end(on ?i ?a)) (at end(increase (numberofcarrings ?a) 1)) )
)

(:durative-action drop
:parameters (?i - item ?a - agent ?l - location)
:duration (= ?duration 100)
:condition(and(over all(at ?a ?l)) (at start(on ?i ?a))
)
:effect(and (at start(not (on ?i ?a))) (at end(at ?i ?l)))
:effect(and (at start(not (on ?i ?a))) (at end(at ?i ?l)) (at end(decrease (numberofcarrings) 1)))
)

(:durative-action move
Expand Down

0 comments on commit 70e92d9

Please sign in to comment.