Computing & Information Sciences Kansas State University Lecture 21 of 42 CIS 530 / 730 Artificial Intelligence Lecture 21 of 42 Planning: Graph Planning.

Slides:



Advertisements
Similar presentations
Practical Planning: Scheduling and Hierarchical Task Networks Chapter CS 63 Adapted from slides by Tim Finin and Marie desJardins.
Advertisements

CSE391 – 2005 NLP 1 Planning The Planning problem Planning with State-space search.
Planning II: Partial Order Planning
Plan Generation & Causal-Link Planning 1 José Luis Ambite.
Computing & Information Sciences Kansas State University Lecture 16 of 42 CIS 530 / 730 Artificial Intelligence Lecture 16 of 42 Knowledge Engineering.
Computing & Information Sciences Kansas State University Lecture 20 of 42 CIS 530 / 730 Artificial Intelligence Lecture 20 of 42 Introduction to Classical.
Computing & Information Sciences Kansas State University Lecture 24 of 42 CIS 530 / 730 Artificial Intelligence Lecture 24 of 42 Planning: Monitoring &
Planning Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 11.
Planning II GraphPlan and Russell and Norvig: ch.12 CMSC421 – Fall 2006 based on material from Jim Blythe, JC Latombe, Marie desJardins and Daphne Koller.
Artificial Intelligence Chapter 11: Planning
Computing & Information Sciences Kansas State University Lecture 11 of 42 CIS 530 / 730 Artificial Intelligence Lecture 11 of 42 William H. Hsu Department.
Planning Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 11.
1 Planning Chapters 11 and 12 Thanks: Professor Dan Weld, University of Washington.
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 6 of 41 William H. Hsu Department of Computing.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 26 of 41 Friday, 22 October.
April 3, 2006AI: Chapter 11: Planning1 Artificial Intelligence Chapter 11: Planning Michael Scherger Department of Computer Science Kent State University.
Homework 1 ( Written Portion )  Max : 75  Min : 38  Avg : 57.6  Median : 58 (77%)
Computing & Information Sciences Kansas State University Lecture 10 of 42 CIS 530 / 730 Artificial Intelligence Lecture 10 of 42 William H. Hsu Department.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 9 of 14 Friday, 10 September.
Computing & Information Sciences Kansas State University Lecture 9 of 42 CIS 530 / 730 Artificial Intelligence Lecture 9 of 42 William H. Hsu Department.
Computing & Information Sciences Kansas State University Wednesday, 15 Oct 2008CIS 530 / 730: Artificial Intelligence Lecture 20 of 42 Wednesday, 15 October.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 21 of 41 Wednesday, 08.
Computing & Information Sciences Kansas State University Wednesday, 22 Oct 2008CIS 530 / 730: Artificial Intelligence Lecture 22 of 42 Wednesday, 22 October.
Computing & Information Sciences Kansas State University Wednesday, 20 Sep 2006CIS 490 / 730: Artificial Intelligence Lecture 12 of 42 Wednesday, 20 September.
Computing & Information Sciences Kansas State University Lecture 22 of 42 CIS 530 / 730 Artificial Intelligence Lecture 22 of 42 Planning: Sensorless and.
Computing & Information Sciences Kansas State University Wednesday, 25 Oct 2006CIS 490 / 730: Artificial Intelligence Lecture 26 of 42 Wednesday. 25 October.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 11 of 41 Wednesday, 15.
Computing & Information Sciences Kansas State University Lecture 8 of 42 CIS 530 / 730 Artificial Intelligence Lecture 8 of 42 William H. Hsu Department.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 13 of 41 Monday, 20 September.
Computing & Information Sciences Kansas State University Lecture 13 of 42 CIS 530 / 730 Artificial Intelligence Lecture 13 of 42 William H. Hsu Department.
Computing & Information Sciences Kansas State University Lecture 40 of 42 CIS 530 / 730 Artificial Intelligence Lecture 40 of 42 A Brief Survey of Computer.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 17 Wednesday, 01 October.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 12 Friday, 17 September.
Computing & Information Sciences Kansas State University Lecture 14 of 42 CIS 530 / 730 Artificial Intelligence Lecture 14 of 42 William H. Hsu Department.
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 8 of 41 William H. Hsu Department of Computing.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 9 of 42 Wednesday, 14.
Computing & Information Sciences Kansas State University Monday, 25 Sep 2006CIS 490 / 730: Artificial Intelligence Lecture 14 of 42 Monday, 25 September.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 23 Friday, 17 October.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 14 of 41 Wednesday, 22.
Computing & Information Sciences Kansas State University Lecture 15 of 42 CIS 530 / 730 Artificial Intelligence Lecture 15 of 42 William H. Hsu Department.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 18 of 41 Friday, 01 October.
Computing & Information Sciences Kansas State University Monday, 11 Sep 2006CIS 490 / 730: Artificial Intelligence Lecture 8 of 42 Monday, 11 September.
AI Lecture 17 Planning Noémie Elhadad (substituting for Prof. McKeown)
Computing & Information Sciences Kansas State University Monday, 23 Oct 2006CIS 490 / 730: Artificial Intelligence Lecture 25 of 42 Monday, 23 October.
Computing & Information Sciences Kansas State University Friday, 20 Oct 2006CIS 490 / 730: Artificial Intelligence Lecture 24 of 42 Friday, 20 October.
Computing & Information Sciences Kansas State University Lecture 12 of 42 CIS 530 / 730 Artificial Intelligence Lecture 12 of 42 William H. Hsu Department.
1 CMSC 471 Fall 2004 Class #21 – Thursday, November 11.
1 CMSC 471 Fall 2002 Class #24 – Wednesday, November 20.
Computing & Information Sciences Kansas State University Friday, 08 Sep 2006CIS 490 / 730: Artificial Intelligence Lecture 7 of 42 Friday, 08 September.
Computing & Information Sciences Kansas State University Wednesday, 13 Sep 2006CIS 490 / 730: Artificial Intelligence Lecture 10 of 42 Wednesday, 13 September.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 24 of 41 Monday, 18 October.
Computing & Information Sciences Kansas State University CIS 530 / 730: Artificial Intelligence Lecture 09 of 42 Wednesday, 17 September 2008 William H.
ADVANCED PLANNING TECHNIQUES Dr. Adam Anthony Lecture 22.
Computing & Information Sciences Kansas State University Monday, 09 Oct 2006CIS 490 / 730: Artificial Intelligence Lecture 19 of 42 Monday, 09 October.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 14 of 42 Wednesday, 22.
Computing & Information Sciences Kansas State University Wednesday, 04 Oct 2006CIS 490 / 730: Artificial Intelligence Lecture 17 of 42 Wednesday, 04 October.
Computing & Information Sciences Kansas State University Friday, 13 Oct 2006CIS 490 / 730: Artificial Intelligence Lecture 21 of 42 Friday, 13 October.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Monday, 28 November 2005 William.
Computing & Information Sciences Kansas State University Wednesday, 25 Oct 2006CIS 490 / 730: Artificial Intelligence Lecture 26 of 42 Wednesday. 25 October.
Computing & Information Sciences Kansas State University Monday, 18 Sep 2006CIS 490 / 730: Artificial Intelligence Lecture 11 of 42 Monday, 18 September.
Computing & Information Sciences Kansas State University Friday, 03 Oct 2008CIS 530 / 730: Artificial Intelligence Lecture 16 of 42 Friday, 03 October.
Class #17 – Thursday, October 27
Planning José Luis Ambite.
Graphplan/ SATPlan Chapter
Class #19 – Monday, November 3
Class #20 – Wednesday, November 5
Graphplan/ SATPlan Chapter
Graphplan/ SATPlan Chapter
Class #17 – Tuesday, October 30
Presentation transcript:

