79
Agents Artificial Intelligence @ Allegheny College Janyl Jumadinova 22–27 January, 2020 Janyl Jumadinova Agents 22–27 January, 2020 1 / 32

Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Agents

Artificial Intelligence @ Allegheny College

Janyl Jumadinova

22–27 January, 2020

Janyl Jumadinova Agents 22–27 January, 2020 1 / 32

Page 2: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

What is AI?

Systems that think like humans Systems that think rationallySystems that act like humans Systems that act rationally

Janyl Jumadinova Agents 22–27 January, 2020 2 / 32

Page 3: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Agents and environments

An agent is something that acts in an environment.

An agent acts intelligently if:

its actions are appropriate for its goals and circumstances,

it is flexible to changing environments and goals,

it learns from experience,

it makes appropriate choices given perceptual and computationallimitations.

Janyl Jumadinova Agents 22–27 January, 2020 3 / 32

Page 4: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Agents and environments

An agent is something that acts in an environment.

An agent acts intelligently if:

its actions are appropriate for its goals and circumstances,

it is flexible to changing environments and goals,

it learns from experience,

it makes appropriate choices given perceptual and computationallimitations.

Janyl Jumadinova Agents 22–27 January, 2020 3 / 32

Page 5: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Agents and environments

?agent

percepts

sensors

actionsenvironment

actuators

Agents include humans, robots, softbots, thermostats, etc.The agent function maps from percept histories to actions:

f : P∗ → A

The agent program runs on the physical architecture to produce f .

Janyl Jumadinova Agents 22–27 January, 2020 4 / 32

Page 6: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Agents and environments

?agent

percepts

sensors

actionsenvironment

actuators

Agents include humans, robots, softbots, thermostats, etc.

The agent function maps from percept histories to actions:

f : P∗ → A

The agent program runs on the physical architecture to produce f .

Janyl Jumadinova Agents 22–27 January, 2020 4 / 32

Page 7: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Agents and environments

?agent

percepts

sensors

actionsenvironment

actuators

Agents include humans, robots, softbots, thermostats, etc.The agent function maps from percept histories to actions:

f : P∗ → A

The agent program runs on the physical architecture to produce f .

Janyl Jumadinova Agents 22–27 January, 2020 4 / 32

Page 8: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

A vacuum cleaner agent

A B

Percepts: location and contents, e.g., [A,Dirty ]Actions: Left, Right, Suck , NoOp

Janyl Jumadinova Agents 22–27 January, 2020 5 / 32

Page 9: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

A vacuum cleaner agent

What is the right function?What makes an agent good or bad, intelligent or stupid?

Janyl Jumadinova Agents 22–27 January, 2020 6 / 32

Page 10: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Agents and environments

For any given class of environments and tasks, we seek the agent (or classof agents) with the best performance.

Caveat: computational limitations make perfect rationality unachievable.−→ design best program for given machine resources.

Janyl Jumadinova Agents 22–27 January, 2020 7 / 32

Page 11: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Agents and environments

For any given class of environments and tasks, we seek the agent (or classof agents) with the best performance.

Caveat: computational limitations make perfect rationality unachievable.

−→ design best program for given machine resources.

Janyl Jumadinova Agents 22–27 January, 2020 7 / 32

Page 12: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Agents and environments

For any given class of environments and tasks, we seek the agent (or classof agents) with the best performance.

Caveat: computational limitations make perfect rationality unachievable.−→ design best program for given machine resources.

Janyl Jumadinova Agents 22–27 January, 2020 7 / 32

Page 13: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Restricting the definition of an agent: an ideal agent

Autonomy: The ability to operate without the direct intervention ofhumans or others, and have some kind of control over their actionsand internal state.

(Structural) Reactivity: The ability to perceive the environment, andrespond regularly to changes that occur in it.

Social Ability: The ability to interact with other agents (and possiblyhumans).

Pro-Activity: The ability to exhibit goal-directed behavior by takingthe initiative instead of just acting in response.

Janyl Jumadinova Agents 22–27 January, 2020 8 / 32

Page 14: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Restricting the definition of an agent: an ideal agent

Autonomy: The ability to operate without the direct intervention ofhumans or others, and have some kind of control over their actionsand internal state.

(Structural) Reactivity: The ability to perceive the environment, andrespond regularly to changes that occur in it.

