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

Slides:



Advertisements
Similar presentations
Completeness and Expressiveness
Advertisements

Chapter 5 Plan-Space Planning.
Planning II: Partial Order Planning
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Causal-link Planning II José Luis Ambite. 2 CS 541 Causal Link Planning II Planning as Search State SpacePlan Space AlgorithmProgression, Regression POP.
1 A formula in predicate logic An atom is a formula. If F is a formula then (~F) is a formula. If F and G are Formulae then (F /\ G), (F \/ G), (F → G),
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:
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Classical Planning via Plan-space search COMP3431 Malcolm Ryan.
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
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
CPSC 422, Lecture 21Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 21 Mar, 4, 2015 Slide credit: some slides adapted from Stuart.
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.
Introduction to Computability Theory
Constraint Logic Programming Ryan Kinworthy. Overview Introduction Logic Programming LP as a constraint programming language Constraint Logic Programming.
Inference and Resolution for Problem Solving
Catriel Beeri Pls/Winter 2004/5 type reconstruction 1 Type Reconstruction & Parametric Polymorphism  Introduction  Unification and type reconstruction.
Automated Planning and HTNs Planning – A brief intro Planning – A brief intro Classical Planning – The STRIPS Language Classical Planning – The STRIPS.
Linear Systems The definition of a linear equation given in Chapter 1 can be extended to more variables; any equation of the form for real numbers.
1 1.1 © 2012 Pearson Education, Inc. Linear Equations in Linear Algebra SYSTEMS OF LINEAR EQUATIONS.
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 Plan-Space Planning Dr. Héctor Muñoz-Avila Sources: Ch. 5 Appendix A Slides from Dana Nau’s lecture.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Complexity of Classical Planning Megan Smith Lehigh University CSE 497, Spring 2007.
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:
State-Space Search and the STRIPS Planner Searching for a Path through a Graph of Nodes Representing World States.
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:
Overview Concept Learning Representation Inductive Learning Hypothesis
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Temporal Planning Planning with Temporal and Concurrent Actions.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
A Logic of Partially Satisfied Constraints Nic Wilson Cork Constraint Computation Centre Computer Science, UCC.
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:
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 422, Lecture 21Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 21 Oct, 30, 2015 Slide credit: some slides adapted from Stuart.
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:
Alternative Representations Propositions and State-Variables.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
1 Finite Model Theory Lecture 16 L  1  Summary and 0/1 Laws.
Presented by: Belgi Amir Seminar in Distributed Algorithms Designing correct concurrent algorithms Spring 2013.
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 PLANNING. Outline  The challenges in planning with standard search algorithm  Representing Plans – the PDDL language  Planning as state -
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Introduction to Logic for Artificial Intelligence Lecture 2
Dana S. Nau University of Maryland 3:10 AM September 12, 2018
Dana S. Nau University of Maryland 1:50 AM September 14, 2018
Review for the Midterm Exam
Class #17 – Thursday, October 27
Graphplan/ SATPlan Chapter
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.
Dana S. Nau University of Maryland 9:01 AM December 6, 2018
Class #19 – Monday, November 3
Chapter 6 Planning-Graph Techniques
Graphplan/ SATPlan Chapter
Chapter 2 Representations for Classical Planning
Graphplan/ SATPlan Chapter
Presentation transcript:

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 1 Chapter 14 Temporal Planning Lecture slides for Automated Planning: Theory and Practice Dana S. Nau CMSC 722, AI Planning University of Maryland, Fall 2004

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 2 Temporal Planning l Motivation: want to do planning in situations where actions u have nonzero duration u may overlap in time l Need an explicit representation of time l Two equivalent approaches: u (1) use logical atoms, and extend the usual planning operators to include temporal conditions on those atoms »temporal databases u (2) use state variables, and specify change and persistence constraints on the state variables »chronicles l In each case, the chapter gives a planning algorithm that’s like a temporal-planning version of PSP

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 3 Definitions l Temporally Qualified Expression (tqe): u expression 1,t 2 ) »a is an atom »t 1, t 2 are temporal variables (not constants) range over the set of real numbers l Temporal database: a pair  = (F,C) u F is a finite set of tqes u C is a finite set of constraints »temporal constraints and object constraints u C must be consistent (i.e., there must exist variable assignments that satisfy it)

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 4 Example rob1 remains at location loc1, rob2 moves from loc2 to loc3

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 5 Enabling Conditions l A set of tqes F supports a tqe e = 1,t 2 ) if F contains a tqe e' = 1,t' 2 ) such that a and a' are unifiable l Enabling condition: a set of constraints sufficient to make 1,t' 2 )  1,t 2 ) u Express the unifier as a collection of constraints u Add two additional constraints: t' 1 ≤ t 1 and t 2 ≤ t' 2 l There may be more than one enabling condition u F may contain more than one e' that can support e l  (e/F) = {enabling conditions for e in F} l If  = (F,C), then  (e/  ) = {enabling conditions for e in F that are consistent with C} l For sets of tqes, the obvious generalizations (see next slide)

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 6 Enabling Conditions and Entailment l A set of tqes F supports a set of tqes E = {e 1, e 2, …, e n } if there is a substitution that unifies each e i in E with an e' i = a' i1,t’ i2 ) in F l Enabling condition: a set of constraints sufficient to make e' i  e i for every i u Express the substitution as a collection of constraints u For each i, add additional constraints t' i1 ≤ t i1 and t i2 ≤ t' i2 l  (E/F) = {enabling conditions for E in F} l If  = (F,C), then  (E/  ) = {enabling conditions for E in F that are consistent with C} l  = (F,C) entails  ' = (F',C') if   supports F', and there is an enabling condition C'' in  (F'/  ) such that C entails C'' U C'

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 7 Temporal Planning Operators l o = (name(o), precond(o), effects(o), const(o)) u name(o): name & variables; last two variables are t s, t e u precond, effects: sets of tqes u const(o): temporal constraints and object constraints l Note: tqes don’t have negations; thus no precond – and effects – u Can get the same effect with domain axioms »will describe later

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 8 Actions l Action: partially instantiated operator (like in plan-space planning) l An action a is applicable to  = (F,C) if u F supports precond(a)  there is an enabling condition C' in  (a/F) such that C U const(a) U C' is consistent l The result of applying a to  is a set of possible databases u e.g., suppose a = 1,t 2 ) »different possible values for x, t 1, t 2 l A temporary definition (we’ll revise this later):   0 ( ,a) = {(F U effects(a), C U const(a) U C' | C' is in  (a/F)} short for  (precond(a)/F)

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 9 s,t e ) is enabled l Enabling condition is Example

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 10 Suppose we also have adjacent(loc3,loc2)  Then s,t' e ) is also enabled Suppose we also have adjacent(loc1,loc3)  Then s,t'' e ) is also enabled

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 11 Domain Axioms l Format: set of tqes  disjunct of constraints l For an axiom r: cond(r)  disj(r) u  (r/F) is short for  (cond(r)/F)

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 12 Negative Effects l Axioms can be used to take the place of negative effects Axiom: no object can be in two places at the same time

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 13 Augment  with the effects of s,t e ) l The axiom is supported for r = r' = rob1, l = loc1, l' = routes l Can infer that

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 14 Negative Preconditions l Axioms can also be used to take the place of negative preconditions Axiom: a robot cannot be in a location at the same time that the location is free

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 15 Consistency l  = (F,C) is consistent with an axiom r if u for every enabling condition c in  (r/F) u there is a condition c' in disj(r)  such that C U c U c' is consistent l  is consistent with a set of axioms X if  is consistent with every axiom in X l Consistency condition: a set of constraints that needs to be met to ensure that  is consistent with the supported axioms l There can be more than one consistency condition u Each disj(r) may contain more than one constraint c 2 l Analogy: a consistency condition is like a way to resolve all existing threats

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 16 Satisfaction l  = (F,C) satisfies a set of axioms X if either  (X/  ) is empty or there is a consistency condition c that is entailed by C l If  satisfies X then it will continue to satisfy X when additional constraints are added l If  is consistent with X but does not satisfy X then an additional constraint c in  (X/  ) needs to be added to  to make it satisfy X l The set of all databases obtained from  that satisfy X is

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

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

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 19 Concurrent Interfering Actions l Here, each action provides some of the conditions needed to enable the other l This could not happen in classical planning, but does happen in temporal planning

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 20 Applying pairs of actions

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 21 Applying sets of actions

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 22 Planning l Search space similar to the one for PSP (Chapter 5) l CSP-based techniques to handle the constraints

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 23 Algorithm Similar to a temporal database

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 24 Flaws Intuitively, open goals are like open goals in PSP, and the ways of resolving them are analogous to how open goals are resolved in PSP.

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 25 Flaws (Continued) Recall that the primary use of axioms is to entail negative preconditions and effects. Resolving an unsatisfied-axiom flaw consists of asserting those preconditions/effects into the database. Intuitively, threats are like threats in PSP, and the ways of resolving them are analogous to how threats are resolved in PSP.

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

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

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

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 29 l State variables are partially specified functions l May never specify the entire function

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

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

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: 32 Chronicle l State-variable equivalent of a temporal database

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

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

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

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

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