where are we informatics 2d reasoning and agents
play

Where are we? Informatics 2D Reasoning and Agents Semester 2, - PowerPoint PPT Presentation

Introduction Introduction Execution monitoring and replanning Execution monitoring and replanning Hierarchical Planning Hierarchical Planning Summary Summary Where are we? Informatics 2D Reasoning and Agents Semester 2, 20192020


  1. Introduction Introduction Execution monitoring and replanning Execution monitoring and replanning Hierarchical Planning Hierarchical Planning Summary Summary Where are we? Informatics 2D – Reasoning and Agents Semester 2, 2019–2020 Last time . . . Alex Lascarides ◮ Looked at methods for real-world planning alex@inf.ed.ac.uk ◮ Sensorless planning and contingent planning ◮ Fully and partially observable environments Today . . . ◮ Planning and Acting in the Real World II Lecture 19 – Planning and Acting in the Real World II 3rd March 2020 Informatics UoE Informatics 2D 1 Informatics UoE Informatics 2D 62 Introduction Introduction Execution monitoring and replanning Execution monitoring and replanning Hierarchical Planning Hierarchical Planning Summary Summary Execution monitoring and replanning Action monitoring and replanning ◮ While attempting to get from S to G , a problem is encountered in E , agent discovers actual state is O and plans to get to P and execute the rest of the original plan ◮ Execution monitoring = checking whether things are going according to plan (necessitated by unbounded indeterminacy in whole plan realistic environments) plan ◮ Action monitoring = checking whether next action is feasible ◮ Plan monitoring = checking whether remainder of plan is feasible S P E G ◮ Replanning = ability to find new plan when things go wrong continuation (usually repairing the old plan) ◮ Taken together these methods yield powerful planning abilities repair O Informatics UoE Informatics 2D 63 Informatics UoE Informatics 2D 64

  2. Introduction Introduction Representing action refinements Execution monitoring and replanning Execution monitoring and replanning Primitive Search Hierarchical Planning Hierarchical Planning More Advanced Search Summary Summary Plan monitoring Hierarchical decomposition in planning ◮ Hierarchical decomposition seems a natural idea to improve ◮ Action monitoring often results in suboptimal behaviour, executes planning capabilities. everything until actual failure ◮ Key idea : at each level of the hierarchy, activity involves only ◮ Plan monitoring checks preconditions for entire remaining plan small number of steps (i.e. small computational cost) ◮ Can also take advantage of serendipity (unexpected ◮ Hierarchical task network (HTN) planning: initial plan provides circumstances might make remaining plan easier) only high-level description, refined by action refinements ◮ In partially observable environments things are more complex ◮ Refinement process continued until plan consists only of primitive (sensing actions have to be planned for, they can fail in turn, etc.) actions Informatics UoE Informatics 2D 65 Informatics UoE Informatics 2D 66 Introduction Introduction Representing action refinements Representing action refinements Execution monitoring and replanning Execution monitoring and replanning Primitive Search Primitive Search Hierarchical Planning Hierarchical Planning More Advanced Search More Advanced Search Summary Summary Representing action decompositions Example: Go to SF Airport Refinment ( Go ( Home , SFO ) , Precond: At ( Car , Home ) ◮ Each high level action (HLA) has (at least) one refinement into a Steps: [ Drive ( Home , SFOLongTermParking ) sequence of actions. ◮ The actions in the sequence may be HLAs or primitive. Shuttle ( SFOLongTermParking , SFO )]) ◮ So HLAs form a hierarchy! ◮ If they’re all primitive, then that’s an implementation of the HLA. Refinment ( Go ( Home , SFO ) , Precond: Cash , At ( Home ) Steps: [ Taxi ( Home , SFO )]) Informatics UoE Informatics 2D 67 Informatics UoE Informatics 2D 68

  3. Introduction Introduction Representing action refinements Representing action refinements Execution monitoring and replanning Execution monitoring and replanning Primitive Search Primitive Search Hierarchical Planning Hierarchical Planning More Advanced Search More Advanced Search Summary Summary Refinements can be Recursive High-Level Plans Refinment ( Navigate ([ a , b ] , [ x , y ]) , Precond: a = x , b = y ◮ High-Level Plans (HLP) are a sequence of HLAs. Steps: []) ◮ An implementation of a High Level Plan is the concatenation of an implementation of each of its HLAs. ◮ An HLP achieves the goal from an initial state if at least one of its Refinment ( Navigate ([ a , b ] , [ x , y ]) , implementations does this. Precond: Connected ([ a , b ] , [ a − 1 , b ]) ◮ Not all implementations of an HLP have to reach the goal state! Steps: [ Left , Navigate ([ a − 1 , b ] , [ x , y ])]) ◮ The agent gets to decide which implementation of which HLAs to execute. Refinment ( Navigate ([ a , b ] , [ x , y ]) , Precond: Connected ([ a , b ] , [ a + 1 , b ]) Steps: [ Right , Navigate ([ a + 1 , b ] , [ x , y ])]) Informatics UoE Informatics 2D 69 Informatics UoE Informatics 2D 70 Introduction Introduction Representing action refinements Representing action refinements Execution monitoring and replanning Execution monitoring and replanning Primitive Search Primitive Search Hierarchical Planning Hierarchical Planning More Advanced Search More Advanced Search Summary Summary Searching for Primitive Solutions Searching for Primitive Solutions: Breadth First ◮ Start your plan P with the HLA [ Act ], ◮ The HLA plan library is a hierarchy: ◮ (Ordered) Daughters to an HLA are the sequences of actions ◮ Take the first HLA A in P (recall that P is an action sequence ). provided by one of its refinements; ◮ Do a breadth-first search in your hierarchical plan library, to find a ◮ Because a given HLA can have more than one refinement, there refinement of A whose preconditions are satisfied by the outcome can be more than one node for a given HLA in the hierarchy. of the action in P that is prior to A . ◮ This hierarchy is essentially a search space of action sequences ◮ Replace A in P with this refinement. that conform to knowledge about how high-level actions can be ◮ Keep going until your plan P has no HLAs and either: broken down. 1. Your plan P ’s outcome is the goal, in which case return P ; or ◮ So you can search this space for a plan! 2. Your plan P ’s outcome is not the goal, in which case return failure . Informatics UoE Informatics 2D 71 Informatics UoE Informatics 2D 72

  4. Introduction Introduction Representing action refinements Representing action refinements Execution monitoring and replanning Execution monitoring and replanning Primitive Search Primitive Search Hierarchical Planning Hierarchical Planning More Advanced Search More Advanced Search Summary Summary Problems! Adding Preconditions and E ff ects to HLAs ◮ Like forward search, you consider lots of irrelevant actions. ◮ The algorithm essentially refines HLAs right down to primitive ◮ One challenge in specifying preconditions and e ff ects of an HLA is actions so as to determine if a plan will succeed. that the HLA may have more than one refinement, each one with ◮ This contradicts common sense! slightly di ff erent preconditions and e ff ects! ◮ If you refine Go ( Home , SFO ) with Taxi action: you need Cash . ◮ Sometimes you know an HLA will work regardless of how it’s ◮ If you refine it with Drive , you don’t! broken down! ◮ This di ff erence may a ff ect your choice on how to refine the HLA! ◮ We don’t need to know which route to take to SFOParking to ◮ Recall that an HLA achieves a goal if one of its refinements does know this plan works: this. [ Drive ( Home , SFOParking ) , Shuttle ( SFOParking , SFO )] ◮ And you can choose the refinement! ◮ We can capture this if we add to HLAs themselves a set of preconditions and e ff ects. Informatics UoE Informatics 2D 73 Informatics UoE Informatics 2D 74 Introduction Introduction Representing action refinements Representing action refinements Execution monitoring and replanning Execution monitoring and replanning Primitive Search Primitive Search Hierarchical Planning Hierarchical Planning More Advanced Search More Advanced Search Summary Summary Getting Formal Defining Reach ◮ s ′ ∈ Reach ( s , h ) i ff s ′ is reachable from at least one of HLA h ’s refinements, given (initial) state s . ◮ A primitive action makes a fluent true, false, or leaves it unchanged. � Reach ( s ′ , h 2 ) Reach ( s , [ h 1 , h 2 ]) = ◮ But with HLAs you sometimes get to choose , by choosing a s ′ ∈ Reach ( s , h 1 ) particular refinement! ◮ HLP p achieves goal g given initial state s i ff ∃ s ′ st ◮ We add new notation to reflect this: � + A : you can possibly add A (or leave A unchanged) s ′ | = g and s ′ ∈ Reach ( s , p ) � − A : you can possibly delete A (or leave A unchanged) ◮ So we should search HLPs to find a p with this relation to g , and � + A : you can possibly add A , or then focus on refining it. possibly delete A (or leave A unchanged) ◮ But a pre-requisite to this algorithm is to define Reach ( s , h ) for ◮ You should now derive the correct preconditions and e ff ects from each h and s . its refinements! ◮ In other words, we still need to determine how to represent e ff ects (and preconditions) of HLAs. . . Informatics UoE Informatics 2D 75 Informatics UoE Informatics 2D 76

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend