Intelligent Control: Lecturer: VU VAN PHONG
Intelligent Control: Lecturer: VU VAN PHONG
Intelligent Control: Lecturer: VU VAN PHONG
1
Lecturer: VU VAN PHONG
6
Example: Let x1 and x2 be the two inputs of a water-
heater and y is the output. Suppose x1 X 1 [0 C, 30 C]
and x2 X 2 [0, 10] , respectively, represent temperature of
inlet water and firepower of fuel gas. Define two fuzzy sets,
Low and High, on the universal set X 1 ; two fuzzy sets, Weak
and Strong, on X 2. We present four rules as follows.
7
Properties
Consistent: The situation “For two rules having the same fuzzy
proposition FP1 of input, they have different propositions FP2
of consequent part” does not occur.
(9.4)
From WJ Wang
Mandani Cobination
10
′
𝑨 ′
Fuzzy
𝑩
Inference
Engine
= Q
Method 1:
m
Q R ( ) QM
1
= Q
Dr. Van-Phong Vu-Department of Automatic Control
List m fuzzy rules
12
Method 2:
Find output of each rules
B A R ( ) , 1, 2,..., m.
m
B B
1
Dr. Van-Phong Vu-Department of Automatic Control
From WJ Wang
m
B( y ) max[ max ( A( x) A1 ( x1 ) A2 ( x2 ) B ( y ) )]
1 x
1
A
X
x
15
m
(9.11) B( y ) max [ A1 ( x1 ) A2 ( x2 ) B ( y )]
1
m
(9.10) B( y ) max [ A1 ( x1 ) A2 ( x2 ) B ( y )]
1
1 x1 1 , if 0 x 2;
A1 ( x1 )
0, otherwise.
1 x2 2 , if 1 x 3;
A2 ( x2 )
0, otherwise.
1 y , if - 1 y 1;
B( y )
0, otherwise.
17
For input is singleton
1, x
( x
, x
2 ) (0.5,0.15);
A( x )
1
0, otherwise.
Max-Product
(9.16) B( y ) 0.5 0.5 B( y ) 0.25 B( y )
B ( y )
1
(1 y ), 1 y 1
4
0, -1 0 +1
Dr. Van-Phong Vu-Department of Automatic Control
19
Example 2: Two fuzzy rules in the fuzzy rule base.
In Rule 2:
1 x1 0.5 , if - 0.5 x 1.5;
A ( x1 )
1
2
0, otherwise.
1 x2 1.5 , if 0.5 x 2.5;
A ( x2 )
2
2
0, otherwise.
1 y 1 , if 2 y 0;
B ( y)
2
0, otherwise.
20
For input is singleton
0, otherwise
B2 B1
0.8
0.3 B ( y )
y
-2 -1 0 1
Fig. 9.6b
22
B ( y ) max (0.3 0.3 B 1 ( y ), 0.8 0.8 B 2 ( y ))
B2 B1
0.64
0.64
0.09
-2 -1 0 1
Fig. 9.6a
23
Example 3: There is only one rule in the fuzzy rule base.
If x1 is A1 AND x2 is A2 , THEN y is B
where
x1 , x2 X {a, , b, c} and
y Y {a, b, c}
A1 ,0.4 0.9 1
a b c
Sol :
m m
B( y ) B ( y ) {[max ( A1( x1 ) A1 ( x1 ))]
x1
1 1
R1
27
B
B1 B 2 max( B1 , B 2 ) B
Max-Min
Max-Prod
30