74.419 Artificial Intelligence 2005/06 Planning: 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

Language for planning problems
CSE391 – 2005 NLP 1 Planning The Planning problem Planning with State-space search.
Planning
Artificial Intelligence 2005/06 Partial Order Planning.
Planning II: Partial Order Planning
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.
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.
Inference and Reasoning. Basic Idea Given a set of statements, does a new statement logically follow from this. For example If an animal has wings and.
Plan Generation & Causal-Link Planning 1 José Luis Ambite.
Computing & Information Sciences Kansas State University Lecture 20 of 42 CIS 530 / 730 Artificial Intelligence Lecture 20 of 42 Introduction to Classical.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Formal Logic Proof Methods Direct Proof / Natural Deduction Conditional Proof (Implication Introduction) Reductio ad Absurdum Resolution Refutation.
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
Constraint Logic Programming Ryan Kinworthy. Overview Introduction Logic Programming LP as a constraint programming language Constraint Logic Programming.
Planning Russell and Norvig: Chapter 11. Planning Agent environment agent ? sensors actuators A1A2A3.
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.
Artificial Intelligence 2005/06 Hierarchical Planning and Other Stuff Russell and Norvig, Chapter 11.
Planning II CSE 473. © Daniel S. Weld 2 Logistics Tournament! PS3 – later today Non programming exercises Programming component: (mini project) SPAM detection.
Planning Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 11.
Lesson 6. Refinement of the Operator Model This page describes formally how we refine Figure 2.5 into a more detailed model so that we can connect it.
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 Partial order regression planning Temporal representation 1 Deductive planning in Logic Temporal representation 2.
Classical Planning Chapter 10.
Notes for Chapter 12 Logic Programming The AI War Basic Concepts of Logic Programming Prolog Review questions.
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.
Artificial Intelligence: Planning Lecture 6 Problems with state space search Planning Operators A Simple Planning Algorithm (Game Playing)
22/11/04 AIPP Lecture 16: More Planning and Operators1 More Planning Artificial Intelligence Programming in Prolog.
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)
Artificial Intelligence Chapter 22 Planning Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.
Artificial Intelligence 2005/06 Partially Ordered Plans - or: "How Do You Put Your Shoes On?"
Automated Reasoning Early AI explored how to automated several reasoning tasks – these were solved by what we might call weak problem solving methods as.
Automated Reasoning Early AI explored how to automate several reasoning tasks – these were solved by what we might call weak problem solving methods as.
Ch. 13 Ch. 131 jcmt CSE 3302 Programming Languages CSE3302 Programming Languages (notes?) Dr. Carter Tiernan.
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.
Introduction to Planning Dr. Shazzad Hosain Department of EECS North South Universtiy
Artificial Intelligence 2004 Non-Classical Logics Non-Classical Logics Specific Language Constructs added to classic FOPL Different Types of Logics.
Agents that plan K. V. S. Prasad Notes for TIN171/DIT410 (Friday, 26 March 2010) Based on Nils Nilsson, “Artificial Intelligence: a new synthesis”, Morgan.
AI Lecture 17 Planning Noémie Elhadad (substituting for Prof. McKeown)
Basic Problem Solving Search strategy  Problem can be solved by searching for a solution. An attempt is to transform initial state of a problem into some.
1/16 Planning Chapter 11- Part1 Author: Vali Derhami.
© Copyright 2008 STI INNSBRUCK Intelligent Systems Propositional Logic.
Intro to Planning Or, how to represent the planning problem in logic.
Introduction to State Space Search
1 CMSC 471 Fall 2004 Class #21 – Thursday, November 11.
Planning I: Total Order Planners Sections
The situation calculus K. V. S. Prasad Notes for TIN171/DIT410 (Friday, 26 March 2010) Based on Nils Nilsson, “Artificial Intelligence: a new synthesis”,
Artificial Intelligence 2004 Planning: Situation Calculus Review STRIPS POP Hierarchical Planning Situation Calculus (John McCarthy) situations.
CS 4630: Intelligent Robotics and Perception Planning (Chapter 2) Instructor: Tucker Balch.
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.
CLASSICAL PLANNING. Outline  The challenges in planning with standard search algorithm  Representing Plans – the PDDL language  Planning as state -
Logical Agents. Outline Knowledge-based agents Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability.
Classical Planning via State-space search
Consider the task get milk, bananas, and a cordless drill
Planning José Luis Ambite.
Presentation transcript:

Artificial Intelligence 2005/06 Planning: STRIPS

STRIPS (Nils J. Nilsson) actions are specified by preconditions and effects stated as restricted FOPL formulae planning is search in space of world states means-ends analysis guides planning

STRIPS - Essence A state in STRIPS consists of a set of formulae describing the current world state. Planning is search through the space of world states, using actions as operators to generate the search space. Actions connect ‘ before ’ and ‘ after ’ world states Before and after states are described using only ground literals (conjunction thereof) and some general axioms.

STRIPS - Actions 1  Actions are described by preconditions and effects (conjunctions of literals).  Effects are split into an ADD-list and a DELETE-list:  the ADD-list contains every new formula to be added to the current state as result of the action  the DELETE-list contains all formulae to be deleted from the current state as result of the action Note: ADD- and DELETE-lists explicitly specify what becomes true and what becomes false after an action. Thus, the state is carried along, just with necessary changes made. This circumvents the Frame Problem.

STRIPS – Example Actions in STRIPS are described as schemata with variables which are instantiated during planning (  unification). Example: move (x, y, z) precondition:on (x, y)  clear (x)  clear (z) delete-list:clear (z), on (x, y) add-list:on (x, z), clear (y), clear (Table) in case z=Table Table A B C

