Automated Planning and HTNs Planning – A brief intro Planning – A brief intro Classical Planning – The STRIPS Language Classical Planning – The STRIPS.

Slides:



Advertisements
Similar presentations
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.
Advertisements

In the name of God An Application of Planning An Application of PlanningJSHOP BY: M. Eftekhari and G. Yaghoobi.
Language for planning problems
CSE391 – 2005 NLP 1 Planning The Planning problem Planning with State-space search.
Planning
Planning  We have done a sort of planning already  Consider the “search” applied to general problem solving  The sequence of moves with the “Jugs” was.
Hierarchical Task Network (HTN) Planning Hai Hoang 4/17/2007.
Planning Module THREE: Planning, Production Systems,Expert Systems, Uncertainty Dr M M Awais.
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.
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.
Plan Generation & Causal-Link Planning 1 José Luis Ambite.
Automated Planning & Computer Games: Perspectives and Applications Hector Munoz-Avila.
Planning Search vs. planning STRIPS operators Partial-order planning.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
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.
1 ICWS 2006, Chicago ICWS 2006 A Framework for Intelligent Web Services: Combined HTN and CSP Approach Incheon Paik, University of Aizu Daisuke Maruyama,
Artificial Intelligence 2005/06
Classical Planning via State-space search COMP3431 Malcolm Ryan.
Planning Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 11.
Artificial Intelligence Chapter 11: Planning
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.
CS 561, Session Planning Search vs. planning STRIPS operators Partial-order planning.
Artificial Intelligence 2005/06 Planning: STRIPS.
CPSC 322, Lecture 17Slide 1 Planning: Representation and Forward Search Computer Science cpsc322, Lecture 17 (Textbook Chpt 8.1 (Skip )- 8.2) February,
Planning Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 11.
1 Planning Chapters 11 and 12 Thanks: Professor Dan Weld, University of Washington.
Classical Planning via State-space search COMP3431 Malcolm Ryan.
Planning Department of Computer Science & Engineering Indian Institute of Technology Kharagpur.
Classical Planning Chapter 10.
Course Overview  What is AI?  What are the Major Challenges?  What are the Main Techniques?  Where are we failing, and why?  Step back and look at.
(Classical) AI Planning. Some Examples Route search: Find a route between Lehigh University and the Naval Research Laboratory Project management: Construct.
Logic Specification and Z Schema 3K04 McMaster. Basic Logic Operators Logical negation ( ¬ ) Logical conjunction ( Λ or & ) Logical disjunction ( V or.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
CHA2555 Week2: Knowledge Representation, Logic and Planning Lee McCluskey First term:
110/19/2015CS360 AI & Robotics AI Application Areas  Neural Networks and Genetic Algorithms  These model the structure of neurons in the brain  Humans.
Computing & Information Sciences Kansas State University Wednesday, 15 Oct 2008CIS 530 / 730: Artificial Intelligence Lecture 20 of 42 Wednesday, 15 October.
Planning (Chapter 10)
Planning (Chapter 10)
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.
Automated Planning Dr. Héctor Muñoz-Avila. What is Planning? Classical Definition Domain Independent: symbolic descriptions of the problems and the domain.
Introduction to Planning Dr. Shazzad Hosain Department of EECS North South Universtiy
AI Lecture 17 Planning Noémie Elhadad (substituting for Prof. McKeown)
1/16 Planning Chapter 11- Part1 Author: Vali Derhami.
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)
Computing & Information Sciences Kansas State University Friday, 20 Oct 2006CIS 490 / 730: Artificial Intelligence Lecture 24 of 42 Friday, 20 October.
1 CMSC 471 Fall 2004 Class #21 – Thursday, November 11.
Planning I: Total Order Planners Sections
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Planning in FOL Systems sequences of actions to achieve goals.
Consider the task get milk, bananas, and a cordless drill.
Causal-link planning 1 Jim Blythe. 2 USC INFORMATION SCIENCES INSTITUTE Causal Link Planning The planning problem Inputs: 1. A description of the world.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Hybrid Architectures Today: More Planning Tuesday: Examples of Hierarchical Systems Hand-out Midterm How can "natural" interaction with a robot be designed?
Automated Planning & Computer Games: Perspectives and Applications
SNS College of Engineering Department of Computer Science and Engineering AI Planning Presented By S.Yamuna AP/CSE 5/23/2018 AI.
Planning (Chapter 10) Slides by Svetlana Lazebnik, 9/2016 with modifications by Mark Hasegawa-Johnson, 9/2017
Planning (Chapter 10)
Planning (Chapter 10)
Consider the task get milk, bananas, and a cordless drill
Review for the Midterm Exam
Planning José Luis Ambite.
Graphplan/ SATPlan Chapter
Class #19 – Monday, November 3
Graphplan/ SATPlan Chapter
Graphplan/ SATPlan Chapter
Presentation transcript:

Automated Planning and HTNs Planning – A brief intro Planning – A brief intro Classical Planning – The STRIPS Language Classical Planning – The STRIPS Language HTN – Hierarchical Task Networks & SHOP2 HTN – Hierarchical Task Networks & SHOP2

What is planning? Planning is the process of generating a sequence of actions that will achieve a goal. Planning is the process of generating a sequence of actions that will achieve a goal. Automated planning is a branch of computer science that deals with producing plans to achieve a goal. Automated planning is a branch of computer science that deals with producing plans to achieve a goal.

Features of a planning system A representation of the state of the world. A representation of the state of the world. A representation of the goals to be achieved. A representation of the goals to be achieved. Actions that change the state of the world. Actions that change the state of the world.

The Blocks World Example The world (problem domain) is a table covered by children’s blocks. The world (problem domain) is a table covered by children’s blocks. Blocks can sit on the table on on each other. Blocks can sit on the table on on each other. We want to move blocks from one configuration to another. We want to move blocks from one configuration to another.

The STRIPS Planning Language STanford Research Institute Problem Solver STanford Research Institute Problem Solver Based on First Order Predicate Calculus. Based on First Order Predicate Calculus. Developed in 1971 Developed in 1971

STRIPS State Representation Conjunctions of state symbols. Conjunctions of state symbols. But not disjunctions or negative assertions But not disjunctions or negative assertions  InHouse & HasDinner Conjunctions of grounded operators. Conjunctions of grounded operators.  At(Mark, House) & Using(Jane, Computer)

STRIPS Goals A partially specified state A partially specified state  At(Joe, Museum) & Has(Joe, Camera)

STRIPS Actions Operators are actions that transform world state Operators are actions that transform world state  Parameters – Walk( person, place1, place2 )  Precondition – Conjunctions describing partial states.  At( person, place1 ) & Door( place1, open )  Effects – Conjunctions and negations to add and delete state members.  ~At( person, place1 ) & At( person, place2 )

Constants and Predicates

Operators (Actions)

The Algorithm Planning is a search procedure. Planning is a search procedure. A graph of a search space is constructed. A graph of a search space is constructed. State-Space Planning State-Space Planning  Each node represents a state of the world.  A plan is a path through this space. Plan-Space Planning Plan-Space Planning  Each node is a set of partially instantiated operators, and a set of constraints.  Constraints are added until we get a plan.

Search Types Forward Search (SHOP2) Forward Search (SHOP2)  Start at initial state and apply operators.  Construct graph of state space.  Search from initial state to goal.  Can have a very large branching factor.

Search Types Backward Search (STRIPS) Backward Search (STRIPS)  State-Space search  Starts at goal.  Searches backwards to initial state.  Efficient but less expressive

Example UCPOP Domain

Hierarchical Task Networks HTNs can be used to form complex plans. HTNs can be used to form complex plans. Two types of Operators (Methods). Two types of Operators (Methods). Methods form a hierarchy of tasks. Methods form a hierarchy of tasks.  Complex – Composed of subtasks  Simple – Executes directly

Method Structure Complex Method Complex Method  Name( parameter list )  Precondition set 1  Task list 1 …  Precondition set n  Task list n

Sample Task Hierarchy Method Travel( location1, location2 ) Method Travel( location1, location2 ) Precondition 1: ShortDistance( loc1, loc2 ) Precondition 1: ShortDistance( loc1, loc2 ) Tasks 1: Tasks 1:  get_taxi  Ride( loc1, loc2 )  Pay_driver

Method Travel()… Method Travel( location1, location2 ) Method Travel( location1, location2 ) Precondition 2: LongDistance( loc1, loc2 ) Precondition 2: LongDistance( loc1, loc2 ) Tasks 2: Tasks 2:  get_airplane_ticket( loc1, loc2 )  Travel( loc1, loc1(airport) )  Fly( loc1(airport), loc2(airport) )  Travel( loc2(airport), loc2 )

Method Structure Simple Method Simple Method  Name( parameter list )  Precondition set  Delete list  Add List

Method ride() Ride( loc1, loc2 ) Ride( loc1, loc2 ) Preconditions: ShortDistance( loc1, loc2 ) Preconditions: ShortDistance( loc1, loc2 ) Delete: (at Joe loc1) Delete: (at Joe loc1) Add: (at Joe loc2) Add: (at Joe loc2)

The SHOP2 Planner Created at University of Maryland in 2002 Created at University of Maryland in 2002 Language for developing HTNs Language for developing HTNs Input: Planning domain and problem set. Input: Planning domain and problem set. Output: Java program to implement planner. Output: Java program to implement planner.

Sample SHOP2 Domains

Planning in Games / Simulation Most systems use FSM. Most systems use FSM. Planning offers more behaviors, flexibility. Planning offers more behaviors, flexibility.

Warcraft 2 Project