Académique Documents
Professionnel Documents
Culture Documents
Chapter 2 Part 2
Fuzzy Logic Control
Fuzzy Set
Operations
Basic Fuzzy Set Operations
The use of fuzzy sets provides a basis for the
systematic manipulation of vague and imprecise
concepts using fuzzy set operations performed by
manipulating the membership functions.
3
Consider these two fuzzy sets:
mA mB
A B
u u
Equality
Two fuzzy sets A and B are equal if they are defined on the
same universe and the membership function is the same for
both, that is:
A B iff m A u m B u u U
Union
The union of two fuzzy sets A and B is the fuzzy set
whose membership function is given by: A B
m A B u maxm A u , m B u u U
5
Fuzzy Set Operations
Intersection
The intersection of two fuzzy sets A and B is the fuzzy set
whose membership function is given by:
m A B u minm A u , m B u u U
A B
Subset
A B iff m A (u ) m B (u ) u U
7
Fuzzy Set Operations
Power
If p is a positive number and A is a fuzzy set with membership
function mA(u), then A on power p, denoted by Ap, is defined as:
A p ( x, m A ( x)) ( x, ( m A ( x)) p
p
8
m CON A u m A u 2 u U
mA
1
A
CON(A)
0
Note: This operation is unique with fuzzy sets only. If this operation is carried out with a crisp set, it results in no
change.
9
Fuzzy Set Operations
Dilation
A fuzzy set A can be dilated by modifying its membership
function to increase the importance of lower membership
elements.
m DIL A u m A u 0.5 u U
mA
1
DIL(A)
A
0
Note: These operations are unique with fuzzy sets only. If they are carried out with crisp sets, they result in no
change.
10
Intensification
This operation moves the normalized fuzzy set closer to
being crisp, by enhancing the membership value of those
elements whose membership was above 0.5 and
diminishing that of those elements with membership below
0.5.
2m A u 2 for 0 m A u 0.5
m INT A U
1 21 m A u for 0.5 m A u 1
2
mA
1
A INT(A)
11
Exercise 4a
Exercise 4a
13
Fuzzy Set Operations
Exercise 4b
For the fuzzy set with the following membership
function (take the elements of the universe of
discourse to be 0, 0.5, 1, 1.5 and 2), find and draw
the graphs of
CON(A)
DIL(A)
u for 0 u 1
m A (u )
2 u for 1 u 2
14
Exercise 4b
15
Fuzzy Set Operations
m AB u m A u m B u u U
Algebraic sum
The algebraic sum of two fuzzy sets A and B is also known as
probabilistic sum and is given by the following expression:
m A B u m A u m B u - m A u m B u u U
16
Exercise 5
Solve:
algebraic product
algebraic sum.
17
Fuzzy Set Operations
A U A
identity
A A
A
Properties
A U U
of
A B B A
Algebraic commutativity
A B B A
product
and sum ( A B) C A ( B C )
associativity
( A B) C A ( B C )
A B A B
De Morgan' s law
A B A B
18
Bounded product
The bounded product of two fuzzy sets A and B with membership
functions is the fuzzy set whose membership function is given by:
m AB u max 0, m A u m B u 1 u U
Bounded sum
The bounded sum of two fuzzy sets A and B with membership
functions and is the fuzzy set whose membership function is
given by:
m A B u min1, m A u m B u u U
19
Fuzzy Set Operations
Drastic product
The drastic product of two fuzzy sets A and B with membership
function and is the fuzzy set whose membership function is
given by:
m A u for m B u 1
m A B u m B u for m A u 1
0 for m A u , m B u 1
20
Exercise 6:
A={(x1, 0.2), (x2, 0.3), (x3, 1), (x4, 0.5), (x5, 0.1), }
B={(x1, 0.0), (x2, 0.3), (x3, 0.6), (x4, 0.7), (x5, 0.9)}
21
m AB u max 0, m A u m B u 1 u U
A={(x1, 0.2), (x2, 0.3), (x3, 1), (x4, 0.5), (x5, 0.1)}
B={(x1, 0.0), (x2, 0.3), (x3, 0.6), (x4, 0.7), (x5, 0.9)}
m A u for m B u 1
m A B u m B u for m A u 1
0 for m A u , m B u 1
22
Equality A u B u u U
Union A B u max A u , B u for all u U
Intersection A B u min A u , B u for all u U
Complement A u 1 A u u U
Normalization NORM A u A u / max A u u U
CON A u A u
2
Concentration u U
DIL A u A u
0.5
Dilation u U
2u A u for 0 m A u 0.5
2
Intensification u INT A u
1 21 u A u for 0.5 u A u 1
2
23
Fuzzy Relations
Fuzzy Relations
Cartesian Products
Fuzzy Relations
Compositional Operators
24
Fuzzy Relations
Cartesian Products
What are Cartesian products?
Cartesian product is used to define a relation between
two or more sets (be it crisp or fuzzy).
Suppose A and B are two crisp sets. The Cartesian product
of A and B is denoted A B and is defined as:
A B ( a, b) | a A, b B
25
Fuzzy Relations
A={0,1}, B={a,b,c}
AB={(0,a),(0,b),(0,c),(1,a),(1,b),(1,c
)}
BA={(a,0),(b,0),(c,0),(a,1),(b,1),(c,1
)}
AA={(0,0),(0,1),(1,0),(1,1)}
26
Cartesian Product
The Cartesian product of 2
universes: X Y x, y | x X , y Y
Complete
relationship
The strength of the
relationship between
1, x, y X Y
ordered pairs of elements c X Y x, y
in each universe is 0, x, y X Y
measured by the
characteristic function,
denoted as c psi. No
relationship
R X Y
27
Fuzzy Relations
Example 3
Person-Sport Relation (Non-fuzzy relation)
Consider 2 sets as follows:
A={Ahmad, Bala, Chong}
B={Football, Hockey, Badminton, Tennis}
F H B T
Ahmad x x
Bala x x
Chong x x
The cartesian product AxB includes all the possible relations from A
to B and other lesser relation is considered a subset of the cartesian
product.
29
Cardinality of Crisp Relations
In mathematics, the cardinality of a set is a measure of the
"number of elements of the set".
Suppose n elements of universe X are related to m elements of
universe Y.
Then, nX is the cardinality of X and nY is the cardinality of Y.
Thus, if R is the relation between the universes of X and Y,
then the cardinality of R is:
n X Y n X nY
The cardinality of the power set, P(X x Y), describing R is:
n P X Y 2 n X nY
30
Fuzzy Relations
Fuzzy Relations
In fuzzy relations, the strength of an r-ary
relation between ordered pairs of r universes
is measured with a membership function,
expressing various degrees of strength of the
relation on the unit interval [0,1],
mR(x1, x2,, xn)[0,1]
31
Fuzzy Relations
32
Fuzzy Relations
Example 4a:
0.2 0.2
R 0.3 0.5
0.3 0.9
33
Fuzzy Relations
Example 4b
Person-Sport Relation (Fuzzy relation)
From Example 3, suppose the relation does not simply state either
yes(1) or no(0) but a more natural degree of association to each
pair is given.
F H B T
Ahmad 0 0.8 0.7 0
Bala 1.0 0 0.3 0
Chong 0 0.9 0 0.6
34
Football
Ahmad 0.8 1.0
Hockey
Bala 0.7 0.9
Badminton
Chong 0.3
Tennis
0.6
35
Operations on Fuzzy Relations
Suppose R and S are fuzzy relations on Cartesian space
X x Y, then the following operations apply
(similar to operations on Fuzzy sets):
Union: R S x, y maxm R x, y , m S x, y
Intersection: R S x, y minm R x, y , m S x, y
Complement: R x, y 1 m R x, y
Containment: R S R x, y mS x , y
36
A A X
Crisp Sets
A A
Fuzzy Sets or RR E
Fuzzy Relations RR
PROOF USING GRAPHS OF MEMBERSHIP FUNCTIONS
38
Exercise 6
Ex.:
Not R
Fuzzy Sets or RR E
Fuzzy Relations RR
T=R o S
o is the compositional operator.
This operator is composed of at least 2 basic fuzzy
set operations.
Some examples are: max-min, max-max, min-max,
etc.
40
41
Others:
Max-bounded sum.
Max-bounded product.
Max-drastic product.
Max-algebraic sum.
Max-Max.
Min-Max.
Etc.
42
Fuzzy Reasoning
Example 5
Max-min based compositional operation
43
where:
44
Example 6
Assume in a university, for the field of AI, there are four courses offered:
Three students are planning to take these course based on their different
preferences for theory, application, hardware and programming. Each of
these courses contains parts of the four properties as described.
45
Objective of Exercise: Show that the
composition of fuzzy relations can help
these students in their decision making.
46
47
The properties of the courses are indicated by
the following fuzzy relation Q(Y,Z):
Properties, Q(Y,Z) =
FT FC NN ES
Th 1 0.5 0.6 0.1
Ap 0.2 1 0.8 0.8
Hw 0 0.3 0.7 0
Pg 0.1 0.5 0.8 1
48
Question
49
Using max-min approach:
Thus, P o Q =
FT FC NN ES
Ali
Chin
Bala
Ayu
Chin
Conclusion,
1. Ali should choose
........................................
2. Bala should choose
........................................
3. Chin should choose
........................................
50
51