1 CMSC 471 Fall 2004 Class #21 – Thursday, November 11.

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.
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,
Planning Module THREE: Planning, Production Systems,Expert Systems, Uncertainty Dr M M Awais.
Planning Module THREE: Planning, Production Systems,Expert Systems, Uncertainty Dr M M Awais.
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.
Plan Generation & Causal-Link Planning 1 José Luis Ambite.
Computing & Information Sciences Kansas State University Lecture 20 of 42 CIS 530 / 730 Artificial Intelligence Lecture 20 of 42 Introduction to Classical.
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
GraphPlan ● (you don't have to know anything about this, but I put it here to point out that there are many clever approaches to try to find plans more.
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 CSE 473. © Daniel S. Weld Topics Agency Problem Spaces Search Knowledge Representation Reinforcement Learning InferencePlanning Supervised.
Uninformed Search Reading: Chapter 3 by today, Chapter by Wednesday, 9/12 Homework #2 will be given out on Wednesday DID YOU TURN IN YOUR SURVEY?
Planning II CSE 473. © Daniel S. Weld 2 Logistics Tournament! PS3 – later today Non programming exercises Programming component: (mini project) SPAM detection.
Planning Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 11.
Automated Planning and HTNs Planning – A brief intro Planning – A brief intro Classical Planning – The STRIPS Language Classical Planning – The STRIPS.
1 Planning Chapters 11 and 12 Thanks: Professor Dan Weld, University of Washington.
Classical Planning via State-space search COMP3431 Malcolm Ryan.
PLANNING Partial order regression planning Temporal representation 1 Deductive planning in Logic Temporal representation 2.
Classical Planning Chapter 10.
(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:
Homework 1 ( Written Portion )  Max : 75  Min : 38  Avg : 57.6  Median : 58 (77%)
110/19/2015CS360 AI & Robotics AI Application Areas  Neural Networks and Genetic Algorithms  These model the structure of neurons in the brain  Humans.
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.
Planning (Chapter 10)
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 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 17 Wednesday, 01 October.
Planning (Chapter 10)
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.
Classical Planning Chapter 10 Mausam / Andrey Kolobov (Based on slides of Dan Weld, Marie desJardins)
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
(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.
Computing & Information Sciences Kansas State University Friday, 20 Oct 2006CIS 490 / 730: Artificial Intelligence Lecture 24 of 42 Friday, 20 October.
1 CMSC 471 Fall 2002 Class #24 – Wednesday, November 20.
Planning I: Total Order Planners Sections
Graphplan CSE 574 April 4, 2003 Dan Weld. Schedule BASICS Intro Graphplan SATplan State-space Refinement SPEEDUP EBL & DDB Heuristic Gen TEMPORAL Partial-O.
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.
Computing & Information Sciences Kansas State University Monday, 09 Oct 2006CIS 490 / 730: Artificial Intelligence Lecture 19 of 42 Monday, 09 October.
Some Thoughts to Consider 5 Take a look at some of the sophisticated toys being offered in stores, in catalogs, or in Sunday newspaper ads. Which ones.
Agenda  Quick Review  Finish Introduction  Java Threads.
CSE573 Autumn /11/98 Planning Administrative –PS3 due 2/23 –Midterm Friday Last time –regression planning algorithm –introduction to plan-space.
Computing & Information Sciences Kansas State University Friday, 13 Oct 2006CIS 490 / 730: Artificial Intelligence Lecture 21 of 42 Friday, 13 October.
CENG 424-Logic for CS Introduction Based on the Lecture Notes of Konstantin Korovin, Valentin Goranko, Russel and Norvig, and Michael Genesereth.
SNS College of Engineering Department of Computer Science and Engineering AI Planning Presented By S.Yamuna AP/CSE 5/23/2018 AI.
Planning as Search State Space Plan Space Algorihtm Progression
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 2004 Class #21 – Thursday, November 11

2 Today’s class Intelligent scheduling Hierarchical task network (HTN) planning Increasing expressivity

3 Practical Planning Chapter

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 goals, 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

15 Other real-world planning issues Conditional planning Partial observability Information gathering actions Execution monitoring and replanning Continuous planning Multi-agent (cooperative or adversarial) planning

16 Planning summary Planning representations –Situation calculus –STRIPS representation: Preconditions and effects Planning approaches –State-space search (STRIPS, forward chaining, ….) –Plan-space search (partial-order planning, HTN, …) –Constraint-based search (GraphPlan, SATplan, …) Search strategies –Forward planning –Goal regression –Backward planning –Least-commitment –Nonlinear planning