Introduction To Planning
Introduction To Planning
CHAPTER
INTRODUCTION TO
PLANNING 6
O What is Planning?
3 Types of Planning
O The Blocks World Problem
OComponents of Planning System
What is Uncertainty in AI?
3 Reasons for Uncertainty in Artificial Intelligence
Nonmonotonic Logics
3 Probabilistic Reasoning in Al -Away todeal with Uncertainty
3 What is Bayes Theorem in AI?
3 Challenges to probabilistic approaches:
3 Fuzzy Logic
S Architecture
Membership function :
Advantages of Fuzzy LogicSystem
Disadvantages of Fuzzy Logic Systems
5 Application
Review Questions
6.2 Artificial Intelligence
Types of Planning in AI
B A C
Start State
Goal State
. PUTDOWN(A)
the table.
> put block A on
blockA
> the arm must have holding
used: Ontable(A) Block A is on the table
Predicates canbe
On(A,B) Block A is on Block B
Clear(A) nothing stands on A
Armempty robot hand is empty
Holding(A) robot hand holds A
Action
(a) Move block C on the Table
"Holding( C) C
B A
"Ontable ((C)
"Arm empty
"Clear (A)
(b) Move block Bon block C
"Ontable (B)
B
Holding (B)
. On (B,C) A C
" Armempty
(c) Move block Aon
block B A
"Ontable (A)
" Holding(A) B
" On
(A, B) C
" Armempty
6.6 Artificial Intelligence
Do)- specifies that a new state result from the given action
The result ofapplying this to state S, to give S, by applying UNSTACK is
HOLDING(A, S1) ^ CLEAR(B, S1)
Oneproblem with this approach is, Bis still on the table.
This needs to be encoded into frame axioms that describe
affected by the operator. components of the state not
So, it must be,
PUTDOWN()
P: HOLDING(X) (precondition)
D: HOLDING(X) (delete)
A:ONTABLE(x) AARMEMPTY (add)
A A
B B B
A B C A C C C
6.4 What is
"
Uncertainty in AI?
When we talkabout
perceiving information fromthe environment,then the main problem that
aises Is that there is always some uncertainty is our observations. This is because the world is
an
So, enormous entity and the surroundings that we take under study is not always well defined.
there needs to be an estimation taken for getting to any conclusion.
Human being face this uncertainty daily that too many times. But still, they manage to take
successful decisions. This is because humans have strong estimating and decision making
power and their brains function in such a way that every time such asituation arises, the
alternative with the maximum positive output is chosen. But, the artificial agents are not
able to take proper decisions while working in such an environment. This is because, if the
information available to them is not accurate, then they
their knowledge base. cannotchoose the right decision from
6.10 Artificial Intelligence
Uncertainty Example
Taking a real life example, while buying vegetables, humans can easily distinguish
different kinds of vegetables by their color, sizes, textures, etc. But there is uncertainty inbetm
ween thethe
right choices here, because the vegetables may not be exactly the same as described. Some ofe making
may be distorted, some may vary than the usual size and there can be many such variations.
spite of allof them,humans do not face any problem in situations like these. Butin
But, this same thing becomes a hurdle when the decision is to be made by a computer based aoe.
Because, we can feed the agent by the information that how the vegetables look, but still we can.
accurately define the exact shape and size of each of them, because all of them have some variation.
So, as a solution to this, only the basic information is provided to the agent. Based on this yen,
information,the agent has to make certain estimates to find out which vegetable is kept in front of t
Not only in this agent, but in designing almost every Al based agent, this strategy is followed. So, ther:
should be a proper method so that the agent can make certain estimations by itself without any heln
or input from human beings.
when new axioms are added. In contrast, in a system doing non-monotonic reasoning
of conclusions may either grow or shrink when new information is obtained.
Introduction to Planning 6.11
Theorem
DerivationofBayes
P(A ^B)
P(B)-= P(B)
Similarly
P(A ^B)
PB|A)= P(A ^B) = P (B|A) P (B)
P(B)
+No/0
+ Very much/0.9
Fuzzy
Is it hot water? +Little/0.25
Logic
+ Very less/0. 1
6.14 Artificial Intelligence
Rule Base
Inference
Fuzzy Enginee Fuzzy
Input Output
" RULE BASE: It contains the set of rules and the IF-THEN conditions provided by the experts to
govern the decision-making system, on the basis oflinguistic information. Recent developments
in fuzzy theory offer several effective methods for the design and tuning of fuzzy controllers.
Most of these developments reduce the number of fuzzy rules.
FUZZIFICATION: It is used to convert inputs i.e. crisp numbers into fuzzy sets. Crisp inputs
are basically the exact inputs measured by sensors and passed into the control system tor
processing, such as temperature, pressure, rpm's, etc.
" INFERENCE ENGINE: It determines the matching degree of the current fuzzy input with
respect to each rule and decides which rules are to be fired according to the input field. Next,
thefired rules are combined to form the control actions.
" DEFUZZIFICATION: It is used to convert the fuzzy sets obtained by the inference engine
into
one is
a crisp value. There are several defuzzification methods available and the best-suited
used with a specific expert system to reduce the error.
Membership
Function
LN MN
1 MP LP
0.5
Input Voltage
-10 -5 +5 +10
6.7.4
Disadvantages of Fuzzy Logic Systems
Disadvantages of Fuzzy Logic Systems
1. Many
researchers proposed different ways to solve a given problem through fuzzy logic
which leads to ambiguity. There is no systematic approach to solve agiven problemthrough
2.
fuzzy logic.
Proof of its characteristicsis difficult or impossible in most cases because every time we do
not get a
3. As mathematical description of our approach.
fuzzy logic works on precise as well as imprecise data so most of the time accuracy is
Compromised.
6.16 Artificial Intelligence
6.7.5 Application
spacecraft and satellites.
" It isused in the aerospace field for altitude control of
control, traffic control.
" It has been used in the automotive system for speed
the large combany
It is used for decision-making support systems and personal evaluation in
business.
the pH, drying, chemical distillation
" It has application in the chemical industry for controlling
process.
various intensive applications in
Fuzzy logic is used in Natural language processing and
Artificial Intelligence.
systems such as expert systems.
" Fuzzy logic is extensively used in modern control
mimics how a person wouldmake decisions
" Fuzzy Logic is used with Neural Networks as it
changing it into more meaningful data
only much faster. It is done by Aggregation of data and
by forming partial truths as Fuzzy sets.
Summary
of determining a
Planning in the context of artificial intelligence (AI) refers to the process
problem.
sequence of actionsor decisions to achieve a specific goal or solve a
Goal, Actions, Transition Model, Search
" Different stages of planning are : Initial State,
Algorithm, Plan Representation &Plan Execution and Monitoring.
Backward State Space
Types of planning:Forward State Space Planning (FSSP) &
Planning (BSSP)
" Forward State Space Planning (FSSP) : FSSP behaves in the same way as forwarding
stale"
necessaly
space search. It says that given an initial state S in any domain, we perform some
actions and obtain a new state S(which also contains some new terms), called a progress
Backward State Space Planning (BSSP): BSSP behaves in a similar fashion like finding backNa
the
fromthe goal state gtowardssub-goal g'thatis
state space search. In this, we move
previous action to be done tto achieve that respective goal. This process is
called regression
donain
This
" One of the most famous planning domains is known as the blocks world. stacked.buton
consists of a set of cube-shaped blocks sitting on atable. The blocks can be and move it
block
one block can fit directly on top of another. Arobot arm can pick up a onlyone
pickup
another position, either on the table or on top of another block. The arm can goalwillalways
block at atime, so it cannot piCk up a bl0Ck that has another one on The ofwhat
ontop
be to build one or more stacks of blocks, specified in terms of what blocks are
other blocks. For example, a. goal might be to get block Aon Band block Bon C.
Components of planning system: heuristics
º Choose the best rulefor applying the next rule based on the best available
º Apply the chosen rule for computing the new problem state.
found.
r Detect when a solution has been
Introduction to Planning 6.17
"
decision-making,concept
is
based on the
rules.
it allows for partial truths, and it is used in a wide range of applications. It
of membership function and the implementation is done using Fuzzy
The
users
xto
tOmembership function i is afunction which represents the graph of fuzzy sets, and allows
quantify the linguisticterm, It is a graph which is used for mapping each element of
the value
between 0 and 1.
6.18 Artificial Intelligence