Docsity

Practical Reasoning-Artificial Intelligence-Lecture Slides, Slides of Artificial Intelligence

Partial preview of the text

Download Practical Reasoning-Artificial Intelligence-Lecture Slides and more Slides Artificial Intelligence in PDF only on Docsity!

4-

LECTURE 4:

PRACTICAL REASONING

4-

Practical Reasoning

 Practical reasoning is reasoning directed towards

actions — the process of figuring out what to do:

 ―Practical reasoning is a matter of weighing conflicting

considerations for and against competing options,

where the relevant considerations are provided by

what the agent desires/values/cares about and what

the agent believes.‖ (Bratman)

 Practical reasoning is distinguished from

theoretical reasoning – theoretical reasoning is

directed towards beliefs

4-

Intentions in Practical Reasoning

  1. Intentions pose problems for agents, who need to determine ways of achieving them.
If I have an intention to  , you would expect me to devote
resources to deciding how to bring about .
  1. Intentions provide a ―filter‖ for adopting other intentions, which must not conflict.
If I have an intention to  , you would not expect me to adopt
an intention  such that  and  are mutually exclusive.
  1. Agents track the success of their intentions, and are inclined to try again if their attempts fail.
If an agent’s first attempt to achieve  fails, then all other
things being equal, it will try an alternative plan to achieve .

4-

Intentions in Practical Reasoning

  1. Agents believe their intentions are possible. That is, they believe there is at least some way that the intentions could be brought about.
  2. Agents do not believe they will not bring about their intentions.
It would not be rational of me to adopt an intention to  if
I believed  was not possible.
  1. Under certain circumstances, agents believe they will bring about their intentions. It would not normally be rational of me to believe that I would bring my intentions about; intentions can fail_._
Moreover, it does not make sense that if I believe  is

inevitable that I would adopt it as an intention.

4-

Intentions in Practical Reasoning

 Notice that intentions are much stronger than

mere desires:

―My desire to play basketball this afternoon is merely

a potential influencer of my conduct this

afternoon. It must vie with my other relevant

desires [... ] before it is settled what I will do. In

contrast, once I intend to play basketball this

afternoon, the matter is settled: I normally need

not continue to weigh the pros and cons. When

the afternoon arrives, I will normally just proceed

to execute my intentions.‖ (Bratman, 1990)

4-

Planning Agents

 Since the early 1970s, the AI planning community

has been closely concerned with the design of

artificial agents

 Planning is essentially automatic programming: the

design of a course of action that will achieve some

desired goal

 Within the symbolic AI community, it has long been

assumed that some form of AI planning system will

be a central component of any artificial agent

 Building largely on the early work of Fikes & Nilsson,

many planning algorithms have been proposed, and

the theory of planning has been well-developed

4-

goal/ intention/ task

state of environment

possible action

planner

plan to achieve goal

4-

Planning

 Question: How do we represent...

 goal to be achieved

 state of environment

 actions available to agent

 plan itself

4-

The Blocks World Ontology

 To represent this environment, need an

ontology

On(x, y) obj x on top of obj y

OnTable(x) obj x is on the table

Clear(x) nothing is on top of obj x

Holding(x) arm is holding x

4-

The Blocks World

 Here is a representation of the blocks world

described above:

Clear(A)

On(A, B)

OnTable(B)

OnTable(C)

 Use the closed world assumption : anything

not stated is assumed to be false

A B C

4-

The Blocks World

 Actions are represented using a technique that was

developed in the STRIPS planner

 Each action has:

 a name which may have arguments  a pre-condition list list of facts which must be true for action to be executed  a delete list list of facts that are no longer true after action is performed  an add list list of facts made true by executing the action

Each of these may contain variables

4-

The Blocks World Operators

 Example 1: The stack action occurs when the robot arm places the object x it is holding is placed on top of object y. Stack(x, y) pre Clear(y)Holding(x) del Clear(y)Holding(x) add ArmEmptyOn(x, y)

A

B

4-

The Blocks World Operators

 Example 3:

The pickup action occurs when the arm picks up an

object x from the table.

Pickup(x) pre Clear(x)OnTable(x)ArmEmpty del OnTable(x)ArmEmpty add Holding(x)

 Example 4:

The putdown action occurs when the arm places the

object x onto the table.

Putdown(x) pre Holding(x) del Holding(x) add Clear(x)OnTable(x)ArmEmpty

4-

A Plan

 What is a plan?

A sequence (list) of actions, with variables

replaced by constants.

I G

a

a

a