Social Ability: The ability to interact with other agents (and possiblyhumans).

Pro-Activity: The ability to exhibit goal-directed behavior by takingthe initiative instead of just acting in response.

Janyl Jumadinova Agents 22–27 January, 2020 8 / 32

Page 15: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Restricting the definition of an agent: an ideal agent

Autonomy: The ability to operate without the direct intervention ofhumans or others, and have some kind of control over their actionsand internal state.

(Structural) Reactivity: The ability to perceive the environment, andrespond regularly to changes that occur in it.

Social Ability: The ability to interact with other agents (and possiblyhumans).

Pro-Activity: The ability to exhibit goal-directed behavior by takingthe initiative instead of just acting in response.

Janyl Jumadinova Agents 22–27 January, 2020 8 / 32

Page 16: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Restricting the definition of an agent: an ideal agent

Autonomy: The ability to operate without the direct intervention ofhumans or others, and have some kind of control over their actionsand internal state.

(Structural) Reactivity: The ability to perceive the environment, andrespond regularly to changes that occur in it.

Social Ability: The ability to interact with other agents (and possiblyhumans).

Pro-Activity: The ability to exhibit goal-directed behavior by takingthe initiative instead of just acting in response.

Janyl Jumadinova Agents 22–27 January, 2020 8 / 32

Page 17: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Restricting the definition of an agent: an ideal agent

Other attributes:

Mobility: The ability to move around an electronic network.

Veracity: The assumption of not communicating false informationknowingly.

Benevolence: The assumption of not having conflicting goals.

Rationality: The assumption of acting with a view to achieve itsgoals, instead of preventing them.

Janyl Jumadinova Agents 22–27 January, 2020 9 / 32

Page 18: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Restricting the definition of an agent: an ideal agent

Other attributes:

Mobility: The ability to move around an electronic network.

Veracity: The assumption of not communicating false informationknowingly.

Benevolence: The assumption of not having conflicting goals.

Rationality: The assumption of acting with a view to achieve itsgoals, instead of preventing them.

Janyl Jumadinova Agents 22–27 January, 2020 9 / 32

Page 19: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Restricting the definition of an agent: an ideal agent

Other attributes:

Mobility: The ability to move around an electronic network.

Veracity: The assumption of not communicating false informationknowingly.

Benevolence: The assumption of not having conflicting goals.

Rationality: The assumption of acting with a view to achieve itsgoals, instead of preventing them.

Janyl Jumadinova Agents 22–27 January, 2020 9 / 32

Page 20: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Restricting the definition of an agent: an ideal agent

Other attributes:

Mobility: The ability to move around an electronic network.

Veracity: The assumption of not communicating false informationknowingly.

Benevolence: The assumption of not having conflicting goals.

Rationality: The assumption of acting with a view to achieve itsgoals, instead of preventing them.

Janyl Jumadinova Agents 22–27 January, 2020 9 / 32

Page 21: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Agents vs. Objects

“Agent-Oriented Programming”, Y. Shoham

Janyl Jumadinova Agents 22–27 January, 2020 10 / 32

Page 22: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Agents vs. Objects

Object-Oriented Design: objects have identity, state and behaviourand communicate via messages.

Agent-Oriented Approach: agents have identity, state (knowledge,beliefs, desires, intentions) and behaviour(goal-achieving, actions,reactions) and communication abilities.

Then, are objects agents?

Janyl Jumadinova Agents 22–27 January, 2020 11 / 32

Page 23: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Agents vs. Objects

Object-Oriented Design: objects have identity, state and behaviourand communicate via messages.

Agent-Oriented Approach: agents have identity, state (knowledge,beliefs, desires, intentions) and behaviour(goal-achieving, actions,reactions) and communication abilities.

Then, are objects agents?

Janyl Jumadinova Agents 22–27 January, 2020 11 / 32

Page 24: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Agents vs. Objects

Agents exhibit autonomy, they have control over their state,execution and behavior.

Agents exhibit goal-directed, reactive and social behavior.

Agents are persistent, self-aware and able to learn and adapt.

Control in multi-agent systems is distributed.

Objects do not have these characteristics.

Janyl Jumadinova Agents 22–27 January, 2020 12 / 32

Page 25: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Agents vs. Objects

Agents exhibit autonomy, they have control over their state,execution and behavior.

Agents exhibit goal-directed, reactive and social behavior.

Agents are persistent, self-aware and able to learn and adapt.

Control in multi-agent systems is distributed.

Objects do not have these characteristics.

Janyl Jumadinova Agents 22–27 January, 2020 12 / 32

Page 26: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Agents vs. Objects

Agents have the quality of volition.- using AI techniques, intelligent agents are able to judge their results,and then modify their behavior (and thus their own internal structure)to improve their perceived fitness.

Objects are abstractions of things like invoices. Agents areabstractions of intelligent beings – they are essentiallyanthropomorphic.Note that this does not mean that agents are intelligent in the human sense,

only that they are modeled after an anthropomorphic architecture, with

beliefs, desires, etc.

Janyl Jumadinova Agents 22–27 January, 2020 13 / 32

Page 27: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Agents vs. Objects

Agents have the quality of volition.- using AI techniques, intelligent agents are able to judge their results,and then modify their behavior (and thus their own internal structure)to improve their perceived fitness.

Objects are abstractions of things like invoices. Agents areabstractions of intelligent beings – they are essentiallyanthropomorphic.Note that this does not mean that agents are intelligent in the human sense,

only that they are modeled after an anthropomorphic architecture, with

beliefs, desires, etc.

Janyl Jumadinova Agents 22–27 January, 2020 13 / 32

Page 28: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Agents vs. Objects

Group Think Tank

- Design an object-oriented solution and an agent-oriented solution for acar wash task.- Identify why it is an object-oriented or an agent-oriented solution.- List agents and objects for both solutions.

Janyl Jumadinova Agents 22–27 January, 2020 14 / 32

Page 29: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Getting to an ideal agent

Agent types in order of increasing generality:

simple reflex agents

reflex agents with state

goal-based agents

utility-based agents

learning agents

Janyl Jumadinova Agents 22–27 January, 2020 15 / 32

Page 30: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Simple Reflex Agent

AgentEnvironm

entSensors

What the worldis like now

What action Ishould do nowCondition−action rules

Actuators

Janyl Jumadinova Agents 22–27 January, 2020 16 / 32

Page 31: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Simple Reflex Agent - An Example

Janyl Jumadinova Agents 22–27 January, 2020 17 / 32

Page 32: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Reflex Agent with State

Agent

Environment

Sensors

What action Ishould do now

State

How the world evolves

What my actions do

Condition−action rules

Actuators

What the worldis like now

Janyl Jumadinova Agents 22–27 January, 2020 18 / 32

Page 33: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Reflex Agent with State - An Example

Janyl Jumadinova Agents 22–27 January, 2020 19 / 32

Page 34: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Goal-based Agent

Agent

Environment

Sensors

What it will be like if I do action A

What action Ishould do now

State

How the world evolves

What my actions do

Goals

Actuators

What the worldis like now

Janyl Jumadinova Agents 22–27 January, 2020 20 / 32

Page 35: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Utility-based Agent

Agent

Environment

Sensors

What it will be like if I do action A

How happy I will be in such a state

What action Ishould do now

State

How the world evolves

What my actions do

Utility

Actuators

What the worldis like now

Janyl Jumadinova Agents 22–27 January, 2020 21 / 32

Page 36: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Learning Agent

All the previous agents can be turned into learning agents

Performance standard

Agent

Environment

Sensors

Performance element

changes

knowledgelearning goals

Problem generator

feedback

Learning element

Critic

Actuators

Janyl Jumadinova Agents 22–27 January, 2020 22 / 32

Page 37: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Rational Agents

A rational agent chooses whichever action maximizes the expectedvalue of the performance measure given the percept sequence todate.

A system is rational if it does the “right thing”, given what it knows.

Janyl Jumadinova Agents 22–27 January, 2020 23 / 32

Page 38: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Rationality

Fixed performance measure evaluates the environment sequence

one point per square cleaned up in time T?

one point per clean square per time step, minus one per move?

penalize for > k dirty squares?

A rational agent chooses whichever action maximizes the expected valueof the performance measure given the percept sequence to date

Janyl Jumadinova Agents 22–27 January, 2020 24 / 32

Page 39: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Rationality

Fixed performance measure evaluates the environment sequence

one point per square cleaned up in time T?

one point per clean square per time step, minus one per move?

penalize for > k dirty squares?

