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

Similar documents
3. Knowledge Representation, Reasoning, and Planning

3. Knowledge Representation, Reasoning, and Planning

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

Introduction to Planning COURSE: CS40002

Commitment Least you haven't decided where to go shopping. Or...suppose You can get milk at the convenience store, at the dairy, or at the supermarket

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

Planning. Planning. What is Planning. Why not standard search?

Artificial Intelligence

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

Artificial Intelligence

Primitive goal based ideas

Artificial Intelligence. Planning

Planning. Introduction

Planning. Introduction

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

CPS 270: Artificial Intelligence Planning

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

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

Artificial Intelligence Planning

Planning. Why not standard search? What is Planning. Planning language. Planning 1. Difficulty of real world problems

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

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

Planning Chapter

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

15-381: Artificial Intelligence Assignment 4: Planning

Vorlesung Grundlagen der Künstlichen Intelligenz

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

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

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

Planning in a Single Agent

Planning (Chapter 10)

Planning Algorithms Properties Soundness

Planning. What is Planning. Why not standard search? Planning 1

INF Kunstig intelligens. Agents That Plan. Roar Fjellheim. INF5390-AI-06 Agents That Plan 1

Silvia Rossi! Planning. Lezione n.! Corso di Laurea:! Informatica! Insegnamento:! Sistemi! multi-agente! ! A.A !

Planning. Artificial Intelligence 1: Planning. What is Planning. General language features. Planning language. Difficulty of real world problems

Distributed Systems. Silvia Rossi 081. Intelligent

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

STRIPS HW 1: Blocks World

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

Artificial Intelligence 1: planning

Artificial Intelligence 2004 Planning: Situation Calculus

1: planning. Lecturer: Tom Lenaerts

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

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

AI Planning. Introduction to Artificial Intelligence! CSCE476/876, Spring 2012:! Send questions to Piazza!

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

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

Planning. Outline. Planning. Planning

ICS 606. Intelligent Autonomous Agents 1

Planning: STRIPS and POP planners

EMPLOYING DOMAIN KNOWLEDGE TO IMPROVE AI PLANNING EFFICIENCY *

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

CSE 3402: Intro to Artificial Intelligence Planning

KI-Programmierung. Planning

Components of a Planning System

Artificial Intelligence

Lecture 10: Planning and Acting in the Real World

(defvar *state* nil "The current state: a list of conditions.")

Plan Generation Classical Planning

1. Prolog [30] 2. Search [26] 3. Rule Based Systems [30] 4. Planning [35] 5. Natural Language Processing [23] 6. Machine Learning [36]

Search vs. planning. Planning. Search vs. planning contd. Outline

Classical Planning Problems: Representation Languages

Cognitive Robotics 2016/2017

Planning Graphs and Graphplan

CS 5100: Founda.ons of Ar.ficial Intelligence

Section 9: Planning CPSC Artificial Intelligence Michael M. Richter

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

Principles of Autonomy and Decision Making

What is On / Off Policy?

Seach algorithms The travelling salesman problem The Towers of Hanoi Playing games. Comp24412: Symbolic AI. Lecture 4: Search. Ian Pratt-Hartmann

A Unified Framework for Explanation-Based Generalization of Partially Ordered and Partially Instantiated Plans

Chapter 6 Planning-Graph Techniques

Planning (under complete Knowledge)

Planning, Execution & Learning 1. Conditional Planning

Using Temporal Logics to Express Search Control Knowledge for Planning Λ

CSC2542 Planning-Graph Techniques

Artificial Intelligence II

Principles of AI Planning. Principles of AI Planning. 7.1 How to obtain a heuristic. 7.2 Relaxed planning tasks. 7.1 How to obtain a heuristic

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

Intelligent Agents. Planning Graphs - The Graph Plan Algorithm. Ute Schmid. Cognitive Systems, Applied Computer Science, Bamberg University

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

Milestone State Formulation Methods

Sterling Federal Systems and Dept. of Computer Science

CS 2750 Foundations of AI Lecture 17. Planning. Planning

Outline. Informed Search. Recall: Uninformed Search. An Idea. Heuristics Informed search techniques More on heuristics Iterative improvement

Search : Lecture 2. September 9, 2003

Planning, Execution & Learning 1. Heuristic Search Planning

Probabilistic Belief. Adversarial Search. Heuristic Search. Planning. Probabilistic Reasoning. CSPs. Learning CS121

Small Formulas for Large Programs: On-line Constraint Simplification In Scalable Static Analysis

Uninformed Search. Problem-solving agents. Tree search algorithms. Single-State Problems

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

Distributed Graphplan

Planning. Search vs. planning STRIPS operators Partial-order planning. CS 561, Session 20 1

3 SOLVING PROBLEMS BY SEARCHING

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

A4B36ZUI - Introduction ARTIFICIAL INTELLIGENCE

Planning and Control: Markov Decision Processes

PROPOSITIONAL LOGIC (2)

BASIC PLAN-GENERATING SYSTEMS

Transcription:

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 a plan of actions to achieve a certain goal YOUR GOAL be aware of what planning is and what problems can arise in planning process know how to generate a plan for use in the Blocks World using STRIPS

