-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating epistemic and conformant benchmarks
- Loading branch information
1 parent
d647b0d
commit 492e7ba
Showing
3 changed files
with
145 additions
and
2 deletions.
There are no files selected for viewing
56 changes: 56 additions & 0 deletions
56
src/main/resources/org/rairlab/planner/problems/conformant/bomb.clj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
; Original problem from Joerg Hoffmann and Ronen Brafman | ||
{:name "Bomb-In-The-Toilet" | ||
:background [ | ||
; Setting object types | ||
(bomb bomb1) | ||
(bomb bomb2) | ||
(bomb bomb3) | ||
(bomb bomb4) | ||
(bomb bomb5) | ||
(toilet toilet1) | ||
] | ||
|
||
|
||
:actions [ | ||
(define-action dunk [?bomb ?toilet] { | ||
:preconditions [ | ||
; Type restriction | ||
(bomb ?bomb) | ||
(toilet ?toilet) | ||
; Preconditions | ||
(not (clogged ?toilet)) | ||
] | ||
:additions [ | ||
(not (armed ?bomb)) | ||
(clogged ?toilet) | ||
] | ||
:deletions [ | ||
(armed ?bomb) | ||
(not (clogged ?toilet)) | ||
] | ||
}) | ||
|
||
(define-action flush [?toilet] { | ||
:preconditions [ (toilet ?toilet) ] | ||
:additions [ (not (clogged ?toilet)) ] | ||
:deletions [ (clogged ?toilet) ] | ||
}) | ||
] | ||
:start [ | ||
; Unknown facts don't need to be stated | ||
; since we don't assume closed world assumption. | ||
; (unknown (armed bomb1)) | ||
; (unknown (armed bomb2)) | ||
; (unknown (armed bomb3)) | ||
; (unknown (armed bomb4)) | ||
; (unknown (armed bomb5)) | ||
] | ||
:goal [ | ||
(not (armed bomb1)) | ||
(not (armed bomb2)) | ||
(not (armed bomb3)) | ||
(not (armed bomb4)) | ||
(not (armed bomb5)) | ||
] | ||
|
||
} |
81 changes: 81 additions & 0 deletions
81
src/main/resources/org/rairlab/planner/problems/conformant/safe.clj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
; Original problem from Joerg Hoffmann and Ronen Brafman | ||
{:name "Safe" | ||
:background [ ] | ||
|
||
:actions [ | ||
(define-action try [?x] { | ||
; NOTE: Currently need a precondition otherwise question-answering portion doesn't work. | ||
:preconditions [ (combination ?x) ] | ||
:additions [ (if (right-combination ?x) (safe-open))] | ||
:deletions [ ] | ||
}) | ||
] | ||
:start [ | ||
; Unknown facts don't need to be stated | ||
; since we don't assume closed world assumption. | ||
; (unknown (right-combination c1)) | ||
; (unknown (right-combination c2)) | ||
; (unknown (right-combination c3)) | ||
; (unknown (right-combination c4)) | ||
; (unknown (right-combination c5)) | ||
|
||
(combination c1) | ||
(combination c2) | ||
(combination c3) | ||
(combination c4) | ||
(combination c5) | ||
|
||
; One-of possibilities | ||
(or | ||
(and | ||
(right-combination c1) | ||
(not (right-combination c2)) | ||
(not (right-combination c3)) | ||
(not (right-combination c4)) | ||
(not (right-combination c5)) | ||
) | ||
|
||
(and | ||
(not (right-combination c1)) | ||
(right-combination c2) | ||
(not (right-combination c3)) | ||
(not (right-combination c4)) | ||
(not (right-combination c5)) | ||
) | ||
|
||
(and | ||
(not (right-combination c1)) | ||
(not (right-combination c2)) | ||
(right-combination c3) | ||
(not (right-combination c4)) | ||
(not (right-combination c5)) | ||
) | ||
|
||
(and | ||
(not (right-combination c1)) | ||
(not (right-combination c2)) | ||
(not (right-combination c3)) | ||
(right-combination c4) | ||
(not (right-combination c5)) | ||
) | ||
|
||
(and | ||
(not (right-combination c1)) | ||
(not (right-combination c2)) | ||
(not (right-combination c3)) | ||
(not (right-combination c4)) | ||
(right-combination c5) | ||
) | ||
|
||
) | ||
|
||
] | ||
:goal [ (safe-open) ] | ||
|
||
} | ||
|
||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters