# Fuzzy Approach.

## Presentation on theme: "Fuzzy Approach."— Presentation transcript:

Fuzzy Approach

Crisp Vs Fuzzy Crisp boundary Membership value 1 young old 25 age
25 age CS 331/531 Dr M M Awais

Crisp Vs Fuzzy young Fuzzy boundary Membership value 1 old 30 25 age
25 age CS 331/531 Dr M M Awais

Crisp Vs Fuzzy MV of young is 1 young MV of old is 0 Membership value
30 25 age Fuzzy Young CS 331/531 Dr M M Awais

Crisp Vs Fuzzy Some what young MV varies from 0.5 to 1 young
Membership value 0.5 old 30 25 age CS 331/531 Dr M M Awais

Crisp Vs Fuzzy Some what young young Nearly old Membership value
MV varies from 0.5 to 0 1 Membership value 0.5 old 30 25 age CS 331/531 Dr M M Awais

Fuzzy Rule Base System Fuzzify each antecedent
Find the fuzzy value for the conclusion Defuzzify this value CS 331/531 Dr M M Awais

Fuzzify the conditions
IF TEMP. 20C and HUMDITY 20% THEN THERMOSTAT HIGH temp Membership value Fuzzify the conditions CS 331/531 Dr M M Awais

Fuzzify the conditions
IF TEMP. 20C and HUMDITY 20% THEN THERMOSTAT HIGH temp Membership value Hum Membership value Fuzzify the conditions CS 331/531 Dr M M Awais

Fuzzify the conclusion
IF TEMP. 20C and HUMDITY 20% THEN THERMOSTAT HIGH temp Membership value Hum Membership value THERMO Membership value Fuzzify the conclusion CS 331/531 Dr M M Awais

Find the membership for Temp 20
IF TEMP. 20C and HUMDITY 20% THEN THERMOSTAT HIGH temp Membership value Hum Membership value THERMO Membership value 0.6 20 Find the membership for Temp 20 CS 331/531 Dr M M Awais

Find the membership for humidity 20%
IF TEMP. 20C and HUMDITY 20% THEN THERMOSTAT HIGH Hum Membership value THERMO Membership value temp Membership value 0.6 0.3 20 20 Find the membership for humidity 20% CS 331/531 Dr M M Awais

Transfer the values to find the membership value of Thermo
IF TEMP. 20C and HUMDITY 20% THEN THERMOSTAT HIGH Transfer the min value as and operator exists between conditions temp Membership value Hum Membership value THERMO Membership value 0.6 0.3 20 20 Transfer the values to find the membership value of Thermo CS 331/531 Dr M M Awais

Transfer the values to find the membership value of Thermo
IF TEMP. 20C and HUMDITY 20% THEN THERMOSTAT HIGH Transfer the min value as and operator exists between conditions temp Membership value Hum Membership value THERMO Membership value 0.6 0.3 20 20 Min(0.3,0.6) Transfer the values to find the membership value of Thermo CS 331/531 Dr M M Awais

Transfer the values to find the membership value of Thermo
IF TEMP. 20C and HUMDITY 20% THEN THERMOSTAT HIGH temp Membership value Hum Membership value THERMO Membership value 0.6 0.3 0.3 20 20 Transfer the values to find the membership value of Thermo CS 331/531 Dr M M Awais

Defuzzify the membership value of Thermo
IF TEMP. 20C and HUMDITY 20% THEN THERMOSTAT HIGH temp Membership value Hum Membership value THERMO Membership value 0.6 0.3 0.3 25 20 20 Defuzzify the membership value of Thermo CS 331/531 Dr M M Awais

The new thermo setting is 25 after this rule fires
IF TEMP. 20C and HUMDITY 20% THEN THERMOSTAT HIGH temp Membership value Hum Membership value THERMO Membership value 0.6 0.3 0.3 25 20 20 The new thermo setting is 25 after this rule fires CS 331/531 Dr M M Awais