3 What plan? planning: identify a sequence of actions that will (most likely) lead to a given goal cook dinner: take bus to Haymarket; take Metro to X; walk to superstore... image source: http://flickr.com/photos/snapsi42/260902

Write down a plan to get a cup of? coffee (or tea) Plan to spend 3 minutes 4

5 Planning problems A* search space (even for simple problems) can quickly become huge even worse when having to re-plan dynamically - real-time games even worse when state of the world is not fully observable/uncertain or outcome of actions is not deterministic even worse with multiple agents

Simplify Problems simplifying assumptions about the (game) environment fully observable/accessible deterministic finite static discrete image source: http://flickr.com/photos/ontdesign/692369952/ 6

7 Decomposition decomposable problem: can be divided into (independent) sub-problems combining solutions of sub-problems yields solution for parent problem caveat: this hinges on independence of problems (solving one sub-problem does not interfere with solving others) problems can be decomposable, nearly decomposable (some weak interference) or non-decomposable

8 Heuristics techniques that improve average-case performance on a problem-solving task but not necessarily the worst-case performance rules that help reduce search space example: take first solution that is good enough finding good heuristics can be tough

(*) STanford Research Institute Problem Solver** 9 STRIPS image source: http://flickr.com/photos/georgiesharp/10709 very influential; many planners still use STRIPS-like language to describe planning problems/process problem = initial state + available actions + goal plan = initial state + sequence of actions + final state (= goal) (**) it s actually a planner

10 closed world assumption states represented as conjunction of positive statements that do not contain functions or variables; goals as well but may contain variables examples: not a valid state per se At(home) Have(Milk) Have(Tea) At(home) Have(Cuppa) this one is

11 action = action description (AD)+ precondition (PC) + effect (E) AD: what agent returns to env. to do something (also: name of action) PC: conjunction of positive literals that must be true before action applicable some versions allow literals that must be false E: conjunction of positive or negative literals describing situation after action has been applied (add/delete list)

Op(ACTION: Go(there), relocating from h to t PRECOND: At(here) Path(here,there), EFFECT: At(there) At(here)) At(here), Path(here,there) Go(there) here At(there), At(here)) there add list delete list image source: http://flickr.com/photos/snapsi42/260902 12

13 plans: sequence of actions with compatible preconditions and effects that incrementally transform initial state into goal state INITIAL STATE: {} Op(ACT: RightSock, PRE: {}, EFF: RightSockOn) Op(ACT: RightShoe, PRE: RightSockOn, EFF: RightShoeOn) Op(ACT: LeftSock, PRE: {}, EFF: LeftSockOn) Op(ACT: LeftShoe, PRE: LeftSockOn, EFF: LeftShoeOn) GOAL: RightShoeOn LeftShoeOn??

objects states actions blocks A, B, C; Table On(X, Y) Clear(X) Move(X, Y, Z) move X from Y to Z PRE: On(X, Y) Clear(X) Clear(Z) DEL: On(X,Y), Clear(Z) ADD: On(X, Z), Clear(Y) MoveToTable(X) move X to table PRE: Clear(X) On(X, Y) DEL: On(X,Y) ADD: On(X, Table), Clear(Y) image source: http://flickr.com/photos/soft/2340756 A B C 14

15 A B On(A, B) On(B, C) On(C, Table) Clear(A) C? On(A, B) On(B, Table) On(C, Table) Clear(A) Clear(C) A B C

16 On(A, B) On(B, C) On(C, Table) Clear(A) A B C movetotable(a) On(A, Table) On(B, C) On(C, Table) B Clear(A) Clear(B) A C movetotable(b) On(A, Table) On(B, Table) On(C, B A C Table) Clear(A) Clear(B) Clear(C)! move(a, Table, B) On(A, B) On(B, Table) On(C, Table) Clear(A) Clear(C) A B C

Nethack meets STRIPS P A B G C In(P,A) In(G,B) Connected(A,B) Connected(B,C) Connected(B,D) Connected(C,D)? MoveTo(...), PickUp(...), Drop(...)? D In(P,D) Holds(P,G) Connected(A,B) Connected(B,C) Connected(B,D) Connected(C,D) How many steps to do this (minimally)? 17

18 Forward Search forward search = progression planning start from initial state search for sequence of actions adding actions one-by-one such that the goal state is reached problem: many irrelevant actions lead to many irrelevant branches in search space (search space explosion)

19 Backward Search backward search = regression planning start from the goal state and search backward towards initial state benefit: considers only relevant actions problems: more restricted than forward search: many final states may contain goal state; initial state may not be backward-reachable from the goal state without some complementation

Heuristics for Search Relaxation: relax constraints on goal/actions solve transformed problem constrain solution of relaxed problem Sub-goal independence: decompose into independent sub-goals solve sub-problems independently combine sub-problem solutions and add further constraints to obtain solution of the original problem 20

21 Lvl 12 complete SUMMARY planning defined key problem: search space explosion coping strategies: simplifications, decomposition, heuristics STRIPS and the Blocks World backward, forward search

22 Any Questions?

23 Bonus Level original STRIPS paper: www.ai.sri.com/pubs/files/tn043r-fikes71.pdf Russell & Norvig, chapter 11