Classical Planning Partial-Order Planning
Sections 10.1,10.4.4 —– Nilufer Onder Department of Computer Science Michigan Technological University
- Ch. 10a – p.1/47–
Classical Planning Partial-Order Planning Sections 10.1,10.4.4 - - PowerPoint PPT Presentation
Classical Planning Partial-Order Planning Sections 10.1,10.4.4 Nilufer Onder Department of Computer Science Michigan Technological University Ch. 10a p.1/47 Outline Search vs. planning PDDL operators Partial-order planning
BUY (?s, ?i) effects: bought(?i) ~bought(~i) The operators are: GO (?x, ?y) preconditions: at(?x) preconditions: at(?s), effects: ~at(?x), at(?y) The subgoals that are currently open are italicized. for at(H) for f at(H) at(H) INIT bought(B) bought(A) ~bought(A) ~bought(B) ~bought(A) ~bought(B) bought(A) bought(B) f f at(H) add a go(J,H) action START for at(H) for f add a causal link from START FINISH Agenda:
bought(A) for f bought(B) for f at(H) for f INIT GO(J,H) at(J) ~at(J) at(H) ~bought(A) ~bought(B) at(H) bought(B) bought(A) 1 FINISH FINISH f new Agenda:
bought(A) for f bought(B) for f at(J) for 1
New agenda:
at(H) for 2 add a go(J, H) action supply at(H) for 2 from START ~at(H) GO(J,H) ~at(J) 1 GO(H,J)2 ~bought(A) ~bought(B) ~at(H) GO(J,H) ~at(J) GO(H,J)2 ~bought(A) ~bought(B) at(H) bought(A) bought(B) at(H) bought(A) for f bought(B) for f bought(A) bought(B) add a go(H,J) action (2) 1 . . . at(J) at(H) at(H) at(J) at(H) START FINISH f START 0 FINISH f
at(J) bought(B) ~at(H) GO(J,H) ~at(J) BUY(J,A) 1 GO(H,J)2 3 new agenda:
bought(B) for f ~bought(A) for 3 ~bought(A) support ~bought(A) from START at(J) for 3 at(H) at(J) at(H) bought(A) ~bought(A) ~bought(B) at(J) bought(B) ~at(H) GO(J,H) ~at(J) BUY(J,A) 1 GO(H,J)2 3 new agenda:
bought(B) for f at(J) for 3 bought(A) ~bought(A) at(H) at(J) at(H) Support at(J) from GO(H,J)−2 add BUY(J,A) (3) START 0 FINISH START 0 FINISH f f
support ~bought(B) for 4 from START new agenda:
at(J) for 4 new agenda:
none bought(B) ~at(H) GO(J,H) ~at(J) BUY(J,A) 1 GO(H,J)2 3 ~bought(A) bought(A) at(H) at(J) at(J) at(H) support at(J) from GO(H,J)−2 add BUY(J,B) (4) new agenda: bought(B) for f ~bought(A) for 3
new agenda:
~bought(B) for 4 ~at(H) GO(J,H) BUY(J,A) BUY(J,B) 1 GO(H,J)2 3 4 bought(B) bought(A) at(H) ~at(J) at(H) ~bought(A) ~bought(B) at(J) at(J) at(J) at(J) for 4 support ~at(J) for 4 from GO(H,J)−2 HAVEN’T CONSIDERED THE THREATS YET! FINISH START 0 f START 0 FINISH f
2 3 4 1 2 3 1 4 2 4 3 1 2 4 1 3 2 1 3 4 2 1 4 3 Now, the solution is a possible ordering of this plan. Those are: ~at(H) GO(J,H) BUY(J,A) BUY(J,B) 1 GO(H,J)2 3 4 bought(B) bought(A) at(H) ~at(J) at(H) ~bought(A) ~bought(B) at(J) at(J) at(J) FINISH START 0 f It should not be possible to order GO(J,H) before any of the BUY actions.
~at(H) GO(J,H) BUY(J,A) BUY(J,B) 1 GO(H,J)2 3 4 bought(B) bought(A) at(H) ~at(J) at(H) ~bought(A) ~bought(B) at(J) at(J) at(J) START 0 FINISH f This is a correct partially ordered plan. It is complete. The possible total orders are: 2 3 4 1 2 4 3 1 The agent has to go to Jim’s first. It order of getting the items does not matter. Then it has to go back home.
START REMOVE(spare,trunk) at(spare,ground) ~at(flat,axle) at(spare,axle) at(flat,axle) at(spare,trunk) at(spare,trunk) FINISH PUTON(spare,axle)
START REMOVE(spare,trunk) LEAVEOVERNIGHT ~at(flat,axle) ~at(flat,ground) ~at(spare,axle) ~at(spare,ground) ~at(spare,trunk) at(spare,ground) ~at(flat,axle) at(spare,axle) at(flat,axle) at(spare,trunk) at(spare,trunk) FINISH PUTON(spare,axle)
START REMOVE(spare,trunk) at(spare,ground) ~at(flat,axle) at(spare,axle) at(flat,axle) at(spare,trunk) REMOVE(flat,axle) at(flat,axle) at(spare,trunk) FINISH PUTON(spare,axle)