Language for planning problems

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

CSE391 – 2005 NLP 1 Planning The Planning problem Planning with State-space search.
Planning
Planning III Introduction to Artificial Intelligence CS440/ECE448 Lecture 16.
1 Planning Chapter CMSC 471 Adapted from slides by Tim Finin and Marie desJardins. Some material adopted from notes by Andreas Geyer-Schulz,
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.
Planning Module THREE: Planning, Production Systems,Expert Systems, Uncertainty Dr M M Awais.
Causal-link Planning II José Luis Ambite. 2 CS 541 Causal Link Planning II Planning as Search State SpacePlan Space AlgorithmProgression, Regression POP.
Planning Module THREE: Planning, Production Systems,Expert Systems, Uncertainty Dr M M Awais.
Planning Chapter 11 Yet another popular formulation for AI – Logic-based language – One of the most structured formulations Can be translate into less.
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:
Plan Generation & Causal-Link Planning 1 José Luis Ambite.
Artificial Intelligence II S. Russell and P. Norvig Artificial Intelligence: A Modern Approach Chapter 11: Planning.
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.
Artificial Intelligence 2005/06
Classical Planning via State-space search COMP3431 Malcolm Ryan.
Planning Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 11.
CS 460, Session 20 1 Planning Search vs. planning STRIPS operators Partial-order planning.
Artificial Intelligence Chapter 11: Planning
Planning Russell and Norvig: Chapter 11. Planning Agent environment agent ? sensors actuators A1A2A3.
CS 561, Session Planning Search vs. planning STRIPS operators Partial-order planning.
Artificial Intelligence 2005/06 Planning: STRIPS.
Planning Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 11.
Automated Planning and HTNs Planning – A brief intro Planning – A brief intro Classical Planning – The STRIPS Language Classical Planning – The STRIPS.
1 Planning Chapters 11 and 12 Thanks: Professor Dan Weld, University of Washington.
Classical Planning via State-space search COMP3431 Malcolm Ryan.
AI Principles, Lecture on Planning Planning Jeremy Wyatt.
Planning II CSE 573. © Daniel S. Weld 2 Logistics Reading for Wed Ch 18 thru 18.3 Office Hours No Office Hour Today.
Planning Department of Computer Science & Engineering Indian Institute of Technology Kharagpur.
An Introduction to Artificial Intelligence CE Chapter 11 – Planning Ramin Halavati In which we see how an agent can take.
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.
Feng Zhiyong Tianjin University Fall planning.
April 3, 2006AI: Chapter 11: Planning1 Artificial Intelligence Chapter 11: Planning Michael Scherger Department of Computer Science Kent State University.
CS.462 Artificial Intelligence SOMCHAI THANGSATHITYANGKUL Lecture 07 : Planning.
Planning, page 1 CSI 4106, Winter 2005 Planning Points Elements of a planning problem Planning as resolution Conditional plans Actions as preconditions.
Planning (Chapter 10)
First-Order Logic and Plans Reading: C. 11 (Plans)
CPS 270: Artificial Intelligence Planning Instructor: Vincent Conitzer.
For Friday No reading Homework: –Chapter 11, exercise 4.
Planning (Chapter 10)
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.
Intro to Planning Or, how to represent the planning problem in logic.
Planning I: Total Order Planners Sections
April 3, 2006AI: Chapter 11: Planning1 Artificial Intelligence Chapter 11: Planning.
Planning in FOL Systems sequences of actions to achieve goals.
Consider the task get milk, bananas, and a cordless drill.
CLASSICAL PLANNING. Outline  The challenges in planning with standard search algorithm  Representing Plans – the PDDL language  Planning as state -
An Introduction to Artificial Intelligence CE 40417
Planning (Chapter 10) Slides by Svetlana Lazebnik, 9/2016 with modifications by Mark Hasegawa-Johnson, 9/2017
Classical Planning via State-space search
Planning (Chapter 10)
Planning Search vs. planning STRIPS operators Partial-order planning
Planning (Chapter 10)
Consider the task get milk, bananas, and a cordless drill
Planning Search vs. planning STRIPS operators Partial-order planning
Class #17 – Thursday, October 27
Planning Search vs. planning STRIPS operators Partial-order planning
Planning José Luis Ambite.
Graphplan/ SATPlan Chapter
L11. Planning Agents and STRIPS
Class #19 – Monday, November 3
Course Outline Advanced Introduction Expert Systems Topics Problem
Graphplan/ SATPlan Chapter
Graphplan/ SATPlan Chapter
GraphPlan Jim Blythe.
Presentation transcript:

Language for planning problems STRIPS: STanford Research Institute Problem Solver world described by logical conditions state as conjunction of positive literals propositional; e.g., Happy ^ Hungry to represent the state of the agent first-order ground and function-free terms; e.g., At(Plane1, Verona) ^ At(Plane2,Malpensa) closed-world assumption; i.e., any not mentioned condition is false goal is a partially specified state a state satisfies a goal if contains all the literals of the goal e.g. state At(Plane1, Verona) ^ At(Plane2,Malpensa) satisfies goal At(Plane2,Malpensa)

STRIPS actions (contd.) Tidily arranged actions descriptions, restricted language Action schema: ACTION: specifies name and parameter list Buy(x) PRECONDITION: conjunction of positive literals At(p) ^ Sells(p, x) EFFECT: conjunction of literals (positive or negative) Have(x) [Note: no information on how to execute the action!] A complete set of STRIPS operators can be translated into a set of successor-state axioms

