SlideShare ist ein Scribd-Unternehmen logo
1 von 24
Soft Computing
           Fuzzy Logic
FUZZY LOGIC

Motivation

• Modeling of imprecise concepts
E.g. age, weight, height,…
• Modeling of imprecise dependencies (e.g. rules), e.g. if
Temperature is high and Oil is cheap then I will turn-on the
generator
• Origin of information
       - Modeling of expert knowledge
       -Representation of information extracted from
       inherentedly imprecise data
FUZZY LOGIC

To quantify and reason about fuzzy or vague terms of natural
language

Example:      hot, cold temperature
              small, medium, tall height
              creeping, slow, fast speed


Fuzzy Variable

A concept that usually has vague (or fuzzy) values
Example: age, temperature, height, speed
FUZZY LOGIC

Universe of Discourse

Range of possible values of a fuzzy variable
Example: Speed: 0 to 100 mph
FUZZY LOGIC
Fuzzy Set (Value)

Let X be a universe of discourse of a fuzzy variable and x be
      its elements
One or more fuzzy sets (or values) Ai can be defined over X

Example:      Fuzzy variable: Age
              Universe of discourse: 0 – 120 years
              Fuzzy values: Child, Young, Old

A fuzzy set A is characterized by a membership function
      µA(x) that associates each element x with a degree of
      membership value in A
The value of membership is between 0 and 1 and it
      represents the degree to which an element x belongs
      to the fuzzy set A
FUZZY LOGIC
Fuzzy Set (Value)

In traditional set theory, an object is either in a set or not in a
set (0 or 1), and there are no partial memberships

Such sets are called “crisp sets”
FUZZY LOGIC
Fuzzy Set Representation

Fuzzy Set A = (a1, a2, … an)

       ai = µA(xi)

       xi = an element of X
       X = universe of discourse

For clearer representation
       A = (a1/x1, a2/x2, …, an/xn)

Example: Tall = (0/5’, 0.25/5.5’, 0.9/5.75’, 1/6’, 1/7’, …)
FUZZY LOGIC
Fuzzy Set Representation

For a continuous set of elements, we need some function to
map the elements to their membership values

Typical functions: sigmoid, gaussian
FUZZY LOGIC
Formation of Fuzzy Sets

   • Opinion of a single person
   • Average of opinion of a set of persons
   • Other methods (e.g. function approximation from data
       by neural networks)
   • Modification of existing fuzzy sets
       - Hedges
       - Application of Fuzzy set operators
FUZZY LOGIC
Formation of Fuzzy Sets

Hedges: Modification of existing fuzzy sets to account for
      some added adverbs

Types:

Concentration (very)
      Square of memberships         Conc(µA(x)) = [µA(x)]2
      reduces small memberships values
             0.1 changes to 0.01 (10 times reduction)
             0.9 changes to 0.81 (0.1 times reduction)
      Example: very tall
FUZZY LOGIC
Formation of Fuzzy Sets

Dilation (somewhat)
       Square root of memberships
              Dil(µA(x)) = [µA(x)]1/2
       increases small memberships values
              0.09 changes to 0.3
              0.81 changes to 0.9
       Example: somewhat tall
FUZZY LOGIC

Fuzzy Sets Operations

Intersection (A  B)

In classical set theory the intersection of two sets contains
those elements that are common to both

In fuzzy set theory, the value of those elements in the
intersection:
              µA  B(x) = min [µA(x), µB(x)]

e.g.   Tall = (0/5, 0.1/5.25, 0.5/5.5, 0.8/5.75, 1/6)
       Short = (1/5, 0.8/5.25, 0.5/5.5, 0.1/5.75, 0/6)
       Tall  Short = (0/5, 0.1/5.25, 0.5/5.5, 0.1/5.75, 0/6)
                       = Medium
FUZZY LOGIC

Fuzzy Sets Operations

Union (A  B)

In classical set theory the union of two sets contains those
elements that are in any one of the two sets

In fuzzy set theory, the value of those elements in the union:
               µA  B(x) = max [µA(x), µB(x)]

e.g.   Tall = (0/5, 0.1/5.25, 0.5/5.5, 0.8/5.75, 1/6)
       Short = (1/5, 0.8/5.25, 0.5/5.5, 0.1/5.75)
       Tall  Short = (1/5, 0.8/5.25, 0.5/5.5, 0.8/5.75, 1/6)
                       = not Medium
