Cognitive Robotics 2016/2017

Size: px
Start display at page:

Download "Cognitive Robotics 2016/2017"

Transcription

1 based on Manuela M. Veloso lectures on PLNNING, EXEUTION ND LERNING ognitive Robotics 2016/2017 Planning:, ctions and Goal Representation Matteo Matteucci rtificial Intelligence and Robotics Lab - Politecnico di Milano

2 Recall «Think hard, act later»? Planning is about «thinking» Given the actions available in a task domain. Given a problem specified as: an initial state of the world a goal statement (set of goals) to be achieved Find a solution to the problem Plan: a way, in terms of a sequence of actions, to transform the initial state into a new state of the world where It s all about states, the goal statement is true. actions, and plans! Newell and Simon

3 The lock World The lock World is a useful abstraction to introduce s, ctions and Plans locks are on the Table, or on top of each other. There is an rm the rm can be empty or holding one block. The table is always clear. 3

4 The lock World: s Objects locks:,, Table: Table Some predicates might be redundant Predicates On(, ), On(, Table) lear(), Handempty, Holding() On-table(), On(,), Top(), s onjunctive On(,) and On(,) and lear() and Handempty On-Table(), On-Table(), On(,), lear(), lear(), Handempty On-Table(), On-Table(), lear(), lear(), Holding() 4

5 The lock World: ssumptions/limitations The lock World models lassical Deterministic Planning... There is a single initial state The description is complete The plan is deterministic What is not true in the state is false The basic operators perform queries on states On(,) returns true or false On(,x) returns x=table or x= On-table (x) returns x= and x= W: losed World ssumption 5

6 The lock World: Description -on- -on-table -on- -on-table Holding- Holding- Handempty lear- lear- -on- -on-table -on- -on-table Holding- Holding- -on- -on- 2^4 Possible states ll these define the Space -on-x {, table, } -on-x {, table, } 3^2 Possible s 6

7 The lock World: Planning as -Space Search 7

8 Models for Spaces Different models for states exist... tomic identification of states (s1, s2,...) Symbolic feature based states Symbolic predicate based states together with different ways of combining them onjunctive observable Probabilistic approximate Incremental on-demand Temporal dynamic Predicates, conjunctive, complete, correct, deterministic 8

9 Goal Specification We can specify a Goal according to different levels of generality: Goal ompletely specified state Goal ment Partially specified state Objective function Defines good or optimal plan Increased Generality Goal ment example: Initial: -on-x = Table; -on-x = ; -on-x = Table Goal: -on-x = 9

10 What is an ction? Plan: a way, in terms of a sequence of actions, to transform the initial state into a new state of the world where the goal statement is true. Newell and Simon 1956 ction: a transition from one (partial) state to another May be applicable only in particular states Generates new state Deterministic: t det : S x S Non-deterministic: t non-det : S x 2 S Probabilistic: t prob : S x <2 S, r> Explicit ction Representation 10

11 The lock World Dynamics: ctions How do these transform a state into another? locks are on the Table, or on top of each other locks are picked up and put down by the arm block can be picked up only if it is clear, i.e., without a block on top The arm can pick up a block only if the arm is empty, i.e., if it is not holding another block, i.e., the arm can pick up only one block at a time The arm can put down blocks on blocks or on the table The table is always clear 11

12 STRIPS ction Representation STRIPS (Stanford Research Institute Problem Solver) was the planner used by Shakley, it was developed at SRI International by Richard Fikes and Nils Nilsson in Explicit action a representation {preconds(a), effects (a), effects + (a)} effects (a) effects + (a) = (S, a) = {S effects (a) effects + (a)}, where S 2 S Example in the lock World Pickup_from_table(?b) Pre:... dd:... Delete:... Let s try this out together! 12

13 ctions in the lock World In the lock World: n action a is applicable in s if all its preconditions are satisfied by s. RESULT(s,a) = (s Del (a)) U dd (a) No explicit mention of time o The precondition always refers to time t o The effect always refers to time t+1 13

14 The lock World: ctions Pickup_from_table(b) Pre: lock(b), Handempty lear(b), On(b, Table) dd: Holding(b) Delete: Handempty, On(b, Table) lear(b) Pickup_from_block(b1, b2) Pre: lock(b1),lock(b2), Handempty lear(b1), On(b1,b2) dd: Holding(b1), lear(b2) Delete: Handempty, On(b1,b2) lear (b1) Putdown_on_table(b) Pre: lock(b), Holding(b) dd: Handempty, On(b, Table) Delete: Holding(b) Putdown_on_block(b1, b2) Pre: lock(b1), Holding(b1) lock(b2), lear(b2), b1 b2 dd: Handempty, On(b1, b2) Delete: Holding(b1), lear(b2) 14

15 More Realistic ctions Representations onditional Effects Pickup (b) Pre: lock(b), Handempty, lear(b), On(b, x) dd: Holding(b) if (lock(x)) then lear(x) Delete: Handempty, On(b, x) Quantified Effects Move (o, x) Pre: t(o, y), t(robot, y) dd: t(o, x), t(robot, x) forall (Object(u)) [ if (In(u, o)) then t(u, y)] Delete: t(o, y), t(robot, y), forall (Object(u)) [ if (In(u, o)) then t(u, y)] Disjunctive and Negated Preconditions Holding(x) Or Not[Lighter_Than_ir(x)] ll these extensions can be emulated adding actions! 15

16 More Realistic ctions Representations Inference Operators / xioms lear(x) iff forall(lock(y))[ Not[On(y, x)]] These extensions make the planning problem significantly harder Functional effects Move (o, x) Pre: t(o, y), t(robot, y), Fuel(f), f Fuel_Needed(y, x) dd: t(o, x), t(robot, x), Fuel(f Fuel_Needed(y, x)), forall (Object(u)) [ if (In(u, o)) then t(u, y)] Delete: t(o, y), t(robot, y), Fuel(f), forall (Object(u)) [ if (In(u, o)) then t(u, y)] Disjunctive Effects Pickup_from_block(b) Pre: lock(b), Handempty, lear(b), On(b, c), lock(c) 1: dd: lear(c), Holding(b); Delete: On(b, c), Handempty 2: dd: lear(c), On(b, Table); Delete: On(b, c) 3: dd: ; Delete: Much harder and you can add probability!!! 16

