Professional Documents
Culture Documents
FUZZY LOGIC
LECTURE-1
Text/Reference Books 1
- Li-Xin Wang “A Course on Fuzzy System and Control”
Text/Reference Books 2
- Timothy J. Ross “Fuzzy Logic with Engineering Application”
2
نحوه ارزيابي
تقرير ،سمينار ،تمرين و پروژه:
تهيه جزوه از مطالب كﻼس -فرمت ) (.docx تقرير :يادداشت برداري كﻼسي
سمينار :گزارش مطالعاتي و ارائه شفاهي
فصلهاي مشخص شده كتاب كنترل فازي ) لي وانگ(
تمرين :تمرينهاي دستي و كامپيوتري براي فهم مطالب درس
)يك مقاله براي گروهها جهت مطالعه مشخص خواهد شد( پروژه :يك پروژه شبيه سازي كامپيوتري
5
Fuzzy system applications
• Pattern recognition and classification
• Fuzzy clustering
• Image and speech processing
• Fuzzy systems for prediction
• Fuzzy control
• Monitoring
• Diagnosis
• Optimisation and decision making
• Group decision making
6
Some Interesting Applications
• Ride smoothness control
• Braking systems
• Air-conditioning systems 7
Fuzzy System
8
Fuzzy inference systems
10
Definition of a fuzzy set
Classical set A in X is
a set of ordered pairs
A x, I A x x X ,
defined by indicator
function I A x 0,1
Fuzzy set A in X is as
a set of ordered pairs
A x, A x x X ,
defined by membership
function 0 A x 1
11
One can define the crisp set “circles” as:
12
Fuzzy Linguistic variables
Examples of fuzzy measures include:
close, heavy, light, big, small, smart, fast, slow, hot, cold,
Tall, Short, ....,
•Fuzzy sets and concepts are commonly used in natural language
John is tall
Dan is smart
Alex is happy
The class is hot
13
Crisp membership function
Crisp membership functions ( µ) are either one or zero.
• e.g. Numbers greater than 10.
A ={x | x>10}
μA( x )
10 14
Fuzzy membership function
15
Fuzzy membership function
16
Crips & Fuzzy Membership functions
17
Fuzzy Membership functions: S-function
The S-function can be used to define fuzzy sets
S(x, a, b, c) =
– 0 for x a
– 2(x-a/c-a)2 for a x b
– 1 – 2(x-c/c-a)2 for b x c
– 1 for x c
a b c
18
Fuzzy Membership functions: P-Function
P(x, a, b) =
– S(x, b-a, b-a/2, b) for x b
– 1 – S(x, b, b+a/2, a+b) for x b
20
Fuzzy membership function
21
Fuzzy membership function
22
Fuzzy membership function
23
Fuzzy membership function
24
Fuzzy membership function
25
Fuzzy membership function
26
Fuzzy membership function
27
Fuzzy membership function ?
μA( x )
1
Height
Core
0
Boundary Boundary
Support
29
Properties of Fuzzy set
μA( x )
1
Height
Core
0
Boundary Boundary
Support
μA( x )
1
Height
Core
0
Boundary Boundary
Support
μA( x )
1
Height
Core
0
Boundary Boundary
Support
Normal Subnormal
Properties of Fuzzy set
34
Properties of Fuzzy set
35
Fuzzy Variable
36
Fuzzy Variable Example
• X = Temperature
• L = {low, medium, high}
• U = {xX | -70o <= x <= +70o}
• M= low medium high
1.0
0.0
37
Fuzzy Variable
• Completude: A variable is complete if for any x
X there is a fuzzy set such as (x)>0
1.0
Complete
0.0
-70 -60 -50 -40 -30 -20 -10 0 10 20 30 40 50 60 70
1.0
Incomplete
0.0
-70 -60 -50 -40 -30 -20 -10 0 10 20 30 40 50 60 70
38
Fuzzy membership function
39
Fuzzy membership function
40
Example: Short, Medium height and Tall
Medium
1.0
Short Tall
5’ 5’6” 6’ 6’6” 7’
μ
i=1
Ai (x)1
42
Partition of Unity
1,0
Partition of
0,5
Unity
0,0
1,0
No Partition
0,5
of
Unity
0,0
43
Partition of Unity cont
μA (x)
μAˆ (x)= p
i
for i = 1,, p
μ
i
Aj (x)
j=1
44
Example: Light, Medium weight and
Heavy
Medium
1.0
Light Heavy
60 70 80 90 100
Weight (Kg)
45
A. B ( x) min( A ( x) , B ( x))
Example: Medium and Tall
Medium
1.0
Short Tall
Medium and Tall
5’ 5’6” 6’ 6’6” 7’
A B ( x) max( A ( x) , B ( x))
Fuzzy intersection operation or fuzzy AND
A. B ( x) min( A ( x) , B ( x))
Complement operation
A ( x) 1 - A ( x) 47
A. B ( x) min( A ( x) , B ( x))
48
A. B ( x) min( A ( x) , B ( x))
49
A B ( x) max( A ( x) , B ( x))
50
A B ( x) max( A ( x) , B ( x))
51
A B ( x) max( A ( x) , B ( x))
Medium
1.0
Short Medium or Tall
Tall
5’ 5’6” 6’ 6’6” 7’
52
A ( x) 1 - A ( x)
A (x)
A (x)
A (x) A (x)
53
A ( x) 1 - A ( x)
Negation: A ( x) 1 - A ( x)
1.0
Not Tall Tall
5’ 5’6” 6’ 6’6” 7’
54
Fuzzy Logic Operations
55
Discrete fuzzy subset
A simple example of a discrete universe and a discrete fuzzy subset of
it, is:
56
A. B ( x) min( A ( x) , B ( x))
Let A and B be fuzzy subsets of the universe X={-3, -2, -1, 0, 1, 2, 3, 4}
A= 0.6/-3 + 0.0/-2 + 0.3/-1 + 0.6/0.0 + 1.0/1 + 0.6/2 + 0.3/3 + 0.5/4
B= 0.2/-3 + 0.6/-2 + 0.4/-1 + 0.6/0.0 + 0.5/1 + 0.4/2 + 0.5/3 + 0.3/4
AB = 0.2/-3 + 0.0/-2 + 0.3/-1 + 0.6/0.0 + 0.5/1 + 0.4/2 + 0.3/3 + 0.3/4
57
Possible operators for AND in fuzzy logic
A (x) B (x)
A (x) B (x)
A ( x) B ( x) - A ( x) B ( x)
max{0, A ( x ) B ( x ) - 1}
A ( x) B ( x)
2 - [ A ( x ) B ( x ) - A ( x ) B ( x )]
58
A B ( x) max( A ( x) , B ( x))
59
Possible operators for OR in fuzzy logic
A ( x) B ( x)
1 A ( x ) B ( x )]
min{1, A ( x ) B ( x )}
60
A ( x) 1 - A ( x)
Let A be fuzzy subset of the universe
X={-3, -2, -1, 0, 1, 2, 3, 4}
61