A rational agent chooses whichever action maximizes the expected valueof the performance measure given the percept sequence to date

Janyl Jumadinova Agents 22–27 January, 2020 24 / 32

Page 40: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Rationality

Rational 6= omniscient– percepts may not supply all relevant information

Rational 6= clairvoyant– action outcomes may not be as expectedHence, rational 6= successfulRational =⇒ exploration, learning, autonomy

Janyl Jumadinova Agents 22–27 January, 2020 25 / 32

Page 41: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Rationality

Rational 6= omniscient– percepts may not supply all relevant informationRational 6= clairvoyant– action outcomes may not be as expected

Hence, rational 6= successfulRational =⇒ exploration, learning, autonomy

Janyl Jumadinova Agents 22–27 January, 2020 25 / 32

Page 42: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Rationality

Rational 6= omniscient– percepts may not supply all relevant informationRational 6= clairvoyant– action outcomes may not be as expectedHence, rational 6= successful

Rational =⇒ exploration, learning, autonomy

Janyl Jumadinova Agents 22–27 January, 2020 25 / 32

Page 43: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Rationality

Rational 6= omniscient– percepts may not supply all relevant informationRational 6= clairvoyant– action outcomes may not be as expectedHence, rational 6= successfulRational =⇒ exploration, learning, autonomy

Janyl Jumadinova Agents 22–27 January, 2020 25 / 32

Page 44: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

PEAS

To design a rational agent, we must specify the task environment:Performance measureEnvironmentActuatorsSensors

Janyl Jumadinova Agents 22–27 January, 2020 26 / 32

Page 45: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

PEAS

To design a rational agent, we must specify the task environment.

Consider, e.g., the task of designing an automated taxi:Performance measure safety, destination, profits, legality, comfort, . . .

Environment US streets/freeways, traffic, pedestrians, weather, . . .

Actuators steering, accelerator, brake, horn, speaker/display, . . .

Sensors video, accelerometers, gauges, engine sensors, keyboard, GPS, . . .

Janyl Jumadinova Agents 22–27 January, 2020 27 / 32

Page 46: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

PEAS

To design a rational agent, we must specify the task environment.

Consider, e.g., the task of designing an automated taxi:Performance measure safety, destination, profits, legality, comfort, . . .

Environment

US streets/freeways, traffic, pedestrians, weather, . . .

Actuators steering, accelerator, brake, horn, speaker/display, . . .

Sensors video, accelerometers, gauges, engine sensors, keyboard, GPS, . . .

Janyl Jumadinova Agents 22–27 January, 2020 27 / 32

Page 47: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

PEAS

To design a rational agent, we must specify the task environment.

Consider, e.g., the task of designing an automated taxi:Performance measure safety, destination, profits, legality, comfort, . . .

Environment US streets/freeways, traffic, pedestrians, weather, . . .

Actuators steering, accelerator, brake, horn, speaker/display, . . .

Sensors video, accelerometers, gauges, engine sensors, keyboard, GPS, . . .

Janyl Jumadinova Agents 22–27 January, 2020 27 / 32

Page 48: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

PEAS

To design a rational agent, we must specify the task environment.

Consider, e.g., the task of designing an automated taxi:Performance measure safety, destination, profits, legality, comfort, . . .

Environment US streets/freeways, traffic, pedestrians, weather, . . .

Actuators

steering, accelerator, brake, horn, speaker/display, . . .

Sensors video, accelerometers, gauges, engine sensors, keyboard, GPS, . . .

Janyl Jumadinova Agents 22–27 January, 2020 27 / 32

Page 49: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

PEAS

To design a rational agent, we must specify the task environment.

Consider, e.g., the task of designing an automated taxi:Performance measure safety, destination, profits, legality, comfort, . . .

Environment US streets/freeways, traffic, pedestrians, weather, . . .

Actuators steering, accelerator, brake, horn, speaker/display, . . .

Sensors video, accelerometers, gauges, engine sensors, keyboard, GPS, . . .

Janyl Jumadinova Agents 22–27 January, 2020 27 / 32

Page 50: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

PEAS

To design a rational agent, we must specify the task environment.

Consider, e.g., the task of designing an automated taxi:Performance measure safety, destination, profits, legality, comfort, . . .

Environment US streets/freeways, traffic, pedestrians, weather, . . .

Actuators steering, accelerator, brake, horn, speaker/display, . . .

Sensors

video, accelerometers, gauges, engine sensors, keyboard, GPS, . . .

Janyl Jumadinova Agents 22–27 January, 2020 27 / 32

Page 51: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

PEAS

To design a rational agent, we must specify the task environment.

Consider, e.g., the task of designing an automated taxi:Performance measure safety, destination, profits, legality, comfort, . . .

Environment US streets/freeways, traffic, pedestrians, weather, . . .

Actuators steering, accelerator, brake, horn, speaker/display, . . .

Sensors video, accelerometers, gauges, engine sensors, keyboard, GPS, . . .

Janyl Jumadinova Agents 22–27 January, 2020 27 / 32

Page 52: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Internet shopping agent?

Performance measure price, quality, appropriateness, efficiency, . . .

Environment current and future WWW sites, vendors, shippers, . . .

Actuators display to user, follow URL, fill in form, . . .

Sensors HTML pages (text, graphics, scripts), . . .

Janyl Jumadinova Agents 22–27 January, 2020 28 / 32

Page 53: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Internet shopping agent?

Performance measure

price, quality, appropriateness, efficiency, . . .

Environment current and future WWW sites, vendors, shippers, . . .

Actuators display to user, follow URL, fill in form, . . .

Sensors HTML pages (text, graphics, scripts), . . .

Janyl Jumadinova Agents 22–27 January, 2020 28 / 32

Page 54: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Internet shopping agent?

Performance measure price, quality, appropriateness, efficiency, . . .

Environment current and future WWW sites, vendors, shippers, . . .

Actuators display to user, follow URL, fill in form, . . .

Sensors HTML pages (text, graphics, scripts), . . .

Janyl Jumadinova Agents 22–27 January, 2020 28 / 32

Page 55: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Internet shopping agent?

Performance measure price, quality, appropriateness, efficiency, . . .

Environment

current and future WWW sites, vendors, shippers, . . .

Actuators display to user, follow URL, fill in form, . . .

Sensors HTML pages (text, graphics, scripts), . . .

Janyl Jumadinova Agents 22–27 January, 2020 28 / 32

Page 56: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Internet shopping agent?

Performance measure price, quality, appropriateness, efficiency, . . .

Environment current and future WWW sites, vendors, shippers, . . .

Actuators display to user, follow URL, fill in form, . . .

Sensors HTML pages (text, graphics, scripts), . . .

Janyl Jumadinova Agents 22–27 January, 2020 28 / 32

Page 57: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Internet shopping agent?

Performance measure price, quality, appropriateness, efficiency, . . .

Environment current and future WWW sites, vendors, shippers, . . .

Actuators

display to user, follow URL, fill in form, . . .

Sensors HTML pages (text, graphics, scripts), . . .

Janyl Jumadinova Agents 22–27 January, 2020 28 / 32

Page 58: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Internet shopping agent?

Performance measure price, quality, appropriateness, efficiency, . . .

Environment current and future WWW sites, vendors, shippers, . . .

Actuators display to user, follow URL, fill in form, . . .

Sensors HTML pages (text, graphics, scripts), . . .

Janyl Jumadinova Agents 22–27 January, 2020 28 / 32

Page 59: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Internet shopping agent?

Performance measure price, quality, appropriateness, efficiency, . . .

Environment current and future WWW sites, vendors, shippers, . . .

Actuators display to user, follow URL, fill in form, . . .

Sensors

HTML pages (text, graphics, scripts), . . .

Janyl Jumadinova Agents 22–27 January, 2020 28 / 32

Page 60: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Internet shopping agent?

Performance measure price, quality, appropriateness, efficiency, . . .

Environment current and future WWW sites, vendors, shippers, . . .

Actuators display to user, follow URL, fill in form, . . .

Sensors HTML pages (text, graphics, scripts), . . .

Janyl Jumadinova Agents 22–27 January, 2020 28 / 32

Page 61: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Environment Types

Fully Observable: the agent can observe the state of the world, vs.Partially Observable: there can be a number states that are possiblegiven the agent’s observations

Deterministic: the resulting state is determined from the action andthe state, vs.Stochastic: there is uncertainty about the resulting state

Episodic: agent’s experience is divided into atomic episodes, vs.Sequential: the current decision could affect all future decisions

