Planning in FOL Systems sequences of actions to achieve goals.

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
Planning II: Partial Order Planning
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.
Classical Planning via Plan-space search COMP3431 Malcolm Ryan.
Plan Generation & Causal-Link Planning 1 José Luis Ambite.
All rights reserved ©L. Manevitz Lecture 61 Artificial Intelligence Planning System L. Manevitz.
Sussman anomaly - analysis The start state is given by: ON(C, A) ONTABLE(A) ONTABLE(B) ARMEMPTY The goal by: ON(A,B) ON(B,C) This immediately leads to.
Planning Russell and Norvig: Chapter 11 Slides adapted from: robotics.stanford.edu/~latombe/cs121/2003/ home.htm.
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.
Artificial Intelligence II S. Russell and P. Norvig Artificial Intelligence: A Modern Approach Chapter 11: Planning.
1 Chapter 4 State-Space Planning. 2 Motivation Nearly all planning procedures are search procedures Different planning procedures have different search.
Planning Some material adapted from slides by Tim Finin,Jean-Claude Latombe, Lise Getoor, and Marie desJardins.
Ch. 10 – Planning Supplemental slides for CSE 327 Prof. Jeff Heflin.
1 Classical STRIPS Planning Alan Fern * * Based in part on slides by Daniel Weld.
Artificial Intelligence Chapter 11: Planning
Planning Russell and Norvig: Chapter 11. Planning Agent environment agent ? sensors actuators A1A2A3.
Planning Planning is a special case of reasoning We want to achieve some state of the world Typical example is robotics Many thanks to Robin Burke, University.
1 Lecture 12 example (from slides prepared by Prof. J. Rosenchein)
Planning: Part 1 Representation and State-space Search COMP151 March 30, 2007.
Intro to AI Fall 2002 © L. Joskowicz 1 Introduction to Artificial Intelligence LECTURE 12: Planning Motivation Search, theorem proving, and planning Situation.
Automated Planning and HTNs Planning – A brief intro Planning – A brief intro Classical Planning – The STRIPS Language Classical Planning – The STRIPS.
Classical Planning via State-space search COMP3431 Malcolm Ryan.
AI Principles, Lecture on Planning Planning Jeremy Wyatt.
PLANNING Partial order regression planning Temporal representation 1 Deductive planning in Logic Temporal representation 2.
An Introduction to Artificial Intelligence CE Chapter 11 – Planning Ramin Halavati In which we see how an agent can take.
Classical Planning Chapter 10.
1 07. The planning problem 2  Inputs: 1. A description of the world state 2. The goal state description 3. A set of actions  Output: A sequence of actions.
April 3, 2006AI: Chapter 11: Planning1 Artificial Intelligence Chapter 11: Planning Michael Scherger Department of Computer Science Kent State University.
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)
CPS 270: Artificial Intelligence Planning Instructor: Vincent Conitzer.
1 Search vs. planning Situation calculus STRIPS operators Search vs. planning Situation calculus STRIPS operators.
For Friday No reading Homework: –Chapter 11, exercise 4.
CPS 570: Artificial Intelligence Planning Instructor: Vincent Conitzer.
Planning (Chapter 10)
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/16 Planning Chapter 11- Part1 Author: Vali Derhami.
Intro to Planning Or, how to represent the planning problem in logic.
Classical Planning Chapter 10 Mausam / Andrey Kolobov (Based on slides of Dan Weld, Marie desJardins)
Ontology Applying logic to the real world. D Goforth - COSC 4117, fall Real world knowledge general knowledge / common sense reasoning domain expertise.
Planning I: Total Order Planners Sections
April 3, 2006AI: Chapter 11: Planning1 Artificial Intelligence Chapter 11: Planning.
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.
Consider the task get milk, bananas, and a cordless drill.
Ch. 11 – Planning Supplemental slides for CSE 327 Prof. Jeff Heflin.
An Introduction to Artificial Intelligence CE 40417
Planning (Chapter 10) Slides by Svetlana Lazebnik, 9/2016 with modifications by Mark Hasegawa-Johnson, 9/2017
L9. Planning Agents L7_exAnswer and explanation Review
Planning (Chapter 10)
Instructor: Vincent Conitzer
Introduction Contents Sungwook Yoon, Postdoctoral Research Associate
Planning (AIMA Ch. 10) Planning problem defined Simple planning agent
Planning (Chapter 10)
AI Planning.
L11. Planning Agents and STRIPS
Planning Problems On(C, A)‏ On(A, Table)‏ On(B, Table)‏ Clear(C)‏
CPS 570: Artificial Intelligence Planning
Supplemental slides for CSE 327 Prof. Jeff Heflin
Russell and Norvig: Chapter 11 CS121 – Winter 2003
Artificial Intelligence Planning
Prof. Pushpak Bhattacharyya, IIT Bombay
Presentation transcript:

Planning in FOL Systems sequences of actions to achieve goals

D Goforth - COSC 4117, fall Planning Example: Blocks world  objects: blocks on a table  actions: move blocks ‘on’ one object to ‘on’ another object  goals: configurations of blocks  plan: sequence of actions to achieve goals T ABC D

D Goforth - COSC 4117, fall Classical Planning - STRIPS  STanford Research Institute Problem Solver  Closed world assumption facts not in KB are assumed false  Predicates in KB must refer to specific objects (no variables, no functions)  Goal – conjunction of positive literals  No ‘situation calculus’ – current state only

D Goforth - COSC 4117, fall Classical Planning - STRIPS  actions: preconditions – predicates that must be in KB effect – some predicates added to KB and some predicates removed (‘negated’)  plan – sequence of actions to get goal predicates into KB

Blocks world  objects: A, B, C, D, T  KB: On(A,T)^On(B,T)^On(C,T)^On(D,C) ^Block(A)^Block(B)^Block(C)^Block(D) ^Clear(A) ^Clear(B )^Clear(D) ^Clear(T)*  Goal: On(A,B)^On(B,C) T ABC D * Clear(x) means “there is space on x for a block”

Blocks world  actions: Move(b,x,y) // move b from x to y PRE:On(b,x)^Clear(b)^Clear(y)^Block(b)^Block(y) EFFECT:On(b,x)^Clear(y)^Clear(x)^On(b,y) MoveToTable(b,x) // move b from x to table PRE:On(b,x)^Clear(b) ^Block(b) ^Block(x) EFFECT:On(b,x)^Clear(x)^On(b,T) // remove from KB; add to KB T ABC D

D Goforth - COSC 4117, fall STRIPS requirements  need ‘Clear’ because Clear cannot be inferred from the ‘On’ predicates  need two Move actions to manage the ‘clear table’ problem unsolved problem: can’t avoid ‘repeated literal’ problem Move(B,C,C)

D Goforth - COSC 4117, fall Planning – state space search  current KB is current state  applying an action is an edge  revised KB is next state  from current KB, search for path of actions to state containing goal

Blocks world KB: On(A,T)^On(B,T)^On(C,T)^On(D,C) ^Block(A)^Block(B)^Block(C)^Block(D) ^Clear(A)^Clear(B) ^Clear(D) ^Clear(T) T ABC D KB: On(A,D)^On(B,T)^On(C,T)^On(D,C) ^Block(A)^Block(B)^Block(C)^Block(D) ^Clear(A) ^Clear(B) ^Clear(T) T A BC D Move(A,T,D)

D Goforth - COSC 4117, fall Forward search  irrelevant action problem: actions that are possible lead to large branching  needs good heuristic to be efficient (breaks FOL domain independence)

D Goforth - COSC 4117, fall Backward search  actions with goal state as ‘effect’ are ‘regressed’  focus on ‘relevant’ actions  avoid actions that undo goal state predicates goal state predicates previous state predicates undo action effects add preconditions

Blocks world – preconditions match Goal: On(A,B)^On(B,C) T A B C D On(A,T)^On(B,T)^On(C,T)^On(D,C) ^Block(A)^Block(B)^Block(C)^Block(D) ^Clear(A) ^Clear(B) ^Clear(T) T A BC D Move(A,x,B) {T/x} Preconditions for Move(A,T,B)

Blocks world – preconditions not match Goal: On(A,B)^On(B,C) T A B D On(A,T)^On(B,T)^On(C,T)^On(D,C) ^Block(A)^Block(B)^Block(C)^Block(D) ^Clear(A) ^Clear(B)^Clear(D)^Clear(T) T AB C D Move(B,x,C) {T/x} C On(B,T)^ Block(B)^Block(C)^ Clear(C) ^Clear(B) AB DC T MoveToTable(y,C) {D/y}

D Goforth - COSC 4117, fall State space search algorithms  heuristics: admissible (don’t overestimate path cost) generic heuristics not domain dependent  relaxed problem – reduce preconditions, remove negative effects  independent subgoals – achieve goal predicates one at a time: assume one goal does not help or prevent another

Blocks world - heuristics Move(b,x,y) PRE:On(b,x)^Clear(b)^Clear(y)^Block(b)^Block(y) EFFECT:On(b,x)^Clear(y)^Clear(x)^On(b,y) MoveToTable(b,x) PRE:On(b,x)^Clear(b)^Block(b) EFFECT:On(b,x)^Clear(x)^On(b,T) For example goal On(A,B)  On(B,C): Heuristic “independent subgoals” On(A,B) and On(B,C) simplifies because On(A,B) interferes with On(B,C) Heuristic “relaxed problem” remove preconditions, negatives T ABC D

D Goforth - COSC 4117, fall Partial Order Planning  since GPS (General Problem Solver), understood getting the major steps in place first improves planning e.g. car trip including a ferry crossing  plans built in mixed order, not just forward or backward

D Goforth - COSC 4117, fall Partial Order Planning  in many plans, order of some steps does not matter if parts of goal are independent, does not matter which goal is achieved first T ABCD Goal: On(A,B)^On(C,D)

D Goforth - COSC 4117, fall Partial Order Planning  planning takes place in ‘plan space’ of partial plans  a partial plan contains: 1.actions, A, B, C,...,Start, Finish 2.ordering constraint between some actions: A must be done before B: A  B 3.causal links: A produces a precondition for B: 4.set of unachieved preconditions (empty in final plan)

D Goforth - COSC 4117, fall The empty plan (root of plan search space tree) Action: Start PRE: none EFFECT: start state of space Action: Finish PRE: goal predicates EFFECT: none T A BC D A B D On(A,B) On(B,T) On(D,C) On(C,T) On(A,B) On(B,C) On(C,D) C open{On(B,C),On(C,D)} Start  Finish NOTE: some predicates not shown – Clear in KB

A partial plan Action: Start PRE: none EFFECT: On(A,B),On(B,T),On(D,C),On(C,T) Action: Finish PRE: On(A,B),On(B,C),On(C,D) EFFECT: none T A BC D A B D C open{On(C,D)} Action: M(B,T,C) PRE: Clear(B),Clear(C) EFFECT: On(B,C) Start  M causal On(B,C)

A partial plan Action: Start PRE: none EFFECT: On(A,B),On(B,T),On(D,C),On(C,T) Action: Finish PRE: On(A,B),On(B,C),On(C,D) EFFECT: none T A BC D A B D C open{On(A,B),On(C,D)} Action: M(B,T,C) PRE: Clear(B),Clear(C) EFFECT: On(B,C) Action: MT(A,B) PRE: Clear(A) EFFECT: On(A,T),Clear(B)

The complete partially ordered plan Action: Start Action: Finish PRE: goal A BC D A B D On(A,B) On(B,T) On(D,C) On(C,T) On(A,B) On(B,C) On(C,D) C Action: MT(A,B)Action: MT(D,C) Action: M(C,T,D) Action: M(B,T,C) Action: M(A,T,B) open{}

The total order plans Action: Start Action: Finish PRE: goal Action: MT(A,B) Action: MT(D,C) Action: M(C,T,D) Action: M(B,T,C) Action: M(A,T,B) Action: Start Action: Finish PRE: goal Action: MT(D,C) Action: MT(A,B) Action: M(C,T,D) Action: M(B,T,C) Action: M(A,T,B)

D Goforth - COSC 4117, fall Heuristics for partial order plans  size of open precondition set number of unachieved goal predicates  overestimates remaining actions if some actions achieve multiple goals  underestimates remaining actions if some actions will undo preconditions (e.g. taking A off B)