Contoh slideMenentukan tingkat kesehatan dari tinggi dan berat badan. Output: Very healthy = 0.8, Healthy = 0.6, Somewhat healthy = 0.4, Not healthy = 0.2. Contoh: tinggi 161.5 cm, berat 41 kg.
1Fuzzifikasi
Tinggi dan berat masing-masing punya 5 himpunan trapesium.
Tinggi (cm)161.5
Very short 0Short 0Medium 0.7Tall 0.3Very tall 0
Berat (kg)41
Very light 0.8Light 0.2Average 0Heavy 0Very heavy 0
2Inferensi rule
Setiap sel adalah rule "IF tinggi is baris AND berat is kolom THEN kelas". Sel yang aktif menyala biru dengan α = min(μ_tinggi, μ_berat).
| Very light0.8 | Light0.2 | Average | Heavy | Very heavy | |
|---|---|---|---|---|---|
| Very short | VH | H | SH | NH | NH |
| Short | H | VH | H | SH | NH |
| Medium0.7 | SH0.7 | VH0.2 | VH | SH | NH |
| Tall0.3 | NH0.3 | H0.2 | VH | H | NH |
| Very tall | NH | SH | VH | H | SH |
| Rule aktif | α = min | Then |
|---|---|---|
| IF tinggi is Medium AND berat is Very light | min(0.7, 0.8) = 0.7 | SH Somewhat healthy |
| IF tinggi is Medium AND berat is Light | min(0.7, 0.2) = 0.2 | VH Very healthy |
| IF tinggi is Tall AND berat is Very light | min(0.3, 0.8) = 0.3 | NH Not healthy |
| IF tinggi is Tall AND berat is Light | min(0.3, 0.2) = 0.2 | H Healthy |
3Komposisi
Jika satu kelas muncul di beberapa rule aktif, diambil α terbesar (max).
| Kelas | Nilai output | α kelas (max) |
|---|---|---|
| NH · Not healthy | 0.2 | 0.3 |
| SH · Somewhat healthy | 0.4 | 0.7 |
| H · Healthy | 0.6 | 0.2 |
| VH · Very healthy | 0.8 | 0.2 |
f = {NH, SH, H, VH} = {0.3, 0.7, 0.2, 0.2}
4Keputusan akhir
Dua cara dari slide: ambil kelas dengan α tertinggi (max), atau rata-rata berbobot nilai output.
Metode max: α tertinggi = 0.7 → SH
Decision index = (0.3 × 0.2) + (0.7 × 0.4) + (0.2 × 0.6) + (0.2 × 0.8)0.3 + 0.7 + 0.2 + 0.2 = 0.621.4 = 0.4429
Metode maxSHSomewhat healthy (α = 0.7)
Weighted average0.4429Paling dekat ke SH · Somewhat healthy (0.4)
Tinggi
Berat
Decision0.4429
Berdasarkan materi Session 15 (Fuzzy Set) dan Session 16 (Fuzzy Logic and Inference). Referensi: Engelbrecht (2023), Lee (2004).