An agent is anything that can be viewed as perceiving its environment through Sensors and acting upon that environment through actuators. The simplest kind of agent is the simple reflex agent. These agents select actions on the basis of the current percept ignoring the rest of the percept history.
Simple reflex agents have the admirable property of being simple but they turn out to be of very limited intelligence. The schematic diagram of simple reflex agent is shown below.
GET INSTANT HELP FROM EXPERTS!
- Looking for any kind of help on your academic work (essay, assignment, project)?
- Want us to review, proofread or tidy up your work?
- Want a helping hand so that you can focus on the more important tasks?
Hire us as project guide/assistant. Contact us for more information
Schematic diagram of a simple reflex agent
The agent shown above will work only if the correct decision can be made on the basis of only the current percept that is only if the environment is fully observable.
Aim: Implement a reflex agent in Prolog. Example – Vacuum cleaner
To understand the nature of intelligent agents and its environments
LOGIC:
The logic in program is based in this simple reflex agent function
Function REFLEX-VACUUM-AGENT (location, status)
If status=dirty then suck
Else if location=A the return right
Else if location=B then return left.
Note that the vacuum agent program is very small compared to its percept-action table. The most obvious reduction comes from ignoring the percept history which cuts down the number of possibilities. This program is simple reflex agent because its decision is based only on the current location and on whether that contains dirt.
CONCLUSION:
The program runs in an infinite loop because it is working in a partially observable environment. Escape from infinite loop is possible if the agent can randomize its actions.
StudyMumbai.com is an educational resource for students, parents, and teachers, with special focus on Mumbai. Our staff includes educators with several years of experience. Our mission is to simplify learning and to provide free education. Read more about us.
Leave a Reply
You must be logged in to post a comment.