Computing & Information Sciences Kansas State University Lecture 21 of 42 CIS 530 / 730 Artificial Intelligence Lecture 21 of 42 Planning: Graph Planning and Hierarchical Abstraction William H. Hsu Department of Computing and Information Sciences, KSU KSOL course page: Course web site: Instructor home page: Reading for Next Class: Section 11.4 – 11.7, p. 395 – 408, Russell & Norvig 2 nd edition

Computing & Information Sciences Kansas State University Lecture 21 of 42 CIS 530 / 730 Artificial Intelligence Lecture Outline Reading for Next Class: Sections 11.4 – 11.7 (p. 395 – 408), R&N 2 e Last Class: Sections 11.1 – 11.2 (p. 375 – 386), R&N 2 e  Planning problem: initial conditions, actions (preconditions/effects), goal  STRIPS operators: represent actions with preconditions, ADD/DELETE list  ADL operators: allow negated preconditions, inequality  Examples: socks and shoes, blocks world, changing spare tire Today: Partial-Order Planning, Section 11.3 (p. 387 – 394), R&N 2 e  Plan linearization  Extended POP example: changing spare tire  Graph planning  Hierarchical abstraction planning (ABSTRIPS) Coming Week: Robust Planning Concluded; Uncertain Reasoning

Computing & Information Sciences Kansas State University Lecture 21 of 42 CIS 530 / 730 Artificial Intelligence STRIPS Operators: Review Adapted from materials © 2003 – 2004 S. Russell & P. Norvig. Reused with permission.

