CPSC 7373: Artificial Intelligence Lecture 9: Planning

12
CPSC 7373: Artificial Intelligence Lecture 9: Planning Jiang Bian, Fall 2012 University of Arkansas at Little Rock

description

CPSC 7373: Artificial Intelligence Lecture 9: Planning. Jiang Bian, Fall 2012 University of Arkansas at Little Rock. Planning. We defined AI to be the study and process of finding appropriate actions for an agent . We have looked at problem solving search over a state space. - PowerPoint PPT Presentation

Transcript of CPSC 7373: Artificial Intelligence Lecture 9: Planning

Page 1: CPSC 7373: Artificial Intelligence Lecture  9:  Planning

CPSC 7373: Artificial IntelligenceLecture 9: Planning

Jiang Bian, Fall 2012University of Arkansas at Little Rock

Page 2: CPSC 7373: Artificial Intelligence Lecture  9:  Planning

Planning

• We defined AI to be the study and process of finding appropriate actions for an agent.

• We have looked at problem solving search over a state space.– Given a state space and a problem description, we

can find a solution, a path to the goal. • Problem solving approaches only work when

the environment is deterministic and fully observable.

Page 3: CPSC 7373: Artificial Intelligence Lecture  9:  Planning

Problem Solving vs Planning

Page 4: CPSC 7373: Artificial Intelligence Lecture  9:  Planning

A Mystery: Why Can't We Walk Straight?

Walking Straight into Circles, by Souman et. al.

Page 5: CPSC 7373: Artificial Intelligence Lecture  9:  Planning

Planning vs Execution

• Why we need to interleave planning with execution?– Properties of the environment make it hard

• STOCHASTIC: We don't know for sure what an action is going to do • MULTIAGENT:• PARTIAL OBSERVABILITY:

– Unknown model: lack of knowledge of the world• e.g., we have map or GPS software that's inaccurate or incomplete

– Hierarchical: devils in the details• Instead of planning in the space of world states, we

plan in the space of belief states.

Page 6: CPSC 7373: Artificial Intelligence Lecture  9:  Planning

Vacuum Cleaner Example

Search in the state space of belief states rather than in the state space of actual spaces

Page 7: CPSC 7373: Artificial Intelligence Lecture  9:  Planning

Sensorless Vaccum Cleaner World

RL

L

R

Page 8: CPSC 7373: Artificial Intelligence Lecture  9:  Planning

Partially Observable Vacuum Cleaner

R

[B, Dirty]

[B, Clean]

Suppose we have what's called local sensing, that is our vacuum can see what location it is in and it can see what's going on in the current location, that is whether there's dirt in the current location or not, but it can't see anything about whether there's dirt in any other location.

Observations alone can't introduce a new state

Page 9: CPSC 7373: Artificial Intelligence Lecture  9:  Planning

Stochastic Environment

R

[B, Dirty]

[A, Dirty]

[B, Clean]

Action increase uncertainty, Observation decreases uncertainty

Always Maybe

SRS

RSLS

SRRS

SRSRS

Page 10: CPSC 7373: Artificial Intelligence Lecture  9:  Planning

Infinite Sequences

• e.g., [S,R,S]

S R B S

A

• e.g., [S, while A:R, S]

Page 11: CPSC 7373: Artificial Intelligence Lecture  9:  Planning

CLASSICAL PLANNING

• STATE SPACE: k-Boolean (2^k)• WORLD STATE: Complete assignment• BELIEF STATE: – Complete assignment– Partial assignment– Arbitrary formula

• ACTION SCHEMA – Action(FLY(p, x, y)

• PRECOND: Plane (p) ^ Airport (x) ^ Airport (y) ^ At(p,x)• EFFECT: -At(p,x) ^ At(p,y)

– )

Page 12: CPSC 7373: Artificial Intelligence Lecture  9:  Planning

SEARCH in Planning

• Progression Search (Forward search)– Searching in Problem Solving

• Init State -> Goal State

• Regression Search (Backward search)– Goal State -> Init State

• Progression vs Regression– e.g.,

• Action(Buy(b),» PRE: ISBN(b)» EFF: OWN(b))

• GOAL (OWN(0136042597))

• Plan Space Search: Searching in the plan space rather than in the world state space.