02-Agents and Environments
02-Agents and Environments
1
OUTLINE
•An agent should strive to "do the right thing", based on what
it can perceive and the actions it can perform
•The right action is the one that will cause the agent to be
most successful
Priori: something known without experience or sense data
Performance measure: An objective criterion for success of
an agent's behavior
E.g., performance measure of a vacuum-cleaner agent
could be
amount of dirt cleaned up, amount of time taken, amount
of electricity consumed, amount of noise generated, etc.
Rational Agent: For each possible percept sequence, a rational
agent should select an action that is expected to maximize its
performance measure, given the evidence provided by the percept
sequence and whatever built-in knowledge the agent has
Performance measure
Environment
Actuators
Sensors
ENVIRONMENTS
Must - PEASfor intelligent agent
first specify the setting
design
Agent: an automated taxi driver
Performance measure: Safe, fast, legal, comfortable trip,
maximize profits
Environment: Roads, other traffic, pedestrians, customers
Actuators: Steering wheel, accelerator, brake, signal, horn
PEAS -AUTOMATED TAXI DRIVER
Sensors: Cameras, sonar, speedometer, GPS, odometer,
engine sensors, keyboard.
PEAS - MEDICAL DIAGNOSIS SYSTEM
Stochastic: There can be more than one next state, for a given
state-action combination.
Uncertainty about outcomes is quantified in terms of
probabilities
Taxi Driving is clearly stochastic (cannot predict traffic)
• The real world is (of course) partially observable, stochastic, sequential, dynamic,
continuous, multi-agent.
STRUCTURE OF AGENTS
25
SIMPLE REFLEX AGENTS
Applies condition-
action rules based
only on the current
input (reflex)
Automated Taxi:
Agent observes rain falling on the windshield: Agent powers on the viper
Agent observes a red signal; Agent breaks the taxi until it stops.
28
MODEL-BASED REFLEX AGENTS
30
Along with the model, you need
goals to direct the agent
function.
GOAL-BASED AGENTS
Automated Taxi:
Consider the agent at a crossing, where it can turn right, left, or go straight
Using the model, the Agent can understand the consequences of turning left,
right or going straight ahead
All 3 might seem the optimal actions to take
GOAL-BASED AGENTS
However, the agent needs to select one of these actions in order to reach the
32
33
UTILITY-BASED AGENTS
36
Thank You!
37