17 ognitive Robotics Planning: Plan Generation Matteo Matteucci rtificial Intelligence and Robotics Lab - Politecnico di Milano

18 Different Plans... plan can have different degrees of generality Sequence of Instantiated ctions Partial Order of Instantiated ctions Set of Instantiated ctions Policy (a direct mapping from states to actions) Increased Generality and adopt different search stratiegies: Progression, a.k.a. forward state space search, a.k.a. forward chaining Regression, a.k.a. backward state-space search, a.k.a. backward chaining 18

19 Plan Generation acktracking Search Through a Search Space How to conduct the search How to represent the search space How to evaluate the solutions Non-Deterministic hoices Determine acktracking hoice of actions hoice of variable bindings hoice of temporal orderings hoice of subgoals to work on 19

20 Properties of Planning lgorithms Soundness planning algorithm is sound if all solutions are legal plans, i.e., all preconditions, goals, and any additional constraints are satisfied ompleteness planning algorithm is complete if a solution can be found whenever one actually exists planning algorithm is strictly complete if all solutions are included in the search space Optimality planning algorithm is optimal if it maximizes a predefined measure of plan quality 20

21 Linear Planning and Means-ends nalysis Linear Planning Uses a Goal stac and work on one goal until completely solved before moving on to the next goal Mean-ends nalysis Search by reducing the difference between the state and the goals, i.e., What means (operators) are available to achieve the desired ends (goal)? GPS lgorithm (state, goals, plan) If goals state, then return (state,plan) hoose a difference d goals between state and goals hoose an operator o to reduce the difference d If no applicable operators, then return False (state,plan) = GPS (state, preconditions(o), plan) If state, then return GPS (apply (o, state), goals, [plan,o]) Initial call: GPS (initial-state, initial-goals, []) Newell and Simon 60s 21

22 The lock World: GPS at Work Goal 22

23 The lock World: GPS at Work Goal 23

24 The lock World: GPS at Work Goal 24

25 The lock World: GPS at Work Goal 25

26 The lock World: GPS at Work Goal 26

27 The lock World: GPS at Work Goal 27

28 The lock World: GPS at Work Goal 28

29 The lock World: GPS at Work Goal 29

30 The lock World: GPS at Work Sound? Optimal? omplete? Goal 30

31 The Sussman nomaly Pickup(?b) Pre:(handempty) (clear?b) (on-table?b) dd:(holding?b) Delete:(handempty) (on-table?b) (clear?b) Goal Putdown(?b) Pre:(holding?b) dd:(handempty) (on-table?b) Delete:(holding?b) Unstack(?a,?b) Pre:(handempty) (clear?a)(on?a?b) dd:(holding?a)(clear?b) Delete:(handempty) (on?a?b)(clear?a) Stack(?a,?b) Pre:(holding?a) (clear?b) dd:(handempty)(on?a?b) Delete:(holding?a) (clear?b) 31

32 The Sussmann nomaly Linear Solution 1 (on ) Pickup () Stack (, ) Goal 32

33 The Sussmann nomaly Linear Solution 1 (on ) Pickup () Stack (, ) (on ) Unstack (, ) Putdown () Unstack (, ) Putdown () Pickup() Stack (, ) Goal 33

34 The Sussmann nomaly Linear Solution 1 (on ) Pickup () Stack (, ) (on ) Unstack (, ) Putdown () Unstack (, ) Putdown () Pickup() Stack (, ) (on ) Unstack (, ) Putdown () Pickup () Stack (, ) Goal 34

35 The Sussmann nomaly Linear Solution 1 (on ) Pickup () Stack (, ) (on ) Unstack (, ) Putdown () Unstack (, ) Putdown () Pickup() Stack (, ) (on ) Unstack (, ) Putdown () Pickup () Stack (, ) (on ) Pickup () Stack (,) Goal 35

36 The Sussmann nomaly Linear Solution 2 (on ) Unstack (, ) Putdown () Pickup() Stack (, ) Goal 36

37 The Sussmann nomaly Linear Solution 2 (on ) Unstack (, ) Putdown () Pickup() Stack (, ) (on ) Unstack (, ) Putdown () Pickup () Stack (, ) Goal 37

38 The Sussmann nomaly Linear Solution 2 (on ) Unstack (, ) Putdown () Pickup() Stack (, ) (on ) Unstack (, ) Putdown () Pickup () Stack (, ) (on ) Pickup () Stack (,) Goal Is it Optimal? an we do it with less actions? 38

39 The Sussmann nomaly: Non Linear (Optimal) Solution (on ) Unstack (, ) Putdown () (on ) Pickup () Stack (, ) (on ) Pickup() Stack(, ) Goal 39

40 Linear Planning and the Goal Stack dvantages Reduced search space, since goals are solved one at a time, and not all possible goal orderings are considered dvantageous if goals are (mainly) independent Linear planning is sound Disadvantages Linear planning may produce suboptimal solutions (based on the number of operators in the plan) Planner's efficiency is sensitive to goal orderings ontrol knowledge for the right ordering Random restarts Iterative deepening What about completeness? 40

41 One Way Rocket (Veloso 89) 41

42 Space Non Linear Planning Extend linear planning: From stack to set of goals Include in the search space all possible interleaving of goals -space nonlinear planning is complete 42

43 Prodigy4.0 (Veloso et al. 90) 1. Terminate if the goal statement is satisfied in the current state. Initially the set of applicable relevant operators is empty. 2. ompute the SET of pending goals G, and the SET of applicable relevant operators. goal is pending if it is a precondition, not satisfied in the current state, of a relevant operator already in the plan. relevant operator is applicable when all its preconditions are satisfied in the state. 3. hoose a pending goal G in G or choose a relevant applicable operator in. 4. If the pending goal G has been chosen, then Expand goal G, i.e., get the set O of relevant instantiated operators that could achieve G, hoose an operator O from O, as a relevant operator for goal G. Go to step If a relevant operator has been selected as directly applicable, then pply, Go to step 1. 43

44 Prodigy4.0 Search Representation Head plan gap Tail plan pplying and Operator (moving it to the head) dding and operator to the tail plan 44

45 fter all, it is all about graph exploration Multiple solutions are possible. No need to explore the whole graph, but you should be able to do it! 45

46 Planning issues representation The frame problem The choice of predicates (e.g., On-table (x), On (x, table), On-table-, On-table-, ) ction representation Many alternative definitions Reduce to needed definition onditional effects Uncertainty Quantification Functions Generation planning algorithm(s) 46

47 Wrap-up slide on Planning and Plan Generation What should remain from this lecture? Planning: selecting one sequence of actions (operators) that transform (apply to) an initial state to a final state where the goal statement is true. Means-ends analysis: identify and reduce, as soon as possible, differences between state and goals. Linear planning: backward chaining with means-ends analysis using a stack of goals, potentially efficient, possibly unoptimal, incomplete; GPS Nonlinear planning with means-ends analysis: backward chaining using a set of goals; reason about when to reduce the differences; Prodigy4.0. References S. Russell, P. Norvig. «rtificial Intelligence: Modern pproach». hapter 11: Planning, pages Pearson,

Plan Generation Classical Planning

Plan Generation Classical Planning Plan Generation Classical Planning Manuela Veloso Carnegie Mellon University School of Computer Science 15-887 Planning, Execution, and Learning Fall 2016 Outline What is a State and Goal What is an Action

More information

Nonlinear State-Space Planning: Prodigy4.0

Nonlinear State-Space Planning: Prodigy4.0 Nonlinear State-Space Planning: Prodigy4.0 Manuela Veloso Carnegie Mellon University Computer Science Department Planning - Fall 2001 Planning - Problem Solving Newell and Simon 1956 Given the actions

More information

Planning: STRIPS and POP planners

Planning: STRIPS and POP planners S 57 Introduction to I Lecture 8 Planning: STRIPS and POP planners Milos Hauskrecht milos@cs.pitt.edu 5329 Sennott Square Representation of actions, situations, events Propositional and first order logic

More information

CS 2750 Foundations of AI Lecture 17. Planning. Planning

CS 2750 Foundations of AI Lecture 17. Planning. Planning S 2750 Foundations of I Lecture 17 Planning Milos Hauskrecht milos@cs.pitt.edu 5329 Sennott Square Planning Planning problem: find a sequence of actions that achieves some goal an instance of a search

More information

Primitive goal based ideas

Primitive goal based ideas Primitive goal based ideas Once you have the gold, your goal is to get back home s Holding( Gold, s) GoalLocation([1,1], s) How to work out actions to achieve the goal? Inference: Lots more axioms. Explodes.

More information

June 1992 CMU-CS School of Computer Science Carnegie Mellon University Pittsburgh, PA Abstract

June 1992 CMU-CS School of Computer Science Carnegie Mellon University Pittsburgh, PA Abstract PRODIGY4.0: The Manual and Tutorial 1 The PRODIGY Research Group, under the supervision of Jaime G. Carbonell: Jim Blythe, Oren Etzioni, Yolanda Gil, Robert Joseph, Dan Kahn, Craig Knoblock, Steven Minton,

More information

Cognitive Robotics. Planning: Plan Domain Description Language. Matteo Matteucci

Cognitive Robotics. Planning: Plan Domain Description Language. Matteo Matteucci Cognitive Robotics Planning: Plan Domain Description Language Matteo Matteucci matteo.matteucci@polimi.it Artificial Intelligence and Robotics Lab - Politecnico di Milano Planning Problems in Artificial

More information

Artificial Intelligence

Artificial Intelligence Artificial Intelligence CSC348 Unit 4: Reasoning, change and planning Syedur Rahman Lecturer, CSE Department North South University syedur.rahman@wolfson.oxon.org Artificial Intelligence: Lecture Notes

More information

ICS 606. Intelligent Autonomous Agents 1

ICS 606. Intelligent Autonomous Agents 1 Intelligent utonomous gents ICS 606 / EE 606 Fall 2011 Nancy E. Reed nreed@hawaii.edu Lecture #4 Practical Reasoning gents Intentions Planning Means-ends reasoning The blocks world References Wooldridge

More information

CS 621 Artificial Intelligence. Lecture 31-25/10/05. Prof. Pushpak Bhattacharyya. Planning

CS 621 Artificial Intelligence. Lecture 31-25/10/05. Prof. Pushpak Bhattacharyya. Planning CS 621 Artificial Intelligence Lecture 31-25/10/05 Prof. Pushpak Bhattacharyya Planning 1 Planning Definition : Planning is arranging a sequence of actions to achieve a goal. Uses core areas of AI like

More information

Intelligent Agents. State-Space Planning. Ute Schmid. Cognitive Systems, Applied Computer Science, Bamberg University. last change: 14.

Intelligent Agents. State-Space Planning. Ute Schmid. Cognitive Systems, Applied Computer Science, Bamberg University. last change: 14. Intelligent Agents State-Space Planning Ute Schmid Cognitive Systems, Applied Computer Science, Bamberg University last change: 14. April 2016 U. Schmid (CogSys) Intelligent Agents last change: 14. April

More information

CS 1571 Introduction to AI Lecture 17. Planning. CS 1571 Intro to AI. Planning

CS 1571 Introduction to AI Lecture 17. Planning. CS 1571 Intro to AI. Planning S 1571 Introduction to I Lecture 17 Planning Milos Hauskrecht milos@cs.pitt.edu 5329 Sennott Square S 1571 Intro to I Planning Planning problem: find a sequence of actions that achieves some goal an instance

More information

Formalizing the PRODIGY Planning Algorithm

Formalizing the PRODIGY Planning Algorithm Formalizing the PRODIGY Planning Algorithm Eugene Fink eugene@cs.cmu.edu http://www.cs.cmu.edu/~eugene Manuela Veloso veloso@cs.cmu.edu http://www.cs.cmu.edu/~mmv Computer Science Department, Carnegie

More information

cis32-ai lecture # 21 mon-24-apr-2006

cis32-ai lecture # 21 mon-24-apr-2006 cis32-ai lecture # 21 mon-24-apr-2006 today s topics: logic-based agents (see notes from last time) planning cis32-spring2006-sklar-lec21 1 What is Planning? Key problem facing agent is deciding what to

More information

Intelligent Systems. Planning. Copyright 2010 Dieter Fensel and Ioan Toma

