Fuzzy Control
Fuzzy Control
Fuzzy Control
Crisp Sets
Fuzzy Sets
Set-Theoretic Operations
Extension Principle
Fuzzy Relations
2
Introduction
3
Fuzzy Logic
4
Crisp Set and Fuzzy Set
5
Information World
6
Fuzziness
Examples:
A number is close to 5
7
Fuzziness
Examples:
He/she is tall
8
Classical Sets
9
CLASSICAL SETS
Define a universe of discourse, X, as a collection of objects all
having the same characteristics. The individual elements in the
universe X will be denoted as x. The features of the elements in
X can be discrete, or continuous valued quantities on the real
line. Examples of elements of various universes might be as
follows:
• the clock speeds of computer CPUs;
• the operating currents of an electronic motor;
• the operating temperature of a heat pump;
• the integers 1 to 10.
10
Operations on Classical Sets
Union:
A B = {x | x A or x B}
Intersection:
A B = {x | x A and x B}
Complement:
A’ = {x | x A, x X}
X – Universal Set
Set Difference:
A | B = {x | x A and x B}
Set difference is also denoted by A - B
11
Operations on Classical Sets
12
Operations on Classical Sets
Complement of set A.
13
Properties of Classical Sets
AB=BA
AB=BA
A (B C) = (A B) C
A (B C) = (A B) C
A (B C) = (A B) (A C)
A (B C) = (A B) (A C)
AA=A
AA=A
AX=X
AX=A
A=A
A=
14
Mapping of Classical Sets to Functions
15
Fuzzy Sets
16
Fuzzy Sets
17
Fuzzy Set Theory
18
If U is a collection of objects denoted generically by x, then a
fuzzy set A in U is defined as a set of ordered pairs:
membership
function
U : universe of
discourse.
19
Fuzzy Sets
20
Fuzzy Sets
A B XA B(x)
= XA(x) XB(x)
= min(XA(x),XB(x))
A’ XA’(x)
= 1 – XA(x)
A’’ = A
21
Fuzzy Set Operations
A’(x) = 1 - A(x)
23
Fuzzy Set Operations
24
Operations
A B
AB AB A
25
A A’ = X A A’ = Ø
Excluded middle axioms for crisp sets. (a) Crisp set A and its complement; (b)
crisp A ∪ A = X (axiom of excluded middle); and (c) crisp A ∩ A = Ø (axiom of
contradiction).
26
A A’ A A’
Excluded middle axioms for fuzzy sets are not valid. (a) Fuzzy set A ∼ and its
complement; (b) fuzzy A ∪ A∼ = X (axiom of excluded middle); and (c) fuzzy A∩
A = Ø (axiom of contradiction).
27
Set-Theoretic Operations
A B A
A B
A B
28
Examples of Fuzzy Set Operations
29
Examples of Fuzzy Set Operations
30
Examples of Fuzzy Set Operations
• Example.
– Ac = {1 – 1.0, 1 – 0.2, 1 – 0.75} = {0.0, 0.8, 0.25}
31
Properties of Fuzzy Sets
AB=BA
AB=BA
A (B C) = (A B) C
A (B C) = (A B) C
A (B C) = (A B) (A C)
A (B C) = (A B) (A C)
AA=A AA=A
AX=X AX=A
A=A A=
If A B C, then A C
A’’ = A
32
Fuzzy Sets
33
Example (Discrete Universe)
A ( x)
0.5
0
2 4 6 8
x : # courses 34
Example (Discrete Universe)
Alternative Representation:
35
Example (Continuous Universe)
B ( x, B ( x)) x U
B ( x)
1 about 50 years old
4
x 50
1 1.2
5 1
0.8
Alternative B ( x) 0.6
Representation: 0.4
0.2
B 1
x 0
R 1 x550
4 0 20 40 60 80 100
x : age 36
Alternative Notation
A ( x, A ( x)) x U
U : discrete universe A
xi U
A ( xi ) / xi
U : continuous universe A A ( x) / x
U
0.75
0.375
0 0
• (AB = C) (C = 0.75)
38
Fuzzy Conjunction
• AB min(A, B)
• AB = C "Quality C is the
conjunction of Quality A and B"
A B
1 1
0.75
0.375
0 0
• (AB = C) (C = 0.375)
39
Example: Fuzzy Conjunction
Calculate AB given that A is .4 and B is 20
A B
1 1
0 0
.1 .2 .3 .4 .5 .6 .7 .8 .9 1 5 10 15 20 25 30 35 40
40
Example: Fuzzy Conjunction
Calculate AB given that A is .4 and B is 20
A B
1 1
0 0
.1 .2 .3 .4 .5 .6 .7 .8 .9 1 5 10 15 20 25 30 35 40
41
Example: Fuzzy Conjunction
Calculate AB given that A is .4 and B is 20
A B
1 1
0.7
0 0
.1 .2 .3 .4 .5 .6 .7 .8 .9 1 5 10 15 20 25 30 35 40
42
Example: Fuzzy Conjunction
Calculate AB given that A is .4 and B is 20
A B
1 1
0.9
0.7
0 0
.1 .2 .3 .4 .5 .6 .7 .8 .9 1 5 10 15 20 25 30 35 40
43
Example: Fuzzy Conjunction
Calculate AB given that A is .4 and B is 20
A B
1 1
0.9
0.7
0 0
.1 .2 .3 .4 .5 .6 .7 .8 .9 1 5 10 15 20 25 30 35 40
44
Generalized Union/Intersection
• Generalized Union
Or called triangular norm.
t-norm
• Generalized Intersection
45
T-norms and S-norms
46
Examples: T-Norm & T-Conorm
• Minimum/Maximum:
T (a, b) min(a, b) a b
S (a, b) max(a, b) a b
• Lukasiewicz:
47
Fuzzy Relations
…
48
Crisp Relation (R)
b1
a1
b2
A a2
a3
b3 B
b4
a4 b5
R A B
49
R A B
Crisp Relation (R)
b1
a1
b2
A a2
a3
b3 B
b4
a4 b5
a b c
1 1 0 1
R= 2 1 1 0
3 0 1 1
Using a diagram to represent the relation
51
The Real-Life Relation
x is close to y
x and y are numbers
x depends on y
x and y are events
x and y look alike
x and y are persons or objects
If x is large, then y is small
x is an observed reading and y is a
corresponding action
52
Fuzzy Relations
• Triples showing connection between two sets:
(a,b,#): a is related to b with degree #
…
53
Fuzzy Relations Matrices
• Example: Color-Ripeness relation for tomatoes
green 1 0.5 0
Red 0 0.2 1
54
Composition
55
Composition
There are two common forms of the composition
operation:
max–min composition
max–product composition.
56
Max-Min Composition
X Y Z
R: fuzzy relation defined on X and Y.
y R ( x, y ) S ( y , z )
57
Example
S R (x, y ) max v min R ( x, v), S (v, y )
R a b c d S
1 0.1 0.2 0.0 1.0 a 0.9 0.0 0.3
2 0.3 0.3 0.0 0.2 b 0.2 1.0 0.8
3 0.8 0.9 1.0 0.4 c 0.8 0.0 0.7
0.1 0.2 0.0 1.0
d 0.4 0.2 0.3
min 0.9 0.2 0.8 0.4
max 0.1 0.2 0.0 0.4
RS
1 0.4 0.2 0.3
2 0.3 0.3 0.3
3 0.8 0.9 0.8
58
.
Max-Product Composition
X Y Z
R: fuzzy relation defined on X and Y.
59
Example
R a b c d S
1 0.1 0.2 0.0 1.0 a 0.9 0.0 0.3
2 0.3 0.3 0.0 0.2 b 0.2 1.0 0.8
3 0.8 0.9 1.0 0.4 c 0.8 0.0 0.7
0.1 0.2 0.0 1.0
d 0.4 0.2 0.3
Product 0.9 0.2 0.8 0.4
max .09 .04 0.0 0.4
RS
1 0.4 0.2 0.3
2 0.27 0.3 0.24
3 0.8 0.9 0.7
60
Example
61
Example
62
Example
Let Rse be a fuzzy set representing a number of possible
values for series resistance, say sn values, given as
63
Example
Let N be another fuzzy set having numerous values for the
motor speed, say v values, given as
64
Example
The operations needed to develop these relations are as follows –
two fuzzy Cartesian products and one composition:
65
Example
Suppose the membership functions for both series resistance
Rse and armature current Ia are given in terms of percentages
of their respective rated values, that is,
66
Example
The following relation then result from use of the Cartesian
product to determine R:
67
Example 3.8
Cartesian product to determine S:
68
Example
The following relation results from a max–min composition for
T:
69
HW
70