### FUZZY LOGIC

Hi friends,

One of my junior asked me about FUZZY LOGIC.. so i learned about it.. i would like to share it with you all..

so it is..

if you ask me for the definition.. i would say as it is given in the Wikipedia..

if someone is asked to write coding for controlling the fan switch.. probably the algorithm would be as

=>IF temperature IS HOT, switch ON the fan.. ELSE, switch OFF the fan..

this is crisp logic.. binary logic.. the term hot is considered as TRUE(1) and the rest considered as FALSE(0)..so when the sensor gives certain value nearer to hot and more than the median.. it will be considered as TRUE(1)..

But in the case of FUZZY LOGIC.. there are many values are given between the TRUE and FALSE..

if we are writing the same program in FUZZY LOGIC.. the coding would be..

=>IF temperature IS very cold THEN stop fan

=>IF temperature IS cold THEN turn down fan

=>IF temperature IS normal THEN maintain level

=>IF temperature IS hot THEN speed up fan

Thus the TRUE (1) and the FALSE(0) as many values between them.. fuzzy works on IF... THEN.. rather than IF.. ELSE..

In case of FUZZY LOGIC, we have ranges between the TRUE and FALSE..

if you ask for another example..

consider a 100ml glass with 30ml water in it.. and someone is asking, is that glass full?..

the control system designed using this logic is FUZZY CONTROL SYSTEM...

hope i have explained mean for FUZZY LOGIC.. if you have any clarification.. post me.. i will clear it..

One of my junior asked me about FUZZY LOGIC.. so i learned about it.. i would like to share it with you all..

so it is..

**FUZZY LOGIC**if you ask me for the definition.. i would say as it is given in the Wikipedia..

but if you ask me to explain.. i would be saying as below.."Fuzzy logicis a form of many-valued logic derived from fuzzy set theory to deal with reasoning that is robust and approximate rather than brittle and exact."

if someone is asked to write coding for controlling the fan switch.. probably the algorithm would be as

=>IF temperature IS HOT, switch ON the fan.. ELSE, switch OFF the fan..

this is crisp logic.. binary logic.. the term hot is considered as TRUE(1) and the rest considered as FALSE(0)..so when the sensor gives certain value nearer to hot and more than the median.. it will be considered as TRUE(1)..

But in the case of FUZZY LOGIC.. there are many values are given between the TRUE and FALSE..

if we are writing the same program in FUZZY LOGIC.. the coding would be..

=>IF temperature IS very cold THEN stop fan

=>IF temperature IS cold THEN turn down fan

=>IF temperature IS normal THEN maintain level

=>IF temperature IS hot THEN speed up fan

Thus the TRUE (1) and the FALSE(0) as many values between them.. fuzzy works on IF... THEN.. rather than IF.. ELSE..

In case of FUZZY LOGIC, we have ranges between the TRUE and FALSE..

if you ask for another example..

consider a 100ml glass with 30ml water in it.. and someone is asking, is that glass full?..

__case i:__if you are saying that glass is empty since the water is less than half of the glass... then this is crisp(binary) logic...__case ii:__if you are saying that glass is 30% full and 70% empty.. then this is FUZZY LOGIC..the control system designed using this logic is FUZZY CONTROL SYSTEM...

hope i have explained mean for FUZZY LOGIC.. if you have any clarification.. post me.. i will clear it..

## Recent Comments