Intelligent Systems. Planning. Copyright 2010 Dieter Fensel and Ioan Toma Intelligent Systems Planning Copyright 2010 Dieter Fensel and Ioan Toma 1 Where are we? # Title 1 Introduction 2 Propositional Logic 3 Predicate Logic 4 Reasoning 5 Search Methods 6 CommonKADS 7 Problem-Solving

More information

Artificial Intelligence 2005/06

Artificial Intelligence 2005/06 Planning: STRIPS 74.419 rtificial Intelligence 2005/06 Planning: STRIPS STRIPS (Nils J. Nilsson) actions are specified by preconditions and effects stated as restricted FOPL formulae planning is search

More information

Planning Algorithms Properties Soundness

Planning Algorithms Properties Soundness Chapter MK:VI III. Planning Agent Systems Deductive Reasoning Agents Planning Language Planning Algorithms State-Space Planning Plan-Space Planning HTN Planning Complexity of Planning Problems Extensions

More information

Cognitive Robotics Introduction Matteo Matteucci

Cognitive Robotics Introduction Matteo Matteucci Cognitive Robotics Introduction About me and my lectures Lectures given by Matteo Matteucci +39 02 2399 3470 matteo.matteucci@polimi.it http://www.deib.polimi.it/people/matteucci Research Topics (several

More information

1 What is Planning? automatic programming. cis716-spring2004-parsons-lect17 2

1 What is Planning? automatic programming. cis716-spring2004-parsons-lect17 2 PLANNING 1 What is Planning? Key problem facing agent is deciding what to do. We want agents to be taskable: give them goals to achieve, have them decide for themselves how to achieve them. Basic idea

More information

STRIPS HW 1: Blocks World

STRIPS HW 1: Blocks World STRIPS HW 1: Blocks World Operator Precondition Delete List Add List Stack(x, y) CLEAR(y) CLEAR(y) HOLDING(x) HOLDING(x) ON(x, y) Unstack(x, y) ON(x, y) ON(x, y) HOLDING(x) CLEAR(x) CLEAR(y) PickUp(x)

More information

Components of a Planning System

Components of a Planning System Planning Components of a Planning System In any general problem solving systems, elementary techniques to perform following functions are required Choose the best rule (based on heuristics) to be applied

More information

Planning in a Single Agent

Planning in a Single Agent What is Planning Planning in a Single gent Sattiraju Prabhakar Sources: Multi-agent Systems Michael Wooldridge I a modern approach, 2 nd Edition Stuart Russell and Peter Norvig Generate sequences of actions

More information

The STRIPS Subset of PDDL for the Learning Track of IPC-08

The STRIPS Subset of PDDL for the Learning Track of IPC-08 The STRIPS Subset of PDDL for the Learning Track of IPC-08 Alan Fern School of Electrical Engineering and Computer Science Oregon State University April 9, 2008 This document defines two subsets of PDDL

More information

\WoDTIC. I HhlIN *AD-A Computer Scienc'e. Prodigy Planning Algorithm. ELCTE My Eugene Fink Manuela Veloso March 1994 CMU-CS

\WoDTIC. I HhlIN *AD-A Computer Scienc'e. Prodigy Planning Algorithm. ELCTE My Eugene Fink Manuela Veloso March 1994 CMU-CS Computer Scienc'e *AD-A278 900 I HhlIN Prodigy Planning Algorithm Eugene Fink Manuela Veloso March 1994 CMU-CS-94-123 IAccesion f \WoDTIC ELCTE My0 6 1994 ~Carnegie. tt~ k* -94 5 O Prodigy Planning Algorithm

More information

Artificial Intelligence

Artificial Intelligence Artificial Intelligence Lecturer 7 - Planning Lecturer: Truong Tuan Anh HCMUT - CSE 1 Outline Planning problem State-space search Partial-order planning Planning graphs Planning with propositional logic

More information

Applying Search Based Probabilistic Inference Algorithms to Probabilistic Conformant Planning: Preliminary Results

Applying Search Based Probabilistic Inference Algorithms to Probabilistic Conformant Planning: Preliminary Results Applying Search Based Probabilistic Inference Algorithms to Probabilistic Conformant Planning: Preliminary Results Junkyu Lee *, Radu Marinescu ** and Rina Dechter * * University of California, Irvine

More information

cis32-ai lecture # 22 wed-26-apr-2006 Partial Order Planning Partially ordered plans Representation

cis32-ai lecture # 22 wed-26-apr-2006 Partial Order Planning Partially ordered plans Representation cis32-ai lecture # 22 wed-26-apr-2006 Partial Order Planning today s topics: partial-order planning decision-theoretic planning The answer to the problem we ended the last lecture with is to use partial

More information

A deterministic action is a partial function from states to states. It is partial because not every action can be carried out in every state

A deterministic action is a partial function from states to states. It is partial because not every action can be carried out in every state CmSc310 Artificial Intelligence Classical Planning 1. Introduction Planning is about how an agent achieves its goals. To achieve anything but the simplest goals, an agent must reason about its future.

More information

Outline. Solving Problems by Searching. Introduction. Problem-solving agents

Outline. Solving Problems by Searching. Introduction. Problem-solving agents Outline Solving Problems by Searching S/ University of Waterloo Sept 7, 009 Problem solving agents and search Examples Properties of search algorithms Uninformed search readth first Depth first Iterative

More information

Set 9: Planning Classical Planning Systems. ICS 271 Fall 2013

Set 9: Planning Classical Planning Systems. ICS 271 Fall 2013 Set 9: Planning Classical Planning Systems ICS 271 Fall 2013 Outline: Planning Classical Planning: Situation calculus PDDL: Planning domain definition language STRIPS Planning Planning graphs Readings:

More information

Planning. CPS 570 Ron Parr. Some Actual Planning Applications. Used to fulfill mission objectives in Nasa s Deep Space One (Remote Agent)

Planning. CPS 570 Ron Parr. Some Actual Planning Applications. Used to fulfill mission objectives in Nasa s Deep Space One (Remote Agent) Planning CPS 570 Ron Parr Some Actual Planning Applications Used to fulfill mission objectives in Nasa s Deep Space One (Remote Agent) Particularly important for space operations due to latency Also used

More information

Set 9: Planning Classical Planning Systems. ICS 271 Fall 2014

Set 9: Planning Classical Planning Systems. ICS 271 Fall 2014 Set 9: Planning Classical Planning Systems ICS 271 Fall 2014 Planning environments Classical Planning: Outline: Planning Situation calculus PDDL: Planning domain definition language STRIPS Planning Planning

More information

A multi-threaded architecture for cognitive robotics. Keith Clark Imperial College London

A multi-threaded architecture for cognitive robotics. Keith Clark Imperial College London A multi-threaded architecture for cognitive robotics Keith Clark Imperial College London Overview of talk Nilsson s Teleo-Reactive (TR) Procedures Simulation demo of TR controlled can collecting robot

More information

Monday, November 13, 2017

Monday, November 13, 2017 Monday, November 13, 2017 Topics for today ode generation nalysis lgorithm 1: evaluation of postfix lgorithm 2: infix to postfix lgorithm 3: evaluation of infix lgorithm 4: infix to tree nalysis We are

More information

Planning and search. Lecture 1: Introduction and Revision of Search. Lecture 1: Introduction and Revision of Search 1

Planning and search. Lecture 1: Introduction and Revision of Search. Lecture 1: Introduction and Revision of Search 1 Planning and search Lecture 1: Introduction and Revision of Search Lecture 1: Introduction and Revision of Search 1 Lecturer: Natasha lechina email: nza@cs.nott.ac.uk ontact and web page web page: http://www.cs.nott.ac.uk/

More information

Classical Planning Problems: Representation Languages

Classical Planning Problems: Representation Languages jonas.kvarnstrom@liu.se 2017 Classical Planning Problems: Representation Languages History: 1959 3 The language of Artificial Intelligence was/is logic First-order, second-order, modal, 1959: General

More information

BASIC PLAN-GENERATING SYSTEMS

BASIC PLAN-GENERATING SYSTEMS CHAPTER 7 BASIC PLAN-GENERATING SYSTEMS In chapters 5 and 6 we saw that a wide class of deduction tasks could be solved by commutative production systems. For many other problems of interest in AI, however,

More information

Creating Admissible Heuristic Functions: The General Relaxation Principle and Delete Relaxation

Creating Admissible Heuristic Functions: The General Relaxation Principle and Delete Relaxation Creating Admissible Heuristic Functions: The General Relaxation Principle and Delete Relaxation Relaxed Planning Problems 74 A classical planning problem P has a set of solutions Solutions(P) = { π : π

More information

Algorithms for Data Structures: Uninformed Search. Phillip Smith 19/11/2013

Algorithms for Data Structures: Uninformed Search. Phillip Smith 19/11/2013 lgorithms for Data Structures: Uninformed Search Phillip Smith 19/11/2013 Representations for Reasoning We know (at least) two models of a world: model of the static states of the world model of the effects

More information

CogSysI Lecture 2: Basic Aspects of Action Planning p. 35

CogSysI Lecture 2: Basic Aspects of Action Planning p. 35 CogSysI Lecture 2: asic spects of ction Planning Intelligent gents WS 2004/2005 Part I: cting Goal-Oriented I.2 asic Definitions, Uninformed Search CogSysI Lecture 2: asic spects of ction Planning p. 35

More information

Artificial Intelligence

Artificial Intelligence rtificial Intelligence Robotics, a ase Study - overage Many applications: Floor cleaning, mowing, de-mining,. Many approaches: Off-line or On-line Heuristic or omplete Multi-robot, motivated by robustness

More information

Acknowledgements. Outline

Acknowledgements. Outline Acknowledgements Heuristic Search for Planning Sheila McIlraith University of Toronto Fall 2010 Many of the slides used in today s lecture are modifications of slides developed by Malte Helmert, Bernhard

More information

Planning. Chapter 11. Chapter Outline. Search vs. planning STRIPS operators Partial-order planning. Chapter 11 2

Planning. Chapter 11. Chapter Outline. Search vs. planning STRIPS operators Partial-order planning. Chapter 11 2 Planning hapter 11 hapter 11 1 Outline Search vs. planning STRIPS operators Partial-order planning hapter 11 2 Search vs. planning onsider the task get milk, bananas, and a cordless drill Standard search

More information

Planning (What to do next?) (What to do next?)

Planning (What to do next?) (What to do next?) Planning (What to do next?) (What to do next?) (What to do next?) (What to do next?) (What to do next?) (What to do next?) CSC3203 - AI in Games 2 Level 12: Planning YOUR MISSION learn about how to create

More information

Lecture Overview. CSE3309 Artificial Intelligence. The lottery paradox. The Bayesian claim. The lottery paradox. A Bayesian model of rationality

Lecture Overview. CSE3309 Artificial Intelligence. The lottery paradox. The Bayesian claim. The lottery paradox. A Bayesian model of rationality CSE3309 Lecture Overview The lottery paradox A Bayesian model of rationality Lecture 15 Planning Dr. Kevin Korb School of Computer Science and Software Eng. Building 75 (STRIP), Rm 117 korb@csse.monash.edu.au

More information

Planning. Introduction

Planning. Introduction Introduction vs. Problem-Solving Representation in Systems Situation Calculus The Frame Problem STRIPS representation language Blocks World with State-Space Search Progression Algorithms Regression Algorithms

More information

Planning. Chapter 11. Chapter 11 1

Planning. Chapter 11. Chapter 11 1 Planning hapter 11 hapter 11 1 Outline Search vs. planning STRIPS operators Partial-order planning hapter 11 2 Search vs. planning onsider the task get milk, bananas, and a cordless drill Standard search

More information

Monday, April 15, We will lead up to the Analysis and Synthesis algorithms involved by first looking at three simpler ones.

Monday, April 15, We will lead up to the Analysis and Synthesis algorithms involved by first looking at three simpler ones. Monday, pril 15, 2013 Topics for today Code generation nalysis lgorithm 1: evaluation of postfix lgorithm 2: infix to postfix lgorithm 3: evaluation of infix lgorithm 4: infix to tree Synthesis lgorithm

More information

Planning (Chapter 10)

Planning (Chapter 10) Planning (Chapter 10) http://en.wikipedia.org/wiki/rube_goldberg_machine Planning Example problem: I m at home and I need milk, bananas, and a drill. What do I do? How is planning different from regular

More information

COMP310 Multi-Agent Systems Chapter 4 - Practical Reasoning Agents. Dr Terry R. Payne Department of Computer Science

COMP310 Multi-Agent Systems Chapter 4 - Practical Reasoning Agents. Dr Terry R. Payne Department of Computer Science COMP310 Multi-Agent Systems Chapter 4 - Practical Reasoning Agents Dr Terry R. Payne Department of Computer Science Pro-Active Behaviour Previously we looked at: Characteristics of an Agent and its Environment

More information

istn DETE AD-A *2 8 '0101 AUG D PRODIGY4.O: The Manual and Tutorial

istn DETE AD-A *2 8 '0101 AUG D PRODIGY4.O: The Manual and Tutorial AD-A253 970 istn DETE AUG 12 19920D PRODIGY4.O: The Manual and Tutorial Thbe PRODIGY Research Group, under the supervision of Jaime G. Carbonell: Jim Blythe, Oren EtZiom, Yolanda Gil, Robert Joseph, Dan

More information

Automated Planning. Plan-Space Planning / Partial Order Causal Link Planning

Automated Planning. Plan-Space Planning / Partial Order Causal Link Planning Automated Planning Plan-Space Planning / Partial Order Causal Link Planning Jonas Kvarnström Automated Planning Group Department of Computer and Information Science Linköping University Partly adapted

More information

What is AI? Knowledge-based systems in Bioinformatics, 1MB602, Definitions of AI. Acting humanly: Turing test. AI techniques. Intelligent agents

What is AI? Knowledge-based systems in Bioinformatics, 1MB602, Definitions of AI. Acting humanly: Turing test. AI techniques. Intelligent agents What is I? Knowledge-based systems in ioinformatics, 1M602, 2007 or rtificial Intelligence for ioinformatics making a machine behave in ways that would be called intelligent if a human were so behaving

More information

Planning. Some material taken from D. Lin, J-C Latombe

Planning. Some material taken from D. Lin, J-C Latombe RN, Chapter 11 Planning Some material taken from D. Lin, J-C Latombe 1 Logical Agents Reasoning [Ch 6] Propositional Logic [Ch 7] Predicate Calculus Representation [Ch 8] Inference [Ch 9] Implemented Systems

More information

Heuristic Search for Planning

Heuristic Search for Planning Heuristic Search for Planning Sheila McIlraith University of Toronto Fall 2010 S. McIlraith Heuristic Search for Planning 1 / 50 Acknowledgements Many of the slides used in today s lecture are modifications

More information

Planning. Outline. Planning. Planning

Planning. Outline. Planning. Planning Planning Outline Jacky Baltes University of Manitoba jacky@cs.umanitoba.ca http://www4.cs.umanitoba.ca/~jacky/teaching/co urses/comp_4190-artificial-intelligence Reasoning about actions STRIPS representation

More information

6.141: Robotics systems and science Lecture 10: Motion Planning III

6.141: Robotics systems and science Lecture 10: Motion Planning III 6.141: Robotics systems and science Lecture 10: Motion Planning III Lecture Notes Prepared by N. Roy and D. Rus EECS/MIT Spring 2012 Reading: Chapter 3, and Craig: Robotics http://courses.csail.mit.edu/6.141/!

More information

AUTOMATED PLANNING Automated Planning sequence of actions goal

AUTOMATED PLANNING Automated Planning sequence of actions goal AUTOMATED PLANNING Automated Planning is an important problem solving activity which consists in synthesizing a sequence of actions performed by an agent that leads from an initial state of the world to

More information

Monday, November 9, 2015

Monday, November 9, 2015 Monday, November 9, 2015 Topics for today Grammars and Languages (Chapter 7) Finite State Machines Semantic actions Code generation - Overview nalysis lgorithm 1: evaluation of postfix lgorithm 2: infix

More information

Final Solution. CS510, Fall 2012, Drexel University Ariel Stolerman

Final Solution. CS510, Fall 2012, Drexel University Ariel Stolerman CS510 Final Solution 1 Ariel Stolerman Final Solution CS510, Fall 2012, Drexel University Ariel Stolerman 1) There is a refinement of the algorithm called the algorithm. Assume that you are given a heuristic

