Classical Planning Chapter 10.

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

Language for planning problems
CSE391 – 2005 NLP 1 Planning The Planning problem Planning with State-space search.
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:
Finding Search Heuristics Henry Kautz. if State[node] is not in closed OR g[node] < g[LookUp(State[node],closed)] then A* Graph Search for Any Admissible.
1 Graphplan José Luis Ambite * [* based in part on slides by Jim Blythe and Dan Weld]
Plan Generation & Causal-Link Planning 1 José Luis Ambite.
1 Complexity of domain-independent planning José Luis Ambite.
Graph-based Planning Brian C. Williams Sept. 25 th & 30 th, J/6.834J.
Planning Graphs * Based on slides by Alan Fern, Berthe Choueiry and Sungwook Yoon.
Planning CSE 473 Chapters 10.3 and 11. © D. Weld, D. Fox 2 Planning Given a logical description of the initial situation, a logical description of the.
1 Classical STRIPS Planning Alan Fern * * Based in part on slides by Daniel Weld.
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.
AI – Week AI Planning – Plan Generation Algorithms: GraphPlan Lee McCluskey, room 2/09
Classical Planning via State-space search COMP3431 Malcolm Ryan.
Planning Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 11.
Artificial Intelligence Chapter 11: Planning
Planning: Part 3 Planning Graphs COMP151 April 4, 2007.
Planning II CSE 473. © Daniel S. Weld 2 Logistics Tournament! PS3 – later today Non programming exercises Programming component: (mini project) SPAM detection.
Planning: Part 1 Representation and State-space Search COMP151 March 30, 2007.
Planning Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 11.
Chapter 5 Outline Formal definition of CSP CSP Examples
1 Planning Chapters 11 and 12 Thanks: Professor Dan Weld, University of Washington.
Classical Planning via State-space search COMP3431 Malcolm Ryan.
Planning II CSE 573. © Daniel S. Weld 2 Logistics Reading for Wed Ch 18 thru 18.3 Office Hours No Office Hour Today.
GraphPlan Alan Fern * * Based in part on slides by Daniel Weld and José Luis Ambite.
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:
Complexity of Classical Planning Megan Smith Lehigh University CSE 497, Spring 2007.
April 3, 2006AI: Chapter 11: Planning1 Artificial Intelligence Chapter 11: Planning Michael Scherger Department of Computer Science Kent State University.
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:
Planning (Chapter 10)
CPS 270: Artificial Intelligence Planning Instructor: Vincent Conitzer.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
CPS 570: Artificial Intelligence Planning Instructor: Vincent Conitzer.
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.
AI Lecture 17 Planning Noémie Elhadad (substituting for Prof. McKeown)
1 Chapter 3 Complexity of Classical Planning. 2 Review: Classical Representation Function-free first-order language L Statement of a classical planning.
1/16 Planning Chapter 11- Part1 Author: Vali Derhami.
Classical Planning Chapter 10 Mausam / Andrey Kolobov (Based on slides of Dan Weld, Marie desJardins)
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Graphplan.
Planning I: Total Order Planners Sections
Automated Planning and Decision Making Prof. Ronen Brafman Automated Planning and Decision Making Graphplan Based on slides by: Ambite, Blyth and.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Consider the task get milk, bananas, and a cordless drill.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Heuristic Search Planners. 2 USC INFORMATION SCIENCES INSTITUTE Planning as heuristic search Use standard search techniques, e.g. A*, best-first, hill-climbing.
CLASSICAL PLANNING. Outline  The challenges in planning with standard search algorithm  Representing Plans – the PDDL language  Planning as state -
1 Chapter 6 Planning-Graph Techniques. 2 Motivation A big source of inefficiency in search algorithms is the branching factor  the number of children.
Planning as Search State Space Plan Space Algorihtm Progression
Classical Planning via State-space search
Consider the task get milk, bananas, and a cordless drill
Class #17 – Thursday, October 27
Planning José Luis Ambite.
Graph-based Planning Slides based on material from: Prof. Maria Fox
Graphplan/ SATPlan Chapter
Dave Touretzky Read R&N Chapter 10
Class #19 – Monday, November 3
Chapter 6 Planning-Graph Techniques
Graphplan/ SATPlan Chapter
Graphplan/ SATPlan Chapter
GraphPlan Jim Blythe.
An Introduction to Planning Graph
[* based in part on slides by Jim Blythe and Dan Weld]
Presentation transcript:

Classical Planning Chapter 10

Outline The challenges in planning with standard search algorithm Representing Plans – the PDDL language Planning as state-space search Planning Graphs and the GRAPHPLAN Algorithm Other Approaches

Classical Planning What is planning: The task of coming up with a sequence of actions to achieve a given goal is called planning Classical planning: When the environment is Fully observable Deterministic Static Discrete

Challenges in Planning with Standard Search Method (A*, etc) Why real-world planning problem with state-space search is hard: Too many irrelevant actions – goal oriented search would help Difficult to find a good heuristic function So the language for planning should make it easy for algorithms to exploit the logical structure of the problem

Challenges in Planning – too many choices!

PDDL Language State: represented by a conjunction of ground atoms without function symbols Action: represented by a set of action schemas

A specific planning problem Goal state – a conjunction of literals (positive + negative) that may contain (existentially quantified) variables A set of action schemas Clearly a planning problem can be seen as a search problem

Example – the blocks-world

Complexity of classical planning PlanSAT: Is there a plan for a planning problem Both are decidable if the planning language is function-free – finitely many states Both in the class of PSPACE – more difficult than NP! But for many domains: Bounded PlanSAT: NP-complete PlanSAT: P – thus finding A (possibly suboptimal) plan may be not so hard!

Algorithms for planning as state-space search Backward (regression) relevant-states search

Heuristics for planning Adding edges in the state-space graph Ignoring pre-conditions Ignoring delete list Key idea: decomposition – dividing the problem into parts (which may be independent) and solve each part independently, then combine the subplans Subgoal independence assumption

Planning Graphs - motivation A big source of inefficiency in search algorithms is the branching factor One way to reduce branching factor: First create a relaxed problem Remove some restrictions of the original problem Want the relaxed problem easy (polynomial time) The solutions to the relaxed problem will include all solutions to the original problem Then do a modified version of the original search (backward search) Restrict the search space to include only those actions that occur in solutions to the relaxed problem

Planning Graphs Search space for a relaxed version of the planning problem Alternating layers of states (ground literals) and actions Nodes at action-level i: actions that might be possible to execute at time i Nodes at state-level i: literals that might possibly be true at time i Edges: preconditions and effects Mutual exclusion links

Sample Planning Graph

Mutual Exclusions Two actions at the same action-level are mutex if Inconsistent effects: an effect of one negates an effect of the other Interference: one deletes a precondition of the other Competing needs: they have mutually exclusive preconditions Two literals at the same state-level are mutex if Inconsistent support: one is the negation of the other, or all ways of achieving them are pairwise mutex

The GRAPHPLAN Algorithm graph  Initial-planning-graph(problem) goals  Conjuncts(Problem, GOAL) nogoods  an empty hash table For t = 0 to infinity do if goals all non-mutex in St of graph then solution  Extract-solution(graph, goals, num-lev(graph), nogoods) if solution != failure, then return solution if graph and nogoods have both leveled off then return failure graph  Expand-graph(graph, problem)

The spare tire problem

The spare-tire problem

Extract-solution as a search problem Initial state: the last level of the planning graph Sn Actions at state level Si: select any conflict-free subset of actions in Ai-1 that covers the goals of the state. The result state: level Si-1, the goals at the new state = the pre-conditions of the selected actions Goal of the backward search: reach a state at S0 such that all goals are satisfied. The cost of each action is 1 When extract-solution fails to find a solution for a set of goals at a level, a pair (level, goals) is added as a no-good.

Other Classical Planning Approaches Classical Planning as Boolean satisfiability Planning as a first-order logical deduction: Situation calculus Planning as constraint satisfaction