Chap.12 Practical 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

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.
Planning  We have done a sort of planning already  Consider the “search” applied to general problem solving  The sequence of moves with the “Jugs” was.
Hierarchical Task Network (HTN) Planning Hai Hoang 4/17/2007.
Planning Module THREE: Planning, Production Systems,Expert Systems, Uncertainty Dr M M Awais.
Causal-link Planning II José Luis Ambite. 2 CS 541 Causal Link Planning II Planning as Search State SpacePlan Space AlgorithmProgression, Regression POP.
Planning Module THREE: Planning, Production Systems,Expert Systems, Uncertainty Dr M M Awais.
Static Single Assignment CS 540. Spring Efficient Representations for Reachability Efficiency is measured in terms of the size of the representation.
Classical Planning via Plan-space search COMP3431 Malcolm Ryan.
Plan Generation & Causal-Link Planning 1 José Luis Ambite.
All rights reserved ©L. Manevitz Lecture 61 Artificial Intelligence Planning System L. Manevitz.
Artificial Intelligence II S. Russell and P. Norvig Artificial Intelligence: A Modern Approach Chapter 11: Planning.
1 Classical STRIPS Planning Alan Fern * * Based in part on slides by Daniel Weld.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Artificial Intelligence 2005/06
Planning Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 11.
19 April 2013Lecture 4: Associating Narrowing Functions to Constraints1 Associating Narrowing Functions to Constraints Jorge Cruz DI/FCT/UNL April 2013.
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
Planning Russell and Norvig: Chapter 11. Planning Agent environment agent ? sensors actuators A1A2A3.
Intro to AI Fall 2002 © L. Joskowicz 1 Introduction to Artificial Intelligence LECTURE 13: Advanced Planning Motivation: least commitment principle Partial-order.
Performance of Coordinating Concurrent Hierarchical Planning Agents Using Summary Information Brad Clement and Ed Durfee University of Michigan Artificial.
CS 561, Session Planning Search vs. planning STRIPS operators Partial-order planning.
Planning Problem Solving  Planning –Action Centred –More flexible decision strategies A Representation for Planning –Add & Delete Lists Planning Techniques.
Artificial Intelligence 2005/06 Hierarchical Planning and Other Stuff Russell and Norvig, Chapter 11.
Functional Design and Programming Lecture 4: Sorting.
Planning Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 11.
Intro to AI Fall 2002 © L. Joskowicz 1 Introduction to Artificial Intelligence LECTURE 12: Planning Motivation Search, theorem proving, and planning Situation.
Automated Planning and HTNs Planning – A brief intro Planning – A brief intro Classical Planning – The STRIPS Language Classical Planning – The STRIPS.
Planning in the Real World Time and Resources Hierarchical Task Network Conditional Planning Execution Monitoring and Replanning Continuous Planning MultiAgent.
AI Principles, Lecture on Planning Planning Jeremy Wyatt.
Planning Department of Computer Science & Engineering Indian Institute of Technology Kharagpur.
PLANNING Partial order regression planning Temporal representation 1 Deductive planning in Logic Temporal representation 2.
REFACTORING Lecture 4. Definition Refactoring is a process of changing the internal structure of the program, not affecting its external behavior and.
Course Overview  What is AI?  What are the Major Challenges?  What are the Main Techniques?  Where are we failing, and why?  Step back and look at.
(Classical) AI Planning. Some Examples Route search: Find a route between Lehigh University and the Naval Research Laboratory Project management: Construct.
Techniques for Analysis and Calibration of Multi- Agent Simulations Manuel Fehler Franziska Klügl Frank Puppe Universität Würzburg Lehrstuhl für Künstliche.
Empirical Explorations with The Logical Theory Machine: A Case Study in Heuristics by Allen Newell, J. C. Shaw, & H. A. Simon by Allen Newell, J. C. Shaw,
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%)
CS.462 Artificial Intelligence SOMCHAI THANGSATHITYANGKUL Lecture 07 : Planning.
Artificial Intelligence 2005/06 Partially Ordered Plans - or: "How Do You Put Your Shoes On?"
For Friday No reading Homework: –Chapter 11, exercise 4.
Planning (Chapter 10)
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)
1 CMSC 471 Fall 2004 Class #21 – Thursday, November 11.
1 CMSC 471 Fall 2002 Class #24 – Wednesday, November 20.
April 3, 2006AI: Chapter 11: Planning1 Artificial Intelligence Chapter 11: Planning.
Artificial Intelligence 2004 Planning: Situation Calculus Review STRIPS POP Hierarchical Planning Situation Calculus (John McCarthy) situations.
ADVANCED PLANNING TECHNIQUES Dr. Adam Anthony Lecture 22.
Causal-link planning 1 Jim Blythe. 2 USC INFORMATION SCIENCES INSTITUTE Causal Link Planning The planning problem Inputs: 1. A description of the world.
Ch. 11 – Planning Supplemental slides for CSE 327 Prof. Jeff Heflin.
Module 5 PLANNING AND LEARNING.
Chapter 12 Section 1.
Planning (Chapter 10) Slides by Svetlana Lazebnik, 9/2016 with modifications by Mark Hasegawa-Johnson, 9/2017
Planning (Chapter 10)
Planning (Chapter 10)
AI Planning.
Planning José Luis Ambite.
Chapter 3 – Combinational Logic Design
Class #20 – Wednesday, November 5
Authors: Barry Smyth, Mark T. Keane, Padraig Cunningham
Causal-link planning 2 Jim Blythe.
Russell and Norvig: Chapter 11 CS121 – Winter 2003
Simplify by combining like terms
Class #17 – Tuesday, October 30
Presentation transcript:

Chap.12 Practical Planning CS570 Artificial Intelligence Kwang-hyung Lee

12.1 Practical Planners 12.1 Practical Planners Spacecraft assembly, integration, and verification 1. Hierarchical plans 2. Complex conditions 3. Time 4. Resources Job Shop Scheduling Scheduling for space missions Buildings, aircraft carriers and beer factories

12.2 Hierarchical Decomposition Solution at a high level abstraction [Go(Supermarket),Buy(Milk),Buy(Bananas),Go(Home)] It is a long way from instruction fed to the agent’s effectors A low level plan [Forward(1 cm),Turn(1 deg),Forward(1 cm), ……] Hierarchical decomposition : an abstract operator can be decomposed into a group of steps ex) Abstract operator: Build(House) decomposed operators : obtain Permit,Hire Builder,Construction, Pay Builder Primitive operator:executed by the agent

Hierarchical planning work 12.2 Hierarchical Decomposition Hierarchical planning work (1) provide an extension to the STRIPS for nonprimitive operator (2) modify the planning algorithm to allow the replacement of a nonprimitive operator with its decomposition

12.2 Hierarchical Decomposition *Extending STRIPS (1) partition operators into primitive and nonprimitive operators nonprimitive : Install(FloorBoards) primitive : Hammer(Nail) (2) decomposition method Decompose(o,p) : An operator o is decomposed into a plan p

Decomposition of o into p 12.2 Hierarchical Decomposition Decomposition of o into p The decomposed plan p correctly implements an operator if it is complete and consistent : 1. p must be consistent (no contradiction) 2. Every effect of o must be asserted by at least one step of p 3. Every precondition of the steps in p must be achieved by a step in p or be one of the preconditions of o

*Modifying the planner 12.2 Hierarchical Decomposition *Modifying the planner Modification of planner POP into HD-POP (1) a way to decompose nonprimitive operators (2) the algorithm takes a plan as input, rather than just a goal

SELECT-NONPRIMITIVE:selects a nonprimitive 12.2 Hierarchical Decomposition SELECT-NONPRIMITIVE:selects a nonprimitive CHOOSE-DECOMPOSITION:picks a decomposition method The fields of the plan are altered : STEPS :Add steps, remove Snonprimitive BINDINGS :Add variable binding constants Ordering:Call RESOLVE-THREATS Links: Si c Snonprim Si c Sm : a step of method

12.3 Analysis of Hierarchical Decomposition Abstract solution : a plan containing abstract operators, but consistent and complete downward solution:if p is an abstract solution and there is a primitive solution upward solution:if an abstract plan is inconsistent then no primitive sol.

Hierarchical planning, 12.3 Analysis of Hierarchical Decomposition if a planner(nonhierarchical) has to generate n-step plan(where b is branching factor), it takes time O(bn) Hierarchical planning, sb steps at d=1 bs2 at d=2 ibs2 = O(bsd) (from i=1 to d)

Plan b is inconsistent , but it can be into a consistent plan 12.3 Analysis of Hierarchical Decomposition The Gift of the Magic A poor couple:he has a gold watch, she has long hair. Plan b is inconsistent , but it can be into a consistent plan The upward solution property does not hold

*Decomposition and Sharing 12.3 Analysis of Hierarchical Decomposition *Decomposition and Sharing Merge each step of the decomposition into existing plan Divide-and-conquer approach:solve each subproblem and then combine it into the rest Sharing steps while merging Ex) enjoy a honeymoon and raise a baby (1) decomposition get married and go on honeymoon get married and have a baby (2) merge share the step “get married”

*Decomposition and approximation 12.3 Analysis of Hierarchical Decomposition *Decomposition and approximation Hierarchical decomposition nonprimitive operator => primitives Hierarchical planning(approximation hierarchy, abstraction hierarchy) It takes an operator and partitions its precondition according to their criticality level Op(ACTION:Buy(x), EFFECT : Have(x)  Have(Money), PRECOND:1:Sells(store,x)  2:At(store)  3:Have(Money))

12.4 More Expressive Operator Description *Conditional effects ex) block world in section 11.8 Two operators were needed Op(ACTION:Move(b,x,y), PRECOND : On(b,x)  Clear(b)  Clear(y), EFFECT:On(b,y)  Clear(x)  On(b,x)  Clear(y)) Op(ACTION:MoveToTable(b,x), PRECOND : On(b,x)  Clear(b), EFFECT:On(b,Table)  Clear(x)  On(b,x)) initial situation:On(A,B) goal :clear(B)

12.4 More Expressive Operator Description Move A to the table or to somewhere else? : premature commitment in Move(b,x,y) To eliminate it, we include conditional effect “effect when condition” : Q when P Op(ACTION:Move(b,x,y), PRECOND : On(b,x)  Clear(b)  Clear(y), EFFECT:On(b,y)  Clear(x)  On(b,x)  Clear(y) when yTable)

*Universal quantification 12.4 More Expressive Operator Description *Universal quantification ex) block world clear(b) x Block(x)  On(x,b) ex) shopping problem Carry(bag, x, y) : (effect) all objects that are in the bag are at y and are no longer at x. Op(ACTION:Carry(bag,x,y), PRECOND:Bag(bag)  At(bag,x), EFFECT:At(bag,y)  At(bag,x)  I Item(i)  (At(i,y)  At(y) when In(I,bag))