More information

Classical Planning. CS 486/686: Introduction to Artificial Intelligence Winter 2016

Classical Planning. CS 486/686: Introduction to Artificial Intelligence Winter 2016 Classical Planning CS 486/686: Introduction to Artificial Intelligence Winter 2016 1 Classical Planning A plan is a collection of actions for performing some task (reaching some goal) If we have a robot

More information

Lecture 3 of 42. Lecture 3 of 42

Lecture 3 of 42. Lecture 3 of 42 Search Problems Discussion: Term Projects 3 of 5 William H. Hsu Department of Computing and Information Sciences, KSU KSOL course page: http://snipurl.com/v9v3 Course web site: http://www.kddresearch.org/courses/cis730

More information

Lecture overview. Knowledge-based systems in Bioinformatics, 1MB602, Goal based agents. Search terminology. Specifying a search problem

Lecture overview. Knowledge-based systems in Bioinformatics, 1MB602, Goal based agents. Search terminology. Specifying a search problem Lecture overview Knowledge-based systems in ioinformatics, 1M602, 2006 Lecture 6: earch oal based agents earch terminology pecifying a search problem earch considerations Uninformed search euristic methods

More information

Planning and Acting. CITS3001 Algorithms, Agents and Artificial Intelligence. 2018, Semester 2

Planning and Acting. CITS3001 Algorithms, Agents and Artificial Intelligence. 2018, Semester 2 Planning and Acting CITS3001 Algorithms, Agents and Artificial Intelligence Tim French School of Computer Science and Software Engineering The University of Western Australia 2018, Semester 2 Summary We

More information

3. Knowledge Representation, Reasoning, and Planning

3. Knowledge Representation, Reasoning, and Planning 3. Knowledge Representation, Reasoning, and Planning 3.1 Common Sense Knowledge 3.2 Knowledge Representation Networks 3.3 Reasoning Propositional Logic Predicate Logic: PROLOG 3.4 Planning Planning vs.

More information

Learning a Negative Precondition

Learning a Negative Precondition From: Proceedings of the Twelfth International FLAIRS Conference. Copyright 1999, AAAI (www.aaai.org). All rights reserved. Learning Opposite concept for Machine Planning Kang Soo Tae Department of Computer

