1 Pertemuan 17 Planning Matakuliah: T0264/Intelijensia Semu Tahun: Juli 2006 Versi: 2/1.

Slides:



Advertisements
Similar presentations
Planning.
Advertisements

1 Pertemuan 25 Learning Matakuliah: T0264/Intelijensia Semu Tahun: Juli 2006 Versi: 2/1.
1 Pertemuan 3 Heuristic Search Techniques Generate-and-Test Matakuliah: T0264/Inteligensia Semu Tahun: Juli 2006 Versi: 2/1.
1 Pertemuan 2 PROBLEMS, PROBLEM SPACES, AND SEARCH Matakuliah: T0264/Inteligensia Semu Tahun: 2005 Versi: 1/0.
TWEAK solving the Sussman anomaly ON(A,B) ON(B,C) ON(C,A) ONTABLE(A) ONTABLE(B) CLEAR(C) CLEAR(B) ARMEMPTY STACK(A,B) STACK(B,C) Two step additions to.
Planning Chapter 10.
Planning Planning is fundamental to “intelligent” behaviour. E.g.
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.
1  Planning (under complete Knowledge) Intro to Artificial Intelligence.
Planning Russell and Norvig: Chapter 11 Slides adapted from: robotics.stanford.edu/~latombe/cs121/2003/ home.htm.
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.
1 Classical STRIPS Planning Alan Fern * * Based in part on slides by Daniel Weld.
EXAMPLE OF PARTIAL ORDER PLANNING. Action Recipes: Action: Stack(x,y) Prec: Clear(x) ^ Clear(y) ^ OnTable(x) Effect: ~Clear(y) ^ ~OnTable(x) ^ On(x,y)
CPSC 322 Introduction to Artificial Intelligence November 19, 2004.
Planning Russell and Norvig: Chapter 11. Planning Agent environment agent ? sensors actuators A1A2A3.
1 Pertemuan 23 Object database design (Lanjutan bagian 2) Matakuliah: M0174/OBJECT ORIENTED DATABASE Tahun: 2005 Versi: 1/0.
OnT-A onT-B onT-C cl-A cl-C cl-B he Pick-A Pick-B Pick-C onT-A onT-B onT-C cl-A cl-C cl-B he h-A h-B h-C ~cl-A ~cl-B ~cl-C ~he st-A-B st-A-C st-B-A st-B-C.
CPSC 322 Introduction to Artificial Intelligence November 26, 2004.
1 Planning Adapted from Tim Finin, UMBC, Marie desJardins Some material adopted from notes by Andreas Geyer-Schulz and Chuck Dyer.
1 Lecture 12 example (from slides prepared by Prof. J. Rosenchein)
Planning Where states are transparent and actions have preconditions and effects Notes at
1 Pertemuan 20 Time & Condition Clauses with Future reference Matakuliah: G0134 – Grammar III Tahun: 2005 Versi: revisi 1.
Intro to AI Fall 2002 © L. Joskowicz 1 Introduction to Artificial Intelligence LECTURE 12: Planning Motivation Search, theorem proving, and planning Situation.
1 Action Planning (Where logic-based representation of knowledge makes search problems more interesting) R&N: Chap. 11, Sect. 11.1–4.
1 Pertemuan 20 Understanding Continued Matakuliah: T0264/Intelijensia Semu Tahun: Juli 2006 Versi: 2/1.
1 Pertemuan 8 The Object Definition Language (Lanjutan) Matakuliah: M0174/OBJECT ORIENTED DATABASE Tahun: 2005 Versi: 1/0.
Planning Where states are transparent and actions have preconditions and effects Notes at
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.
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.
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:
1 CMSC 671 Fall 2010 Class #12/13 – Wednesday, October 13/ Monday, October 18 Some material adapted from slides by Jean-Claude Latombe / Lise Getoor.
Chapter 2 Problems, Problem Spaces, and Search?
ARTIFICIAL INTELLIGENCE Lecture 3 Predicate Calculus.
1.  Provides the ability to access individual assertions. e.g. in Predicate calculus we may say: P denotes “It rained on Tuesday” but in predicate calculus.
PLANNING He whose undertakings are all devoid of plan and desire for results, and whose actions are burnt by the fire of knowledge, him the sages call.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
1 Planning Chapter 10 Some material adopted from notes by Tim Finin, Marie desJardins Andreas Geyer-Schulz, and Chuck Dyer.
Advanced Problem Solving Systems: Planning  In order to solve nontrivial problems, it is necessary to combine 1.Basic problem solving strategies 2.Knowledge.
Advanced Problem Solving Systems: Planning Lecture Module 8.
AI Lecture 17 Planning Noémie Elhadad (substituting for Prof. McKeown)
1/16 Planning Chapter 11- Part1 Author: Vali Derhami.
Towards Model-lite Planning A Proposal For Learning & Planning with Incomplete Domain Models Sungwook Yoon Subbarao Kambhampati Supported by DARPA Integrated.
Intelligent Systems Planning.
CS621: Artificial Intelligence Pushpak Bhattacharyya Computer Science and Engineering Department IIT Bombay Lecture 19: Hidden Markov Models.
1 Planning Chapter 10 Some material adopted from notes by Tim Finin, Marie desJardins Andreas Geyer-Schulz, and Chuck Dyer.
1 Planning Some material adopted from notes by Andreas Geyer-Schulz and Chuck Dyer.
HW5: Planning. PDDL Planning Domain Description Language Based on STRIPS with various extensions Originally defined by Drew McDermott (Yale) and others.
An Introduction to Artificial Intelligence CE 40417
Pertemuan 22 The Business Views of the Technology Architecture
Planning Chapter 16.
Combined Lecture CS621: Artificial Intelligence (lecture 19) CS626/449: Speech-NLP-Web/Topics-in-AI (lecture 20) Hidden Markov Models Pushpak Bhattacharyya.
Introduction Contents Sungwook Yoon, Postdoctoral Research Associate
Introduction Defining the Problem as a State Space Search.
CMSC 471 Fall 2011 Class #16 Tuesday, October 25, 2011 Planning
CS344 : Introduction to Artificial Intelligence
AI Planning.
Planning Chapter
CPSC 322 Introduction to Artificial Intelligence
CS344 : Introduction to Artificial Intelligence
Class #15 / 16 – Tuesday, October 20 / Thursday, October 22
Russell and Norvig: Chapter 11 CS121 – Winter 2003
CMSC 471 Fall 2002 Class #20/21/23 – Wednesday, November 6 / Monday, November 11 / Monday, November 18.
Chapter 2 Problems, Problem Spaces, and Search?
Prof. Pushpak Bhattacharyya, IIT Bombay
Presentation transcript:

1 Pertemuan 17 Planning Matakuliah: T0264/Intelijensia Semu Tahun: Juli 2006 Versi: 2/1

2 Learning Outcomes Pada akhir pertemuan ini, diharapkan mahasiswa akan mampu : >

3 Outline Materi Materi 1 Materi 2 Materi 3 Materi 4 Materi 5

Overview Often the problem that must be solved is divided into smaller pieces and to solve those pieces separately. The word Planning refers to the process of the computing several steps of the problem-solving procedure before executing any of them. This methods focus on way of decomposing the original problem into appropriate subparts and on way of recording and handling interactions among the subparts as they are detected during the problem-solving process.

5 Overview Decomposability Predictability Plan failures Planning vs. doing

6 Components of a Planning System Choose the best rule to apply next based on the best available heuristic information. Apply the chosen rule to compute the new problem state that arises from its application. Detect when a solution has been found. Detect dead ends so that they can be abandoned and the system’s effort directed in more fruitful directions. Detect when an almost correct solution has been found and employ special techniques to make it totally correct.

An Example Domain The Blocks World Operators : UNSTACK(A,B)  Pick up block A from its current position on block B. The arm must be empty and block A must have no blocks on top of it. STACK(A,B)  Place block A on block B. The arm must already be holding A and the surface of B must be clear. PICKUP(A)  Pick Up block A from the table and hold it. The arm must be empty and there must be nothing on top of block A. PUTDOWN(A)  Put block A down on the table. The arm must have been holding block A.

8 The Blocks World Predicates : ON(A,B)  Block A is on block B. ONTABLE(A)  Block A is on the table. CLEAR(A)  There is nothing on top of block A. HOLDING(A)  The arm is holding block A. ARMEMPTY  The arm is holding nothing. Inference rules : -  x : HOLDING(x)   ARMEMPTY -  x : ONTABLE(x)   Y : y ON(x,y) -  x :  y : ON(y,x)  CLEAR(x)

9 The Blocks World A Simple Blocks World Description ON(A,B,S0)  ONTTABLE(B,S0)  CLEAR(A,S0)

10 The Blocks World STRIPS-Style Operators for the Blocks World STACK(x,y) P : CLEAR(y)  HOLDING(x) D : CLEAR(y)  HOLDING(x) A : ARMEMPTY  ON(x,y) UNSTACK(x,y) P : ON(x,y)  CLEAR(x)  ARMEMPTY D : ON(x,y)  ARMEMPTY A : HOLDING(x)  CLEAR(y) PICKUP(x) P : CLEAR(x)  ONTABLE(x)  ARMEMPTY D : ONTABLE(x)  ARMEMPTY A : HOLDING(x) PUTDOWN(x) P : HOLDING(x) D : HOLDING(x) A : ONTABLE(x)  ARMEMPTY

11 The Blocks World We start with the situation shown and we would describe it as: ON(A,B)  ONTABLE(B)  CLEAR(A) After applying the operator UNSTACK(A,B), our description of the world would be : ONTABLE(B)  CLEAR(A)  CLEAR(B)  HOLDING(A) A B

12 The Blocks World A Simple Search Tree ONTABLE(B)  CLEAR(A)  CLEAR(B)  ONTABLE(A)

Goal Stack Planning Goal stack planning is one of the earliest techniques to be developed for solving compound goal that may interact was the use of a goal stack. This was the approach used by STRIPS. The problem solver makes use of a single stack that contains both goals and operator that have been proposed to satisfy those goals.

14 Goal Stack Planning The goal-stack planning method attacks problem involving conjoined goal by solving the goal one at a time, in order. A plan generated by this method contains a sequence of operators of operator for attaining the first goal, followed by a complete sequence for the second goal, etc.

15 Goal Stack Planning A Very Simple Blocks World Problem Start : ON(B,A)  Goal : ON(C,A)  ONTABLE(A)  ON(B,D)  ONTABLE(C)  ONTABLE(A)  ONTABLE(D)  ONTABLE(D) ARMEMPTY

16 Goal Stack Planning Initial goal stack : ON(C,A)  ON(B,D)  ONTABLE(A)  ONTABLE(D) Choose to work on ON(C,A) before ON(B,D) : ON(C,A) ON(B,D) ON(C,A)  ON(B,D)  OTAD Achieve ON(C,A) with STACK(C,A) : STACK(C,A) ON(B,D) ON(C,A)  ON(B,D)  OTAD

17 Goal Stack Planning Add STACK’s preconditions : CLEAR(A) HOLDING(C) CLEAR(A)  HOLDING(C) STACK(C,A) ON(B,D) ON(C,A)  ON(B,D)  OTAD

18 Goal Stack Planning Achieve CLEAR(A) with UNSTACK(B,A) : ON(B,A) CLEAR(B) ARMEMPTY ON(B,A)  CLEAR(B)  ARMEMPTY UNSTACK(B,A) HOLDING(C) CLEAR(A)  HOLDING(C) STACK(C,A) ON(B,D) ON(C,A)  ON(B,D)  OTAD

19 Goal Stack Planning Now the top element of the stack is the operator UNSTACK(B,A). Now guaranteed that its preconditions are satisfied, so it can be applied to produce a new world model from which the rest of the problem-solving process can continue. Meanwhile we record that UNSTACK(B,A) is the first operator of proposed solution sequence. At this point, the database corresponding to the world model is : ONTABLE(A)  ONTABLE(C)  ONTABLE(D)  HOLDING(B)  CLEAR(A )

20 Goal Stack Planning The goal stack now is : HOLDING(C) CLEAR(A)  HOLDING(C) STACK(C,A) ON(B,D) ON(C,A)  ON(B,D)  OTAD

21 Goal Stack Planning Achieve HOLDING(C) with PICKUP(C) ONTABLE(C) CLEAR(C) ARMEMPTY ONTABLE(C)  CLEAR(C)  ARMEMPTY PICKUP(C) CLEAR(A)  HOLDING(C) STACK(C,A) ON(B,D) ON(C,A)  ON(B,D)  OTAD

22 Goal Stack Planning Achieve HOLDING(C) with UNSTACK(C,x) ON(C,x) CLEAR(C) ARMEMPTY ON(C,x)  CLEAR(C)  ARMEMPTY UNSTACK(C,x) CLEAR(A)  HOLDING(C) STACK(C,A) ON(B,D) ON(C,A)  ON(B,D)  OTAD x = any block from which C could be unstack.

23 Goal Stack Planning Achieve ON(C,x) by STACK(C,x) : CLEAR(x) HOLDING(C) CLEAR(x)  HOLDING(C) STACK(C,x) CLEAR(C) ARMEMPTY ON(C,x)  CLEAR(C)  ARMEMPTY UNSTACK(C,x) CLEAR(A)  HOLDING(C) STACK(C,A) ON(B,D) ON(C,A)  ON(B,D)  OTAD

24 Goal Stack Planning Teminate path because HOLDING(C) is duplicated. Achieve HOLDING(C) with PICKUP, not UNSTACK : ONTABLE(C) CLEAR(C) ARMEMPTY ONTABLE(C)  CLEAR(C)  ARMEMPTY PICKUP(C) CLEAR(A)  HOLDING(C) STACK(C,A) ON(B,D) ON(C,A)  ON(B,D)  OTAD

25 Goal Stack Planning Pop ONTABLE(C) and CLEAR(C), and achieve ARMEMPTY by STACK(B,D) : CLEAR(D) HOLDING(B) CLEAR(D)  HOLDING(B) STACK(B,D) ONTABLE(C)  CLEAR(C)  ARMEMPTY PICKUP(C) CLEAR(A)  HOLDING(C) STACK(C,A) ON(B,D) ON(C,A)  ON(B,D)  OTAD

26 Goal Stack Planning Pop entire stack, and return plan : 1. UNSTACK(B,A) 2. STACK(B,D) 3. PICKUP(C) 4. STACK(C,A)

27 > End of Pertemuan 17 Good Luck