Fuzzy Logic 2
Fuzzy Logic 2
•Fuzzy Clustering
•Others
Fuzzy Logic Controller
(FLC)
•Developed by Mamdani and Assilian around 1975
2 min S , S
A2
*
1 B2
*
2
Membership value of the combined control action C is given by
C f ' max C* 1 f ', C* 2 f '
De-fuzzification
•Methods
Center of Sums Method
p
A f
j 1
j j
U 'f ' p
,
A
j 1
j
A f i j
U ' f ' i 1 N ,
A
i 1
i
429
Fuzzified outputs:
•Union of the fuzzified outputs:
Methods of Defuzzification
1. Center of Sums
Method
12.5 71.0 39.7089 0.0 25.0 45.0 25.5699 0.0
U
12.5 39.7089 25.0 25.5699
19.5809
2. Centroid
Method
A
U
B
U 19.4450
3. Mean of
Maxima
U 0
Takagi and Sugeno’s Approach
yi=ai0+ai1 x1+……….+ain xn
where a0, a1, …….., an are the coefficients
k i i
w y
y i 1k
i
w
i 1
i i i
•Where j , k 1,2,3; a1 1, a 2 2, and a 3 3,
If is found to be LW, M and H, respectively;
b1i 1, b2i 2, and, b3i 3, if is seen to be NR,
FR and VFR, respectively. Calculate the output of the
FLC for the inputs: =6.0, =2.2
Solution:
x 10 6
1.0 10 5
x 0.8
Input of 6.0 may be called LW with μLW =0.8
is LW and is FR
is LW and is VFR
is M and is FR
is M and is VFR
Weights
Functional consequent values
6
Output,
Hierarchical Fuzzy Logic Controller
Let us assume that a process having n inputs (I1,I2,……In) and
one output (that is, O) is to be modeled using an FLC
Let us also assume that m linguistic terms (fuzzy sets) are used to represent
each variable.
1.We carry out experiment by varying the input variables through different
amounts, say 0.1%, 1.0%, 10.0% etc. and recording the outputs of the
controller
2.O = f(I1, I2)
We change the input I1 by a small amount δI1 and determine the change
in output using Mean-Value theorem
f
O f I1 I1 , I 2 f I1 , I 2 I 1
I1 I1 , I 2
Where I1 lies between I1 and I1+δI1
f
1,
I1
If then δO > δI1