More information

Planning, Execution & Learning 1. Heuristic Search Planning

Planning, Execution & Learning 1. Heuristic Search Planning Planning, Execution & Learning 1. Heuristic Search Planning Reid Simmons Planning, Execution & Learning: Heuristic 1 Simmons, Veloso : Fall 2001 Basic Idea Heuristic Search Planning Automatically Analyze

More information

Scale-up Revolution in Automated Planning

Scale-up Revolution in Automated Planning Scale-up Revolution in Automated Planning (Or 1001 Ways to Skin a Planning Graph for Heuristic Fun & Profit) Subbarao Kambhampati http://rakaposhi.eas.asu.edu RIT; 2/17/06 With thanks to all the Yochan

More information

Using Temporal Logics to Express Search Control Knowledge for Planning Λ

Using Temporal Logics to Express Search Control Knowledge for Planning Λ Using Temporal Logics to Express Search Control Knowledge for Planning Λ Fahiem Bacchus Dept. Of Computer Science University of Toronto Toronto, Ontario Canada, M5S 3G4 fbacchus@logos.uwaterloo.ca Froduald

More information

CMU-Q Lecture 6: Planning Graph GRAPHPLAN. Teacher: Gianni A. Di Caro

CMU-Q Lecture 6: Planning Graph GRAPHPLAN. Teacher: Gianni A. Di Caro CMU-Q 15-381 Lecture 6: Planning Graph GRAPHPLAN Teacher: Gianni A. Di Caro PLANNING GRAPHS Graph-based data structure representing a polynomial-size/time approximation of the exponential search tree Can

More information

Efficient Planning with State Trajectory Constraints

Efficient Planning with State Trajectory Constraints Efficient Planning with State Trajectory Constraints Stefan Edelkamp Baroper Straße 301 University of Dortmund email: stefan.edelkamp@cs.uni-dortmund.de Abstract. This paper introduces a general planning

More information

3. Knowledge Representation, Reasoning, and Planning

3. Knowledge Representation, Reasoning, and Planning 3. Knowledge Representation, Reasoning, and Planning 3.1 Common Sense Knowledge 3.2 Knowledge Representation Networks 3.3 Reasoning Propositional Logic Predicate Logic: PROLOG 3.4 Planning Introduction

More information

Planning II. Introduction to Artificial Intelligence CSE 150 Lecture 12 May 15, 2007

Planning II. Introduction to Artificial Intelligence CSE 150 Lecture 12 May 15, 2007 Planning II Introduction to Artificial Intelligence CSE 150 Lecture 12 May 15, 2007 Administration Your second to last Programming Assignment is up - start NOW, you don t have a lot of time The PRIZE:

More information

CPS 270: Artificial Intelligence Planning

CPS 270: Artificial Intelligence   Planning CPS 270: Artificial Intelligence http://www.cs.duke.edu/courses/fall08/cps270/ Planning Instructor: Vincent Conitzer Planning We studied how to take actions in the world (search) We studied how to represent

More information

Lecture 14: March 9, 2015

Lecture 14: March 9, 2015 324: tate-space, F, F, Uninformed earch. pring 2015 Lecture 14: March 9, 2015 Lecturer: K.R. howdhary : Professor of (VF) isclaimer: These notes have not been subjected to the usual scrutiny reserved for

More information

PrcM e»m-sol v ln*-3 : 1*65

PrcM e»m-sol v ln*-3 : 1*65 THE ROLE OF PREPROCESSING IN PROBLEM SOLVING SYSTEMS "An Ounce of Reflection is Worth a Pound of Backtracking" Clive Dawson and Laurent Siklossy Dept. of Computer Sciences University of Texas Austin, Texas

More information

6.141: Robotics systems and science Lecture 10: Implementing Motion Planning

6.141: Robotics systems and science Lecture 10: Implementing Motion Planning 6.141: Robotics systems and science Lecture 10: Implementing Motion Planning Lecture Notes Prepared by N. Roy and D. Rus EECS/MIT Spring 2011 Reading: Chapter 3, and Craig: Robotics http://courses.csail.mit.edu/6.141/!

More information

Planning as Search. Progression. Partial-Order causal link: UCPOP. Node. World State. Partial Plans World States. Regress Action.

Planning as Search. Progression. Partial-Order causal link: UCPOP. Node. World State. Partial Plans World States. Regress Action. Planning as Search State Space Plan Space Algorihtm Progression Regression Partial-Order causal link: UCPOP Node World State Set of Partial Plans World States Edge Apply Action If prec satisfied, Add adds,

More information

KI-Programmierung. Planning

KI-Programmierung. Planning KI-Programmierung Planning Bernhard Beckert UNIVERSITÄT KOBLENZ-LANDAU Winter Term 2007/2008 B. Beckert: KI-Programmierung p.1 Outline Search vs. planning STRIPS operators Partial-order planning The real

More information

Artificial Intelligence II

Artificial Intelligence II Artificial Intelligence II 2013/2014 - Prof: Daniele Nardi, Joachim Hertzberg Exercitation 3 - Roberto Capobianco Planning: STRIPS, Partial Order Plans, Planning Graphs 1 STRIPS (Recap-1) Start situation;

More information

LECTURE 4: PRACTICAL REASONING AGENTS. An Introduction to Multiagent Systems CIS 716.5, Spring 2010

LECTURE 4: PRACTICAL REASONING AGENTS. An Introduction to Multiagent Systems CIS 716.5, Spring 2010 LECTURE 4: PRACTICAL REASONING AGENTS CIS 716.5, Spring 2010 What is Practical Reasoning? Practical reasoning is reasoning directed towards actions the process of figuring out what to do: Practical reasoning

More information

Lecture 17 of 41. Clausal (Conjunctive Normal) Form and Resolution Techniques

Lecture 17 of 41. Clausal (Conjunctive Normal) Form and Resolution Techniques Lecture 17 of 41 Clausal (Conjunctive Normal) Form and Resolution Techniques Wednesday, 29 September 2004 William H. Hsu, KSU http://www.kddresearch.org http://www.cis.ksu.edu/~bhsu Reading: Chapter 9,

More information

EMPLOYING DOMAIN KNOWLEDGE TO IMPROVE AI PLANNING EFFICIENCY *