STRIPS - Actions 2 Actions are described by preconditions and effects (conjunctions of positive ground literals). Effects are split into an ADD-list and a DELETE-list. An action can be applied in a state, if its preconditions are satisfied in that state. The resulting new state is determined through the effect, described as ADD- and DELETE-lists.

STRIPS – Example Example: move (x, y, z) precondition:on (x, y)  clear (x)  clear (z) delete-list:clear (z), on (x, y) add-list:on (x, z), clear (y), clear (Table) in case z=Table move (A, B, C) initial world state: on (A, B)  clear (A)  clear (C) Table A B C

STRIPS – Example Example: move (x, y, z) precondition:on (x, y)  clear (x)  clear (z) delete-list:clear (z), on (x, y) add-list:on (x, z), clear (y), clear (Table) Planning find action-operator which achieves goal-state initial world state: on (A, B)  clear (A)  clear (C) goal state: on (A, C) Table A B C A BC

STRIPS – Example move (x,y,z): has on(x,z) in delete-list instantiate with x=A, z=C precondition:on (A,y)  clear (A)  clear (C) delete-list:clear (C), on (A, y) add-list:on (A,C), clear (y), clear (Table) Planning match action-description with current world state: initial world state: on (A,B)  clear (A)  clear (C) instantiate y=B; done goal state: on (A,C) Table A B C

STRIPS – Planning as Search Planning is similar to theorem proving in Prolog. Plan = sequence of action-operators defines a path from a start-state to a goal-state. Planning can be performed forward (from start state to goal state)  progression planning backward (from goal to start)  regression planning Planning recursively - for each achieved sub-goal

STRIPS – Planning as Search Forward planning: Start with the initial state (current world state). Select actions whose preconditions match with the current state description (before-action state) through unification. Apply actions to the current world state. Generate possible follow-states (after-action states) according to the add and delete lists of the action description. Repeat for every generated new world state. Stop when a state is generated which includes the goal formula.

STRIPS – Planning as Search means-ends analysis Reduce the difference between the start state and the goal state Choose action-operators which generate literals of the goal-state description. Recursively generate action sequence (=plan) by trying to fulfill preconditions of chosen actions, until they are finally grounded in the start-state, i.e. match with literals of the start-state.

STRIPS – Planning as Search Backward planning: Start with a given goal state description. Check unsatisfied (pre)conditions of the goal description. Select and apply actions which have those conditions as effects. Proceed in the same way backwards, trying to fulfill preconditions of each new action by recursively choosing actions which achieve those preconditions. Stop when the precondition is part of the initital state, and thus a sequence of actions is found leading from the initial state to the goal state.

STRIPS – Problems Sussman Anomaly In the process of achieving a new sub-goal during the planning process, STRIPS might reverse an effect it had already achieved. Solution Approach: Don't do that! Perform backward search. Just look for conditions to achieve, and do not delete anything which is in an achieved goal or sub-goal (  goals are conjunctions of literals; deleting a part of this, would make the complete goal formula false).

Planning - Problems Frame-Problem specify everything which remains stable computationally very expensive Approach: successor-state axioms; STRIPS Qualification-Problem specify all preconditions to an action difficult to include every possible precondition Approach: non-monotonic reasoning with defaults Ramification-Problem considering side-effects of actions conflict between effects and frames Approach: integrate TMS

Resource Constraints in Planning Resources physical quantities, e.g. money, fluids etc. time Integrate Measures into Action Description and Planning representation of physical quantities and reasoning / calculation, e.g. for buy-action: effect: cash := cash – price (x) time system / time logic, e.g. go-to-action: effect: time := time + 30 (Minutes) Backtracking on Constraint Violation

ADL - Action Definition Language ADL Can be seen as extension of the STRIPS language. Contains typing of parameters (sorts). Allows explicit expression of negation. Allows equality of terms in precondition formula. Example: Fly (p: plane; from: airport; to: airport; c: cargo) precondition: at(p,to)  at(c,to)  in(c,p)  to  from effect: at(p,to)  at(c,to)   at(p,from)   at(c,from)

STRIPS – Plan Schemata  Concrete plans can also be seen as instantiations of Plan Schemata.  Shakey was able to generalize generated concrete plans into such plan schemata. (  plan generalization, learning)

Plan Learning / Plan Abstraction Shakey generated plan schemata, so-called MACROPs (Macro-Operators), from concrete plans it had constructed earlier (i.e. “it learns plans”). The learning process is based on describing the plan in a triangle-table (preconditions and effects of sequential actions in rows, actions in columns). Then substitute constants with variables, in a kind of inverse variable binding process with unification. (substitute the same constant with one variable) Thus, an abstract plan schema is generated from the concrete plan.

ABSTRIPS - Triangle Table Generate Plan with STRIPS Set up Triangle Table: left of action: precondition below action: effects (add-list) - record only literals needed by subsequent actions or as part of the goal clause. Generalization (abstraction) Substitute constants with variables.

"effect" of start-action  initial state precond. of move(A,B,Fl) effect of move(A,B,Fl) precond. of move(B,C,Fl) precond. of finish effect of move(B,C,Fl)

Generate Plan Schema Generalization (abstraction) of concrete plan. Substitute constants with variables: Fl remains Fl A  x B  y C  z

Planning – Other Approaches Partial Order Planning Start with rough plan, and use refinement operators to work out details. Hierarchical Task Networks / Plan Decomposition Plan schemata are organized in a hierarchy. Links between nodes at different levels in this hierarchy denote a decomposition of a complex plan/action. Situation Calculus Planning as Theorem Proving. Describe situations (world states) using a situation parameter in action descriptions.

Additional References Nils J. Nilsson: Artificial Intelligence – A New Synthesis. Morgan Kaufmann, San Francisco, 1998.