1 CMSC 471 Fall 2002 Class #24 – Wednesday, November 20.

Slides:



Advertisements
Similar presentations
1 Knowledge Representation Introduction KR and Logic.
Advertisements

Practical Planning: Scheduling and Hierarchical Task Networks Chapter CS 63 Adapted from slides by Tim Finin and Marie desJardins.
In the name of God An Application of Planning An Application of PlanningJSHOP BY: M. Eftekhari and G. Yaghoobi.
CSE391 – 2005 NLP 1 Planning The Planning problem Planning with State-space search.
1 Planning Chapter CMSC 471 Adapted from slides by Tim Finin and Marie desJardins. Some material adopted from notes by Andreas Geyer-Schulz,
Computer Science CPSC 322 Lecture 25 Top Down Proof Procedure (Ch 5.2.2)
ARCHITECTURES FOR ARTIFICIAL INTELLIGENCE SYSTEMS
Hierarchical Task Network (HTN) Planning Hai Hoang 4/17/2007.
Planning Module THREE: Planning, Production Systems,Expert Systems, Uncertainty Dr M M Awais.
Signals and Systems March 25, Summary thus far: software engineering Focused on abstraction and modularity in software engineering. Topics: procedures,
Planning Module THREE: Planning, Production Systems,Expert Systems, Uncertainty Dr M M Awais.
SHOP2: An HTN Planning System Nau, D.S., Au, T.C., Ilghami, O., Kuter, U., Murdock, J.W., Wu, D. and Yaman, F. (2003) "SHOP2: An HTN Planning System",
CLASSICAL PLANNING What is planning ?  Planning is an AI approach to control  It is deliberation about actions  Key ideas  We have a model of the.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Situation Calculus for Action Descriptions We talked about STRIPS representations for actions. Another common representation is called the Situation Calculus.
Time Constraints in Planning Sudhan Kanitkar
Plan Generation & Causal-Link Planning 1 José Luis Ambite.
Planning CSE 473 Chapters 10.3 and 11. © D. Weld, D. Fox 2 Planning Given a logical description of the initial situation, a logical description of the.
Computing & Information Sciences Kansas State University Lecture 24 of 42 CIS 530 / 730 Artificial Intelligence Lecture 24 of 42 Planning: Monitoring &
1 Chapter 16 Planning Methods. 2 Chapter 16 Contents (1) l STRIPS l STRIPS Implementation l Partial Order Planning l The Principle of Least Commitment.
Artificial Intelligence 2005/06
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
Constraint Logic Programming Ryan Kinworthy. Overview Introduction Logic Programming LP as a constraint programming language Constraint Logic Programming.
Relational Data Mining in Finance Haonan Zhang CFWin /04/2003.
1 Planning. R. Dearden 2007/8 Exam Format  4 questions You must do all questions There is choice within some of the questions  Learning Outcomes: 1.Explain.
Planning Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 11.
Universal Plans for Reactive Robots in Unpredictable Environments By M.J. Schoppers Presented by: Javier Martinez.
Automated Planning and HTNs Planning – A brief intro Planning – A brief intro Classical Planning – The STRIPS Language Classical Planning – The STRIPS.
PLANNING Partial order regression planning Temporal representation 1 Deductive planning in Logic Temporal representation 2.
Signals and Systems March 25, Summary thus far: software engineering Focused on abstraction and modularity in software engineering. Topics: procedures,
(Classical) AI Planning. Some Examples Route search: Find a route between Lehigh University and the Naval Research Laboratory Project management: Construct.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Topics for Today Task planning for non-player characters Coping with player character interactions and their effect on narrative In Hamlet on the Holodeck,
Homework 1 ( Written Portion )  Max : 75  Min : 38  Avg : 57.6  Median : 58 (77%)
Constraint Satisfaction Problems (CSPs) CPSC 322 – CSP 1 Poole & Mackworth textbook: Sections § Lecturer: Alan Mackworth September 28, 2012.
Planning, page 1 CSI 4106, Winter 2005 Planning Points Elements of a planning problem Planning as resolution Conditional plans Actions as preconditions.
Computing & Information Sciences Kansas State University Wednesday, 15 Oct 2008CIS 530 / 730: Artificial Intelligence Lecture 20 of 42 Wednesday, 15 October.
Pattern-directed inference systems
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.
Computing & Information Sciences Kansas State University Lecture 21 of 42 CIS 530 / 730 Artificial Intelligence Lecture 21 of 42 Planning: Graph Planning.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
1 Chapter 16 Planning Methods. 2 Chapter 16 Contents (1) l STRIPS l STRIPS Implementation l Partial Order Planning l The Principle of Least Commitment.
Automated Planning Dr. Héctor Muñoz-Avila. What is Planning? Classical Definition Domain Independent: symbolic descriptions of the problems and the domain.
Partial Order Planning 1 Brian C. Williams J/6.834J Sept 16 th, 2002 Slides with help from: Dan Weld Stuart Russell & Peter Norvig.
AI Lecture 17 Planning Noémie Elhadad (substituting for Prof. McKeown)
Intro to Planning Or, how to represent the planning problem in logic.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Tommy Messelis * Stefaan Haspeslagh Patrick De Causmaecker *
Reasoning about the Behavior of Semantic Web Services with Concurrent Transaction Logic Presented By Dumitru Roman, Michael Kifer University of Innsbruk,
(Classical) AI Planning. General-Purpose Planning: State & Goals Initial state: (on A Table) (on C A) (on B Table) (clear B) (clear C) Goals: (on C Table)
Computing & Information Sciences Kansas State University Monday, 23 Oct 2006CIS 490 / 730: Artificial Intelligence Lecture 25 of 42 Monday, 23 October.
Hierarchical Task Network Planning Automated Planning: Theory and Practice, Chapter 11 소프트컴퓨팅 연구실
1 CMSC 471 Fall 2004 Class #21 – Thursday, November 11.
CPSC 322, Lecture 2Slide 1 Representational Dimensions Computer Science cpsc322, Lecture 2 (Textbook Chpt1) Sept, 7, 2012.
Inference in Propositional Logic (and Intro to SAT) CSE 473.
Artificial Intelligence 2004 Planning: Situation Calculus Review STRIPS POP Hierarchical Planning Situation Calculus (John McCarthy) situations.
ADVANCED PLANNING TECHNIQUES Dr. Adam Anthony Lecture 22.
Agenda  Quick Review  Finish Introduction  Java Threads.
Computing & Information Sciences Kansas State University Wednesday, 25 Oct 2006CIS 490 / 730: Artificial Intelligence Lecture 26 of 42 Wednesday. 25 October.
CENG 424-Logic for CS Introduction Based on the Lecture Notes of Konstantin Korovin, Valentin Goranko, Russel and Norvig, and Michael Genesereth.
Scheduling with Constraint Programming
SNS College of Engineering Department of Computer Science and Engineering AI Planning Presented By S.Yamuna AP/CSE 5/23/2018 AI.
CMSC 471 Fall 2011 Class #16 Tuesday, October 25, 2011 Planning
Class #20 – Wednesday, November 5
Class #15 / 16 – Tuesday, October 20 / Thursday, October 22
Class #17 – Tuesday, October 30
Presentation transcript:

1 CMSC 471 Fall 2002 Class #24 – Wednesday, November 20

2 Today’s class Real-world domains Hierarchical decomposition (HTN planning) Increasing expressivity

3 Practical Planning Chapter 12

4 Real-world planning domains Real-world domains are complex and don’t satisfy the assumptions of STRIPS or partial-order planning methods Some of the characteristics we may need to deal with: –Modeling and reasoning about resources –Representing and reasoning about time –Planning at different levels of abstractions –Conditional outcomes of actions –Uncertain outcomes of actions –Exogenous events –Incremental plan development –Dynamic real-time replanning } a.k.a. scheduling!

5 Planning vs. scheduling Planning: given one or more goal, generate a sequence of actions to achieve the goal(s) Scheduling: given a set of actions and constraints, allocate resources and assign times to the actions so that no constraints are violated Traditionally, planning is done with specialized logical reasoning methods Traditionally, scheduling is done with constraint satisfaction, linear programming, or OR methods However, planning and scheduling are closely interrelated and can’t always be separated

6 Hierarchical decomposition Hierarchical decomposition, or hierarchical task network (HTN) planning, uses abstract operators to incrementally decompose a planning problem from a high-level goal statement to a primitive plan network Primitive operators represent actions that are executable, and can appear in the final plan Non-primitive operators represent goals (equivalently, abstract actions) that require further decomposition (or operationalization) to be executed There is no “right” set of primitive actions: One agent’s goals are another agent’s actions!

