Computing & Information Sciences Kansas State University Lecture 24 of 42 CIS 530 / 730 Artificial Intelligence Lecture 24 of 42 Planning: Monitoring &

Slides:



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

In the name of God An Application of Planning An Application of PlanningJSHOP BY: M. Eftekhari and G. Yaghoobi.
Hierarchical Task Network (HTN) Planning Hai Hoang 4/17/2007.
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.
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.
Computing & Information Sciences Kansas State University Lecture 11 of 42 CIS 530 / 730 Artificial Intelligence Lecture 11 of 42 William H. Hsu Department.
Computing & Information Sciences Kansas State University Lecture 28 of 42 CIS 530 / 730 Artificial Intelligence Lecture 28 of 42 William H. Hsu Department.
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 6 of 41 William H. Hsu Department of Computing.
Computing & Information Sciences Kansas State University Lecture 7 of 42 CIS 530 / 730 Artificial Intelligence Lecture 7 of 42 William H. Hsu Department.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 26 of 41 Friday, 22 October.
Computing & Information Sciences Kansas State University Friday, 21 Nov 2008CIS 530 / 730: Artificial Intelligence Lecture 35 of 42 Friday, 21 November.
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 25 Wednesday, 20 October.
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 2 Tuesday, August 29,
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.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 28 of 41 Friday, 22 October.
Computing & Information Sciences Kansas State University Lecture 22 of 42 CIS 530 / 730 Artificial Intelligence Lecture 22 of 42 Planning: Sensorless and.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 25 of 41 Monday, 25 October.
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 William H. Hsu Department of Computing.
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 Lecture 21 of 42 CIS 530 / 730 Artificial Intelligence Lecture 21 of 42 Planning: Graph Planning.
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.
Lecture 2 of 42 Problem Solving by Search
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.
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.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 15 of 41 Friday 24 September.
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.
Kansas State University Department of Computing and Information Sciences CIS 830: Advanced Topics in Artificial Intelligence Monday, January 24, 2000 William.
Computing & Information Sciences Kansas State University Friday, 27 Oct 2006CIS 490 / 730: Artificial Intelligence Lecture 27 of 42 Friday, 27 October.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 42 Monday, 08 December.
Computing & Information Sciences Kansas State University Wednesday, 19 Sep 2007CIS 530 / 730: Artificial Intelligence Lecture 12 of 42 Wednesday, 19 September.
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.
___________________________________________________ Informatics MSc Course PLAN – Automated Planning The aim of this course is to provide: a solid grounding.
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 #20 – Wednesday, November 5
Class #17 – Tuesday, October 30
Presentation transcript:

Computing & Information Sciences Kansas State University Lecture 24 of 42 CIS 530 / 730 Artificial Intelligence Lecture 24 of 42 Planning: Monitoring & Replanning, Continuous Planning William H. Hsu Department of Computing and Information Sciences, KSU KSOL course page: Course web site: Instructor home page: Reading for Next Class: Chapter 13, p. 462– 486, Russell & Norvig 2 nd edition “The Gift of the Magi”: Continuations:

Computing & Information Sciences Kansas State University Lecture 24 of 42 CIS 530 / 730 Artificial Intelligence Lecture Outline Reading for Next Class: Chapter 13 (p. 462 – 486), R&N 2 e Last Week: Partial-Order Planning, Blocks World, Graphplan, SATPlan  Classical planning defined: initial and goal conditions  POP: preconditions and effects, satisfying open preconditions  Algorithms: POP, Graphplan, SATPlan Last Class: Real-World Planning, 12.1 – 12.4 (p. 417 – 440), R&N 2 e  Time (12.1), HTN Planning (12.2), HTN example: DWR (crane domain)  Nondeterminism and bounded indeterminacy (12.3)  Conditional planning, aka contingency planning (12.4) Today: Robust Planning Concluded, 12.5 – 12.8 (p. 441 – 454), R&N 2 e  Monitoring and replanning (12.5)  Continuous planning (12.6)  Need for representation language for uncertainty Next Class: Intro to Probability as Language for Uncertainty Next Week: Reasoning under Uncertainty – KR, Graphical Models

