CPSC 322, Lecture 17Slide 1 Planning: Representation and Forward Search Computer Science cpsc322, Lecture 17 (Textbook Chpt 8.1 (Skip 8.1.1-2)- 8.2) February,

Slides:



Advertisements
Similar presentations
Computer Science CPSC 322 Lecture 22 Finish Planning as CSP and Planning Wrap-up (Ch 8.4)
Advertisements

Decision Theory: Sequential Decisions Computer Science cpsc322, Lecture 34 (Textbook Chpt 9.3) Nov, 28, 2012.
CPSC 322, Lecture 4Slide 1 Search: Intro Computer Science cpsc322, Lecture 4 (Textbook Chpt ) Sept, 11, 2013.
Department of Computer Science Undergraduate Events More
Slide 1 Planning: Representation and Forward Search Jim Little UBC CS 322 October 10, 2014 Textbook §8.1 (Skip )- 8.2)
CPSC 322, Lecture 2Slide 1 Representational Dimensions Computer Science cpsc322, Lecture 2 (Textbook Chpt1) Sept, 6, 2013.
Search: Representation and General Search Procedure Jim Little UBC CS 322 – Search 1 September 10, 2014 Textbook § 3.0 –
CPSC 502, Lecture 11Slide 1 Introduction to Artificial Intelligence (AI) Computer Science cpsc502, Lecture 11 Oct, 18, 2011.
CPSC 322, Lecture 16Slide 1 Stochastic Local Search Variants Computer Science cpsc322, Lecture 16 (Textbook Chpt 4.8) February, 9, 2009.
CPSC 322, Lecture 26Slide 1 Reasoning Under Uncertainty: Belief Networks Computer Science cpsc322, Lecture 27 (Textbook Chpt 6.3) March, 16, 2009.
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.
Decision Theory: Single Stage Decisions Computer Science cpsc322, Lecture 33 (Textbook Chpt 9.2) March, 30, 2009.
CPSC 322, Lecture 4Slide 1 Search: Intro Computer Science cpsc322, Lecture 4 (Textbook Chpt ) January, 12, 2009.
CPSC 322, Lecture 18Slide 1 Planning: Heuristics and CSP Planning Computer Science cpsc322, Lecture 18 (Textbook Chpt 8) February, 12, 2010.
CPSC 322, Lecture 10Slide 1 Finish Search Computer Science cpsc322, Lecture 10 (Textbook Chpt 3.6) January, 25, 2010.
Search: Representation and General Search Procedure CPSC 322 – Search 1 January 12, 2011 Textbook § 3.0 –
CPSC 322, Lecture 13Slide 1 CSPs: Arc Consistency & Domain Splitting Computer Science cpsc322, Lecture 13 (Textbook Chpt 4.5,4.6) February, 01, 2010.
CPSC 322, Lecture 11Slide 1 Constraint Satisfaction Problems (CSPs) Introduction Computer Science cpsc322, Lecture 11 (Textbook Chpt 4.0 – 4.2) January,
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 12Slide 1 CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12 (Textbook Chpt ) January, 29, 2010.
CPSC 322, Lecture 13Slide 1 CSPs: Arc Consistency & Domain Splitting Computer Science cpsc322, Lecture 13 (Textbook Chpt 4.5,4.8) February, 02, 2009.
CPSC 322, Lecture 17Slide 1 Planning: Representation and Forward Search Computer Science cpsc322, Lecture 17 (Textbook Chpt 8.1 (Skip )- 8.2) February,
CPSC 322, Lecture 31Slide 1 Probability and Time: Markov Models Computer Science cpsc322, Lecture 31 (Textbook Chpt 6.5) March, 25, 2009.
CPSC 322, Lecture 22Slide 1 Logic: Domain Modeling /Proofs + Top-Down Proofs Computer Science cpsc322, Lecture 22 (Textbook Chpt 5.2) March, 8, 2010.
CPSC 322, Lecture 32Slide 1 Probability and Time: Hidden Markov Models (HMMs) Computer Science cpsc322, Lecture 32 (Textbook Chpt 6.5) March, 27, 2009.
CPSC 322, Lecture 35Slide 1 Value of Information and Control Computer Science cpsc322, Lecture 35 (Textbook Chpt 9.4) April, 14, 2010.
CPSC 322, Lecture 24Slide 1 Reasoning under Uncertainty: Intro to Probability Computer Science cpsc322, Lecture 24 (Textbook Chpt 6.1, 6.1.1) March, 15,
Planning: Wrap up CSP Planning. Logic: Intro CPSC 322 – Planning 3 Textbook §8.4, §5.1 March 2, 2011.
Computer Science CPSC 502 Lecture 5 SLS: wrap-up Planning (Ch 8)
Slide 1 Logic: Domain Modeling /Proofs + Top-Down Proofs Jim Little UBC CS 322 – CSP October 22, 2014.
Computer Science CPSC 322 Lecture 3 AI Applications 1.
Slide 1 Constraint Satisfaction Problems (CSPs) Introduction Jim Little UBC CS 322 – CSP 1 September 27, 2014 Textbook §
Computer Science CPSC 322 Lecture 4 Search: Intro (textbook Ch: ) 1.
CPSC 322, Lecture 22Slide 1 Logic: Domain Modeling /Proofs + Top-Down Proofs Computer Science cpsc322, Lecture 22 (Textbook Chpt 5.2) Oct, 26, 2010.
Computer Science CPSC 322 Lecture 18 Heuristics for Forward Planning.
Constraint Satisfaction Problems (CSPs) CPSC 322 – CSP 1 Poole & Mackworth textbook: Sections § Lecturer: Alan Mackworth September 28, 2012.
CPSC 322, Lecture 32Slide 1 Probability and Time: Hidden Markov Models (HMMs) Computer Science cpsc322, Lecture 32 (Textbook Chpt 6.5.2) Nov, 25, 2013.
CPSC 322, Lecture 6Slide 1 Planning + Intro Logics Computer Science cpsc322, Lecture 6 (Textbook Chpt , 8.4) May, 23, 2012.
CPSC 322, Lecture 18Slide 1 Planning: Heuristics and CSP Planning Jim Little UBC CS 322 October 15, 2014 Textbook §8.
Arc Consistency CPSC 322 – CSP 3 Textbook § 4.5 February 2, 2011.
CPSC 322, Lecture 4Slide 1 Search: Intro Computer Science cpsc322, Lecture 4 (Textbook Chpt ) Sept, 12, 2012.
CPSC 322, Lecture 2Slide 1 Representational Dimensions Computer Science cpsc322, Lecture 2 (Textbook Chpt1) Sept, 7, 2012.
CPSC 322, Lecture 16Slide 1 Stochastic Local Search Variants Computer Science cpsc322, Lecture 16 (Textbook Chpt 4.8) Oct, 11, 2013.
CPSC 322, Lecture 10Slide 1 Finish Search Computer Science cpsc322, Lecture 10 (Textbook Chpt 3.6) Sep, 26, 2010.
Computer Science CPSC 322 Lecture 12 SLS wrap up, Forward Planning, Planning as CSP (Ch 8.2, 8.4) Slide 1.
CPSC 322, Lecture 22Slide 1 Logic: Domain Modeling /Proofs + Top-Down Proofs Computer Science cpsc322, Lecture 22 (Textbook Chpt 5.2) Oct, 30, 2013.
Constraint Satisfaction Problems (CSPs) Introduction
Computer Science cpsc322, Lecture 4
CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12
CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12
Planning: Forward Planning and CSP Planning
Constraint Satisfaction Problems (CSPs) Introduction
Planning: Representation and Forward Search
Planning + Intro Logics Computer Science cpsc322, Lecture 6
Decision Theory: Single Stage Decisions
Planning: Heuristics and CSP Planning
Planning: Heuristics and CSP Planning
CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12
Planning: Representation and Forward Search
Probability and Time: Markov Models
Probability and Time: Markov Models
Planning: Heuristics and CSP Planning
Decision Theory: Sequential Decisions
Decision Theory: Single Stage Decisions
Probability and Time: Markov Models
Stochastic Local Search Variants Computer Science cpsc322, Lecture 16
Logic: Domain Modeling /Proofs + Computer Science cpsc322, Lecture 22
Probability and Time: Markov Models
Planning: Representation and Forward Search
Presentation transcript:

CPSC 322, Lecture 17Slide 1 Planning: Representation and Forward Search Computer Science cpsc322, Lecture 17 (Textbook Chpt 8.1 (Skip )- 8.2) February, 11, 2009

CPSC 322, Lecture 17Slide 2 Lecture Overview Clarifications Where are we? Planning Example STRIPS: a Feature-Based Representation Forward Planning

CPSC 322, Lecture 16Slide 3 Simulated Annealing: algorithm Here's how it works (for maximizing): You are in node n. Pick a variable at random and a new value at random. You generate n' If it is an improvement i.e.,, adopt it. If it isn't an improvement, adopt it probabilistically depending on the difference and a temperature parameter, T. we move to n' with probability e (h(n')-h(n))/T

CPSC 322, Lecture 16Slide 4 If it isn't an improvement, adopt it probabilistically depending on the difference and a temperature parameter, T. we move to n' with probability e (h(n')-h(n))/T

CPSC 322, Lecture 16Slide 5 Sampling a discrete probability distribution

CPSC 322, Lecture 17Slide 6 Lecture Overview Clarifications Where are we? Planning Example STRIPS: a Feature-Based Representation Forward Planning

CPSC 322, Lecture 2Slide 7 Modules we'll cover in this course: R&Rsys Environment Problem Inference Planning Deterministic Stochastic Search Arc Consistency Search Value Iteration Var. Elimination Constraint Satisfaction Logics STRIPS Belief Nets Vars + Constraints Decision Nets Markov Processes Var. Elimination Static Sequential Representation Reasoning Technique SLS

CPSC 322, Lecture 11Slide 8 Standard Search vs. Specific R&R systems Constraint Satisfaction (Problems): State: assignments of values to a subset of the variables Successor function: assign values to a “free” variable Goal test: set of constraints Solution: possible world that satisfies the constraints Heuristic function: none (all solutions at the same distance from start) Planning : State Successor function Goal test Solution Heuristic function Inference State Successor function Goal test Solution Heuristic function

CPSC 322, Lecture 17Slide 9 Lecture Overview Clarifications Where are we? Planning Example STRIPS representation and assumption Forward Planning

CPSC 322, Lecture 17Slide 10 Planning as Search: State and Goal How to select and organize a sequence of actions to achieve a given goal… State: Agent is in a possible world (full assignments to a set of variables/features) Goal: Agent wants to be in a possible world were some variables are given specific values

CPSC 322, Lecture 17Slide 11 Planning as Search: Successor function and Solution Actions : take the agent from one state to another Solution: sequence of actions that when performed will take the agent from the current state to a goal state

CPSC 322, Lecture 17Slide 12 Lecture Overview Clarifications Where are we? Planning Example STRIPS representation and assumption Forward Planning

CPSC 322, Lecture 17Slide 13 Delivery Robot Example (textbook) Consider a delivery robot named Rob, who must navigate the following environment, can deliver coffee and mail to Sam Another example will be available as a Practice Exercise: “Commuting to UBC”

CPSC 322, Lecture 17Slide 14 Delivery Robot Example: States The state is defined by the following variables/features: RLoc - Rob's location domain: coffee shop ( cs ), Sam's office ( off ), mail room ( mr ), or laboratory ( lab ) RHC - Rob has coffee True/False. SWC - Sam wants coffee MW - Mail is waiting RHM - Rob has mail Example state: Number of states:

CPSC 322, Lecture 17Slide 15 Delivery Robot Example: Actions The robot’s actions are: Move - Rob's move action move clockwise (mc ), move anti-clockwise (mac ) not move (nm ) PUC - Rob picks up coffee must be at the coffee shop DelC - Rob delivers coffee must be at the office, and must have coffee PUM - Rob picks up mail must be in the mail room, and mail must be waiting DelM - Rob delivers mail must be at the office and have mail

CPSC 322, Lecture 17Slide 16 Lecture Overview Clarifications Were are we? Planning Example STRIPS representation and assumption (STanford Research Institute Problem Solver ) Forward Planning

CPSC 322, Lecture 17Slide 17 STRIPS action representation The key to sophisticated planning is modeling actions In STRIPS, an action has two parts: 1. Preconditions: a set of assignments to features that must be satisfied in order for the action to be legal 2. Effects: a set of assignments to features that are caused by the action

CPSC 322, Lecture 17Slide 18 STRIPS actions: Example STRIPS representation of the action pick up coffee, PUC : preconditions Loc = cs and RHC = F effects RHC = T STRIPS representation of the action deliver coffee, DelC : preconditions Loc = and RHC = effects RHC = and SWC = Note in this domain Sam doesn't have to want coffee for Rob to deliver it; one way or another, Sam doesn't want coffee after delivery.

CPSC 322, Lecture 17Slide 19 STRIPS Actions (cont’) The STRIPS assumption: all variables not explicitly changed by an action stay unchanged So if the feature/variable V has value v after the action a has been performed, what can we conclude about a and/or the state of the world immediately preceding the execution of a?

CPSC 322, Lecture 17Slide 20 Lecture Overview Clarifications Where are we? Planning Example STRIPS representation and assumption (STanford Research Institute Problem Solver ) Forward Planning

CPSC 322, Lecture 17Slide 21 Forward Planning To find a plan, a solution: search in the state- space graph. The states are the possible worlds The arcs correspond to the actions: The arcs from a state s represent all of the actions that are legal in state s. (What actions are legal?) A plan is a path from the state representing the initial state to a state that satisfies the goal.

CPSC 322, Lecture 17Slide 22 Example state-space graph: first level

CPSC 322, Lecture 17Slide 23 Example state- space graph

CPSC 322, Lecture 4Slide 24 Learning Goals for today’s class You can: Represent a planning problem with the STRIPS representation Explain the STRIPS assumption Solve a planning problem by search (forward planning). Specify states, successor function, goal test and solution.

CPSC 322, Lecture 17Slide 25 Next class Finish Planning (Chp 8) Heuristics for planning (not on textbook) Mapping planning problem into a CSP (8.4)