Fuzzy Logic
Fuzzy Logic
Fuzzy Logic
T.C.Kanish
Assistant Professor (Sr.)
VIT University
OVERVIEW
| What is Fuzzy Logic?
| Definition of fuzzy
y Fuzzy – “not clear, distinct, or precise; blurred”
- Lotfi Zadeh
FUZZY LOGIC COME FROM
| Concept of Fuzzy Logic (FL) was conceived by Lotfi
Zadeh, a professor at the University of California at
Berkley, and presented not as a control methodology,
Slow Fast
Speed = 0 Speed = 1
bool speed;
get the speed
if ( speed == 0) {
// speed is slow
}
else {
// speed is fast
}
FUZZY LOGIC REPRESENTATION
Slowest
| For every problem
[ 0.0 – 0.25 ]
must represent in
terms of fuzzy sets.
Slow
[ 0.25 – 0.50 ]
Fast
[ 0.50 – 0.75 ]
Fastest
[ 0.75 – 1.00 ]
FUZZY LOGIC REPRESENTATION
CONT.
| Fuzzy Calculus
y Neural Networks
systems.
FUZZY OPERATIONS
A B
A∧B A∨B ¬A
CONTROLLER STRUCTURE
| Fuzzification
y Scales and maps input variables to fuzzy sets
| Inference Mechanism
y Approximate reasoning
y Deduces the control action
| Defuzzification
y Convert fuzzy output values to control signals
SIMPLE FUZZY CONTROLLER
FUZZY LOGIC IN CONTROL
SYSTEMS
| Some Examples
y Temperature Controller
100
st If Hot
90 Bl a then
Blast
80 Fa
st If Warm
then
70 Fast
60
Med If Just Right
ium then
50 Medium
40 IF Cool
Sl
ow then
30 Slow
if Cold
20
then Stop
10
St
op
1
m
t
ol
Ho
ar
Co
W
Co
Rig t
ht
Jus
ld
45 50 55 60 65 70 75 80 85 90
MAPPING INPUTS TO OUTPUTS
1
0
100
st
90 Bla t
80 Fa
st
70
60
Med
ium
50
40
Sl
ow
30
20
10
St
op
1
m
t
ol
Ho
ar
Co
W
Co
Rig t
ht
Jus
ld
45 50 55 60 65 70 75 80 85 90
TEMPERATURE CONTROLLER
| The problem
y Change the speed of a heater fan, based off the room
temperature and humidity.
| A temperature control system has four settings
y Cold, Cool, Warm, and Hot
| Humidity can be defined by:
y Low, Medium, and High
| Using this we can define
the fuzzy set.
BENEFITS OF USING FUZZY LOGIC
ANTI LOCK BREAK SYSTEM ( ABS )
| Nonlinear and dynamic in nature
| Inputs for Intel Fuzzy ABS are derived from
y Brake
y 4 WD
y Feedback
y Wheel speed
y Ignition
| Outputs
y Pulsewidth
y Error lamp
FUZZY LOGIC IN OTHER FIELDS
| Business
| Hybrid Modeling
| Expert Systems
FUZZY LOGIC USING MATLAB
PRIMARY GUI Tools
We can use five primary GUI tools for building,
editing, and observing fuzzy inference systems in
the toolbox
| Fuzzy Inference System (FIS) Editor
| Membership Function Editor
| Rule Editor
| Rule Viewer
| Surface Viewer
PRIMARY GUI TOOLS
User Interface Layout: Getting Started
User Interface Layout: FIS Editor
UI Layout: MF Editor - Service
UI LAYOUT: MF EDITOR -FOOD
UI Layout: MF Editor - Tip
User Interface Layout: Rule Editor
User Interface Layout: Rule Viewer
User Interface Layout: Surface Viewer
CONCLUSION