Computing & Information Sciences Kansas State University Lecture 24 of 42 CIS 530 / 730 Artificial Intelligence Acknowledgements © 2007 H. Hoang & H. Muñoz-Avila Lehigh University Héctor Muñoz-Avila Associate Professor Department of Computer Science & Engineering (CSE) Lehigh University Hai Hoang (not pictured) Graduate Teaching Assistant, CSE Lehigh University Gerhard Wickler Research Fellow Artificial Intelligence Applications Institute Centre for Intelligent Systems and their Applications University of Edinburgh Austin Tate Director, Artificial Intelligence Applications Institute University of Edinburgh © 2005 G. Wickler & A. Tate University of Edinburgh

Computing & Information Sciences Kansas State University Lecture 24 of 42 CIS 530 / 730 Artificial Intelligence Frame, Qualification, and Ramification Problems – Review Frame Problem: Need to Describe and Propagate Non-Action  Representational – proliferation of frame axioms: e.g., in Wumpus World  Shoot doesn’t clobber HoldingGold  MoveNorth doesn’t clobber HaveArrow (precondition for Shoot )  Inferential – copying state: HoldingGold (S 3 )  SHOOT HoldingGold (S 4 ) Qualification Problem: Specifying All Preconditions (“Exceptions”)  “Action A is possible unless...”  Improbable operator failures Ramification Problem: Specifying All Effects (“Side Effects”)  “Action A also causes…”  Small incremental changes (e.g., “wear and tear”), aka “butterflies in China” Solution Approaches  Representational FP: successor state axioms, graph/propositional planning  Inferential FP: defeasible reasoning (e.g., defaults)  Qualification problem: abstraction; reaction; replanning  Ramification problem: defaults, abstraction

Computing & Information Sciences Kansas State University Lecture 24 of 42 CIS 530 / 730 Artificial Intelligence HTN Planning – Decomposition: Review Adapted from slide © 2007 H. Hoang & H. Muñoz-Avila Lehigh University Non-primitive task precond method instance s0s0 precondeffectsprecondeffects s1s1 s2s2 primitive task operator instance Non-primitive task Shows the order In which plan will be executed later

Computing & Information Sciences Kansas State University Lecture 24 of 42 CIS 530 / 730 Artificial Intelligence HTN Methods & Operators – Example: Review Adapted from slide © 2007 H. Hoang & H. Muñoz-Avila Lehigh University Method ( decomposes into subtasks) (:method (drive-truck ?truck ?loc-from ?loc-to) ((same ?loc-from ?loc-to)) ((!do-nothing)) () ((!drive-truck ?truck ?loc-from ?loc-to)))  Notice the if else structure  Invoke non-primitive task: (drive-truck ?t ?x ?y) Operator (achieves PRIMITIVE TASKS) (:operator (!drive-truck ?truck ?locfrom ?locto) () ((truck-at ?truck ?locfrom)) ((truck-at ?truck ?locto))) Invoke primitive task: (!drive-truck ?t ?l1 ?l2) Non prim Preconditions Subtask list Prim task Delete listAdd list Primitive task Preconditions

Computing & Information Sciences Kansas State University Lecture 24 of 42 CIS 530 / 730 Artificial Intelligence HTN Planning Algorithm (TFD): Review Applying an operator Changing the state Decompose method into tasks Randomly pick an applicable method Adapted from slide © 2007 H. Hoang & H. Muñoz-Avila Lehigh University

Computing & Information Sciences Kansas State University Lecture 24 of 42 CIS 530 / 730 Artificial Intelligence DWR – Crane Domain Example: Review Adapted from slides © 2005 G. Wickler & A. Tate University of Edinburgh

Computing & Information Sciences Kansas State University Lecture 24 of 42 CIS 530 / 730 Artificial Intelligence DWR – Example TFD: Review Adapted from slide © 2007 H. Hoang & H. Muñoz-Avila Lehigh University

