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",

Slides:



Advertisements
Similar presentations
Knowledge Engineering for Planning Domain Design Ron Simpson University of Huddersfield.
Advertisements

REVIEW : Planning To make your thinking more concrete, use a real problem to ground your discussion. –Develop a plan for a person who is getting out of.
German Research Center for Artificial Intelligence (DFKI GmbH) Saarbrücken, Germany Deutsches Forschungszentrum für Künstliche Intelligenz Course Generation.
In the name of God An Application of Planning An Application of PlanningJSHOP BY: M. Eftekhari and G. Yaghoobi.
1 Planning Chapter CMSC 471 Adapted from slides by Tim Finin and Marie desJardins. Some material adopted from notes by Andreas Geyer-Schulz,
Hierarchical Task Networks Planning to perform tasks rather than to achieve goals.
ARCHITECTURES FOR ARTIFICIAL INTELLIGENCE SYSTEMS
Hierarchical Task Network (HTN) Planning Hai Hoang 4/17/2007.
Planning Module THREE: Planning, Production Systems,Expert Systems, Uncertainty Dr M M Awais.
1. An Overview of Prolog.
Planning Module THREE: Planning, Production Systems,Expert Systems, Uncertainty Dr M M Awais.
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.
Classical Planning via Plan-space search COMP3431 Malcolm Ryan.
Plan Generation & Causal-Link Planning 1 José Luis Ambite.
Anany Levitin ACM SIGCSE 1999SIG. Outline Introduction Four General Design Techniques A Test of Generality Further Refinements Conclusion.
Dana Nau University of Maryland 1 IMPACT Multi-Agent Planning Research.
Best-First Search: Agendas
Software Design Deriving a solution which satisfies software requirements.
A H IERARCHICAL G OAL -B ASED F ORMALISM AND A LGORITHM FOR S INGLE -A GENT P LANNING AAMAS ‘12 Utku Şirin
Hidden Markov Models Adapted from Dr Catherine Sweeney-Reed’s slides.
Planning systems and its’ applications in software engineering Saša Tošić, M. Ivanović Risan, 2007.
Artificial Intelligence 2005/06
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.
CPSC 322 Introduction to Artificial Intelligence September 20, 2004.
1 Programming for Engineers in Python Autumn Lecture 5: Object Oriented Programming.
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.
Copyright © 2003 Pearson Education, Inc. Slide 1.
Automated Planning and HTNs Planning – A brief intro Planning – A brief intro Classical Planning – The STRIPS Language Classical Planning – The STRIPS.
Chapter 14 Advanced Normalization Transparencies © Pearson Education Limited 1995, 2005.
Data and Process Modeling.  Describe data and process modeling, and name the main data and process modeling techniques.
Why Analysis Process Refer to earlier chapters Models what the system will do makes it easier for understanding no environment considered (hence, system.
(Classical) AI Planning. Some Examples Route search: Find a route between Lehigh University and the Naval Research Laboratory Project management: Construct.
The Architecture of Secure Systems Jim Alves-Foss Laboratory for Applied Logic Department of Computer Science University of Idaho By, Nagaashwini Katta.
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:
SPHERES OF ARTIFICIAL INTELLIGENCE Gafur Djumaniyazov.
Requirements as Usecases Capturing the REQUIREMENT ANALYSIS DESIGN IMPLEMENTATION TEST.
Haley: A Hierarchical Framework for Logical Composition of Web Services Haibo Zhao, Prashant Doshi LSDIS Lab, Dept. of Computer Science, University of.
Introduction Object oriented design is a method where developers think in terms of objects instead of procedures or functions. SA/SD approach is based.
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.
Multiagent System Katia P. Sycara 일반대학원 GE 랩 성연식.
Automating DAML-S Web Services Composition Using SHOP2 Based on an article by Dan Wu, Bijan Parsia, Evren Sirin, James Hendler and Dana Nau in Proceedings.
Problem Reduction So far we have considered search strategies for OR graph. In OR graph, several arcs indicate a variety of ways in which the original.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Specializing Project 06/07 HTN Presentation for MS1 By Glenn Wissing.
(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.
Hierarchical Task Network Planning Automated Planning: Theory and Practice, Chapter 11 소프트컴퓨팅 연구실
8.1 8 Algorithms Foundations of Computer Science  Cengage Learning.
1 CMSC 471 Fall 2004 Class #21 – Thursday, November 11.
1 CMSC 471 Fall 2002 Class #24 – Wednesday, November 20.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Program Development by Stepwise Refinement
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:
ADVANCED PLANNING TECHNIQUES Dr. Adam Anthony Lecture 22.
Fast Comprehensive Planner for Fully Observable Nondeterministic Problems Andres Calderon Jaramillo – Faculty Advisor: Dr. Jicheng Fu Department of Computer.
Son Thanh To Pat Langley Institute for the Study of Learning and Expertise Palo Alto, California Dongkyu Choi Department of Aerospace Engineering University.
1 Introduction to Turing Machines
1 Recursion Recursive function: a function that calls itself (directly or indirectly). Recursion is often a good alternative to iteration (loops). Its.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Lecture 14. Recap Problem Solving GA Simple GA Examples of Mutation and Crossover Application Areas.
SNS College of Engineering Department of Computer Science and Engineering AI Planning Presented By S.Yamuna AP/CSE 5/23/2018 AI.
Review for the Midterm Exam
Class #20 – Wednesday, November 5
Market-based Dynamic Task Allocation in Mobile Surveillance Systems
Representations & Reasoning Systems (RRS) (2.2)
Class #17 – Tuesday, October 30
Presentation transcript:

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", Volume 20, pages Dumitru Roman

2 Contents Introduction HTN Planning Features of SHOP2 Conclusions

3 Introduction SHOP2 - a domain-independent planning system based on Hierarchical Task Network (HTN) planning. In the 2002 International Planning Competition, SHOP2 received one of the top four awards, one of the two awards for distinguished performance. SHOP as it’s predecessor: –SHOP2 generates the steps of each plan in the same order that those steps will later be executed, so it knows the current state at each step of the planning process. –SHOP2 can do axiomatic inference, mixed symbolic/numeric computations, and calls to external programs.

4 Introduction (cont) SHOP2 goes significantly beyond SHOP: –SHOP2 allows tasks and subtasks to be partially ordered –SHOP2 incorporates many features from PDDL, such as quantifiers and conditional effects –If there are alternative ways to satisfy a method’s precondition, SHOP2 can sort the alternatives according to a criterion specified in the definition of the method. –SHOP2 can handle temporal planning domains (i.e. a way to translate temporal PDDL operators into SHOP2 operators that maintain bookkeeping information for multiple timelines within the current state.

5 HTN Planning HTN planning is like classical AI planning in that each state of the world is represented by a set of atoms, and each action corresponds to a deterministic state transition. However, HTN planners differ from classical AI planners in what they plan for, and how they plan for it. The objective of an HTN planner: to produce a sequence of actions that perform some activity or task. The description of a planning domain includes a set of operators similar to those of classical planning, and also a set of methods, each of which is a prescription for how to decompose a task into subtasks (smaller tasks).

6 HTN Planning (cont) Planning proceeds by using the methods to decompose tasks recursively into smaller and smaller subtasks, until the planner reaches primitive tasks that can be performed directly using the planning operators. For each nonprimitive task, the planner chooses an applicable method, instantiates it to decompose the task into subtasks, and then chooses and instantiates methods to decompose the subtasks even further. If the plan later turns out to be infeasible, the planning system will need to backtrack and try other methods. <- A plan for accomplishing (transport-two p1 p2) from the following initial state: {(package p1), (at p1 l1), (destination p1 l3), (available-truck t1), (at t1 home), (package p2), (at p2 l2), (destination p2 l4), (available-truck t2), (at t2 home)}.

7 Features of SHOP2 A domain description - a description of a planning domain, consisting of a set of methods, operators, and axioms. Task - an activity to perform: –primitive –compound Operator - indicates how a primitive task can be performed: head, precondition, delete list, add list. –can do numeric computations and assignments to local variables –has an optional cost expression Method - indicates how to decompose a compound task into a partially ordered set of subtasks, each of which can be compound or primitive: task, precondition, subtasks

8 Features of SHOP2 (cont) Axioms –The precondition of each method or operator may include conjunctions, disjunctions, negations, universal and existential quantifiers, implications, numerical computations, and external function calls. –Generalized versions of Horn clauses, written in a Lisp-like syntax ( (:- head tail ) ) –If the tail of a clause (or the precondition of an operator or method) contains a negation, it is handled in the same way as in Prolog: the theorem prover takes (not a) to be true if it cannot prove a. External function calls –Useful to do numeric evaluations

9 Features of SHOP2 (cont) - The SHOP2 Algorithm

10 Features of SHOP2 (cont) Additional Features –Sorting the Variable Bindings –Branch-and-Bound Optimization –PDDL Operator Translation –Debugging Facilities

11 SHOP2 - Writing Temporal Domains SHOP2 has no explicit mechanism for reasoning about durative and concurrent actions. However, SHOP2 still has enough expressive power to represent durative and concurrent actions, because it knows the current state at each step of the planning process and since its operators can assign values to variables and can do numeric calculations => technique called Multi-Timeline Preprocessing (MTP):

12 Conclusions The primary difference between SHOP2 and most other HTN planners is that SHOP2 plans for tasks in the same order that they will be executed, and thus it knows the current state at each step of the planning process. In addition to the usual HTN methods and operators, SHOP2’s domain descriptions may include axioms, mixed symbolic/numeric conditions, and external function calls. The planning procedure is Turing-complete, and is sound and complete over a large class of planning problems