download

Matakuliah
Tahun
Versi
: H0434/Jaringan Syaraf Tiruan
: 2005
:1
Pertemuan 24
APLIKASI LOGIKA FUZZY
1
Learning Outcomes
Pada akhir pertemuan ini, diharapkan mahasiswa
akan mampu :
• Menunjukkan beberapa aplikasi logika
fuzzy.
2
Outline Materi
• Beberapa Contoh Aplikasi
3
APLIKASI FUZZY LOGIC
4
AC CONTROLLER
FUZZY RULES


IF Cold then Stop
If Cool then Slow

If OK then Medium

If Warm then Fast

IF Hot then Blast
5
AC CONTROLER
Air Temperature





Set
Set
Set
Set
Set
Fan Speed
Set stop {30, 0, 0}
cold {50, 0, 0}
Set slow {50, 30, 10}
cool {65, 55, 45}
just right {70, 65, 60} Set medium {60, 50, 40}
Set fast {90, 70, 50}
warm {85, 75, 65}
Set blast {, 100, 80}
hot {, 90, 80}
6
MEMBERSHIP FUNCTION
0
100
90
80
If Hot
then
Blast
st
Bla
Fa
st
If Warm
then
Fast
70
60
Med
ium
If Just Right
then
Medium
50
40
IF Cool
then
Slow
Sl
ow
30
if Cold
then Stop
20
op
St
10
0
Ho
t
W
Jus
t
Rig
ht
ld
Co
Co
ol
ar
m
1
0
7
45
50
55
60
65
70
75
80
85
90
MAPPING INPUT-OUTPUT
1
0
100
90
80
t
s
Bla
Fa
t
st
70
60
Med
50
40
ium
Sl
ow
30
20
o
St
10
p
0
ld
t
Ho
W
Jus
Rig t
ht
Co
Co
ol
ar
m
1
0
8
45
50
55
60
65
70
75
80
85
90
INVERTED PENDULUM
Goal: maintain
stick vertical !
q(k), Dq(k)
Action : u(k)
q is measured at
time k; Dq is
change of q at (k)
Action is
performed by
moving cart with
force u
q(k) Dq (k),u(k)
NB
N
Z
P
PB
NB: negative Big, Z: zero, P: positive
9
FUZZY RULES
q(k)
Dq
(k)
NB
N
Z
P
PB
NB
N
Z
P
N
NB
Z
Z
Z
PB
Here, 7 fuzzy
relations are
enough to get a
working minmax-cog fuzzy
controller !
P
PB
Action u(k) in fct of q(k) and Dq (k)
10
KAMERA DENGAN 2 MOTOR
m
NL NM NS Z
PS PM
PL
0
Dx
benda
m
PS PM
t0
PL
q1
Dy
y
0
q2
t1
NL NM NS Z
KAMERA
x
Tampilan Kamera
11
RULE BASE UNTUK KAMERA
Dx,Dy
x,y
NL
NM
NS
ZR
PS
PM
PL
NL
PL
PL
PL
PL
PM
PS
0
NM
PM
PM
PM
PM
PS
0
NS
NS
PM
PM
PS
PS
0
NS
NS
ZR
PM
PM
PS
0
NS
NM
NM
PS
PS
PS
0
NS
NM
NM
NM
PM
PS
0
NS
NM
NM
NM
NM
PL
0
NS
NM
NL
NL
NL
NL
BESAR DAN ARAH PUTAR MOTOR
12
PROSES
INFERENCE DAN DEFUZZIFICATION
PERUBAHAN
POSISI
POSISI
NL
SUDUT PUTAR
PM
A1
PL
B1
NM
A2
C1
PS
C1'
PM
B2
C2
C2'
x
S wi . mC'(wi)
w=
mC'(wi)
Dx
C' = C1' U C2'
w
Center of gravity
13