Added IPC 2000 Elevator example instances.
This commit is contained in:
parent
786eabb748
commit
ec886e345b
66
instances/ipc-2000-elevator-m10-strips/domain.pddl
Normal file
66
instances/ipc-2000-elevator-m10-strips/domain.pddl
Normal file
@ -0,0 +1,66 @@
|
||||
(define (domain miconic)
|
||||
(:requirements :strips)
|
||||
(:types passenger - object
|
||||
floor - object
|
||||
)
|
||||
|
||||
(:predicates
|
||||
(origin ?person - passenger ?floor - floor)
|
||||
;; entry of ?person is ?floor
|
||||
;; inertia
|
||||
|
||||
(destin ?person - passenger ?floor - floor)
|
||||
;; exit of ?person is ?floor
|
||||
;; inertia
|
||||
|
||||
(above ?floor1 - floor ?floor2 - floor)
|
||||
;; ?floor2 is located above of ?floor1
|
||||
|
||||
(boarded ?person - passenger)
|
||||
;; true if ?person has boarded the lift
|
||||
|
||||
(not-boarded ?person - passenger)
|
||||
;; true if ?person has not boarded the lift
|
||||
|
||||
(served ?person - passenger)
|
||||
;; true if ?person has alighted as her destination
|
||||
|
||||
(not-served ?person - passenger)
|
||||
;; true if ?person is not at their destination
|
||||
|
||||
(lift-at ?floor - floor)
|
||||
;; current position of the lift is at ?floor
|
||||
)
|
||||
|
||||
|
||||
;;stop and allow boarding
|
||||
|
||||
(:action board
|
||||
:parameters (?f - floor ?p - passenger)
|
||||
:precondition (and (lift-at ?f) (origin ?p ?f))
|
||||
:effect (boarded ?p))
|
||||
|
||||
(:action depart
|
||||
:parameters (?f - floor ?p - passenger)
|
||||
:precondition (and (lift-at ?f) (destin ?p ?f)
|
||||
(boarded ?p))
|
||||
:effect (and (not (boarded ?p))
|
||||
(served ?p)))
|
||||
;;drive up
|
||||
|
||||
(:action up
|
||||
:parameters (?f1 - floor ?f2 - floor)
|
||||
:precondition (and (lift-at ?f1) (above ?f1 ?f2))
|
||||
:effect (and (lift-at ?f2) (not (lift-at ?f1))))
|
||||
|
||||
|
||||
;;drive down
|
||||
|
||||
(:action down
|
||||
:parameters (?f1 - floor ?f2 - floor)
|
||||
:precondition (and (lift-at ?f1) (above ?f2 ?f1))
|
||||
:effect (and (lift-at ?f2) (not (lift-at ?f1))))
|
||||
)
|
||||
|
||||
|
||||
|
58
instances/ipc-2000-elevator-m10-strips/problem-03-00.pddl
Normal file
58
instances/ipc-2000-elevator-m10-strips/problem-03-00.pddl
Normal file
@ -0,0 +1,58 @@
|
||||
|
||||
|
||||
|
||||
(define (problem mixed-f6-p3-u0-v0-g0-a0-n0-A0-B0-N0-F0-r0)
|
||||
(:domain miconic)
|
||||
(:objects p0 p1 p2 - passenger
|
||||
f0 f1 f2 f3 f4 f5 - floor)
|
||||
|
||||
|
||||
(:init
|
||||
(above f0 f1)
|
||||
(above f0 f2)
|
||||
(above f0 f3)
|
||||
(above f0 f4)
|
||||
(above f0 f5)
|
||||
|
||||
(above f1 f2)
|
||||
(above f1 f3)
|
||||
(above f1 f4)
|
||||
(above f1 f5)
|
||||
|
||||
(above f2 f3)
|
||||
(above f2 f4)
|
||||
(above f2 f5)
|
||||
|
||||
(above f3 f4)
|
||||
(above f3 f5)
|
||||
|
||||
(above f4 f5)
|
||||
|
||||
|
||||
|
||||
(origin p0 f1)
|
||||
(destin p0 f4)
|
||||
|
||||
(origin p1 f3)
|
||||
(destin p1 f1)
|
||||
|
||||
(origin p2 f5)
|
||||
(destin p2 f1)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
(lift-at f0)
|
||||
)
|
||||
|
||||
|
||||
(:goal (and
|
||||
(served p0)
|
||||
(served p1)
|
||||
(served p2)
|
||||
))
|
||||
)
|
||||
|
||||
|
58
instances/ipc-2000-elevator-m10-strips/problem-03-01.pddl
Normal file
58
instances/ipc-2000-elevator-m10-strips/problem-03-01.pddl
Normal file
@ -0,0 +1,58 @@
|
||||
|
||||
|
||||
|
||||
(define (problem mixed-f6-p3-u0-v0-g0-a0-n0-A0-B0-N0-F0-r1)
|
||||
(:domain miconic)
|
||||
(:objects p0 p1 p2 - passenger
|
||||
f0 f1 f2 f3 f4 f5 - floor)
|
||||
|
||||
|
||||
(:init
|
||||
(above f0 f1)
|
||||
(above f0 f2)
|
||||
(above f0 f3)
|
||||
(above f0 f4)
|
||||
(above f0 f5)
|
||||
|
||||
(above f1 f2)
|
||||
(above f1 f3)
|
||||
(above f1 f4)
|
||||
(above f1 f5)
|
||||
|
||||
(above f2 f3)
|
||||
(above f2 f4)
|
||||
(above f2 f5)
|
||||
|
||||
(above f3 f4)
|
||||
(above f3 f5)
|
||||
|
||||
(above f4 f5)
|
||||
|
||||
|
||||
|
||||
(origin p0 f2)
|
||||
(destin p0 f5)
|
||||
|
||||
(origin p1 f5)
|
||||
(destin p1 f2)
|
||||
|
||||
(origin p2 f4)
|
||||
(destin p2 f1)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
(lift-at f0)
|
||||
)
|
||||
|
||||
|
||||
(:goal (and
|
||||
(served p0)
|
||||
(served p1)
|
||||
(served p2)
|
||||
))
|
||||
)
|
||||
|
||||
|
77
instances/ipc-2000-elevator-m10-strips/problem-04-00.pddl
Normal file
77
instances/ipc-2000-elevator-m10-strips/problem-04-00.pddl
Normal file
@ -0,0 +1,77 @@
|
||||
|
||||
|
||||
|
||||
(define (problem mixed-f8-p4-u0-v0-g0-a0-n0-A0-B0-N0-F0-r0)
|
||||
(:domain miconic)
|
||||
(:objects p0 p1 p2 p3 - passenger
|
||||
f0 f1 f2 f3 f4 f5 f6 f7 - floor)
|
||||
|
||||
|
||||
(:init
|
||||
(above f0 f1)
|
||||
(above f0 f2)
|
||||
(above f0 f3)
|
||||
(above f0 f4)
|
||||
(above f0 f5)
|
||||
(above f0 f6)
|
||||
(above f0 f7)
|
||||
|
||||
(above f1 f2)
|
||||
(above f1 f3)
|
||||
(above f1 f4)
|
||||
(above f1 f5)
|
||||
(above f1 f6)
|
||||
(above f1 f7)
|
||||
|
||||
(above f2 f3)
|
||||
(above f2 f4)
|
||||
(above f2 f5)
|
||||
(above f2 f6)
|
||||
(above f2 f7)
|
||||
|
||||
(above f3 f4)
|
||||
(above f3 f5)
|
||||
(above f3 f6)
|
||||
(above f3 f7)
|
||||
|
||||
(above f4 f5)
|
||||
(above f4 f6)
|
||||
(above f4 f7)
|
||||
|
||||
(above f5 f6)
|
||||
(above f5 f7)
|
||||
|
||||
(above f6 f7)
|
||||
|
||||
|
||||
|
||||
(origin p0 f7)
|
||||
(destin p0 f6)
|
||||
|
||||
(origin p1 f1)
|
||||
(destin p1 f3)
|
||||
|
||||
(origin p2 f1)
|
||||
(destin p2 f7)
|
||||
|
||||
(origin p3 f2)
|
||||
(destin p3 f4)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
(lift-at f0)
|
||||
)
|
||||
|
||||
|
||||
(:goal (and
|
||||
(served p0)
|
||||
(served p1)
|
||||
(served p2)
|
||||
(served p3)
|
||||
))
|
||||
)
|
||||
|
||||
|
77
instances/ipc-2000-elevator-m10-strips/problem-04-01.pddl
Normal file
77
instances/ipc-2000-elevator-m10-strips/problem-04-01.pddl
Normal file
@ -0,0 +1,77 @@
|
||||
|
||||
|
||||
|
||||
(define (problem mixed-f8-p4-u0-v0-g0-a0-n0-A0-B0-N0-F0-r1)
|
||||
(:domain miconic)
|
||||
(:objects p0 p1 p2 p3 - passenger
|
||||
f0 f1 f2 f3 f4 f5 f6 f7 - floor)
|
||||
|
||||
|
||||
(:init
|
||||
(above f0 f1)
|
||||
(above f0 f2)
|
||||
(above f0 f3)
|
||||
(above f0 f4)
|
||||
(above f0 f5)
|
||||
(above f0 f6)
|
||||
(above f0 f7)
|
||||
|
||||
(above f1 f2)
|
||||
(above f1 f3)
|
||||
(above f1 f4)
|
||||
(above f1 f5)
|
||||
(above f1 f6)
|
||||
(above f1 f7)
|
||||
|
||||
(above f2 f3)
|
||||
(above f2 f4)
|
||||
(above f2 f5)
|
||||
(above f2 f6)
|
||||
(above f2 f7)
|
||||
|
||||
(above f3 f4)
|
||||
(above f3 f5)
|
||||
(above f3 f6)
|
||||
(above f3 f7)
|
||||
|
||||
(above f4 f5)
|
||||
(above f4 f6)
|
||||
(above f4 f7)
|
||||
|
||||
(above f5 f6)
|
||||
(above f5 f7)
|
||||
|
||||
(above f6 f7)
|
||||
|
||||
|
||||
|
||||
(origin p0 f0)
|
||||
(destin p0 f5)
|
||||
|
||||
(origin p1 f7)
|
||||
(destin p1 f4)
|
||||
|
||||
(origin p2 f0)
|
||||
(destin p2 f7)
|
||||
|
||||
(origin p3 f1)
|
||||
(destin p3 f6)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
(lift-at f0)
|
||||
)
|
||||
|
||||
|
||||
(:goal (and
|
||||
(served p0)
|
||||
(served p1)
|
||||
(served p2)
|
||||
(served p3)
|
||||
))
|
||||
)
|
||||
|
||||
|
6
instances/ipc-2000-elevator-m10-strips/solutions
Normal file
6
instances/ipc-2000-elevator-m10-strips/solutions
Normal file
@ -0,0 +1,6 @@
|
||||
instance | minimal horizon | #solutions with minimal horizon
|
||||
============================================================
|
||||
problem-03-00.pddl | 10 | 12
|
||||
problem-03-01.pddl | 11 | 40
|
||||
problem-04-00.pddl | 14 | 180
|
||||
problem-04-01.pddl | 13 | 120
|
Reference in New Issue
Block a user