Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Outline
Extension principle Fuzzy relations Fuzzy if-then rules Compositional rule of inference Fuzzy reasoning
Extension Principle
A is a fuzzy set on X :
A = A ( x1 ) / x1 + A ( x2 ) / x2 ++ A ( x n ) / x n
The image of A under f(.) is a fuzzy set B:
B = A ( x1 ) / y1 + A ( x2 ) / y2 +L + A ( xn ) / yn
where yi = f(xi), for i = 1 to n. If f(.) is a many-to-one mapping, then
B ( y ) = max A ( x )
x= f
1
( y)
(x)
(x) Example 2
0 1 2 3
-1 0 1 2 3
(y)
(y)
0 1
4
0 1
Fuzzy Relations
A fuzzy relation R is a 2D MF:
R = {(( x , y ), R ( x , y ))|( x , y ) X Y}
Examples: 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 instrument reading and y is a corresponding control action)
5
Example: x is close to y
A Crisp Relation 40 30 20 10 0 40 30 20 10 0 A Fuzzy Relation
5 X
10
5 X
10
Example: X is close to Y
(a) Fuzzy Relation F on X and Y Membership Grades 1 0.5 0 10 5 10 Y 0 0 5 X Y 0 0 Membership Grades 1 0.5 0 10 5
(b) Cylindric
(d) Projec
Max-Min Composition
The max-min composition of two fuzzy relations R1 (defined on X and Y) and R2 (defined on Y and Z):
R R ( x , z ) = [ R ( x , y ) R ( y , z )]
1 2
(max)
(min)
S T ( R S ) ( R T )
Max-Star Composition
Max-product composition:
R R ( x , z ) = [R ( x , y )R ( y , z )]
1 2
R R ( x , z ) = [R ( x , y ) * R ( y , z )]
1 2
z=a z=b y= 0.9 y= 0.2 y= y= 0.5 0.7 0.1 0.3 0.6 0.2
R1 oR2 (2, a) = 0.7 (max-min composition) R1 oR2 (2, a) = 0.63 (max-product composition)
11
Linguistic Variables
A numerical variable takes numerical values: Age = 65 A linguistic variables takes linguistic values: Age is old A linguistic value is a fuzzy set. All linguistic values form a term set (set of terms):
T(age) = {young, not young, very young, ... middle aged, not middle aged, ... old, not old, very old, more or less old, ... not very young and not very old, ...}
12
(very)
13
intensif.m
complv.m
Examples:
If pressure is high, then volume is small. If the road is slippery, then driving is dangerous. If a tomato is red, then it is ripe. If the speed is high, then apply the brake a little.
15
A entails B: (x is not A) (y is B)
A
16
R = A B = A B = A ( x ) B ( y )|( x , y )
A entails B: (not A or B) - Material implication - Propositional calculus - Extended propositional calculus - Generalization of modus ponens
18
19
fuzimp.m
20
fuzimp.m
b y = f(x) a
a and b : points y = f(x) : a curve Crisp : if x = a, then y=b
21
b y = f(x)
x
22
cri.m
Fuzzy Reasoning
Single rule with single antecedent Rule: if x is A then y is B Premise: x is A, where A is close to A Conclusion: y is B Use max of intersection between A and A to get B
A A
w
B
X Y
A
x is A
23
B
X y is B Y
Fuzzy Reasoning
Single rule with multiple antecedents
Rule: if x is A and y is B then z is C Premise: x is A and y is B Conclusion: z is C
B B
w
C
Y Z
A
x is A
24
B
X y is B Y
C
z is C Z
Fuzzy Reasoning
Multiple rules with multiple antecedents
Rule 1: if x is A1 and y is B1 then z is C1 Rule 2: if x is A2 and y is B2 then z is C2 Premise: x is A and y is B Conclusion: z is C
Use previous slide to get C1 and C2 Use max of C1 and C2 to get C (next slide)
25
Fuzzy Reasoning
Multiple rules with multiple antecedents
A A1
X
B B1
w1
C1
Y Z
A A2
X
B B2
w2
C2
Y Z
A
x is A
26
B C
X y is B Y z is C Z
27
Other Variants
Some terminology: Degrees of compatibility (match between input variables and fuzzy input MFs) Firing strength calculation (we used MIN) Qualified (induced) MFs (combine firing strength with fuzzy outputs) Overall output MF (we used MAX)
28