9 : Planning : - - PowerPoint PPT Presentation

9 planning seoul national university
SMART_READER_LITE
LIVE PREVIEW

9 : Planning : - - PowerPoint PPT Presentation

9 : Planning : Seoul National University Byoung-Tak Zhang 1 / 19 Introduction AI as the study of rational action, meaning that planning, i.e. devising a plan of


slide-1
SLIDE 1

1 / 19

인공지능

9차시 : Planning

서울대학교 컴퓨터공학부 담당 교수: 장병탁 Seoul National University Byoung-Tak Zhang

slide-2
SLIDE 2

2 / 19

Introduction

 AI as the study of rational action, meaning that planning, i.e. devising a plan of action to achieve one’s goal is a critical part of AI.  Planning agents

  • Search-based problem solving agents (Chapter 3)
  • Atomic representation (needs good domain-specific heuristics)
  • Hybrid logical agents (Chapter 7)
  • Ground propositional inference (domain-independent heuristics)

 Planning in first-order logic (This lecture)

  • Factored representation
  • Lifted representation (action schema)

 Planning and acting in the real world (very briefly)

  • Unknown environment
slide-3
SLIDE 3

3 / 19

Motivating Example: Blocks World Planning

Blocks world problem

사진 출처 #1 사진 출처 #2

Init

(Start State)

Goal

(Goal State)

  • Move
  • MoveToTable

On Block Clear Move(b, x ,y) = Move block b from top of x to top of y

slide-4
SLIDE 4

4 / 19

Motivating Example: Transportation Planning

Air cargo transportation planning problem

Init

(Start State)

Goal

(Goal State)

P1 SFO SFO JFK

C1

JFK

C2

At Cargo Plane Airport

  • Load
  • Unload
  • Fly

P2

C2 C1 사진 출처 #3

slide-5
SLIDE 5

5 / 19

Stuart Russell & Peter Norvig, Artificial Intelligence: A Modern Approach (3rd Edition), Chapters 10 & 11

Outline (Lecture 9)

9.1 Planning Agents 9.2 Planning as State-Space Search 9.3 Planning Graphs 9.4 Planning and Acting in Real World Summary Homework 6 10 11 14 18 19

slide-6
SLIDE 6

6 / 19

9.1 Planning Agents (1/4)

Planning

 Planning is to devise (search) a sequence of actions to achieve the agent’s goal starting from the initial state in the state space Agent environment

Fully observable vs. partially observable Deterministic vs. stochastic Known vs. unknown

State representations

Atomic representation Factored representation

slide-7
SLIDE 7

7 / 19

9.1 Planning Agents (2/4)

PDDL: Planning domain definition language

State: factored representation, a conjunction of fluents (ground, functionless atoms) e.g.: At(Cargo1, SFO) ∧ At(Plane2, JFK) Action: Action(Fly(p, from, to), Precond: At(p, from) ∧ Plane(p) ∧ Airport(from) ∧ Airport(to) Effect: ¬At(p, from) ∧ At(p, to) Result: Result(s, a) = (s – Del(a)) ∪ Add(a) e.g.: Fly(P1, SFO, JFK) → Del At(P1, SFO) & Add At(P1, JFK) Problem formulation (as state-space search):

Initial state: conjunction of ground atoms Goal state: a conjunction of literals, e.g. At(p, SFO) ∧ Plane(p)

← Delete list ← Add list ← Action schema

e.g.: Fly(P1, SFO, JFK)

slide-8
SLIDE 8

8 / 19

9.1 Planning Agents (3/4)

Air cargo transportation planning problem (revisited)

사진 출처 #4

Init

(Start State)

Goal

(Goal State)

P2 P1 SFO SFO JFK

C2 C1

JFK

C2 C1

At Cargo Plane Airport

  • Load
  • Unload
  • Fly
slide-9
SLIDE 9

9 / 19

9.1 Planning Agents (4/4)

Blocks world problem

사진 출처 #5

Init

(Start State)

Goal

(Goal State)

  • Move
  • MoveToTable

On Block Clear Move(b, x ,y) = Move block b from top of x to top of y

사진 출처 #6

slide-10
SLIDE 10

10 / 19

9.2 Planning as State-Space Search

Planning algorithms

Description of a planning problem defines a search problem: We can search from the initial state through the space of states.

Forward (progression) state-space search Backward (regression) relevant-states search

사진 출처 #7

slide-11
SLIDE 11

11 / 19

9.3 Planning Graphs (1/3)

사진 출처 #8 사진 출처 #9

Planning graph for “Have cake and eat cake too” problem

slide-12
SLIDE 12

12 / 19

9.3 Planning Graphs (2/3)

사진 출처 #10

Planning graph for the spare tire problem

slide-13
SLIDE 13

13 / 19

9.3 Planning Graphs (3/3)

GraphPlan Algorithm

사진 출처 #11

slide-14
SLIDE 14

14 / 19

9.4 Planning and Acting in Real World (1/4)

Sensorless planning or conformant planning (previous chapters)

Fully observable environment Closed-world assumption (vs. open-world assumption)

Planning in partially observable, nondeterministic, unknown environments

How more expressive representations and more interactive agent architecture lead to planners that are useful in the real world. Agent architectures that can handle uncertain environments and interleave deliberations with execution

Contingent planning

Partially observable environment Generation of plans with conditional branching based on percepts

slide-15
SLIDE 15

15 / 19

9.4 Planning and Acting in Real World (2/4)

Action(RemoveLid(can), PRECOND: Can(can) EFFECT: Open(can)) Percept(Color(x, c)), PRECOND: Object(x) ∧ Inview(x) Percept(Color(can, c)), PRECOND: Can(can) ∧ Inview(can) ∧ Open(can)

← Percept schema

Init(Object(Table) ∧ Object(Chair) ∧ Can(C1) ∧ Can(C2) ∧ InView(Table)) Goal(Color(Chair, c) ∧ Color(Table, c)) Object Can InView Color

← Action schema

  • Remove
  • Color

Example: Painting Problem

slide-16
SLIDE 16

16 / 19

9.4 Planning and Acting in Real World (3/4)

Contingent Planning (revisited)

Partially observable environment Generation of plans with conditional branching based on percepts

slide-17
SLIDE 17

17 / 19

9.4 Planning and Acting in Real World (4/4)

Online Replanning

Unknown environment The agent is purposive, i.e. needs to know what it’s trying to do The model for an action may have

Missing preconditions Missing effects Missing state variables Lacking provision for exogenous events

The online agent has to monitor the environment

Action monitoring Plan monitoring Goal monitoring

사진 출처 #12

slide-18
SLIDE 18

Summary

18 / 19

Planning systems are problem-solving algorithms that operate on explicit propositional or relational representations of states and actions State-space search can operate in the forward direction (progression) or the backward direction (regression) A planning graph can be constructed incrementally, starting from the initial state Contingent plans allow the agent to sense the world during execution to decide what branch of the plan to follow. Sensorless or conformant planning can be used to construct a plan that works without the need for perception Both conformant and contingent plans can be constructed by search in the space of belief states. Efficient representation or computation of belief states is a key problem An online planning agent uses execution monitoring and splices in repairs as needed to recover from unexpected situations, which can be due to nondeterministic actions, exogenous events, or incorrect models of the environment

slide-19
SLIDE 19

Homework

19 / 19

10.4 (The monkey-and-bananas problem) 10.5 (Controlling “Shakey” the robot)

Exercises

slide-20
SLIDE 20

출처

사진

# 1~12 Stuart J. Russell and Peter Norvig(2016). Artificial Intelligence: A Modern Approach (3rd Edition). Pearson