forked from potassco/pddl-instances
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdomain.pddl
49 lines (42 loc) · 1.23 KB
/
domain.pddl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
(define (domain openstacks-time-numeric-ADL)
(:requirements :typing :adl :durative-actions :numeric-fluents)
(:types order product)
(:predicates
(includes ?o - order ?p - product)
(waiting ?o - order)
(started ?o - order)
(shipped ?o - order)
(made ?p - product)
(not-made ?p - product)
)
(:functions
(stacks-in-use)
(max-stacks)
(make-time ?p - product)
)
(:durative-action start-order
:parameters (?o - order)
:duration (= ?duration 1)
:condition (and (at start (waiting ?o))(at start (< (stacks-in-use) (max-stacks))))
:effect (and (at start (not (waiting ?o)))(at end (started ?o))(at start (increase (stacks-in-use) 1)))
)
(:durative-action make-product
:parameters (?p - product)
:duration (= ?duration (make-time ?p))
:condition (and (at start (not (made ?p)))
(at start (forall (?o - order)
(imply (includes ?o ?p) (started ?o)))))
:effect (at end (made ?p))
)
(:durative-action ship-order
:parameters (?o - order)
:duration (= ?duration 1)
:condition (and (at start (started ?o))
(at start
(forall (?p - product)
(imply (includes ?o ?p) (made ?p)))))
:effect (and (at start (not (started ?o)))
(at end (shipped ?o))
(at end (decrease (stacks-in-use) 1)))
)
)