Planning CSE 573 A handful of GENERAL SEARCH TECHNIQUES lie at the heart of practically all work in AI We will encounter the SAME PRINCIPLES again and.

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.
Big Ideas in Cmput366. Search Blind Search State space representation Iterative deepening Heuristic Search A*, f(n)=g(n)+h(n), admissible heuristics Local.
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.
Situation Calculus for Action Descriptions We talked about STRIPS representations for actions. Another common representation is called the Situation Calculus.
Plan Generation & Causal-Link Planning 1 José Luis Ambite.
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.
1 Classical STRIPS Planning Alan Fern * * Based in part on slides by Daniel Weld.
CPSC 322, Lecture 23Slide 1 Logic: TD as search, Datalog (variables) Computer Science cpsc322, Lecture 23 (Textbook Chpt 5.2 & some basic concepts from.
CPSC 322, Lecture 19Slide 1 Propositional Logic Intro, Syntax Computer Science cpsc322, Lecture 19 (Textbook Chpt ) February, 23, 2009.
Planning Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 11.
CPSC 322, Lecture 23Slide 1 Logic: TD as search, Datalog (variables) Computer Science cpsc322, Lecture 23 (Textbook Chpt 5.2 & some basic concepts from.
Planning CSE 473. © Daniel S. Weld Topics Agency Problem Spaces Search Knowledge Representation Reinforcement Learning InferencePlanning Supervised.
Problem Spaces & Search CSE 473. © Daniel S. Weld Topics Agents & Environments Problem Spaces Search & Constraint Satisfaction Knowledge Repr’n.
Knowledge Representation I (Propositional Logic) CSE 473.
1 Approaches to Agent Control zAgent senses world, acts to affect world zReactive Control ySet of situation-action rules yE.g. x1) if dog-is-behind-me.
Knowledge Representation II CSE 573. © Daniel S. Weld 2 Logistics Reading for Monday ??? Office Hours No Office Hour Next Monday (10/25) Bonus Office.
Planning II CSE 473. © Daniel S. Weld 2 Logistics Tournament! PS3 – later today Non programming exercises Programming component: (mini project) SPAM detection.
1 Logistics z1 Handout yCopies of my slides zReading yRecent Advances in AI Planning, sections 1-2.
1 Planning Chapters 11 and 12 Thanks: Professor Dan Weld, University of Washington.
Dynamic Bayesian Networks CSE 473. © Daniel S. Weld Topics Agency Problem Spaces Search Knowledge Representation Reinforcement Learning InferencePlanningLearning.
Classical Planning via State-space search COMP3431 Malcolm Ryan.
Planning II CSE 573. © Daniel S. Weld 2 Logistics Reading for Wed Ch 18 thru 18.3 Office Hours No Office Hour Today.
CSE 573 Artificial Intelligence Dan Weld Peng Dai
Classical Planning Chapter 10.
1 Endgame Logistics  Final Project Presentations  Tuesday, March 19, 3-5, KEC2057  Powerpoint suggested ( to me before class)  Can use your own.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Logic in AI CSE 573. © Daniel S. Weld 2 Logistics Monday? Reading Ch 8 Ch 9 thru p 278 Section 10.3 Projects Due 11/10 Teams and project plan due by this.
Partial Order Planning 1 Brian C. Williams J/6.834J Sept 16 th, 2002 Slides with help from: Dan Weld Stuart Russell & Peter Norvig.
AI Lecture 17 Planning Noémie Elhadad (substituting for Prof. McKeown)
Partial Order Plan Execution 1 Brian C. Williams J/6.834J Sept. 16 th, 2002 Slides with help from: Dan Weld Stuart Russell & Peter Norvig.
Introduction to Artificial Intelligence Class 1 Planning & Search Henry Kautz Winter 2007.
© Daniel S. Weld 1 Logistics PS3 Project Additional problem Reading Planning & CSP for “today” SAT plan paper review for Wed.
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)
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
© Daniel S. Weld 1 Logistics Travel Wed class led by Mausam Week’s reading R&N ch17 Project meetings.
Planning I: Total Order Planners Sections
Planning 2 (SATPLAN) CSE 573. © Daniel S. Weld 2 Ways to make “plans” Generative Planning Reason from first principles (knowledge of actions) Requires.
Graphplan CSE 574 April 4, 2003 Dan Weld. Schedule BASICS Intro Graphplan SATplan State-space Refinement SPEEDUP EBL & DDB Heuristic Gen TEMPORAL Partial-O.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Causal-link planning 1 Jim Blythe. 2 USC INFORMATION SCIENCES INSTITUTE Causal Link Planning The planning problem Inputs: 1. A description of the world.
Planning Chapter11 Bayesian Networks (Chapters 14,15)
Logic: TD as search, Datalog (variables)
Planning as Satisfiability
Planning (Chapter 10) Slides by Svetlana Lazebnik, 9/2016 with modifications by Mark Hasegawa-Johnson, 9/2017
Classical Planning via State-space search
Sequential Stochastic Models
Planning: Forward Planning and CSP Planning
Introduction Contents Sungwook Yoon, Postdoctoral Research Associate
Planning (Chapter 10)
Review for the Midterm Exam
Class #17 – Thursday, October 27
CSE P573 Introduction to Artificial Intelligence Class 1 Planning & Search INTRODUCE MYSELF Relative new faculty member, but 20 years in AI research.
Planning José Luis Ambite.
Course Logistics CS533: Intelligent Agents and Decision Making
Graph-based Planning Slides based on material from: Prof. Maria Fox
Graphplan/ SATPlan Chapter
Planning CSE 473 AIMA, 10.3 and 11.
Class #19 – Monday, November 3
Problem Spaces & Search
Logic: Domain Modeling /Proofs + Computer Science cpsc322, Lecture 22
Knowledge Representation I (Propositional Logic)
Problem Spaces & Search
GraphPlan Jim Blythe.
Graph-based Planning Slides based on material from: Prof. Maria Fox
Presentation transcript:

Planning CSE 573 A handful of GENERAL SEARCH TECHNIQUES lie at the heart of practically all work in AI We will encounter the SAME PRINCIPLES again and again in this course, whether we are talking about GAMES LOGICAL REASONING MACHINE LEARNING These are principles for SEARCHING THROUGH A SPACE OF POSSIBLE SOLUTIONS to a problems.

Logistics PS1 Due Sat Reading Office Hours Midterm Tues 11/11 Chapters 7,8 & 11 (up thru 11.2) Office Hours Wed 4:30 Or after most classes Or email me Midterm Tues 11/11 © Daniel S. Weld

Knowledge Representation & Inference 573 Topics Reinforcement Learning Supervised Learning Planning Knowledge Representation & Inference Logic-Based Probabilistic Search Problem Spaces Agency © Daniel S. Weld

Ways to make “plans” Generative Planning Case-Based Planning Reason from first principles (knowledge of actions) Requires formal model of actions Case-Based Planning Retrieve old plan which worked on similar problem Revise retrieved plan for this problem Reinforcement Learning Act ”randomly” - noticing effects Learn reward, action models, policy © Daniel S. Weld

Generative Planning Input Output Description of (initial state of) world (in some KR) Description of goal (in some KR) Description of available actions (in some KR) Output Controller E.g. Sequence of actions E.g. Plan with loops and conditionals E.g. Policy = f: states -> actions © Daniel S. Weld

Input Representation Description of initial state of world E.g., Set of propositions: ((block a) (block b) (block c) (on-table a) (on-table b) (clear a) (clear b) (clear c) (arm-empty)) Description of goal: i.e. set of worlds or ?? E.g., Logical conjunction Any world satisfying conjunction is a goal (and (on a b) (on b c))) Description of available actions © Daniel S. Weld

