Fuzzy Set
Fuzzy Set
Fuzzy Systems:
1. Fuzzy Inference Engine.
2. Fuzzification & Defuzzification.
3. Crisp input and output.
4. Fuzzy Rules.
5. Reasoning with Fuzzy Rules.
Extremely Honest
(1)
Very Honest
(0.80)
Extremely dishonest
(0.0)
Fuzzy Logic Applications
Aerospace
Classical set theory
• A Set is any well defined collection of objects, (set= many
objects)
• An object in a set is called an element or member of that
set.
• Sets are defined by a simple statement,
• Describing whether a particular element having a certain
property belongs to that particular set.
A = {a1,a2,a3,……,an}
• If the elements ai (i = 1,2,3,….,n) of a set A are subset of
universal set X, then set A can be represented for all
elements x ϵ X by its characteristics function
µA (x) = 1 if x ϵ X otherwise 0
Operations on classical set theory
Union: the union of two sets A and B is given as
A U B = { x | x є A or x є B }
A = {(x, µÃ(x)), x є X }
Fuzzy Sets (Continue)
Example
• Let X = {g1, g2, g3, g4, g5} be the reference set of students.
• Let à be the fuzzy set of “smart” students, where “smart” is
fuzzy term.
à = {(g1,0.4)(g2,0.5)(g3,1)(g4,0.9)(g5,0.8)}
Here à indicates that the smartness of g1 is 0.4 and so on
Classical Set vas Fuzzy Set Functions:
Classical Set vas Fuzzy Set Functions:
µA(x)
1
0 if x a
x a
if a x b
A ( x) b a
c x if b x c
c b
0 if x c 0 x
a b c
FL Membership Function Types
• Trapezoid membership function
• A trapezoidal membership function is specified by four
parameters {a, b, c, d} as follows:
0 if x a
x a
if a x b
b a
A ( x) 1 if b x c
d x
if c x d
d c
0 if d x
FL Membership Function Types
µA(x)
1
0.9
0.8
0.7
c=5
0.6
0.5 s=2
0.4
0.3
0.2
m=2
0.1
0
0 1 2 3 4 5 6 7 8 9 10
x
FL Membership Function Types
1
0.9
0.8
c=5 0.7
0.6
s=0.5 0.5
0.4
0.3
m=2 0.2
0.1
0
0 1 2 3 4 5 6 7 8 9 10
0.9
0.8
c=5 0.7
0.6
0.5
s=5 0.4
0.3
m=2 0.2
0.1
0
0 1 2 3 4 5 6 7 8 9 10
FL Membership Function Types
1
0.9
c=5 0.8
0.7
s=2 0.6
0.5
m=0.2 0.4
0.3
0 1 2 3 4 5 6 7 8 9 10
0.9
0.8
c=5 0.7
0.6
s=5 0.5
0.4
0.3
m=5 0.2
0.1
0
0 1 2 3 4 5 6 7 8 9 10
Fuzzy Set Operation
Example:
A = {(x1,0.5),(x2,0.7),(x3,0)} B = {(x1,0.8),(x2,0.2),(x3,1)}
Union:
A U B = {(x1,0.8),(x2,0.7),(x3,1)}
Because
µA U B(x1) = max (µA(x1), µB(x1))
= max(0.5,0.8)
= 0.8
µA U B(x2) = 0.7 and µA U B(x3) = 1
Fuzzy Set Operation (Continue)
Example:
A = {(x1,0.5),(x2,0.7),(x3,0)} B = {(x1,0.8),(x2,0.2),(x3,1)}
Intersection:
A B = {(x1,0.5),(x2,0.2),(x3,0)}
Because
µA B(x1) = min (µA(x1), µB(x1))
= max(0.5,0.8)
= 0.5
µA B(x2) = 0.2 and µA B(x3) = 0
Fuzzy Set Operation (Continue)
Example:
A = {(x1,0.5),(x2,0.7),(x3,0)}
Complement:
Ac = {(x1,0.5),(x2,0.3),(x3,1)}
Because
µA (x1) =1- µA(x1)
= 1 – 0.5
= 0.5
µA (x2) = 0.3 and µA (x3) = 1
Linguistic variable,linguistic term
• Linguistic variable: A linguistic variable is a
variable whose values are sentences in a
natural or artificial language.
• For example, the values of the fuzzy variable
height could be tall, very tall, very very tall,
somewhat tall, not very tall, tall but not very
tall, quite tall, more or less tall.
• Tall is a linguistic value or primary term
Linguistic Example:
• If age is a linguistic variable then its term set is
• T(age) = { young, not young, very young, not
very young,…… middle aged, not middle
aged,… old, not old, very old, more or less old,
not very old,…not very young and not very
old,…}.
Fuzzy Set Union Example:
Ex: Fuzzify the age for the sets below.
Fuzzify the
figure using
fuzzy sets:
A={ (10,1) (20, 0.95) (27,0.9) (30, 0.8) (40,0.25) (50,0.1) (60,0)}
B={ (10,0.95) (20, 0.9) (27,0.5) (30, 025) (40,0) (50,0) (60,0)}
Fuzzy Relations
Fuzzy Relations
Fuzzy Relations
Fuzzy Relations
Fuzzy Relations
Fuzzy Relations
Example : x ={1,2,3} y={1,2,3}
X€ X y € Y
1 x=y
µr (x , y)= 0.7 |x-y|=1 µr
0.2 |x-y|=2
y 2 3
x 1
1 x
2
3
y
Fuzzy Relations
Example : x ={1,2,3} y={1,2,3,4}
X€ X y € Y y 1 2 3 4
x
1
0.1 0 1 0
R= 0.2 0.5 0 .2
2
3
0 0.9 0.5 0.4
Fuzzify the
performance of
students.
H.W
Fuzzify the
height.