Computing & Information Sciences Kansas State University Lecture 21 of 42 CIS 530 / 730 Artificial Intelligence Strips vs. ADL Representation [1]: Review What STRIPS Can Represent  States  Goals  Actions (using action schema)  Preconditions: must be true before action can be applied  Effects: asserted afterwards Real STRIPS: ADD, DELETE Lists for Operators STRIPS Assumption  Representational frame problem solution  Default is that conditions remain unchanged unless mentioned in effect What STRIPS Cannot Represent  Negated preconditions  Inequality constraints Richer Planning Language: Action Description Language (ADL)

Computing & Information Sciences Kansas State University Lecture 21 of 42 CIS 530 / 730 Artificial Intelligence © 2003 S. Russell & P. Norvig. Reused with permission. Figure 11.1 p. 379 R&N 2 e Strips vs. ADL Representation [2]: Review

Computing & Information Sciences Kansas State University Lecture 21 of 42 CIS 530 / 730 Artificial Intelligence Sussman Anomaly: Review Adapted from slides © 2004 S. Russell & P. Norvig. Reused with permission.

Computing & Information Sciences Kansas State University Lecture 21 of 42 CIS 530 / 730 Artificial Intelligence Partial Order Planning – Definitions: Review Adapted from materials © 2003 – 2004 S. Russell & P. Norvig. Reused with permission.

Computing & Information Sciences Kansas State University Lecture 21 of 42 CIS 530 / 730 Artificial Intelligence Socks and Shoes Example: POP Constraints Plan Linearization  Total ordering  Enumerating interleavings: combinatorial explosion Theorem: Partial Order (PO) Plans  Every linearization of PO plan is total ordering (TO)  TO is guaranteed to satisfy goal condition(s) given initial condition(s) POP, Linearization, & Total Orderings: Review Adapted from materials © 2003 – 2004 S. Russell & P. Norvig. Reused with permission.

Computing & Information Sciences Kansas State University Lecture 21 of 42 CIS 530 / 730 Artificial Intelligence Based on slide © 2004 S. Russell & P. Norvig. Reused with permission. POP Algorithm – Top-Level Functions: Review

Computing & Information Sciences Kansas State University Lecture 21 of 42 CIS 530 / 730 Artificial Intelligence Spare Tire Planning Example [1]: Review © 2004 S. Russell & P. Norvig. Reused with permission.

Computing & Information Sciences Kansas State University Lecture 21 of 42 CIS 530 / 730 Artificial Intelligence © 2003 S. Russell & P. Norvig. Reused with permission. Figure 11.3 &11.7 p. 381 (& 391) R&N 2 e Spare Tire Planning Example [2]: Review

Computing & Information Sciences Kansas State University Lecture 21 of 42 CIS 530 / 730 Artificial Intelligence Spare Tire Planning Example [3]: POP Trace © 2003 S. Russell & P. Norvig. Reused with permission. Figure p. 393 R&N 2 e Figure 11.8 p. 392 R&N 2 e Figure 11.9 p. 392 R&N 2 e Incomplete partial-order plan after Put-On, Remote Tentative partial-order plan after Put-On, Remote, LeaveOvernight Complete partial-order plan (3 operators)

Computing & Information Sciences Kansas State University Lecture 21 of 42 CIS 530 / 730 Artificial Intelligence Instantiation of Strips/ADL Operators © 2003 S. Russell & P. Norvig. Reused with permission.

Computing & Information Sciences Kansas State University Lecture 21 of 42 CIS 530 / 730 Artificial Intelligence Heuristics for Classical Planning © 2003 S. Russell & P. Norvig. Reused with permission. Problem: Combinatorial Explosion due to High Branch Factor  Branch factor (main problem in planning): possible operators  Fan-out: many side effects  Fan-in: many preconditions to work on at once Goal: Speed Up Planning Heuristic Design Principles  Favor general ones (domain-independent)  Treat as goals as countable or continuous instead of boolean (true/false)  Use commonsense reasoning (need commonsense knowledge)  Counting, weighting partially-achieved goals  Way to compute preferences (utility estimates) Domain-Independent h: Number of Unsatisfied Conjuncts  e.g., Have(A)  Have(B)  Have(C)  Have(D)  Have(A)  Have(C): h = 2 Domain-Dependent h: May Be Based on Problem Structure

