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

Slides:



Advertisements
Similar presentations
Additional Topics ARTIFICIAL INTELLIGENCE
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.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Automatic Verification Book: Chapter 6. What is verification? Traditionally, verification means proof of correctness automatic: model checking deductive:
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:
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.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
1 Chapter 3 Solving Problems by Searching. 2 Outline Problem-solving agentsProblem-solving agents Problem typesProblem types Problem formulationProblem.
Solving Problem by Searching Chapter 3. Outline Problem-solving agents Problem formulation Example problems Basic search algorithms – blind search Heuristic.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Best-First Search: Agendas
Problem Solving and Search in AI Part I Search and Intelligence Search is one of the most powerful approaches to problem solving in AI Search is a universal.
CS 380: Artificial Intelligence Lecture #3 William Regli.
Automated Planning Introduction and Overview. Automated Planning: Introduction and Overview 2 Literature Malik Ghallab, Dana Nau, and Paolo Traverso.
Marakas: Decision Support Systems, 2nd Edition © 2003, Prentice-Hall Chapter Chapter 4: Modeling Decision Processes Decision Support Systems in the.
CPSC 322, Lecture 12Slide 1 CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12 (Textbook Chpt ) January, 29, 2010.
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.
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.
Solving problems by searching This Lecture Read Chapters 3.1 to 3.4 Next Lecture Read Chapter 3.5 to 3.7 (Please read lecture topic material before and.
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:
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.
State-Space Search and the STRIPS Planner Searching for a Path through a Graph of Nodes Representing World States.
1 Solving problems by searching This Lecture Chapters 3.1 to 3.4 Next Lecture Chapter 3.5 to 3.7 (Please read lecture topic material before and after each.
Constraint Satisfaction Problems (CSPs) CPSC 322 – CSP 1 Poole & Mackworth textbook: Sections § Lecturer: Alan Mackworth September 28, 2012.
Dr.Abeer Mahmoud ARTIFICIAL INTELLIGENCE (CS 461D) Dr. Abeer Mahmoud Computer science Department Princess Nora University Faculty of Computer & Information.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Major objective of this course is: Design and analysis of modern algorithms Different variants Accuracy Efficiency Comparing efficiencies Motivation thinking.
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:
1 Solving problems by searching 171, Class 2 Chapter 3.
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:
A General Introduction to Artificial Intelligence.
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)
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Arc Consistency CPSC 322 – CSP 3 Textbook § 4.5 February 2, 2011.
(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.
Introduction to State Space Search
1 CMSC 471 Fall 2004 Class #21 – Thursday, November 11.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Onlinedeeneislam.blogspot.com1 Design and Analysis of Algorithms Slide # 1 Download From
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
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:
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:
CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12
CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12
Review for the Midterm Exam
CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12
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.
Lecture 3: Environs and Algorithms
Russell and Norvig: Chapter 3, Sections 3.1 – 3.3
Solving problems by searching
Solving problems by searching
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 7:07 PM May 5, 2015

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” Which of these do you think this course is about?

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” [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

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 4 Conceptual Model  is an abstraction  Deals only with the aspects that the planner needs to reason about State transition system  = (S,A,E,  ) S = {states} A = {actions} E = {exogenous events}  = state-transition function

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

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 6 Real world is absurdly complex  Must be abstracted Abstract state = set of real states  s 1 specifies that the robot is at loc2, but not now it’s positioned and oriented Abstract action = complex combination of real actions  Executing move1 may require a complex sequence of low-level actions  For guaranteed realizability, move1 must get the robot to loc1 no matter where how it’s positioned in loc2 Abstraction move1 move2 loc1loc2 s1s1 loc1 loc2 s3s3

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 7 Controller Control may involve lower-level planning and/or plan execution  e.g., how to do move1 Given observation o in O, produces action a in A Instructions to the controller move1 move2 loc1loc2 s1s1 loc1 loc2 s3s3 Observation function h: S  O

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 8 Depends on whether planning is online or offline Planning problem Planner Instructions to the controller

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

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 10 Plans take put move1 put take move1 move2 load unload move2 loc1 loc2 s0s0 loc1loc2 s1s1 s4s4 loc1 loc2 s5s5 loc1 loc2 loc1 loc2 s3s3 loc1 loc2 s2s2 take move1 load move2 Dock Worker Robots (DWR) example 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) }

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 11 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: 12 Three Main Types of Planners 1. Domain-specific  Made or tuned for a specific planning domain  Won’t work well (if at all) in other planning domains 2. Domain-independent  In principle, works in any planning domain  In practice, need restrictions on what kind of planning domain 3. Configurable  Domain-independent planning engine  Input includes info about how to solve problems in some domain

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: Domain-Specific Planners (Chapters 19-23) Most successful real-world planning systems work this way  Mars exploration, sheet-metal bending, playing bridge, etc. Often use problem-specific techniques that are difficult to generalize to other planning domains

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 14 In principle, works in any planning domain No domain-specific knowledge except the description of the system  In practice,  Not feasible to make domain- independent planners work well in all possible planning domains Make simplifying assumptions to restrict the set of domains  Classical planning  Historical focus of most research on automated planning Types of Planners 2. Domain-Independent

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 15 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: 16 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: 17 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 loc1loc2 s1s1 take put move1 move2

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 18 Plan-Space Planning (Chapter 5) Decompose sets of goals into the individual goals Plan for them separately  Bookkeeping info to detect and resolve interactions Not the best approach for classical planning But important in some real-world applications  A temporal-planning extension was used in the Mars rovers c ab a b c put c down pick up a stack a on b stack b on c pick up b Goal: a is on b; b is on c Start: c is on a; a and b are on the floor unstack c from a Plan for getting b onto c: Plan for getting a onto b:

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 19 Planning Graphs (Chapter 6) Rough idea:  First, solve a relaxed problem »Each “level” contains all effects of all applicable actions »Even though the effects may contradict each other  Next, do a state-space search within the planning graph Graphplan, IPP, CGP, DGP, LGP, PGP, SGP, TGP,... Level 0 Level 1 Level 2 All appli- cable actions All effects of those actions All actions applicable to subsets of Level 1 All effects of those actions Initial state

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 20 Heuristic Search (Chapter 9) Heuristic function like those in A*  Created using techniques similar to planning graphs Problem: A* quickly runs out of memory  So do a greedy search instead 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: 21 Translation to Other Kinds of Problems (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: 22 Types of Planners: 3. Configurable In any fixed planning domain, a domain-independent planner usually won’t work as well as a domain-specific planner made specifically for that domain  A domain-specific planner may be able to go directly toward a solution in situations where a domain-specific planner would explore may alternative paths 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 Generally this means one can write a planning engine with fewer restrictions than »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: 23 HTN Planning (Chapter 11) travel from UMD to LAAS get ticket: IAD to TLS travel from UMD to IAD fly from BWI to TLS travel from TLS to LAAS … complicated sequence of actions … go to Orbitz find flight: IAD to TLS buy ticket get-taxi ride from UMD to IAD pay driver 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 get ticket: BWI to TLS go to Orbitz find flight: BWI to TLS BACKTRACK get-taxi ride from TLS to LAAS pay driver

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 24 Planning with Control Formulas (Chapter 10) At each state s, we have a control formula written in temporal logic  e.g., “never pick up x unless x needs to go on top of something else” For each successor of s, derive a control formula using logical progression Prune any successor state in which the progressed formula is false  TLPlan, TALplanner, … 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: 25 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 in a given domain

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 26 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 because of the restrictions required by domain-independent planners Configurable Domain-independent Domain-specific coverage

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 27 Reasoning about Time during Planning Temporal planning (Chapter 14)  Explicit representation of time  Actions have duration, may overlap with each other Planning and scheduling (Chapter 15)  What a scheduling problem is  Various kinds of scheduling problems, how they relate to each other  Integration of planning and scheduling

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 28 Planning in Nondeterministic Environments Actions may have multiple possible outcomes  some actions are inherently random (e.g., flip a coin)  actions sometimes fail to have their desired effects »drop a slippery object »car not oriented correctly in a parking spot How to model the possible outcomes, and plan for them  Markov Decision Processes (Chapter 16) »outcomes have probabilities  Planning as Model Checking (Chapter 17) »multiple possible outcomes, but don’t know the probabilities

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 29 Example Applications Robotics (Chapter 20)  Physical requirements  Path and motion planning »Configuration space »Probabilistic roadmaps  Design of a robust controller Planning in the game of bridge (Chapter 23)  Game-tree search in bridge  HTN planning to reduce the size of the game tree

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 30 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: 31 A running example: Dock Worker Robots Locations: l1, l2, …, or loc1, loc2, … 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: 32 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: 33 Any Questions?