FUZZY LOGIC

Fuzzy Sets Operations

Complement (A)

In fuzzy set theory, the value of complement of A is:
               µ  A(x) = 1 - µA(x)

e.g.   Tall = (0/5, 0.1/5.25, 0.5/5.5, 0.8/5.75, 1/6)
        Tall = (1/5, 0.9/5.25, 0.5/5.5, 0.2/5.75, 0/6)
FUZZY RULES

Fuzzy Rules

Relates two or more fuzzy propositions

       If X is A then Y is B

e.g. if height is tall then weight is heavy

X and Y are fuzzy variables
A and B are fuzzy sets
FUZZY LOGIC

Fuzzy Relations
Classical relation between two universes
U = {1, 2} and V = {a, b, c} is defined as:

                              a      b        c

       R=UxV= 1               1      1        1
              2               1      1        1



 Example:
 U = Weight (normal, over)
 V = Height (short, med, tall)
FUZZY LOGIC

Fuzzy Relations

Fuzzy relation between two universes U and V is defined as:

      µR (u, v) = µAxB (u, v) = min [µA (u), µB (v)]

i.e. we take the minimum of the memberships of the two
elements which are to be related
FUZZY LOGIC

Fuzzy Relations

Example:

Determine fuzzy relation between A1 and A2

A1 = 0.2/x1 + 0.9/x2
A2 = 0.3/y1 + 0.5/y2 + 1/y3

The fuzzy relation R is

R = A1 x A2 = 0.2     x       0.3 0.5 1
              0.9
FUZZY LOGIC

Fuzzy Relations

Example:

R = A1 x A2 = 0.2   x     0.3 0.5 1
              0.9

      =      min(0.2, 0.3) min(0.2, 0.5) min(0.2, 1)
             min(0.9, 0.3) min(0.9, 0.5) min(0.9, 1)

      =      0.2    0.2    0.2
             0.3    0.5    0.9
FUZZY LOGIC

Fuzzy Relations

R = R(A1, A2)                   A2
                               a23
      =      0.2   0.2   0.2   (1.0
             0.3   0.5   0.9   )

                                       0.2
                                a22           0.9
                                (0.5
                                )
                                       0.2    0.5
                                a21
                                (0.3
                                )      0.2     0.3
                                             a11     a12     A1
                                             (0.2)   (0.9)
FUZZY RULES

Fuzzy Associative Matrix

So for the fuzzy rule:
        If X is A then Y is B

We can define a fuzzy matrix M(nxp) which relates A to B

       M=Ax B

It maps fuzzy set A to fuzzy set B and is used in the fuzzy
inference process
FUZZY RULES

Fuzzy Associative Matrix

Concept behind M

       a1  b1        a1  b2 …
       a2  b1        …
       .
       .
       .

If a1 is true then b1 is true; and so on
FUZZY RULES

Approximate Reasoning

Example: Let there be a fuzzy associative matrix M for the
rule: if A then B

e.g. If Temperature is normal then Speed is medium

Let    A = [0/100, 0.5/125, 1/150, 0.5/175, 0/200]
       B = [0/10, 0.6/20, 1/30, 0.6/40, 0/50]
FUZZY RULES
Approximate Reasoning: Max-Min Inference

Let    A = [0/100, 0.5/125, 1/150, 0.5/175, 0/200]
       B = [0/10, 0.6/20, 1/30, 0.6/40, 0/50]
then
       M=     (0, 0) (0, 0.6) . . .
              (0.5, 0) . . .
              .
              .
              .

        =     0   0     0     0     0
              0   0.5   0.5   0.5   0   by taking the minimum
              0   0.6   1     0.6   0   of each pair
              0   0.5   0.5   0.5   0
              0   0     0     0     0

Weitere ähnliche Inhalte

Was ist angesagt?

Concept learning and candidate elimination algorithm
Concept learning and candidate elimination algorithmConcept learning and candidate elimination algorithm
Concept learning and candidate elimination algorithmswapnac12
 
Chapter 1 introduction to scaling networks
Chapter 1   introduction to scaling networksChapter 1   introduction to scaling networks
Chapter 1 introduction to scaling networksJosue Wuezo
 
Opearion on Fuzzy sets with Example
Opearion on Fuzzy sets with ExampleOpearion on Fuzzy sets with Example
Opearion on Fuzzy sets with ExampleKarthikeyan Sankar
 
Fuzzy rules and fuzzy reasoning
Fuzzy rules and fuzzy reasoningFuzzy rules and fuzzy reasoning
Fuzzy rules and fuzzy reasoningVeni7
 
PRML Chapter 7
PRML Chapter 7PRML Chapter 7
PRML Chapter 7Sunwoo Kim
 
Fuzzy Logic in the Real World
Fuzzy Logic in the Real WorldFuzzy Logic in the Real World
Fuzzy Logic in the Real WorldBCSLeicester
 
Fuzzy Logic ppt
Fuzzy Logic pptFuzzy Logic ppt
Fuzzy Logic pptRitu Bafna
 
FHSS- Frequency Hop Spread Spectrum
FHSS- Frequency Hop Spread SpectrumFHSS- Frequency Hop Spread Spectrum
FHSS- Frequency Hop Spread SpectrumRohit Choudhury
 
Simulation of Wireless Communication Systems
Simulation of Wireless Communication SystemsSimulation of Wireless Communication Systems
Simulation of Wireless Communication SystemsBernd-Peter Paris
 
Problem Formulation
Problem FormulationProblem Formulation
Problem FormulationAdri Jovin
 

Was ist angesagt? (20)

Concept learning and candidate elimination algorithm
Concept learning and candidate elimination algorithmConcept learning and candidate elimination algorithm
Concept learning and candidate elimination algorithm
 
Chapter 1 introduction to scaling networks
Chapter 1   introduction to scaling networksChapter 1   introduction to scaling networks
Chapter 1 introduction to scaling networks
 
Fuzzy logic
Fuzzy logicFuzzy logic
Fuzzy logic
 
HOPFIELD NETWORK
HOPFIELD NETWORKHOPFIELD NETWORK
HOPFIELD NETWORK
 
Opearion on Fuzzy sets with Example
Opearion on Fuzzy sets with ExampleOpearion on Fuzzy sets with Example
Opearion on Fuzzy sets with Example
 
FUZZY LOGIC
FUZZY LOGICFUZZY LOGIC
FUZZY LOGIC
 
Fuzzy rules and fuzzy reasoning
Fuzzy rules and fuzzy reasoningFuzzy rules and fuzzy reasoning
Fuzzy rules and fuzzy reasoning
 
PRML Chapter 7
PRML Chapter 7PRML Chapter 7
PRML Chapter 7
 
Fuzzy+logic
Fuzzy+logicFuzzy+logic
Fuzzy+logic
 
Fuzzy Logic in the Real World
Fuzzy Logic in the Real WorldFuzzy Logic in the Real World
Fuzzy Logic in the Real World
 
Wireless networking
Wireless networkingWireless networking
Wireless networking
 
An Introduction to OMNeT++ 5.1
An Introduction to OMNeT++ 5.1An Introduction to OMNeT++ 5.1
An Introduction to OMNeT++ 5.1
 
Propagation Models
Propagation ModelsPropagation Models
Propagation Models
 
Fuzzy Logic ppt
Fuzzy Logic pptFuzzy Logic ppt
Fuzzy Logic ppt
 
FHSS- Frequency Hop Spread Spectrum
FHSS- Frequency Hop Spread SpectrumFHSS- Frequency Hop Spread Spectrum
FHSS- Frequency Hop Spread Spectrum
 
Bat algorithm
Bat algorithmBat algorithm
Bat algorithm
 
Simulation of Wireless Communication Systems
Simulation of Wireless Communication SystemsSimulation of Wireless Communication Systems
Simulation of Wireless Communication Systems
 
L9 fuzzy implications
L9 fuzzy implicationsL9 fuzzy implications
L9 fuzzy implications
 
Problem Formulation
Problem FormulationProblem Formulation
Problem Formulation
 
Gsm signaling
Gsm signalingGsm signaling
Gsm signaling
 

Andere mochten auch (9)

L3 some other properties
L3 some other propertiesL3 some other properties
L3 some other properties
 
Fuzzy logic
Fuzzy logicFuzzy logic
Fuzzy logic
 
Chapter 5 - Fuzzy Logic
Chapter 5 - Fuzzy LogicChapter 5 - Fuzzy Logic
Chapter 5 - Fuzzy Logic
 
Neuro-fuzzy systems
Neuro-fuzzy systemsNeuro-fuzzy systems
Neuro-fuzzy systems
 
Fuzzy logic
Fuzzy logicFuzzy logic
Fuzzy logic
 
Songsong
SongsongSongsong
Songsong
 
Fuzzy logic systems
Fuzzy logic systemsFuzzy logic systems
Fuzzy logic systems
 
Fuzzy logic
Fuzzy logicFuzzy logic
Fuzzy logic
 
Fuzzy logic ppt
Fuzzy logic pptFuzzy logic ppt
Fuzzy logic ppt
 

Ähnlich wie Lecture 29 fuzzy systems

- Fuzzy Systems -II.pptx
- Fuzzy Systems -II.pptx- Fuzzy Systems -II.pptx
- Fuzzy Systems -II.pptxRamya Nellutla
 
Introduction to Artificial Intelligence
Introduction to Artificial IntelligenceIntroduction to Artificial Intelligence
Introduction to Artificial IntelligenceManoj Harsule
 
00_1 - Slide Pelengkap (dari Buku Neuro Fuzzy and Soft Computing).ppt
00_1 - Slide Pelengkap (dari Buku Neuro Fuzzy and Soft Computing).ppt00_1 - Slide Pelengkap (dari Buku Neuro Fuzzy and Soft Computing).ppt
00_1 - Slide Pelengkap (dari Buku Neuro Fuzzy and Soft Computing).pptDediTriLaksono1
 
Fuzzy Logic.pptx
Fuzzy Logic.pptxFuzzy Logic.pptx
Fuzzy Logic.pptxImXaib
 
53158699-d7c5-4e6e-af19-1f642992cc58-161011142651.pptx
53158699-d7c5-4e6e-af19-1f642992cc58-161011142651.pptx53158699-d7c5-4e6e-af19-1f642992cc58-161011142651.pptx
53158699-d7c5-4e6e-af19-1f642992cc58-161011142651.pptxsaadurrehman35
 
Optimization using soft computing
Optimization using soft computingOptimization using soft computing
Optimization using soft computingPurnima Pandit
 
Fuzzy Group Ideals and Rings
Fuzzy Group Ideals and RingsFuzzy Group Ideals and Rings
Fuzzy Group Ideals and RingsIJERA Editor
 
Fuzzy logic and fuzzy time series edited
Fuzzy logic and fuzzy time series   editedFuzzy logic and fuzzy time series   edited
Fuzzy logic and fuzzy time series editedProf Dr S.M.Aqil Burney
 
Unit-II -Soft Computing.pdf
Unit-II -Soft Computing.pdfUnit-II -Soft Computing.pdf
Unit-II -Soft Computing.pdfRamya Nellutla
 
Fuzzy Set Theory
Fuzzy Set TheoryFuzzy Set Theory
Fuzzy Set TheoryAMIT KUMAR
 
Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)IJERD Editor
 
FUZZY IDEALS AND FUZZY DOT IDEALS ON BH-ALGEBRAS
FUZZY IDEALS AND FUZZY DOT IDEALS ON BH-ALGEBRASFUZZY IDEALS AND FUZZY DOT IDEALS ON BH-ALGEBRAS
FUZZY IDEALS AND FUZZY DOT IDEALS ON BH-ALGEBRASIAEME Publication
 
FUZZY IDEALS AND FUZZY DOT IDEALS ON BH-ALGEBRAS
FUZZY IDEALS AND FUZZY DOT IDEALS ON BH-ALGEBRASFUZZY IDEALS AND FUZZY DOT IDEALS ON BH-ALGEBRAS
FUZZY IDEALS AND FUZZY DOT IDEALS ON BH-ALGEBRASIAEME Publication
 