Computing & Information Sciences Kansas State University Lecture 24 of 42 CIS 530 / 730 Artificial Intelligence A Story: “Gift of the Magi” by O. Henry Figure 12.8 p. 428 R&N 2 e © 2003 S. Russell & P. Norvig. Reused with permission. Short story from Project Gutenberg:

Computing & Information Sciences Kansas State University Lecture 24 of 42 CIS 530 / 730 Artificial Intelligence Practical Planning [1] Sensorless Planning: Review Problem: Bounded Indeterminacy  Uncertainty in answering intelligent agent’s questions (see: Lectures 0 & 1)  “What world is like now”  “What it will be like if I do action A”  Scenario for boundedly rational decision-making Idea: Coerce State of World  Complete plan in all possible situations  Example: move forward to walk through door OR push it open Not Always Possible!

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

Computing & Information Sciences Kansas State University Lecture 24 of 42 CIS 530 / 730 Artificial Intelligence Sensorless Conditional Based on slide © 2003 S. Russell & P. Norvig. Reused with permission. Sensorless & Contingency Planning in Vacuum World: Review

Computing & Information Sciences Kansas State University Lecture 24 of 42 CIS 530 / 730 Artificial Intelligence Practical Planning [3] : Monitoring and Replanning © 2004 S. Russell & P. Norvig. Reused with permission. Problem: Plans May Fail  Plan steps fail: e.g., attempted play in sports  May be due to faulty  sensors  effectors  Plans Need: Ability to Replan and Recover

Computing & Information Sciences Kansas State University Lecture 24 of 42 CIS 530 / 730 Artificial Intelligence Practical Planning [3] : Monitoring and Replanning Adapted from slide © 2005 A. Cristea Failure: Preconditions of Remaining Plan Not Met Preconditions of Remaining Plan  All preconditions of remaining steps not achieved by remaining steps  All causal links crossing current time point Upon Failure  Resume POP  Achieve open conditions from current state Performs  Action monitoring  Execution monitoring (aka plan monitoring)

Computing & Information Sciences Kansas State University Lecture 24 of 42 CIS 530 / 730 Artificial Intelligence Replanning and Continuations © 2004 S. Russell & P. Norvig. Reused with permission.

Computing & Information Sciences Kansas State University Lecture 24 of 42 CIS 530 / 730 Artificial Intelligence Execution vs. Action Monitoring

Computing & Information Sciences Kansas State University Lecture 24 of 42 CIS 530 / 730 Artificial Intelligence Practical Planning [4] : Continuous aka Lifelong Planning © 2004 S. Russell & P. Norvig. Reused with permission.

Computing & Information Sciences Kansas State University Lecture 24 of 42 CIS 530 / 730 Artificial Intelligence Terminology Bounded Indeterminacy: Kind of Uncertainty about Domain  “How world is like”  “How it will be if I do A” 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  Continuous: similar, but for agent that persists indefinitely Uncertain Reasoning  Ability to perform inference in presence of uncertainty about  premises  rules  Representations: probability, Dempster-Shafer theory, fuzzy logic

Computing & Information Sciences Kansas State University Lecture 24 of 42 CIS 530 / 730 Artificial Intelligence Summary Points Previously: Partial-Order Planning, Blocks World, Graphplan, SATPlan  Classical planning defined: initial, goal conditions  POP: preconditions, effects, satisfying, threats and clobberings  Promotion, demotion  Planning vs. design, scheduling  Algorithms: POP, Graphplan, SATPlan Last Class: Real-World Planning  Time (12.1), HTN Planning (12.2), HTN example: DWR (crane domain)  Nondeterminism and bounded indeterminacy (12.3)  Conditional planning, aka contingency planning (12.4) Today: Robust Planning Concluded, 12.5 – 12.8 (p. 441 – 454), R&N 2 e  Monitoring and replanning (12.5)  Continuous planning (12.6)  Need for representation language for uncertainty Next Class: Probability as KR for Uncertain Reasoning Coming Up: Bayesian Networks & Other Graphical Models