Janyl Jumadinova Agents 22–27 January, 2020 29 / 32

Page 62: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Environment Types

Fully Observable: the agent can observe the state of the world, vs.Partially Observable: there can be a number states that are possiblegiven the agent’s observations

Deterministic: the resulting state is determined from the action andthe state, vs.Stochastic: there is uncertainty about the resulting state

Episodic: agent’s experience is divided into atomic episodes, vs.Sequential: the current decision could affect all future decisions

Janyl Jumadinova Agents 22–27 January, 2020 29 / 32

Page 63: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Environment Types

Fully Observable: the agent can observe the state of the world, vs.Partially Observable: there can be a number states that are possiblegiven the agent’s observations

Deterministic: the resulting state is determined from the action andthe state, vs.Stochastic: there is uncertainty about the resulting state

Episodic: agent’s experience is divided into atomic episodes, vs.Sequential: the current decision could affect all future decisions

Janyl Jumadinova Agents 22–27 January, 2020 29 / 32

Page 64: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Environment Types

Static: environment does not change, vs.Dynamic: the environment can change while an agent is deliberating,vs.Semi: the environment itself does not change with the passage oftime but the agent’s performance score does

Discrete vs. Continuous: applies to the state of the environment, tothe way time is handled, and to the percepts and actions of the agent

Single-agent vs. Multi-agent

The environment type largely determines the agent design

Janyl Jumadinova Agents 22–27 January, 2020 30 / 32

Page 65: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Environment Types

Static: environment does not change, vs.Dynamic: the environment can change while an agent is deliberating,vs.Semi: the environment itself does not change with the passage oftime but the agent’s performance score does

Discrete vs. Continuous: applies to the state of the environment, tothe way time is handled, and to the percepts and actions of the agent

Single-agent vs. Multi-agent

The environment type largely determines the agent design

Janyl Jumadinova Agents 22–27 January, 2020 30 / 32

Page 66: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Environment Types

Static: environment does not change, vs.Dynamic: the environment can change while an agent is deliberating,vs.Semi: the environment itself does not change with the passage oftime but the agent’s performance score does

Discrete vs. Continuous: applies to the state of the environment, tothe way time is handled, and to the percepts and actions of the agent

Single-agent vs. Multi-agent

The environment type largely determines the agent design

Janyl Jumadinova Agents 22–27 January, 2020 30 / 32

Page 67: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Environment Types

Static: environment does not change, vs.Dynamic: the environment can change while an agent is deliberating,vs.Semi: the environment itself does not change with the passage oftime but the agent’s performance score does

Discrete vs. Continuous: applies to the state of the environment, tothe way time is handled, and to the percepts and actions of the agent

Single-agent vs. Multi-agent

The environment type largely determines the agent design

Janyl Jumadinova Agents 22–27 January, 2020 30 / 32

Page 68: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Environment Types

Solitaire

Observable YesDeterministic Yes

Episodic NoStatic Yes

Discrete YesSingle-agent Yes

Janyl Jumadinova Agents 22–27 January, 2020 31 / 32

Page 69: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Environment Types

Solitaire Internet shopping

Observable Yes NoDeterministic Yes Partly

Episodic No NoStatic Yes Semi

Discrete Yes YesSingle-agent Yes Yes (except auctions)

Janyl Jumadinova Agents 22–27 January, 2020 31 / 32

Page 70: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Environment Types

Solitaire Internet shopping Taxi

Observable Yes No NoDeterministic Yes Partly No

Episodic No No NoStatic Yes Semi No

Discrete Yes Yes NoSingle-agent Yes Yes (except auctions) No

The real world is partially observable, stochastic, sequential, dynamic,continuous, multi-agent

Janyl Jumadinova Agents 22–27 January, 2020 31 / 32

Page 71: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Environment Types

Solitaire Internet shopping Taxi

Observable Yes No NoDeterministic Yes Partly No

Episodic No No NoStatic Yes Semi No

Discrete Yes Yes NoSingle-agent Yes Yes (except auctions) No

The real world is partially observable, stochastic, sequential, dynamic,continuous, multi-agent

Janyl Jumadinova Agents 22–27 January, 2020 31 / 32

Page 72: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Agent Summary

Agents interact with environments through actuators and sensors

The agent function describes what the agent does in all circumstances

The performance measure evaluates the environment sequence