Herbrand-satisfiability of a Quantified Set-theoretical Fragment (Cantone, Lo...
Herbrand-satisfiability of a Quantified Set-theoretical Fragment (Cantone, Lo...Herbrand-satisfiability of a Quantified Set-theoretical Fragment (Cantone, Lo...
Herbrand-satisfiability of a Quantified Set-theoretical Fragment (Cantone, Lo...Cristiano Longo
 
It is known as two-valued logic because it have only two values
It is known as two-valued logic because it have only two values It is known as two-valued logic because it have only two values
It is known as two-valued logic because it have only two values Ramjeet Singh Yadav
 

Ähnlich wie Lecture 29 fuzzy systems (20)

- Fuzzy Systems -II.pptx
- Fuzzy Systems -II.pptx- Fuzzy Systems -II.pptx
- Fuzzy Systems -II.pptx
 
Fuzzy logic
Fuzzy logicFuzzy logic
Fuzzy logic
 
Introduction to Artificial Intelligence
Introduction to Artificial IntelligenceIntroduction to Artificial Intelligence
Introduction to Artificial Intelligence
 
Lecture 32 fuzzy systems
Lecture 32   fuzzy systemsLecture 32   fuzzy systems
Lecture 32 fuzzy systems
 
00_1 - Slide Pelengkap (dari Buku Neuro Fuzzy and Soft Computing).ppt
00_1 - Slide Pelengkap (dari Buku Neuro Fuzzy and Soft Computing).ppt00_1 - Slide Pelengkap (dari Buku Neuro Fuzzy and Soft Computing).ppt
00_1 - Slide Pelengkap (dari Buku Neuro Fuzzy and Soft Computing).ppt
 
Fuzzy Logic.pptx
Fuzzy Logic.pptxFuzzy Logic.pptx
Fuzzy Logic.pptx
 
53158699-d7c5-4e6e-af19-1f642992cc58-161011142651.pptx
53158699-d7c5-4e6e-af19-1f642992cc58-161011142651.pptx53158699-d7c5-4e6e-af19-1f642992cc58-161011142651.pptx
53158699-d7c5-4e6e-af19-1f642992cc58-161011142651.pptx
 
Optimization using soft computing
Optimization using soft computingOptimization using soft computing
Optimization using soft computing
 
Fuzzy Group Ideals and Rings
Fuzzy Group Ideals and RingsFuzzy Group Ideals and Rings
Fuzzy Group Ideals and Rings
 
Fuzzy logic and fuzzy time series edited
Fuzzy logic and fuzzy time series   editedFuzzy logic and fuzzy time series   edited
Fuzzy logic and fuzzy time series edited
 
Unit-II -Soft Computing.pdf
Unit-II -Soft Computing.pdfUnit-II -Soft Computing.pdf
Unit-II -Soft Computing.pdf
 
Fuzzy Set Theory
Fuzzy Set TheoryFuzzy Set Theory
Fuzzy Set Theory
 
9966850
99668509966850
9966850
 
WEEK-1.pdf
WEEK-1.pdfWEEK-1.pdf
WEEK-1.pdf
 
Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)
 
FUZZY IDEALS AND FUZZY DOT IDEALS ON BH-ALGEBRAS
FUZZY IDEALS AND FUZZY DOT IDEALS ON BH-ALGEBRASFUZZY IDEALS AND FUZZY DOT IDEALS ON BH-ALGEBRAS
FUZZY IDEALS AND FUZZY DOT IDEALS ON BH-ALGEBRAS
 
FUZZY IDEALS AND FUZZY DOT IDEALS ON BH-ALGEBRAS
FUZZY IDEALS AND FUZZY DOT IDEALS ON BH-ALGEBRASFUZZY IDEALS AND FUZZY DOT IDEALS ON BH-ALGEBRAS
FUZZY IDEALS AND FUZZY DOT IDEALS ON BH-ALGEBRAS
 
Herbrand-satisfiability of a Quantified Set-theoretical Fragment (Cantone, Lo...
Herbrand-satisfiability of a Quantified Set-theoretical Fragment (Cantone, Lo...Herbrand-satisfiability of a Quantified Set-theoretical Fragment (Cantone, Lo...
Herbrand-satisfiability of a Quantified Set-theoretical Fragment (Cantone, Lo...
 
Ch02 fuzzyrelation
Ch02 fuzzyrelationCh02 fuzzyrelation
Ch02 fuzzyrelation
 
It is known as two-valued logic because it have only two values
It is known as two-valued logic because it have only two values It is known as two-valued logic because it have only two values
It is known as two-valued logic because it have only two values
 

Mehr von university of sargodha (9)

Soft computing06
Soft computing06Soft computing06
Soft computing06
 
Soft computing01
Soft computing01Soft computing01
Soft computing01
 
Final taxo
Final taxoFinal taxo
Final taxo
 
Advance analysis of algo
Advance analysis of algoAdvance analysis of algo
Advance analysis of algo
 
Soft computing08
Soft computing08Soft computing08
Soft computing08
 
Prolog2 (1)
Prolog2 (1)Prolog2 (1)
Prolog2 (1)
 
Presentation1
Presentation1Presentation1
Presentation1
 
Cobi t riskmanagementframework_iac
Cobi t riskmanagementframework_iacCobi t riskmanagementframework_iac
Cobi t riskmanagementframework_iac
 
Soft computing09
Soft computing09Soft computing09
Soft computing09
 

Lecture 29 fuzzy systems

  • 1. Soft Computing Fuzzy Logic
  • 2. FUZZY LOGIC Motivation • Modeling of imprecise concepts E.g. age, weight, height,… • Modeling of imprecise dependencies (e.g. rules), e.g. if Temperature is high and Oil is cheap then I will turn-on the generator • Origin of information - Modeling of expert knowledge -Representation of information extracted from inherentedly imprecise data
  • 3. FUZZY LOGIC To quantify and reason about fuzzy or vague terms of natural language Example: hot, cold temperature small, medium, tall height creeping, slow, fast speed Fuzzy Variable A concept that usually has vague (or fuzzy) values Example: age, temperature, height, speed
  • 4. FUZZY LOGIC Universe of Discourse Range of possible values of a fuzzy variable Example: Speed: 0 to 100 mph
  • 5. FUZZY LOGIC Fuzzy Set (Value) Let X be a universe of discourse of a fuzzy variable and x be its elements One or more fuzzy sets (or values) Ai can be defined over X Example: Fuzzy variable: Age Universe of discourse: 0 – 120 years Fuzzy values: Child, Young, Old A fuzzy set A is characterized by a membership function µA(x) that associates each element x with a degree of membership value in A The value of membership is between 0 and 1 and it represents the degree to which an element x belongs to the fuzzy set A
  • 6. FUZZY LOGIC Fuzzy Set (Value) In traditional set theory, an object is either in a set or not in a set (0 or 1), and there are no partial memberships Such sets are called “crisp sets”
  • 7. FUZZY LOGIC Fuzzy Set Representation Fuzzy Set A = (a1, a2, … an) ai = µA(xi) xi = an element of X X = universe of discourse For clearer representation A = (a1/x1, a2/x2, …, an/xn) Example: Tall = (0/5’, 0.25/5.5’, 0.9/5.75’, 1/6’, 1/7’, …)
  • 8. FUZZY LOGIC Fuzzy Set Representation For a continuous set of elements, we need some function to map the elements to their membership values Typical functions: sigmoid, gaussian
  • 9. FUZZY LOGIC Formation of Fuzzy Sets • Opinion of a single person • Average of opinion of a set of persons • Other methods (e.g. function approximation from data by neural networks) • Modification of existing fuzzy sets - Hedges - Application of Fuzzy set operators
  • 10. FUZZY LOGIC Formation of Fuzzy Sets Hedges: Modification of existing fuzzy sets to account for some added adverbs Types: Concentration (very) Square of memberships Conc(µA(x)) = [µA(x)]2 reduces small memberships values 0.1 changes to 0.01 (10 times reduction) 0.9 changes to 0.81 (0.1 times reduction) Example: very tall
  • 11. FUZZY LOGIC Formation of Fuzzy Sets Dilation (somewhat) Square root of memberships Dil(µA(x)) = [µA(x)]1/2 increases small memberships values 0.09 changes to 0.3 0.81 changes to 0.9 Example: somewhat tall
  • 12. FUZZY LOGIC Fuzzy Sets Operations Intersection (A  B) In classical set theory the intersection of two sets contains those elements that are common to both In fuzzy set theory, the value of those elements in the intersection: µA  B(x) = min [µA(x), µB(x)] e.g. Tall = (0/5, 0.1/5.25, 0.5/5.5, 0.8/5.75, 1/6) Short = (1/5, 0.8/5.25, 0.5/5.5, 0.1/5.75, 0/6) Tall  Short = (0/5, 0.1/5.25, 0.5/5.5, 0.1/5.75, 0/6) = Medium
  • 13. FUZZY LOGIC Fuzzy Sets Operations Union (A  B) In classical set theory the union of two sets contains those elements that are in any one of the two sets In fuzzy set theory, the value of those elements in the union: µA  B(x) = max [µA(x), µB(x)] e.g. Tall = (0/5, 0.1/5.25, 0.5/5.5, 0.8/5.75, 1/6) Short = (1/5, 0.8/5.25, 0.5/5.5, 0.1/5.75) Tall  Short = (1/5, 0.8/5.25, 0.5/5.5, 0.8/5.75, 1/6) = not Medium
  • 14. FUZZY LOGIC Fuzzy Sets Operations Complement (A) In fuzzy set theory, the value of complement of A is: µ  A(x) = 1 - µA(x) e.g. Tall = (0/5, 0.1/5.25, 0.5/5.5, 0.8/5.75, 1/6)  Tall = (1/5, 0.9/5.25, 0.5/5.5, 0.2/5.75, 0/6)
  • 15. FUZZY RULES Fuzzy Rules Relates two or more fuzzy propositions If X is A then Y is B e.g. if height is tall then weight is heavy X and Y are fuzzy variables A and B are fuzzy sets
  • 16. FUZZY LOGIC Fuzzy Relations Classical relation between two universes U = {1, 2} and V = {a, b, c} is defined as: a b c R=UxV= 1 1 1 1 2 1 1 1 Example: U = Weight (normal, over) V = Height (short, med, tall)
  • 17. FUZZY LOGIC Fuzzy Relations Fuzzy relation between two universes U and V is defined as: µR (u, v) = µAxB (u, v) = min [µA (u), µB (v)] i.e. we take the minimum of the memberships of the two elements which are to be related
  • 18. FUZZY LOGIC Fuzzy Relations Example: Determine fuzzy relation between A1 and A2 A1 = 0.2/x1 + 0.9/x2 A2 = 0.3/y1 + 0.5/y2 + 1/y3 The fuzzy relation R is R = A1 x A2 = 0.2 x 0.3 0.5 1 0.9
  • 19. FUZZY LOGIC Fuzzy Relations Example: R = A1 x A2 = 0.2 x 0.3 0.5 1 0.9 = min(0.2, 0.3) min(0.2, 0.5) min(0.2, 1) min(0.9, 0.3) min(0.9, 0.5) min(0.9, 1) = 0.2 0.2 0.2 0.3 0.5 0.9
  • 20. FUZZY LOGIC Fuzzy Relations R = R(A1, A2) A2 a23 = 0.2 0.2 0.2 (1.0 0.3 0.5 0.9 ) 0.2 a22 0.9 (0.5 ) 0.2 0.5 a21 (0.3 ) 0.2 0.3 a11 a12 A1 (0.2) (0.9)
  • 21. FUZZY RULES Fuzzy Associative Matrix So for the fuzzy rule: If X is A then Y is B We can define a fuzzy matrix M(nxp) which relates A to B M=Ax B It maps fuzzy set A to fuzzy set B and is used in the fuzzy inference process
  • 22. FUZZY RULES Fuzzy Associative Matrix Concept behind M a1  b1 a1  b2 … a2  b1 … . . . If a1 is true then b1 is true; and so on
  • 23. FUZZY RULES Approximate Reasoning Example: Let there be a fuzzy associative matrix M for the rule: if A then B e.g. If Temperature is normal then Speed is medium Let A = [0/100, 0.5/125, 1/150, 0.5/175, 0/200] B = [0/10, 0.6/20, 1/30, 0.6/40, 0/50]
  • 24. FUZZY RULES Approximate Reasoning: Max-Min Inference Let A = [0/100, 0.5/125, 1/150, 0.5/175, 0/200] B = [0/10, 0.6/20, 1/30, 0.6/40, 0/50] then M= (0, 0) (0, 0.6) . . . (0.5, 0) . . . . . . = 0 0 0 0 0 0 0.5 0.5 0.5 0 by taking the minimum 0 0.6 1 0.6 0 of each pair 0 0.5 0.5 0.5 0 0 0 0 0 0