Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:

Slides:



Advertisements
Similar presentations
Hierarchical Task Network (HTN) Planning Hai Hoang 4/17/2007.
Advertisements

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Best-First Search: Agendas
All rights reserved ©L. Manevitz Lecture 61 Artificial Intelligence Planning System L. Manevitz.
1 Classical STRIPS Planning Alan Fern * * Based in part on slides by Daniel Weld.
Automated Planning Introduction and Overview. Automated Planning: Introduction and Overview 2 Literature Malik Ghallab, Dana Nau, and Paolo Traverso.
CPSC 322, Lecture 19Slide 1 Propositional Logic Intro, Syntax Computer Science cpsc322, Lecture 19 (Textbook Chpt ) February, 23, 2009.
Planning Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 11.
Marakas: Decision Support Systems, 2nd Edition © 2003, Prentice-Hall Chapter Chapter 4: Modeling Decision Processes Decision Support Systems in the.
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.
1 Lecture 12 example (from slides prepared by Prof. J. Rosenchein)
1 Pertemuan 17 Planning Matakuliah: T0264/Intelijensia Semu Tahun: Juli 2006 Versi: 2/1.
Automated Planning and HTNs Planning – A brief intro Planning – A brief intro Classical Planning – The STRIPS Language Classical Planning – The STRIPS.
Classical Planning via State-space search COMP3431 Malcolm Ryan.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
(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:
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Computer Science CPSC 322 Lecture 3 AI Applications 1.
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%)
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Automated Planning Introduction and Overview. Automated Planning: Introduction and Overview 2 Literature Malik Ghallab, Dana Nau, and Paolo Traverso.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Constraint Satisfaction Problems (CSPs) CPSC 322 – CSP 1 Poole & Mackworth textbook: Sections § Lecturer: Alan Mackworth September 28, 2012.
Black Box Testing Techniques Chapter 7. Black Box Testing Techniques Prepared by: Kris C. Calpotura, CoE, MSME, MIT  Introduction Introduction  Equivalence.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
AI Automated Planning In A Nutshell Vitaly Mirkis March 4, 2013 Netanya Academic College Acknowledgments: Some slides are based slides of Prof. Carmel.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Automated Planning Dr. Héctor Muñoz-Avila. What is Planning? Classical Definition Domain Independent: symbolic descriptions of the problems and the domain.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
AI Lecture 17 Planning Noémie Elhadad (substituting for Prof. McKeown)
CPSC 322, Lecture 19Slide 1 (finish Planning) Propositional Logic Intro, Syntax Computer Science cpsc322, Lecture 19 (Textbook Chpt – 5.2) Oct,
1 Running Experiments for Your Term Projects Dana S. Nau CMSC 722, AI Planning University of Maryland Lecture slides for Automated Planning: Theory and.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Artificial Intelligence Lecture No. 6 Dr. Asad Ali Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
(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)
Finite State Machines (FSM) OR Finite State Automation (FSA) - are models of the behaviors of a system or a complex object, with a limited number of defined.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
AAAI of 20 Deconstructing Planning as Satisfiability Henry Kautz University of Rochester in collaboration with Bart Selman and Jöerg Hoffmann.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
1 Chapter 11 Hierarchical Task Network Planning. 2 Motivation We may already have an idea how to go about solving problems in a planning domain Example:
CS621: Artificial Intelligence Pushpak Bhattacharyya Computer Science and Engineering Department IIT Bombay Lecture 19: Hidden Markov Models.
Lecture 2: Problem Solving using State Space Representation CS 271: Fall, 2008.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Heuristic Search Planners. 2 USC INFORMATION SCIENCES INSTITUTE Planning as heuristic search Use standard search techniques, e.g. A*, best-first, hill-climbing.
1 Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Anifuddin Azis PLANNING. Artificial Intelligence A Modern Approach The subtitle of this book is "A Modern Approach." The intended meaning of this rather.
Artificial Intelligence
Review for the Midterm Exam
Chapter 23 Planning in the Game of Bridge
Objective of This Course
Warning I estimate 3 weeks of intensive reading for you to understand your assigned topic These are not self contained and you will need to understand.
Planning CSE 573 A handful of GENERAL SEARCH TECHNIQUES lie at the heart of practically all work in AI We will encounter the SAME PRINCIPLES again and.
Chapter 23 Planning in the Game of Bridge
Chapter 23 Planning in the Game of Bridge
Prof. Pushpak Bhattacharyya, IIT Bombay
Presentation transcript:

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 1 Chapter 1 Introduction Lecture slides for Automated Planning: Theory and Practice Dana S. Nau University of Maryland Fall 2009

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: A systematic arrangement of elements or important parts; a configuration or outline: a seating plan; the plan of a story. 4.A drawing or diagram made to scale showing the structure or arrangement of something. 5.A program or policy stipulating a service or benefit: a pension plan. plan n. 1.A scheme, program, or method worked out beforehand for the accomplishment of an objective: a plan of attack. 2.A proposed or tentative project or course of action: had no plans for the evening. Some Dictionary Definitions of “Plan”

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 3 plan n. 1.A scheme, program, or method worked out beforehand for the accomplishment of an objective: a plan of attack.

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 4 plan n. 2.A proposed or tentative project or course of action: had no plans for the evening.

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 5 plan n. 3.A systematic arrangement of elements or important parts; a configuration or outline: a seating plan; the plan of a story.

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 6 plan n. 4.A drawing or diagram made to scale showing the structure or arrangement of something.

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 7 plan n. 5.A program or policy stipulating a service or benefit: a pension plan.

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: A systematic arrangement of elements or important parts; a configuration or outline: a seating plan; the plan of a story. 4.A drawing or diagram made to scale showing the structure or arrangement of something. 5.A program or policy stipulating a service or benefit: a pension plan. plan n. 1.A scheme, program, or method worked out beforehand for the accomplishment of an objective: a plan of attack. 2.A proposed or tentative project or course of action: had no plans for the evening. Some Dictionary Definitions of “Plan” These two are closest to the meaning used in AI

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 9 [a representation] of future behavior … usually a set of actions, with temporal and other constraints on them, for execution by some agent or agents. - Austin Tate [MIT Encyclopedia of the Cognitive Sciences, 1999] A portion of a manufacturing process plan

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 10 Generating Plans of Action Computer programs to aid human planners  Project management (consumer software)  Plan storage and retrieval »e.g., variant process planning in manufacturing  Automatic schedule generation »various OR and AI techniques For some problems, we would like generate plans (or pieces of plans) automatically  Much more difficult  Automated-planning research is starting to pay off Here are some examples …

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 11 Autonomous planning, scheduling, control  NASA: JPL and Ames Remote Agent Experiment (RAX)  Deep Space 1 Mars Exploration Rover (MER) Space Exploration

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 12 Sheet-metal bending machines - Amada Corporation  Software to plan the sequence of bends [Gupta and Bourne, J. Manufacturing Sci. and Engr., 1999] Manufacturing

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 13 Bridge Baron - Great Game Products  1997 world champion of computer bridge [Smith, Nau, and Throop, AI Magazine, 1998]  2004: 2nd place (North—  Q) …… PlayCard(P 3 ; S, R 3 )PlayCard(P 2 ; S, R 2 )PlayCard(P 4 ; S, R 4 ) FinesseFour(P 4 ; S) PlayCard(P 1 ; S, R 1 ) StandardFinesseTwo(P 2 ; S) LeadLow(P 1 ; S) PlayCard(P 4 ; S, R 4 ’) StandardFinesseThree(P 3 ; S) EasyFinesse(P 2 ; S)BustedFinesse(P 2 ; S) FinesseTwo(P 2 ; S) StandardFinesse(P 2 ; S) Finesse(P 1 ; S) Us:East declarer, West dummy Opponents:defenders, South & North Contract:East – 3NT On lead:West at trick 3 East:  KJ74 West:  A2 Out:  QT98653 (North—  3) East—  J West—  2 North—  3South—  5South—  Q Games

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 14 Outline Conceptual model for planning Example planning algorithms What’s bad What’s good

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 15 Conceptual Model 1. Environment State transition system  = (S,A,E,  ) S = {states} A = {actions} E = {exogenous events}  = state-transition function System 

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 16  = (S,A,E,  ) S = {states} A = {actions} E = {exogenous events} State-transition function  : S x (A  E)  2 S  S = {s 0, …, s 5 }  A = { move1, move2, put, take, load, unload }  E = {}   : see the arrows State Transition System take put move1 put take move1 move2 load unload move2 location 1 location 2 s0s0 location 1location 2 s1s1 s4s4 location 1 location 2 s5s5 location 1 location 2 location 1 location 2 s3s3 location 1 location 2 s2s2 The Dock Worker Robots (DWR) domain

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 17 Observation function h: S  O location 1 location 2 s3s3 Given observation o in O, produces action a in A Conceptual Model 2. Controller Controller

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 18 Omit unless planning is online Planning problem Conceptual Model 3. Planner’s Input Planner

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 19 Planning Problem take put move1 put take move1 move2 load unload move2 location 1 location 2 s0s0 location 1location 2 s1s1 s4s4 location 1 location 2 s5s5 location 1 location 2 location 1 location 2 s3s3 location 1 location 2 s2s2 Description of  Initial state or set of states Initial state = s 0 Objective Goal state, set of goal states, set of tasks, “trajectory” of states, objective function, … Goal state = s 5 The Dock Worker Robots (DWR) domain

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 20 Instructions to the controller Conceptual Model 4. Planner’s Output Planner

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 21 Plans take put move1 put take move1 move2 load unload move2 location 1 location 2 s0s0 location 1location 2 s1s1 s4s4 location 1 location 2 s5s5 location 1 location 2 location 1 location 2 s3s3 location 1 location 2 s2s2 Classical plan: a sequence of actions  take, move1, load, move2  Policy: partial function from S into A {(s 0, take), (s 1, move1), (s 3, load), (s 4, move2)} take move1 load move2 The Dock Worker Robots (DWR) domain

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 22 Scheduler Planning Versus Scheduling Scheduling  Decide when and how to perform a given set of actions »Time constraints »Resource constraints »Objective functions  Typically NP-complete Planning  Decide what actions to use to achieve some set of objectives  Can be much worse than NP-complete; worst case is undecidable

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 23 Three Main Types of Planners 1. Domain-specific 2. Domain-independent 3. Configurable I’ll talk briefly about each

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: Domain-Specific Planners (Chapters 19-23) Made or tuned for a specific domain Won’t work well (if at all) in any other domain Most successful real-world planning systems work this way

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 25 Types of Planners 2. Domain-Independent In principle, a domain-independent planner works in any planning domain Uses no domain-specific knowledge except the definitions of the basic actions

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 26 In practice,  Not feasible to develop domain-independent planners that work in every possible domain Make simplifying assumptions to restrict the set of domains  Classical planning  Historical focus of most automated-planning research Types of Planners 2. Domain-Independent

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 27 A0: Finite system:  finitely many states, actions, events A1: Fully observable:  the controller always  ’s current state A2: Deterministic:  each action has only one outcome A3: Static (no exogenous events):  no changes but the controller’s actions A4: Attainment goals:  a set of goal states S g A5: Sequential plans:  a plan is a linearly ordered sequence of actions (a 1, a 2, … a n ) A6: Implicit time:  no time durations; linear sequence of instantaneous states A7: Off-line planning:  planner doesn’t know the execution status Restrictive Assumptions

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 28 Classical planning requires all eight restrictive assumptions  Offline generation of action sequences for a deterministic, static, finite system, with complete knowledge, attainment goals, and implicit time Reduces to the following problem:  Given ( , s 0, S g )  Find a sequence of actions (a 1, a 2, … a n ) that produces a sequence of state transitions (s 1, s 2, …, s n ) such that s n is in S g. This is just path-searching in a graph  Nodes = states  Edges = actions Is this trivial? Classical Planning (Chapters 2-9)

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 29 Classical Planning (Chapters 2-9) Generalize the earlier example:  Five locations, three robot carts, 100 containers, three piles »Then there are states Number of particles in the universe is only about  The example is more than times as large! Automated-planning research has been heavily dominated by classical planning  Dozens (hundreds?) of different algorithms  I’ll briefly describe a few of the best-known ones location 1location 2 s1s1 take put move1 move2

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 30 c ab a b c putdown(x) pickup(a) stack(a,b) stack(b,c) pickup(b) Goal: on(a,b) & on(b,c) Start unstack(x,a) clear(a) handempty clear(b), handempty holding(a) clear(b) on(a,b) on(b,c) holding(a) clear(x), with x = a Plan-Space Planning (Chapter 5) Decompose sets of goals into the individual goals Plan for them separately  Bookkeeping info to detect and resolve interactions For classical planning, not used much any more A temporal-planning extension was used in the Mars rovers

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 31 Planning Graphs (Chapter 6) Level 0Level 1Level 2 pickup(b) unstack(c,a) c a b c b a b c a Relaxed problem [Blum & Furst, 1995] Apply all applicable actions at once Next “level” contains all the effects of all of those actions no-op All actions applicable to s 0 All effects of those actions All actions applicable to subsets of Level 1 All effects of those actions Literals in s 0 pickup(a) stack(b,c) pickup(b) unstack(c,a) putdown(b) stack(b,a) stack(c,b) putdown(c) stack(c,a) no-op c ab

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 32 For n = 1, 2, …  Make planning graph of n levels (polynomial time)  State-space search within the planning graph Graphplan’s many children  IPP, CGP, DGP, LGP, PGP, SGP, TGP, … Graphplan Level 1Level 2 pickup(b) unstack(c,a) pickup(a) stack(b,c) pickup(b) unstack(c,a) putdown(b) stack(b,a) stack(c,b) putdown(c) stack(c,a) no-op Level 0 c ab All actions applicable to s 0 All effects of those actions All actions applicable to subsets of Level 1 All effects of those actions Literals in s 0 c a b c b a b c a

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 33 For n = 1, 2, …  Make planning graph of n levels (polynomial time)  State-space search within the planning graph Graphplan’s many children  IPP, CGP, DGP, LGP, PGP, SGP, TGP, … Graphplan Level 1Level 2 pickup(b) unstack(c,a) pickup(a) stack(b,c) pickup(b) unstack(c,a) putdown(b) stack(b,a) stack(c,b) putdown(c) stack(c,a) no-op Level 0 c ab All actions applicable to s 0 All effects of those actions All actions applicable to subsets of Level 1 All effects of those actions Literals in s 0 c a b c b a b c a Running out of names

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 34 Heuristic Search (Chapter 9) Can we do an A*-style heuristic search? For many years, nobody could come up with a good h function  But planning graphs make it feasible »Can extract h from the planning graph Problem: A* quickly runs out of memory  So do a greedy search Greedy search can get trapped in local minima  Greedy search plus local search at local minima HSP [Bonet & Geffner] FastForward [Hoffmann]

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 35 Translation to Other Domains (Chapters 7, 8) Translate the planning problem or the planning graph into another kind of problem for which there are efficient solvers  Find a solution to that problem  Translate the solution back into a plan Satisfiability solvers, especially those that use local search  Satplan and Blackbox [Kautz & Selman] Integer programming solvers such as Cplex  [Vossen et al.]

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 36 Types of Planners: 3. Configurable Domain-independent planners are quite slow compared with domain-specific planners  Blocks world in linear time [Slaney and Thiébaux, A.I., 2001]  Can get analogous results in many other domains But we don’t want to write a whole new planner for every domain! Configurable planners  Domain-independent planning engine  Input includes info about how to solve problems in the domain »Hierarchical Task Network (HTN) planning »Planning with control formulas

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 37 HTN Planning (Chapter 11) travel(UMD, Toulouse) get-ticket(IAD, TLS) travel(UMD, IAD) fly(BWI, Toulouse) travel(TLS, LAAS) get-taxi ride(TLS,Toulouse) pay-driver go-to-Orbitz find-flights(IAD,TLS) buy-ticket(IAD,TLS) get-taxi ride(UMD, IAD) pay-driver Task: Problem reduction  Tasks (activities) rather than goals  Methods to decompose tasks into subtasks  Enforce constraints, backtrack if necessary Real-world applications Noah, Nonlin, O-Plan, SIPE, SIPE-2, SHOP, SHOP2 Method: taxi-travel(x,y) get-taxi ride(x,y) pay-driver get-ticket(BWI, TLS) go-to-Orbitz find-flights(BWI,TLS) BACKTRACK travel(x,y) Method: air-travel(x,y) travel(a(y),y) get-ticket(a(x),a(y)) travel(x,a(x)) fly(a(x),a(y))

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 38 Planning with Control Formulas (Chapter 10) At each state s i we have a control formula f i in temporal logic “never pick up x from table unless x needs to be on another block” For each successor of s, derive a control formula using logical progression Prune any successor state in which the progressed formula is false  TLPlan [Bacchus & Kabanza]  TALplanner [Kvarnstrom & Doherty] s 0, f 0 s 1, f 1 s 2, f 2 a 1 = pickup(b) a 2 = pickup(c) c ab a b c goal... s 1 doesn’t satisfy f 1

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 39 Comparisons Domain-specific planner  Write an entire computer program - lots of work  Lots of domain-specific performance improvements Domain-independent planner  Just give it the basic actions - not much effort  Not very efficient Domain-specific Configurable Domain-independent up-front human effort performance

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 40 Comparisons A domain-specific planner only works in one domain In principle, configurable and domain-independent planners should both be able to work in any domain In practice, configurable planners work in a larger variety of domains  Partly due to efficiency  Partly due to expressive power Configurable Domain-independent Domain-specific coverage

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 41 Example International Planning Competitions  1998, 2000, 2002, 2004, 2006, 2008  All of them included domain-independent planners The 2000 and 2002 competitions also included configurable planners  The configurable planners »Solved the most problems »Solved them the fastest »Usually found better solutions »Worked in non-classical planning domains that were beyond the scope of the domain-independent planners

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 42 But Wait … IPC 2002 was the last planning competition to include configurable planners. Two reasons for this: (1) It’s hard to enter them in the competition »Must write all the domain knowledge yourself »Too much trouble except to make a point »The authors of those planners felt they had already made their point (2) Cultural bias …

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 43 Cultural Bias Most automated-planning researchers feel that using domain knowledge is “cheating” Researchers in other fields have trouble comprehending this  Operations research, control theory, engineering, …  Why would anyone not want to use the knowledge they have about a problem they’re trying to solve? In the past, the bias has been very useful  Without it, automated planning wouldn’t have grown into a separate field from its potential application areas But it’s less useful now  The field has matured  The bias is too restrictive

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 44 West North East South Q Q  J 6  5  9  7  A K 5 3 A  9   Example Typical characteristics of application domains  Dynamic world  Multiple agents  Imperfect/uncertain info  External info sources »users, sensors, databases  Durations, time constraints, asynchronous actions  Numeric computations »geometry, probability, etc. Classical planning excludes all of these

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 45 Good News, Part 1 Classical planning research has produced some very powerful techniques for reducing the size of the search space Some of these can be generalized to non-classical domains Example:  Plan-space planning was originally developed for classical planning  In the Mars rovers, it was extended for reasoning about time

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 46 Good News, Part 2 AI planning is gradually generalizing beyond classical planning Example: the planning competitions  1998, 2000: classical planning  2002: added elementary notions of time durations, resources  2004: added inference rules, derived effects, and a separate track for planning under uncertainty  2006: added soft goals, trajectory constraints, preferences, plan metrics  2008: new track for planners that can learn

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 47 Success in high-profile applications like the Mars rovers  Creates excitement about building planners that work in the real world  Provides opportunities for synergy between theory and practice  Understanding real-world planning leads to better theories  Better theories lead to better real- world planners Good News, Part 3

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 48 Generalization of the earlier example  A harbor with several locations »e.g., docks, docked ships, storage areas, parking areas  Containers »going to/from ships  Robot carts »can move containers  Cranes »can load and unload containers A running example: Dock Worker Robots

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 49 A running example: Dock Worker Robots Locations: l1, l2, … Containers: c1, c2, …  can be stacked in piles, loaded onto robots, or held by cranes Piles: p1, p2, …  fixed areas where containers are stacked  pallet at the bottom of each pile Robot carts: r1, r2, …  can move to adjacent locations  carry at most one container Cranes: k1, k2, …  each belongs to a single location  move containers between piles and robots  if there is a pile at a location, there must also be a crane there

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 50 A running example: Dock Worker Robots Fixed relations: same in all states adjacent (l,l’) attached (p,l) belong (k,l) Dynamic relations: differ from one state to another occupied (l) at (r,l) loaded (r,c) unloaded (r) holding (k,c) empty (k) in (c,p) on (c,c’) top (c,p) top (pallet,p) Actions: take( c,k,p ) put( c,k,p ) load( r,c,k ) unload( r )move( r,l,l’ )

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 51 Any Questions?