EMPLOYING DOMAIN KNOWLEDGE TO IMPROVE AI PLANNING EFFICIENCY * Iranian Journal of Science & Technology, Transaction B, Engineering, Vol. 29, No. B1 Printed in The Islamic Republic of Iran, 2005 Shiraz University EMPLOYING DOMAIN KNOWLEDGE TO IMPROVE AI PLANNING EFFICIENCY

More information

CSE 3402: Intro to Artificial Intelligence Planning

CSE 3402: Intro to Artificial Intelligence Planning CSE 3402: Intro to Artificial Intelligence Planning Readings: Russell & Norvig 3 rd edition Chapter 10 (in 2 nd edition, Sections 11.1, 11.2, and 11.4) 1 CWA Classical Planning. No incomplete or uncertain

More information

Conjunctive queries. Many computational problems are much easier for conjunctive queries than for general first-order queries.

Conjunctive queries. Many computational problems are much easier for conjunctive queries than for general first-order queries. Conjunctive queries Relational calculus queries without negation and disjunction. Conjunctive queries have a normal form: ( y 1 ) ( y n )(p 1 (x 1,..., x m, y 1,..., y n ) p k (x 1,..., x m, y 1,..., y

More information

Wednesday, April 16, 2014

Wednesday, April 16, 2014 Wednesday, pril 16, 2014 Topics for today Homework #5 solutions Code generation nalysis lgorithm 4: infix to tree Synthesis lgorithm 5: tree to code Optimization HW #5 solutions 1. lda 0,i ; for sum of

More information

The PRODIGY User Interface

The PRODIGY User Interface The PRODIGY User Interface Jim Blythe, Manuela Veloso, and Luiz Edival de Souza 1 Computer Science Department Carnegie Mellon University Pittsburgh, PA 15213 USA fblythe,veloso,ledivalg@cs.cmu.edu Abstract

More information

PROPOSITIONAL LOGIC (2)

PROPOSITIONAL LOGIC (2) PROPOSITIONAL LOGIC (2) based on Huth & Ruan Logic in Computer Science: Modelling and Reasoning about Systems Cambridge University Press, 2004 Russell & Norvig Artificial Intelligence: A Modern Approach

More information

Section 9: Planning CPSC Artificial Intelligence Michael M. Richter

Section 9: Planning CPSC Artificial Intelligence Michael M. Richter Section 9: Planning Actions (1) An action changes a situation and their description has to describe this change. A situation description (or a state) sit is a set of ground atomic formulas (sometimes literals

More information

Artificial Intelligence. Planning

Artificial Intelligence. Planning Artificial Intelligence Planning Planning Planning agent Similar to previous problem solving agents Constructs plans that achieve its goals, then executes them Differs in way it represents and searches

More information

Planning. Introduction to Planning. Failing to plan is planning to fail! Major Agent Types Agents with Goals. From Problem Solving to Planning

Planning. Introduction to Planning. Failing to plan is planning to fail! Major Agent Types Agents with Goals. From Problem Solving to Planning Introduction to Planning Planning Failing to plan is planning to fail! Plan: a sequence of steps to achieve a goal. Problem solving agent knows: actions, states, goals and plans. Planning is a special

More information

Planning. Introduction

Planning. Introduction Planning Introduction Planning vs. Problem-Solving Representation in Planning Systems Situation Calculus The Frame Problem STRIPS representation language Blocks World Planning with State-Space Search Progression

More information

Principles of Autonomy and Decision Making

Principles of Autonomy and Decision Making Massachusetts Institute of Technology 16.410-13 Principles of Autonomy and Decision Making Problem Set #6 (distributed 10/22/04). Paper solutions are due no later than 5pm on Friday, 10/29/04. Please give

More information

Where are we? Informatics 2D Reasoning and Agents Semester 2, Planning with state-space search. Planning with state-space search

Where are we? Informatics 2D Reasoning and Agents Semester 2, Planning with state-space search. Planning with state-space search Informatics 2D Reasoning and Agents Semester 2, 2018 2019 Alex Lascarides alex@inf.ed.ac.uk Where are we? Last time... we defined the planning problem discussed problem with using search and logic in planning

More information

Artificial Intelligence Planning

Artificial Intelligence Planning Artificial Intelligence Planning Instructor: Vincent Conitzer Planning We studied how to take actions in the world (search) We studied how to represent objects, relations, etc. (logic) Now we will combine

More information

Definition: A context-free grammar (CFG) is a 4- tuple. variables = nonterminals, terminals, rules = productions,,

Definition: A context-free grammar (CFG) is a 4- tuple. variables = nonterminals, terminals, rules = productions,, CMPSCI 601: Recall From Last Time Lecture 5 Definition: A context-free grammar (CFG) is a 4- tuple, variables = nonterminals, terminals, rules = productions,,, are all finite. 1 ( ) $ Pumping Lemma for

More information

The wolf sheep cabbage problem. Search. Terminology. Solution. Finite state acceptor / state space

The wolf sheep cabbage problem. Search. Terminology. Solution. Finite state acceptor / state space Search The wolf sheep cabbage problem What is search? Terminology: search space, strategy Modelling Uninformed search (not intelligent ) Breadth first Depth first, some variations omplexity space and time

More information

Logic Programming and MDPs for Planning. Alborz Geramifard

Logic Programming and MDPs for Planning. Alborz Geramifard Logic Programming and MDPs for Planning Alborz Geramifard Winter 2009 Index Introduction Logic Programming MDP MDP+ Logic + Programming 2 Index Introduction Logic Programming MDP MDP+ Logic + Programming

More information

GPS: The general problem solver. developed in 1957 by Alan Newel and Herbert Simon. (H. Simon, 1957)

GPS: The general problem solver. developed in 1957 by Alan Newel and Herbert Simon. (H. Simon, 1957) GPS: The general problem solver developed in 1957 by Alan Newel and Herbert Simon (H. Simon, 1957) GPS: The general problem solver developed in 1957 by Alan Newel and Herbert Simon - Was the first program

More information

Knowledge Representation: Production Systems II

Knowledge Representation: Production Systems II Knowledge Representation: Production Systems II References: Rich and Knight, Artificial Intelligence, 2nd ed. McGraw-Hill, 1991 Russell and Norvig, Artificial Intelligence: A modern approach, 2nd ed. Prentice

More information