Professional Documents
Culture Documents
Parimal Acharjee
Professor
Electrical Engineering Department
NIT Durgapur
Fuzzy logic is not logic that is fuzzy, but logic that is used to
describe fuzziness. Fuzzy logic is the theory of fuzzy sets, sets
that calibrate vagueness.
Fuzzy logic is based on the idea that all things admit of degrees.
Temperature, height, speed, distance, beauty all come on a
sliding scale. The motor is running really hot. Tom is a very tall
guy.
Why logic?
Fuzziness rests on fuzzy set theory, and fuzzy logic is just a small
part of that theory.
How
How do
do II park
park the
the car?
car?
Till Today
1977 Dubois applied fuzzy set
1965
Lotfi A. Zadeh introduced a paper on fuzzy set
development
Parimal Acharjee, Professor, NIT Durgapur
Advantages of Fuzzy Logic
time.
Using ‘If…Then’ rules to achieve higher degree automation.
Degree of Membership
Name Height, cm
Crisp Fuzzy
Chris 208 1 1.00
Mark 205 1 1.00
John 198 1 0.98
Tom 181 1 0.82
David 179 0 0.78
Mike 172 0 0.24
Bob 167 0 0.15
Steven 158 0 0.06
Bill 155 0 0.01
Peter 152 0 0.00
Parimal Acharjee, Professor, NIT Durgapur
Crisp and Fuzzy sets of ‘tall men’
Degree of
Membership Crisp Sets
1.0
0.8
Tall Men
0.6
0.4
0.2
0.0
150 160 170 180 190 200 210
Height, cm
Degree of Fuzzy Sets
Membership
1.0
0.8
0.6
0.4
0.2
0.0
150 160 170 180 190 200 210
Height, cm
Parimal Acharjee, Professor, NIT Durgapur
Crisp and Fuzzy sets of shorts, average and tall
men
Degree of Crisp Sets
Membership
1.0
0.8 Short Average Short
Tall
Tall Men
0.6
0.4
0.2
0.0
150 160 170 180 190 200 210
Height, cm
Degree of
Membership Fuzzy Sets
1.0
0.8
0.4
0.2 Tall
0.0
150 160 170 180 190 200 210
Membership function
0
10 30 50 70 90 110
Temp. (F°)
0
10 30 50 70 90 110
Temp. (F°)
How cool is 36 F° ?
It is 30% Cool and 70% Freezing
0.7
0.3
0
10 30 50 70 90 110
Temp. (F°)
A B
AB AB A
Fuzzification
Scales and maps input variables to fuzzy sets
Inference Mechanism
Approximate reasoning
Deduces the control action
Defuzzification
Convert fuzzy output values to control signals
IF x is A
THEN y is B
IF project_duration is long
AND project_staffing is large
AND project_funding is inadequate
THEN risk is high
IF service is excellent
OR food is delicious
THEN tip is generous
IF temperature is hot
THEN hot_water is reduced;
cold_water is increased
100
t If Hot
s
90 Bl a then
Blast
80 Fa
st
If Warm
then
70 Fast
60
Med If Just Right
iu m then
50 Medium
40 Sl IF Cool
ow
then
30 Slow
if Cold
20
then Stop
10
St
op
t
ol
Ho
ar
Co
Co
W
Ri g t
ht
Jus
ld
In our model we have taken the Scaling Factors as Ge=1, Gde=5, Gu=5.
B
1.2 C
1
if 𝛥e is NB and e is NB then u is NB.
0.8
A D
0.6
if 𝛥e is PS and e is NS then u is ZE.
0.2
0
0 5 10 15 20 25 30 35 40
𝛥e
e NB NM NS ZE PS PM PB
NB NB NB NB NB NM NS ZE
NM NB NB NB NM NS ZE PS
NS NB NB NM NS ZE PS PM
ZE NB NM NS ZE PS PM PB
PS NM NS ZE PS PM PB PB
PM NS ZE PS PM PB PB PB
PB ZE PS PM PB PB PB PB
Parimal Acharjee, Professor, NIT Durgapur
Parimal Acharjee, Professor, NIT Durgapur
Parimal Acharjee, Professor, NIT Durgapur
Motivating Example:
Swerving Robot
If Input 1 = x and Input 2 = y, then Output is:
z = ax + by + c
• It is computationally efficient.
• It works well with linear techniques (e.g., PID
control).
• It works well with optimization and adaptive
techniques.
• It has guaranteed continuity of the output surface.
• It is well suited to mathematical analysis.
Parimal Acharjee, Professor, NIT Durgapur
Advantages of the Mamdani Method
• It is intuitive.
• It has widespread acceptance.
• It is well suited to human input.
• It can be apply with other techniques such
as evolutionary computation (EC) and
ANN.
Parimal Acharjee, Professor, NIT Durgapur
Limitations of Fuzzy Controller
Application specific.
Expert Systems
Control Units
Bullet train between Tokyo and Osaka
Video Cameras
Automatic Transmissions
ABS Brakes
Refrigerator
Air Condition
Washing Machine