7 HTN operator: Example OPERATOR decompose PURPOSE: Construction CONSTRAINTS: Length (Frame) <= Length (Foundation), Strength (Foundation) > Wt(Frame) + Wt(Roof) + Wt(Walls) + Wt(Interior) + Wt(Contents) PLOT: Build (Foundation) Build (Frame) PARALLEL Build (Roof) Build (Walls) END PARALLEL Build (Interior)

8 HTN planning: example

9 SIPE-2 SIPE-2 is an HTN planner with many advanced features: –Plan critics –Resource reasoning –Constraint reasoning (complex numerical or symbolic variable and state constraints) –Interleaved planning and execution –Interactive plan development –Sophisticated truth criterion –Conditional effects –Parallel interactions in partially ordered plans –Replanning if failures occur during execution

10 HTN operator representation Russell & Norvig explicitly represent causal links; these can also be computed dynamically by using a model of preconditions and effects (this is what SIPE-2 does) Dynamically computing causal links means that actions from one operator can safely be interleaved with other operators, and subactions can safely be removed or replaced during plan repair Russell & Norvig’s representation only includes variable bindings, but more generally we can introduce a wide array of variable constraints

11 Truth criterion Determining whether a formula is true at a particular point in a partially ordered plan is, in the general case, NP-hard Intuition: there are exponentially many ways to linearize a partially ordered plan In the worst case, if there are N actions unordered with respect to each other, there are N! linearizations Ensuring soundness of the truth criterion requires checking the formula under all possible linearizations Use heuristic methods instead to make planning feasible Check later to be sure no constraints have been violated

12 Truth criterion in SIPE-2 Heuristic: prove that there is one possible ordering of the actions that makes the formula true – but don’t insert ordering links to enforce that order Such a proof is efficient –Suppose you have an action A1 with a precondition P –Find an action A2 that achieves P (A2 could be initial world state) –Make sure there is no action necessarily between A2 and A1 that negates P Applying this heuristic for all preconditions in the plan can result in infeasible plans

13 Increasing expressivity Conditional effects –Instead of having different operators for different conditions, use a single operator with conditional effects –Move (block1, from, to) and MoveToTable (block1, from) collapse into one Move (block1, from, to): Op(ACTION: Move(block1, from, to), PRECOND: On (block1, from) ^ Clear (block1) ^ Clear (to) EFFECT: On (block1, to) ^ Clear (from) ^ ~On(block1, from) ^ ~Clear(to) when to<>Table There’s a problem with this operator: can you spot what it is? Negated and disjunctive goals Universally quantified preconditions and effects

14 Reasoning about resources Introduce numeric variables that can be used as measures These variables represent resource quantities, and change over the course of the plan Certain actions may produce (increase the quantity of) resources Other actions may consume (decrease the quantity of) resources More generally, may want different types of resources –Continuous vs. discrete –Sharable vs. nonsharable –Reusable vs. consumable vs. self-replenishing