-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCS170exampleProblem.pddl
More file actions
64 lines (55 loc) · 1.99 KB
/
CS170exampleProblem.pddl
File metadata and controls
64 lines (55 loc) · 1.99 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
; Problem description
; Describe one scenario within the domain constraints
; This one describes the Tower of Hanoi with 3 discs
(define (problem pb1)
(:metric minimize (total-cost))
(:domain CS170)
; Objects are candidates to replace free variables
(:objects TA_Wheeler TA_Campanile TA_Corry TA_RSF Soda Dwinell Wheeler Campanile Corry RSF Barrows)
; The initial state describe what is currently true
; Everything else is considered false
(:init
(= (total-cost) 0)
(Car_At Soda)
(InCar TA_Wheeler)
(InCar TA_Campanile)
(InCar TA_Corry)
(InCar TA_RSF)
(Path Soda Dwinell) (Path Dwinell Soda)
(Path Soda Campanile)(Path Campanile Soda)
(Path Soda Barrows)(Path Barrows Soda)
(Path Dwinell Campanile)(Path Campanile Dwinell)
(Path Wheeler Campanile)(Path Campanile Wheeler)
(Path Campanile Corry)(Path Corry Campanile)
(Path Campanile RSF)(Path RSF Campanile)
(Path Campanile Barrows)(Path Barrows Campanile)
(= (Distance Soda Dwinell) 1)
(= (Distance Dwinell Soda) 1)
(= (Distance Soda Campanile) 1)
(= (Distance Campanile Soda) 1)
(= (Distance Soda Barrows) 1)
(= (Distance Barrows Soda) 1)
(= (Distance Dwinell Campanile) 1)
(= (Distance Campanile Dwinell) 1)
(= (Distance Wheeler Campanile) 1)
(= (Distance Campanile Wheeler) 1)
(= (Distance Campanile Corry) 1)
(= (Distance Corry Campanile) 1)
(= (Distance Campanile RSF) 1)
(= (Distance RSF Campanile) 1)
(= (Distance Campanile Barrows) 1)
(= (Distance Barrows Campanile) 1)
(EmptyHome Wheeler)
(EmptyHome Campanile)
(EmptyHome Corry)
(EmptyHome RSF)
)
; The goal state describe what we desire to achieve
(:goal (and
(Car_At Soda)
(not (EmptyHome Wheeler))
(not (EmptyHome Campanile))
(not (EmptyHome Corry))
(not (EmptyHome RSF))
))
)