Simplifying Assumptions Environment Static vs. Dynamic Fully Observable Partially Observable Deterministic Stochastic Instantaneous Durative Full vs. Partial satisfaction Perfect Noisy What action next? Percepts Actions © Daniel S. Weld

Classical Planning Environment Static Instantaneous Deterministic Perfect Fully Observable Full Oi (prec) (effects) I = initial state G = goal state [ I ] Oi Oj Ok Om [ G ] © Daniel S. Weld

Planning Outline The planning problem Representation As Search Forward Regression Heuristics Compilation to SAT Graphplan Reachability analysis & heuristics Planning under uncertainty © Daniel S. Weld

How Represent Actions? Simplifying assumptions STRIPS representation Atomic time Agent is omniscient (no sensing necessary). Agent is sole cause of change Actions have deterministic effects STRIPS representation World = set of true propositions Actions: Precondition: (conjunction of literals) Effects (conjunction of literals) © Daniel S. Weld

How Encode STRIPS  Logic ? © Daniel S. Weld

Time in STRIPS Representation Action = function: worldState worldState Precondition says where function defined Effects say how to change set of propositions a north11 W0 W1 Note: strips doesn’t allow derived effects; you must be complete! effect: (and (agent-at 1 2) (not (agent-at 1 1))) north11 precond: (and (agent-at 1 1) (agent-facing north)) © Daniel S. Weld

} Action Schemata Instead of defining: Define a schema: pickup-A and pickup-B and … Define a schema: (:operator pick-up :parameters ((block ?ob1)) :precondition (and (clear ?ob1) (on-table ?ob1) (arm-empty)) :effect (and (not (clear ?ob1)) (not (on-table ?ob1)) (not (arm-empty)) (holding ?ob1))) Note: strips doesn’t allow derived effects; you must be complete! } © Daniel S. Weld

Time Arguments in Logic Initial Conditions Goal On(a, b, 0) Have(bluePaint, 0) Red(a, 0) On(b,a, ?) Blue(a, ?) Closed World Assumption © Daniel S. Weld

Planning Outline The planning problem Representation As Search Forward Regression Heuristics Compilation to SAT Graphplan Reachability analysis & heuristics Planning under uncertainty © Daniel S. Weld

Planning as Search Nodes Arcs Initial State Goal State World states Action executions The state satisfying the complete description of the initial conds Any state satisfying the goal propositions © Daniel S. Weld

Forward-Chaining World-Space Search Initial State Goal State A C B A B C © Daniel S. Weld

Backward-Chaining Search Thru Space of Partial World-States Problem: Many possible goal states are equally acceptable. From which one does one search? D C B A E Initial State is completely defined * * * C B A D E C D A B E © Daniel S. Weld

Planning as Search - Backward Nodes Arcs Initial State Goal State A conjunctive goal (“set of goals”) Regression of goal through action defn The goal of the planning problem A set of goals  the planning problem’s initial description © Daniel S. Weld

Represents a set of world states Represents a set of world states Regression Regressing a goal, G, thru an action, A Yields the weakest precondition G’ Such that: if G’ is true before A is executed G is guaranteed to be true afterwards A G’ G precond effect Represents a set of world states Represents a set of world states © Daniel S. Weld

Regression Example A G G’ Disjunction  preconditions precond effect (and (clear C) (on-table C) (arm-empty) (on A B)) (and (holding C) (on A B)) pick-up :parameters ((block ?ob1)) :precondition (and (clear ?ob1) (on-table ?ob1) (arm-empty)) :effect (and (not (clear ?ob1)) (not (on-table ?ob1)) (not (arm-empty)) (holding ?ob1))) Disjunction  preconditions © Daniel S. Weld

Conditional Effects © Daniel S. Weld

Regressing Conditional Effects precond effect (and (at briefcase bank) (in keys briefcase) (not (in paycheck briefcase)) (at paycheck bank)) (and (at keys home) (at paycheck bank)) bank home © Daniel S. Weld

Heuristics © Daniel S. Weld