A perfectly rational agent maximizes expected performance

Agent programs implement (some) agent functions

PEAS descriptions define task environments

Environments are categorized along several dimensions:observable? deterministic? episodic? static? discrete? single-agent?

Several basic agent architectures exist:reflex, reflex with state, goal-based, utility-based, learning

Janyl Jumadinova Agents 22–27 January, 2020 32 / 32

Page 73: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Agent Summary

Agents interact with environments through actuators and sensors

The agent function describes what the agent does in all circumstances

The performance measure evaluates the environment sequence

A perfectly rational agent maximizes expected performance

Agent programs implement (some) agent functions

PEAS descriptions define task environments

Environments are categorized along several dimensions:observable? deterministic? episodic? static? discrete? single-agent?

Several basic agent architectures exist:reflex, reflex with state, goal-based, utility-based, learning

Janyl Jumadinova Agents 22–27 January, 2020 32 / 32

Page 74: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Agent Summary

Agents interact with environments through actuators and sensors

The agent function describes what the agent does in all circumstances

The performance measure evaluates the environment sequence

A perfectly rational agent maximizes expected performance

Agent programs implement (some) agent functions

PEAS descriptions define task environments

Environments are categorized along several dimensions:observable? deterministic? episodic? static? discrete? single-agent?

Several basic agent architectures exist:reflex, reflex with state, goal-based, utility-based, learning

Janyl Jumadinova Agents 22–27 January, 2020 32 / 32

Page 75: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Agent Summary

Agents interact with environments through actuators and sensors

The agent function describes what the agent does in all circumstances

The performance measure evaluates the environment sequence

A perfectly rational agent maximizes expected performance

Agent programs implement (some) agent functions

PEAS descriptions define task environments

Environments are categorized along several dimensions:observable? deterministic? episodic? static? discrete? single-agent?

Several basic agent architectures exist:reflex, reflex with state, goal-based, utility-based, learning

Janyl Jumadinova Agents 22–27 January, 2020 32 / 32

Page 76: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Agent Summary

Agents interact with environments through actuators and sensors

The agent function describes what the agent does in all circumstances

The performance measure evaluates the environment sequence

A perfectly rational agent maximizes expected performance

Agent programs implement (some) agent functions

PEAS descriptions define task environments

Environments are categorized along several dimensions:observable? deterministic? episodic? static? discrete? single-agent?

Several basic agent architectures exist:reflex, reflex with state, goal-based, utility-based, learning

Janyl Jumadinova Agents 22–27 January, 2020 32 / 32

Page 77: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Agent Summary

Agents interact with environments through actuators and sensors

The agent function describes what the agent does in all circumstances

The performance measure evaluates the environment sequence

A perfectly rational agent maximizes expected performance

Agent programs implement (some) agent functions

PEAS descriptions define task environments

Environments are categorized along several dimensions:observable? deterministic? episodic? static? discrete? single-agent?

Several basic agent architectures exist:reflex, reflex with state, goal-based, utility-based, learning

Janyl Jumadinova Agents 22–27 January, 2020 32 / 32

Page 78: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Agent Summary

Agents interact with environments through actuators and sensors

The agent function describes what the agent does in all circumstances

The performance measure evaluates the environment sequence

A perfectly rational agent maximizes expected performance

Agent programs implement (some) agent functions

PEAS descriptions define task environments

Environments are categorized along several dimensions:observable? deterministic? episodic? static? discrete? single-agent?

Several basic agent architectures exist:reflex, reflex with state, goal-based, utility-based, learning

Janyl Jumadinova Agents 22–27 January, 2020 32 / 32

Page 79: Agents - Artificial Intelligence @ Allegheny CollegeAgents exhibit autonomy, they have control over their state, execution and behavior. Agents exhibit goal-directed, reactive and

Agent Summary

Agents interact with environments through actuators and sensors

The agent function describes what the agent does in all circumstances

The performance measure evaluates the environment sequence

A perfectly rational agent maximizes expected performance

Agent programs implement (some) agent functions

PEAS descriptions define task environments

Environments are categorized along several dimensions:observable? deterministic? episodic? static? discrete? single-agent?

Several basic agent architectures exist:reflex, reflex with state, goal-based, utility-based, learning

Janyl Jumadinova Agents 22–27 January, 2020 32 / 32