Computing & Information Sciences Kansas State University Lecture 21 of 42 CIS 530 / 730 Artificial Intelligence Graph Planning: Graphplan Algorithm © 2003 S. Russell & P. Norvig. Reused with permission. Previous Heuristics for STRIPS/ADL  Domain-independent heuristics: counting parts (conjuncts) of goal satisfied  Domain-dependent heuristics: based on (many) domain properties  problem decomposability (intermediate goals)  reusability of solution components  preferences Limitation: Heuristics May Not Be Accurate Objective: Better Heuristics  Need: structure that clarifies problem  Significance: faster convergence, more manageable branch factor Approach: Use Graphical Language of Constraints, Actions Notation  Operators (real actions): large rectangles  Persistence actions (for each literal): small squares, denote non-change  Gray links: mutual exclusion (mutex)

Computing & Information Sciences Kansas State University Lecture 21 of 42 CIS 530 / 730 Artificial Intelligence Graph Planning: Cake Problem © 2003 S. Russell & P. Norvig. Reused with permission. Figure p. 396 R&N 2 e Figure p. 396 R&N 2 e

Computing & Information Sciences Kansas State University Lecture 21 of 42 CIS 530 / 730 Artificial Intelligence Hierarchical Abstraction: House-Building Example © 2003 S. Russell & P. Norvig. Redrawn by José Luis Ambite, ISI

Computing & Information Sciences Kansas State University Lecture 21 of 42 CIS 530 / 730 Artificial Intelligence Hierarchical Abstraction: House-Building Example © 2003 S. Russell & P. Norvig. Redrawn by José Luis Ambite, ISI

Computing & Information Sciences Kansas State University Lecture 21 of 42 CIS 530 / 730 Artificial Intelligence Hierarchical Task Network (HTN) Planning © 2003 José Luis Ambite, ISI

Computing & Information Sciences Kansas State University Lecture 21 of 42 CIS 530 / 730 Artificial Intelligence How Things Go Wrong in Planning Based on slide © 2004 S. Russell & P. Norvig. Reused with permission.

Computing & Information Sciences Kansas State University Lecture 21 of 42 CIS 530 / 730 Artificial Intelligence Practical Planning Solutions [1]: Conditional Planning & Replanning Based on slide © 2004 S. Russell & P. Norvig. Reused with permission.

Computing & Information Sciences Kansas State University Lecture 21 of 42 CIS 530 / 730 Artificial Intelligence Practical Planning Solutions [2] : Continual Planning – Preview © 2004 S. Russell & P. Norvig. Reused with permission.

Computing & Information Sciences Kansas State University Lecture 21 of 42 CIS 530 / 730 Artificial Intelligence Terminology Partial-Order Planning  Represent multiple possible interleavings  Keep track of which ones are achievable  Complete plans  Every precondition achieved  No clobberings by possibly intervening steps Sussman Anomaly  Contains threat that needs to be resolved to get to goal  Illustrates need for partial-order planning, promotion / demotion Hierarchical Abstraction Planning: Refinement of Plans into Subplans Robust Planning  Sensorless: use coercion and reaction  Conditional aka contingency: IF statement  Monitoring and replanning: resume temporarily failed plans  Continual aka lifelong: multi-episode, longeval or “immortal” agents

Computing & Information Sciences Kansas State University Lecture 21 of 42 CIS 530 / 730 Artificial Intelligence Summary Points Last Class: Classical Planning – STRIPS and ADL  Planning defined: initial conditions, actions (preconditions/effects), goal  STRIPS operators: conjunction of positive preconditions  ADL operators: allow negated preconditions, unequality Today: Graph Planning, Hierarchical Abstraction  GRAPHPLAN algorithm illustrated  Hierarchical abstraction planning (ABSTRIPS) Preview: Robust Planning  Planning with plan step failures  Types  Sensorless: use coercion and reaction  Conditional aka contingency: IF statement  Monitoring and replanning: resume temporarily failed plans  Continual aka lifelong: multi-episode, longeval or “immortal” agents Coming Week: More Robust Planning Continued