Example: Air cargo transport predicates In(·, ·),At(·, ·) type predicates: Cargo(·), Plane(·),Airport(·) Start At(C1, SFO) ^ At(C2, JFK) ^ At(P1, SFO) ^ At(P2, JFK) ^ Cargo(C1) ^ Cargo(C2) ^ Plane(P1) ^ Plane(P2) ^ Airport(JFK) ^ Airport(SFO) Goal At(C1, JFK) ^ At(C2, SFO) Actions Load(c, p, a) Unload(c, p, a) Fly(p, from, to)

Example: Air cargo transport predicates In(·, ·),At(·, ·) type predicates: Cargo(·), Plane(·),Airport(·) Start At(C1, SFO) ^ At(C2, JFK) ^ At(P1, SFO) ^ At(P2, JFK) ^ Cargo(C1) ^ Cargo(C2) ^ Plane(P1) ^ Plane(P2) ^ Airport(JFK) ^ Airport(SFO) Goal At(C1, JFK) ^ At(C2, SFO) Actions Load(c, p, a) Unload(c, p, a) Fly(p, from, to)

Example: Air cargo transport Actions Load(c, p, a) PRE: At(c, a) ^ At(p, a) ^ Cargo(c) ^ Plane(p) ^ Airport(a) EFF: ¬At(c, a) ^ In(c, p) Unload(c, p, a) PRE: In(c, p) ^ At(p, a) ^ Cargo(c) ^ Plane(p) ^ Airport(a) EFF: At(c, a) ^ ¬In(c, p) Fly(p, from, to) PRE: At(p, from) ^ Plane(p) ^ Airport(from) ^ Airport(to) EFF: ¬At(p, from) ^ At(p, to)

Example: Air cargo transport (contd.) a solution is Load(C1, P1, SFO), Fly(P1, SFO, JFK), Unload(C1, P1, JFK), Load(C2, P2, JFK), Fly(P2, JFK, SFO), Unload(C2, P2, SFO)

STRIPS Planning STRIPS planning problem: State-space search find a sequence of actions that lead to a goal states and goals are defined by a conjunctions of literals State-space search Forward search (goal progression) from the initial state try to reach the goal Backward search (goal regression) from the goal and try to project it to the initial state Plan-space search partial-order planning (POP) search the space of partially build plans

State-space search planning problem defines the search problem initial state is the start state goal test checks whether state satisfies the goal actions define the operators step cost is usually 1 (a) forward or (b) backward search

Forward search main search loop select an action and unify precondition with the state if precondition is satisfied, apply the action generating a new state check whether the new state satisfies the goal

Forward search with the Shopping Example Start At(Home) ^ Sells(SM,Milk) ^ Sells(SM,Banana) ^ Sells(HWS,Drill)^Loc(Home)^Loc(SM)^Loc(HWS) Buy(x) PRE: At(store), Sells(store, x) EFF: Have(x) Go(x, y) PRE: At(x),Loc(y) EFF: At(y),¬At(x) Goal Have(Milk) ^ Have(Banana) ^ Have(Drill)

Forward search main search loop select an action and unify precondition with the state if precondition is satisfied, apply the action generating a new state check whether the new state satisfies the goal state space is finite -> complete for complete search algorithms inefficient because of irrelevant actions -- needs good heuristics

Backward search idea: select relevant actions only starting from the goal action is relevant when it achieves one of the conjuncts (add-list) consistent when doesn’t undo any desired literal (delete-list) select a relevant and consistent action and generate new state 1. delete add-list 2. add preconditions terminates with a state satisfied by the initial state branching on relevant and consistent states

Backward search with the Shopping Example Start At(Home) ^ Sells(SM,Milk) ^ Sells(SM,Banana) ^ Sells(HWS,Drill)^Loc(Home)^Loc(SM)^Loc(HWS) Buy(x) PRE: At(store), Sells(store, x) EFF: Have(x) Go(x, y) PRE: At(x),Loc(y) EFF: At(y),¬At(x) Goal Have(Milk) ^ Have(Banana) ^ Have(Drill)

State-space vs. plan-space forward and backward search explore linear sequences of actions this is not necessary consider the solution for the air cargo transport Load(C1, P1, SFO), Fly(P1, SFO, JFK),Unload(C1, P1, JFK), Load(C2, P2, JFK), Fly(P2, JFK, SFO),Unload(C2, P2, SFO) the only required ordering is among Load, Fly and Unload connected by causal effects; e.g., Load(C1, P1, SFO) achieve In(C1,P1), used by the precondition of Unload there’s no need to put Load(C2, P2, JFK) after Unload(C1, P1, JFK) partial-order plan: graph of actions including Start and Finish

Example

Partially ordered plans Partially ordered collection of steps with Start step has the initial state description as its effect Finish step has the goal description as its precondition causal links from outcome of one step to precondition of another temporal ordering between pairs of steps Open condition = precondition of a step not yet causally linked plan is complete iff every precondition is achieved precondition is achieved iff it is the effect of an earlier step and no possibly intervening step undoes it (conflict) plans cannot contain cycles

Define the Start State and the Goal State

Define the Start State and the Goal State On(A,Table), On(B,Table), On(C,B), Clear(A), Clear(C) End On(A,B), On(B,C), On(C,Table)

Define the Actions

Use either forward or backward search to build the plan for this problem.