Professional Documents
Culture Documents
Fuzzy Logic
Fuzzy Logic
Cold Hot
0 1
Cold Hot
[0 , 1]
Boolean logic can have only two possible values as 0/1, yes/no,
right/wrong etc.
Fuzzy logic can be multi valued. It can have relative values like yes, no, not
so much, a little bit etc.
Artificial Intelligence: A Modern Approach Peter Norvig and Stuart J.
Fuzzy logic vs Probability theory
Imperfection
Uncertainty Vagueness
Probability
Fuzzy Logic
Theory
Slow Fast
Speed = 0 Speed = 1
bool speed;
get the speed
if ( speed == 0) {
// speed is
slow
}
else {
// speed is
fast
Artificial Intelligence: A Modern Approach
} Peter Norvig and Stuart J.
Fuzzy Logic Representation
Slowest
[0.00 - 0.25 [
Fastest
[ 0.75 – 1.00 ]
A B
Fuzzy Set
A Fuzzy Set is any set that allows its members to have
different grades of membership (membership function) in the
interval [0,……,1]
Centre
The centre of a fuzzy set F is the point (or
points) at which µF(u) achieves its maximum
value.A Modern Approach
Artificial Intelligence: Peter Norvig and Stuart J.
Fan Example
The input to the fuzzy system is the output of the process, which is
entered into the system via input interfaces.
Example: Temperature control application, the input data would be
entered using an analog input module
Input is then moved through the fuzzy logic process
Fuzzification
The fuzzy controller receives the input data, it translates it into a
fuzzy form.
Fuzzy processing (fuzzy controller)
The controller then performs fuzzy processing, which involves the
evaluation of the input information according to IF…THEN rules
created by the user during the fuzzy control system’s programming
and design stages.
Defuzzification
Once the fuzzy controller finishes the rule-processing stage and
arrives at an outcome conclusion, it begins the defuzzification process
Artificial Intelligence: A Modern Approach Peter Norvig and Stuart J.
Fuzzy logic process (Input)
Examples:
IF temperature IS very cold THEN stop air conditioner
IF temperature IS normal THEN adjust air conditioner
IF temperature IS hot THEN start air conditioner