Module 4
Module 4
• Introduction
• Fuzzy set operations
• Fuzzy relations
• Fuzzy membership functions
• Fuzzification
• Defuzzification
Alternate Approaches:
Assumption as a known concept
Axiomatic approach
➢ Young Person
➢ Examination Results
➢ Physical Test for candidates
➢ Trustworthy Customer
• EXAMPLE:
• Let U = {1, 2, ….10} and A = {1, 3, 5, 7, 9}.
• Then
• and
1, x 35;
young ( x) = 1 − ( x − 35) / 25, 35 x 60;
0,
otherwise
Thomas Kuhn
• PARADIGM: 1922- 1996
• A set of theories, standards, principles and methods that are
taken for granted by the scientific community in a given field
• Those who support the new paradigm are either very young
or very new to the field
• The ‘+’ , ‘/’ and ' ' symbols have not been used with their
usual meanings, these are only representational.
• Then
• Crossover points of X is the set {x2 }
• hgt(X) = 0.8
• X is subnormal as its height is less than 1
• X is convex as x1 x2 x3 and we have
• X ( x2 ) = 0.5 0.3 = min{ X ( x1 ), X ( x3 )}
• Union of Sets: For any two sets A and B we define their union
as
A B = {x A or x B}
A ( x ) = 1 − A ( x)
C
• Then AC = {(1,1), (2, 0), (3, 0.5), (4, 0.8), (5, 0.7)}
A B = {(2,1), (3, 0.5), (4, 0.7), (5, 0.4)}
A B = {(2,0.5),(3,0.2),(4,0.2),(5,0.3)}
A \ B = {(2,0.5),(3,0.3),(4,0),(5,0)}
𝐴 ∪ (𝐵 ∪ 𝐶) = (𝐴 ∪ 𝐵) ∪ 𝐶
• Associativity:
𝐴 ∩ (𝐵 ∩ 𝐶) = (𝐴 ∩ 𝐵) ∩ 𝐶
• Idempotency: 𝐴 ∩ 𝐴 = 𝐴, 𝐴 ∪ 𝐴 = 𝐴
• Identity: 𝐴 ∪ 𝜙 = 𝐴, 𝐴 ∩ 𝑈 = 𝐴, 𝐴 ∩ 𝜙 = 𝜙, 𝐴 ∪ 𝑈 = 𝑈
• Proof of Case 1:
• We have the following three possibilities in this case:
• (i) mn , (ii) n > mp and (iii) n p m
• Case 1 (i):
• Here, we get m np . So,
• LHS = max {m, min {n, p}} = max {m, p} = m.
• RHS = min {max {m, n}, max {m, p}} =min {m, m} = m.
• So, LHS = RHS.
• Involution: ( AC )C = A
• Axiom of contradiction: A AC
1, if ( x, y) R,
R ( x, y ) =
0, if ( x, y ) R.
• (max-min) T ( x, z ) = ( R ( x, y) R ( y, z ))
yY
• (max-product) T ( x, z ) = ( R ( x, y) R ( y, z ))
yY
• Let X = {x1, x2, x3}, Y = {y1, y2, y3, y4} and Z = {z1, z2}.
• R = { (x1, y1), (x1, y3), (x2, y4)}
• S = { (y1, z2), (y3, z2)}
• The relation matrices are given by
1 0 1 0 0 1
0 0 1
0 0 0
• R= 0 0 0 1
and S= . Then T =
0 1
0 0 0 0 0 0
0 0
T ( x1, z1) = max[min(1, 0), min(0, 0), min(1, 0), min(0, 0)] = 0
T ( x1, z 2) = max[min(1, 1), min(0, 0), min(1, 1), min(0, 0)] = 1
• Complement RC ( x, y) = 1 − R ( x, y)
• Subrelation R S iff R ( x, y) S ( x, y)
• POSITIVE EXAMPLES:
• Parallelism among straight lines in a plane
• Similarity among triangles in a plane
• Congruence among triangles in a plane
• Over Z, x R y iff x – y is even
• “Works in the same building as” among workers in a company
• “Reads in the same class as” among students in a college
• NEGATIVE EXAMPLES:
• “x R y iff x is a brother of y” among people in a town
• “x R y iff x is a friend of y” among people in a country
• Fuzzy transitive:
• R ( x, y) = 1 , R (y, z) = 2 R ( x, z ) = , where min{1 , 2 }.
k =1 k =1 k =1
m
| xik x jk |
• So, cos = k =1
1/2 1/2 = rij
m m
xik
2
x jk
2
k =1 k =1
min( x ik , x jk )
rij = k =1
m
, i, j = 1, 2,...n
max( x
k =1
ik , x jk )
• Here,
1
0.538 1 SYM
R = 0.667 0.667 1
0.429 0.333 0.250 1
0.818 0.429 0.538 0.429 1
• For example,
• Example 1:
• Suppose in the reading of a voltage, we say it is low voltage
• We need not measure it precisely
• When we measure it precisely it may be 0.3
• That is the membership value of the current voltage in the
fuzzy set representing low voltage is 0.3
• The membership function for “low” may be given by
0, if x 80;
80 − x
Low ( x) = , if 50 x 80;
x − 20
1, if x 50.
• Example 2:
• We can say that somebody is young
• He may be 37 years
• But when we measure it precisely we say he is 0.92 young
• Example 3:
• In finding the height of a person, we may say that he is tall.
• Actually, his height may be 5 feet 10 inches.
• So, taking the height of tall persons, we may say he is 0.95 tall.
• The set A is a crisp set called the lambda (λ)-cut set of the
fuzzy set A, where A = {x| A ( x) ≥ λ}.
1. ( A B) = A B
2. ( A B) = A B
• Let us take 𝜆 ≤ 𝛼
• Then 𝑥 ∈ 𝐴𝛼 ⇒ 𝜇𝐴 (𝑥) ≥ 𝛼. By transitivity property 𝑎 ≥
𝑏, 𝑏 ≥ 𝑐 ⇒ 𝑎 ≥ 𝑐.
• So, 𝜇𝐴 (𝑥) ≥ 𝛼, 𝛼 ≥ 𝜆 ⇒ 𝜇𝐴 (𝑥) ≥ 𝜆 ⇒ 𝑥 ∈ 𝐴𝜆
• Hence, 𝑥 ∈ 𝐴𝛼 ⇒ 𝑥 ∈ 𝐴𝜆 .
• This proves that 𝐴𝛼 ⊆ 𝐴𝜆 .
• Taking = 1 1 0 0 0 0
0 1 0 0 0
R1 = 0 0 1 0 0
0 0 0 1 0
0 0 0 0 1
• Taking = 0.6 1 1 0 0 0
1 1 0 0 1
R0.6 = 0 0 1 0 0
0 0 0 1 0
0 1 0 0 1
Dr Chiranji Lal Chowdhary, VIT
PROPERTIES OF λ-CUTS OF FUZZY RLATIONS
(i) (R S) = R S
(ii) (R S) = R S
(iii) ( RC ) ( R )C
0.7
15 45 75 100
𝜇
Fuzzy set A
1 0.9
0.6 0.3
0.01 0
O x
a b c d e f
𝜒
Crisp set A0.6
1
O x
a b c d e f
1 Fuzzy Set A
0.6
0.3
0
x
𝐴0.6
𝐴0.9
• Group of FOUR
➢ Max membership principle
➢ Centroid method
➢ Weighted average method
➢ Mean-max membership
z
z*
0.3
5
z in meters
0.5
3 7
4 8
Dr Chiranji Lal Chowdhary, VIT
EXAMPLE-1 CONTD…
𝐸 𝐹
1
𝐶 𝐷
0.5
𝐴 𝐵
0.3
𝐺
𝑂
1 2 3 4 5 6 7 8
Dr Chiranji Lal Chowdhary, VIT
3.6 5.5
• The line OA is joining the two points (0, 0) and
(1.5, 1) Its equation is
• i.e. y = (2/3)x = 0.67x
• = 1 3.6 4 5.5 6 7 8
𝑧3 𝑧2 𝑧3 3𝑧2 𝑧2 𝑧3 𝑧2 𝑧2 𝑧 2 𝑧3
0.3 3 + 0.3 2 + 6− 4 + 0.5 2 + −5. 2 + 2 + 8. 2 − 6
0 1 3.6 4 3 5.5 6 7
1 4 6 8
𝑧2 3.6 𝑧2 3𝑧 𝑧2 𝑧2
0.3 2 + 0.3.𝑧 1 + 4 − 2 + 0.5.𝑧 5.5
4 + −5.𝑧 7
+ 𝑧 6 + 8.𝑧− 4
0 3.6 2 5.5 7
𝑏 𝑏
𝑛 𝑧 𝑛+1 𝑏 𝑛+1 𝑎 𝑛+1
Here, we use the formula න 𝑧 𝑑𝑧 = = − 𝑛+1
𝑛+1 𝑛+1
𝑎 𝑎
• = 4.9 sq. m
1
0.9
0.5
0 z
a b
𝒂. (𝟎. 𝟓) + 𝒃(𝟎. 𝟗)
𝒛 ∗=
𝟎. 𝟓 + 𝟎. 𝟗
Dr Chiranji Lal Chowdhary, VIT
EXAMPLE
𝟎 z
𝒂 𝑧∗ 𝒃
Dr Chiranji Lal Chowdhary, VIT
EXAMPLE-1
(MEAN MAX MEMBERSHIP METHOD)
• In the mean max membership method for defuzzification z*
is given by (a + b)/2, where a and b are the minimum and the
maximum values where the maximum membership occurs
• This method (also called middle-of-maxima)
• Is closely related to the first method (Max membership
principle),
• Except that the locations of the maximum membership can
be non-unique (i.e., the maximum membership can be a
plateau rather than a single point).
• This method is given by the expression (Sugeno, 1985; Lee,
1990)
𝑪𝟏 0.5
𝑪𝟐
0.5
0 2 4 6 z 0 2 4 6 8 10 z
8
0.5
0 z
2 4 6 8 10
Z*
Dr Chiranji Lal Chowdhary, VIT
EXAMPLE-2 AND CENTRE OF SUM METHOD
• So,
∗ 2.5×0.5×0.3×8)+(5×0.5×0.5×6)+(6.5×0.5×1×4
𝑧 =
0.5×0.3×8)+(0.5×0.5×6)+(0.5×1×4
• 3+7.5+13 23.5
= = =5
1.2+1.5+2 4.7
• If the output fuzzy set has at least two convex sub regions
then the centre of gravity of the convex fuzzy sub region with
the largest area is used to obtain the defuzzified value z* of
the output
• The formula is ධ𝜇𝐶𝑚 (𝑧). 𝑧𝑑𝑧
𝑧∗ =
ධ𝜇𝐶𝑚 (𝑧)𝑑𝑧
• Here 𝐶𝑚 is the convex sub region that has the largest area
making up 𝑪𝒌
0.5
0 2 4 6 8 10 z
0.5
0
2 4 6 8 10
𝒛∗
x1 x2 x3 x4
c1 0.2 0.2 0.6 0.3
0.2
c2 0.5 0.3 0.1
c3 0.1 0.2 0.1 0.2
c4 0.2 0.1 0.2 0.3
1
𝑩𝟏
0.5
(0,0) 1 2 3 4 5
1 𝑩𝟐
0.5
(0,0) 1 2 3 4 5
0.5 𝑩𝟑
(0, 0) 1 2 3 4 5