Beruflich Dokumente
Kultur Dokumente
03/06/2015
06, 2015
1 / 35
Contents
Motivatioin
Conclusion
06, 2015
2 / 35
Motivatioin
Look Out!!!!!!
06, 2015
3 / 35
Motivatioin
We often say:
More Tall rather than saying 6 feet 2 inches tall
More cold rather than specifying a particular temperature
Little bit louder rather than specifying the dB
More light rather than specifying the Lux
06, 2015
4 / 35
Motivatioin
We often say:
More Tall rather than saying 6 feet 2 inches tall
More cold rather than specifying a particular temperature
Little bit louder rather than specifying the dB
More light rather than specifying the Lux
06, 2015
4 / 35
Motivatioin
We often say:
More Tall rather than saying 6 feet 2 inches tall
More cold rather than specifying a particular temperature
Little bit louder rather than specifying the dB
More light rather than specifying the Lux
06, 2015
4 / 35
Motivatioin
We often say:
More Tall rather than saying 6 feet 2 inches tall
More cold rather than specifying a particular temperature
Little bit louder rather than specifying the dB
More light rather than specifying the Lux
06, 2015
4 / 35
Motivatioin
Degree of Membership
06, 2015
5 / 35
Motivatioin
Degree of Association
We need to specify degree of association along with the member
itself while specifying belongingness of that mmember to a class.
The fuzzy set A is a set of ordered pairs showing elements with
their respective degrees of belongingness between zero and
one:A = {(x1, 0.4), (x2, 0.3), (x3, 1), (x4, 0.6)}
Usually Fuzzy Sets are expressed as: A = {(x, MA (x)) | x X }
M is the membership function which tells about the degree of
association
06, 2015
6 / 35
Motivatioin
Degree of Association
We need to specify degree of association along with the member
itself while specifying belongingness of that mmember to a class.
The fuzzy set A is a set of ordered pairs showing elements with
their respective degrees of belongingness between zero and
one:A = {(x1, 0.4), (x2, 0.3), (x3, 1), (x4, 0.6)}
Usually Fuzzy Sets are expressed as: A = {(x, MA (x)) | x X }
M is the membership function which tells about the degree of
association
06, 2015
6 / 35
Motivatioin
Degree of Association
We need to specify degree of association along with the member
itself while specifying belongingness of that mmember to a class.
The fuzzy set A is a set of ordered pairs showing elements with
their respective degrees of belongingness between zero and
one:A = {(x1, 0.4), (x2, 0.3), (x3, 1), (x4, 0.6)}
Usually Fuzzy Sets are expressed as: A = {(x, MA (x)) | x X }
M is the membership function which tells about the degree of
association
06, 2015
6 / 35
Motivatioin
Degree of Association
We need to specify degree of association along with the member
itself while specifying belongingness of that mmember to a class.
The fuzzy set A is a set of ordered pairs showing elements with
their respective degrees of belongingness between zero and
one:A = {(x1, 0.4), (x2, 0.3), (x3, 1), (x4, 0.6)}
Usually Fuzzy Sets are expressed as: A = {(x, MA (x)) | x X }
M is the membership function which tells about the degree of
association
06, 2015
6 / 35
Motivatioin
Degree of Association
We need to specify degree of association along with the member
itself while specifying belongingness of that mmember to a class.
The fuzzy set A is a set of ordered pairs showing elements with
their respective degrees of belongingness between zero and
one:A = {(x1, 0.4), (x2, 0.3), (x3, 1), (x4, 0.6)}
Usually Fuzzy Sets are expressed as: A = {(x, MA (x)) | x X }
M is the membership function which tells about the degree of
association
06, 2015
6 / 35
06, 2015
7 / 35
06, 2015
7 / 35
06, 2015
8 / 35
06, 2015
8 / 35
06, 2015
8 / 35
06, 2015
8 / 35
06, 2015
8 / 35
06, 2015
8 / 35
06, 2015
8 / 35
06, 2015
8 / 35
06, 2015
8 / 35
06, 2015
8 / 35
06, 2015
9 / 35
06, 2015
9 / 35
06, 2015
9 / 35
06, 2015
10 / 35
06, 2015
10 / 35
06, 2015
10 / 35
06, 2015
10 / 35
06, 2015
10 / 35
06, 2015
10 / 35
06, 2015
10 / 35
06, 2015
11 / 35
06, 2015
11 / 35
06, 2015
11 / 35
06, 2015
11 / 35
06, 2015
11 / 35
06, 2015
11 / 35
Fuzzy Implication
Take an example of three implications:
Rule1: If x1 is Small1 and x2 is Small2 then y = x1 + x2
Rule2: If x1 is Big1 then y = 2 x1
Rule3: If x2 is Big2 then y = 3 x2
Grade of membership of x1
Grade of membership of x2
Small
Big
0.8
0.8
0.7
0.7
0.6
0.5
0.4
0.6
0.5
0.4
0.3
0.3
0.2
0.2
0.1
0.1
10
X1
15
Small
Big
0.9
Grade of membership
Grade of membership
0.9
20
X2
10
06, 2015
12 / 35
Rule
R1
0.9
0.9
0.8
0.8
0.7
0.7
0.6
0.6
0.5
0.5
0.4
0.4
0.3
Consequences
TV
= 12 + 5 0.25 0.375
= 17
= 0.25
= 2 12
= 24
= 35
= 15
0.375
0.3
0.25
0.2
0.2
0.1
0.1
10
15
20
10
0.9
0.8
R2
0.7
0.6
0.5
0.4
0.2
0.3
0.2
0.2
0.1
10
15
20
0.9
R3
0.8
0.7
0.6
0.5
0.4
0.375
0.375
0.3
0.2
0.1
10
06, 2015
13 / 35
.25
= .303
.25 + .2 + .375
.2
Weighted TV for Rule2 =
= .242
.25 + .2 + .375
.375
Weighted TV for Rule3 =
= .455
.25 + .2 + .375
Weighted TV for Rule1 =
06, 2015
14 / 35
.25
= .303
.25 + .2 + .375
.2
= .242
Weighted TV for Rule2 =
.25 + .2 + .375
.375
Weighted TV for Rule3 =
= .455
.25 + .2 + .375
06, 2015
14 / 35
.25
= .303
.25 + .2 + .375
.2
= .242
Weighted TV for Rule2 =
.25 + .2 + .375
.375
Weighted TV for Rule3 =
= .455
.25 + .2 + .375
06, 2015
14 / 35
.25
= .303
.25 + .2 + .375
.2
= .242
Weighted TV for Rule2 =
.25 + .2 + .375
.375
Weighted TV for Rule3 =
= .455
.25 + .2 + .375
06, 2015
14 / 35
06, 2015
15 / 35
06, 2015
16 / 35
The dynamics of motion for the inverted pendulum can be given by:
x 1 (t) = x2 (t)
x 2 (t) =
where,
x1 (t) is in the figure,
x2 (t) is angular velocity
m is mass of the pendulum
M is mass of the cart
2 l is length of the pendulum
u is applied force (F )
a=1/(m+M)
06, 2015
17 / 35
The dynamics of motion for the inverted pendulum can be given by:
x 1 (t) = x2 (t)
x 2 (t) =
where,
x1 (t) is in the figure,
x2 (t) is angular velocity
m is mass of the pendulum
M is mass of the cart
2 l is length of the pendulum
u is applied force (F )
a=1/(m+M)
06, 2015
17 / 35
The dynamics of motion for the inverted pendulum can be given by:
x 1 (t) = x2 (t)
x 2 (t) =
where,
x1 (t) is in the figure,
x2 (t) is angular velocity
m is mass of the pendulum
M is mass of the cart
2 l is length of the pendulum
u is applied force (F )
a=1/(m+M)
06, 2015
17 / 35
THEN x(t)
= A1 x(t) + B1 u(t)
where,
0
1
A1 =
g
0
4 l/3 a m l
0
B1 =
(4 l/3aa m l
Rule 2:
IF x1 (t) is about 2
THEN x(t)
= A2 x(t) + B2 u(t)
where,
"
A2 =
0
2g
2
" (4 l/3 a m l #)
0
B1 =
a
4 l/3 a
m l 2
#
1
0
= cos880
Imran (The University of Adelaide)
06, 2015
18 / 35
THEN x(t)
= A1 x(t) + B1 u(t)
where,
0
1
A1 =
g
0
4 l/3 a m l
0
B1 =
(4 l/3aa m l
Rule 2:
IF x1 (t) is about 2
THEN x(t)
= A2 x(t) + B2 u(t)
where,
"
A2 =
0
2g
2
" (4 l/3 a m l #)
0
B1 =
a
4 l/3 a
m l 2
#
1
0
= cos880
Imran (The University of Adelaide)
06, 2015
18 / 35
THEN x(t)
= A1 x(t) + B1 u(t)
where,
0
1
A1 =
g
0
4 l/3 a m l
0
B1 =
(4 l/3aa m l
Rule 2:
IF x1 (t) is about 2
THEN x(t)
= A2 x(t) + B2 u(t)
where,
"
A2 =
0
2g
2
" (4 l/3 a m l #)
0
B1 =
a
4 l/3 a
m l 2
#
1
0
= cos880
Imran (The University of Adelaide)
06, 2015
18 / 35
Grade of membership of x1
1
Around pi/2
Around 0
0.9
0.8
Grade of membership
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0
-2
-1.5
-1
-0.5
0.5
1.5
X1
x1 varies from
+ 2
to
06, 2015
19 / 35
Grade of membership of x1
1
Around pi/2
Around 0
0.9
0.8
Grade of membership
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0
-2
-1.5
-1
-0.5
0.5
1.5
X1
x1 varies from
+ 2
to
06, 2015
19 / 35
Grade of membership of x1
1
Around pi/2
Around 0
0.9
0.8
Grade of membership
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0
-2
-1.5
-1
-0.5
0.5
1.5
X1
x1 varies from
+ 2
to
06, 2015
19 / 35
Grade of membership of x1
1
Around pi/2
Around 0
0.9
0.8
Grade of membership
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0
-2
-1.5
-1
-0.5
0.5
1.5
X1
x1 varies from
+ 2
to
06, 2015
19 / 35
Grade of membership of x1
1
Around pi/2
Around 0
0.9
0.8
Grade of membership
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0
-2
-1.5
-1
-0.5
0.5
1.5
X1
x1 varies from
+ 2
to
06, 2015
19 / 35
T-S fuzzy model The i-th rule of a discrete T-S fuzzy model is
represented in equation
IF
Then x(t)
= Ai x(t) + Bi u(t)
y (t) = Ci x(t)
where z1 (t) . . . . . . zp (t) are premise variables, Mi1 . . . . . . Mip are
respective membership functions, Ai R nXn , Bi R nXq and Ci R qXn are
the matrices for the state space LTI model of the i-th rule of the model.
Final output of the above model is
x(t)
=
y (t) =
r
X
i=1
r
X
where,
r
Y
j=1
hi (Z (t)){Ci x(t)}
wi (Z (t))
hi (Z (t)) = P
r
w (Z (t))
i=1 i
i=1
Imran (The University of Adelaide)
06, 2015
20 / 35
T-S fuzzy model The i-th rule of a discrete T-S fuzzy model is
represented in equation
IF
Then x(t)
= Ai x(t) + Bi u(t)
y (t) = Ci x(t)
where z1 (t) . . . . . . zp (t) are premise variables, Mi1 . . . . . . Mip are
respective membership functions, Ai R nXn , Bi R nXq and Ci R qXn are
the matrices for the state space LTI model of the i-th rule of the model.
Final output of the above model is
x(t)
=
y (t) =
r
X
i=1
r
X
where,
r
Y
j=1
hi (Z (t)){Ci x(t)}
wi (Z (t))
hi (Z (t)) = P
r
w (Z (t))
i=1 i
i=1
Imran (The University of Adelaide)
06, 2015
20 / 35
T-S fuzzy model The i-th rule of a discrete T-S fuzzy model is
represented in equation
IF
Then x(t)
= Ai x(t) + Bi u(t)
y (t) = Ci x(t)
where z1 (t) . . . . . . zp (t) are premise variables, Mi1 . . . . . . Mip are
respective membership functions, Ai R nXn , Bi R nXq and Ci R qXn are
the matrices for the state space LTI model of the i-th rule of the model.
Final output of the above model is
x(t)
=
y (t) =
r
X
i=1
r
X
where,
r
Y
j=1
hi (Z (t)){Ci x(t)}
wi (Z (t))
hi (Z (t)) = P
r
w (Z (t))
i=1 i
i=1
Imran (The University of Adelaide)
06, 2015
20 / 35
T-S fuzzy model The i-th rule of a discrete T-S fuzzy model is
represented in equation
IF
Then x(t)
= Ai x(t) + Bi u(t)
y (t) = Ci x(t)
where z1 (t) . . . . . . zp (t) are premise variables, Mi1 . . . . . . Mip are
respective membership functions, Ai R nXn , Bi R nXq and Ci R qXn are
the matrices for the state space LTI model of the i-th rule of the model.
Final output of the above model is
x(t)
=
y (t) =
r
X
i=1
r
X
where,
r
Y
j=1
hi (Z (t)){Ci x(t)}
wi (Z (t))
hi (Z (t)) = P
r
w (Z (t))
i=1 i
i=1
Imran (The University of Adelaide)
06, 2015
20 / 35
T-S fuzzy model The i-th rule of a discrete T-S fuzzy model is
represented in equation
IF
Then x(t)
= Ai x(t) + Bi u(t)
y (t) = Ci x(t)
where z1 (t) . . . . . . zp (t) are premise variables, Mi1 . . . . . . Mip are
respective membership functions, Ai R nXn , Bi R nXq and Ci R qXn are
the matrices for the state space LTI model of the i-th rule of the model.
Final output of the above model is
x(t)
=
y (t) =
r
X
i=1
r
X
where,
r
Y
j=1
hi (Z (t)){Ci x(t)}
wi (Z (t))
hi (Z (t)) = P
r
w (Z (t))
i=1 i
i=1
Imran (The University of Adelaide)
06, 2015
20 / 35
r
X
hi (Z (t))Fi x(t)
i=1
06, 2015
21 / 35
r
X
hi (Z (t))Fi x(t)
i=1
06, 2015
21 / 35
r
X
hi (Z (t))Fi x(t)
i=1
06, 2015
21 / 35
r
X
hi (Z (t))Fi x(t)
i=1
06, 2015
21 / 35
r
X
hi (Z (t))Fi x(t)
i=1
06, 2015
21 / 35
r
X
hi (Z (t))Fi x(t)
i=1
06, 2015
21 / 35
r
X
hi (Z (t))Fi x(t)
i=1
06, 2015
21 / 35
x(t)
=
r
X
hi Ai
hj Bi Fj x(t)
j=1
i=1
r
X
r X
r
X
hi hj (Ai Bi Fj )x(t)
i=1 j=1
r
X
(1)
hi hi Gii x(t)
i=1
+2
r X
r
X
hi hj
i=1 j>i
where Gij =
Imran (The University of Adelaide)
Gij + Gji
2
x(t)
{Ai Bi Fj } + {Aj Bj Fi }
2
06, 2015
22 / 35
x(t)
=
r
X
hi Ai
hj Bi Fj x(t)
j=1
i=1
r
X
r X
r
X
hi hj (Ai Bi Fj )x(t)
i=1 j=1
r
X
(1)
hi hi Gii x(t)
i=1
+2
r X
r
X
hi hj
i=1 j>i
where Gij =
Imran (The University of Adelaide)
Gij + Gji
2
x(t)
{Ai Bi Fj } + {Aj Bj Fi }
2
06, 2015
22 / 35
x(t)
=
r
X
hi Ai
hj Bi Fj x(t)
j=1
i=1
r
X
r X
r
X
hi hj (Ai Bi Fj )x(t)
i=1 j=1
r
X
(1)
hi hi Gii x(t)
i=1
+2
r X
r
X
hi hj
i=1 j>i
where Gij =
Imran (The University of Adelaide)
Gij + Gji
2
x(t)
{Ai Bi Fj } + {Aj Bj Fi }
2
06, 2015
22 / 35
x(t)
=
r
X
hi Ai
hj Bi Fj x(t)
j=1
i=1
r
X
r X
r
X
hi hj (Ai Bi Fj )x(t)
i=1 j=1
r
X
(1)
hi hi Gii x(t)
i=1
+2
r X
r
X
hi hj
i=1 j>i
where Gij =
Imran (The University of Adelaide)
Gij + Gji
2
x(t)
{Ai Bi Fj } + {Aj Bj Fi }
2
06, 2015
22 / 35
i = i, 2, . . . , r
j > i s.t. hi hj 6=
06, 2015
23 / 35
i = i, 2, . . . , r
j > i s.t. hi hj 6=
06, 2015
23 / 35
06, 2015
24 / 35
06, 2015
24 / 35
06, 2015
24 / 35
06, 2015
24 / 35
06, 2015
24 / 35
h1
h1
x1
h2
h2
Fuzzyfier
Terminator
-F1* u
-F1 x
h1F1
-F2* u
-F2 x
h2F2
add
u=(h1F1+h2F2) * x
A1* u
A1
B1* u
Add
w1* (A1*x+B1*u)
B1
xdot
Add2
A2* u
1
s
Integrator
Scope
A2
Add1
w2* (A2*x+B2*u)
B2* u
B2
06, 2015
25 / 35
Simulation Output
x
1.5
X1
X2
1
0.5
-0.5
-1
-1.5
-2
-2.5
-3
-3.5
0.5
1.5
2.5
3.5
4.5
Time offset: 0
06, 2015
26 / 35
06, 2015
27 / 35
06, 2015
27 / 35
06, 2015
27 / 35
Conclusion
06, 2015
28 / 35
Conclusion
06, 2015
28 / 35
Conclusion
06, 2015
28 / 35
Conclusion
06, 2015
29 / 35
Conclusion
06, 2015
29 / 35
Conclusion
06, 2015
29 / 35
Conclusion
06, 2015
29 / 35
Conclusion
+ Ai P1
T
T T
M1i Bi
T
+ P2 Ai
T T
Cj N2i
T
Now find state feedback gain Fi = M1i P11 and observer gain Ki = P21 N2i
Imran (The University of Adelaide)
06, 2015
30 / 35
Conclusion
+ Ai P1
T T
M1i Bi
T
+ P2 Ai
T T
Cj N2i
T
Now find state feedback gain Fi = M1i P11 and observer gain Ki = P21 N2i
Imran (The University of Adelaide)
06, 2015
30 / 35
Conclusion
+ Ai P1
T T
M1i Bi
T
+ P2 Ai
T T
Cj N2i
T
Now find state feedback gain Fi = M1i P11 and observer gain Ki = P21 N2i
Imran (The University of Adelaide)
06, 2015
30 / 35
Conclusion
+ Ai P1
T T
M1i Bi
T
+ P2 Ai
T T
Cj N2i
T
Now find state feedback gain Fi = M1i P11 and observer gain Ki = P21 N2i
Imran (The University of Adelaide)
06, 2015
30 / 35
Conclusion
06, 2015
31 / 35
Conclusion
06, 2015
31 / 35
Conclusion
06, 2015
31 / 35
Conclusion
06, 2015
31 / 35
Conclusion
06, 2015
31 / 35
Conclusion
06, 2015
31 / 35
Conclusion
06, 2015
31 / 35
Conclusion
06, 2015
31 / 35
Conclusion
06, 2015
32 / 35
Conclusion
06, 2015
32 / 35
Conclusion
06, 2015
32 / 35
Conclusion
06, 2015
32 / 35
Conclusion
06, 2015
32 / 35
Conclusion
06, 2015
32 / 35
Conclusion
06, 2015
33 / 35
Conclusion
06, 2015
33 / 35
Conclusion
06, 2015
33 / 35
Conclusion
06, 2015
33 / 35
Conclusion
06, 2015
33 / 35
Conclusion
06, 2015
34 / 35
Conclusion
06, 2015
34 / 35
Conclusion
06, 2015
34 / 35
Conclusion
06, 2015
34 / 35
Conclusion
Thank you!
06, 2015
35 / 35