1 / 19

Fuzzy Logic Toolbox , Membership Functions dan Fuzzy Inferencing System

Fuzzy Logic Toolbox , Membership Functions dan Fuzzy Inferencing System . Praktikum 6 Sistem Pakar Tim Asisten Sistem Pakar. Task 1 : Menambah variabel Menambah membership function Task 2 : menambah Rule Task 3 : evaluasi FIS. Pembahasan. Fungsi newfis.

trynt
Download Presentation

Fuzzy Logic Toolbox , Membership Functions dan Fuzzy Inferencing System

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Fuzzy Logic Toolbox, Membership FunctionsdanFuzzy Inferencing System Praktikum 6 SistemPakar Tim AsistenSistemPakar

  2. Task 1 : • Menambahvariabel • Menambahmembership function • Task 2 : menambah Rule • Task 3 : evaluasi FIS Pembahasan

  3. Fungsinewfis • Fungsinewfisuntukmembuat FIS baru. • FIS=NEWFIS(FISNAME) • FIS=NEWFIS(FISNAME, FISTYPE) • FIS=NEWFIS(FISNAME, FISTYPE, andMethod, orMethod, impMethod, aggMethod, defuzzMethod) • default FIS type : Mamdani Membuat FIS

  4. Coba a=newfis('newsys'); getfis(a); Membuat FIS

  5. Output Name = newsys Type = mamdani NumInputs = 0 InLabels = NumOutputs = 0 OutLabels = NumRules 0 AndMethod min OrMethod max ImpMethod min AggMethod max DefuzzMethodcentroid Membuat FIS

  6. Fungsiaddvar • Fungsiaddvaruntukmenambahvariabel fuzzy barukesuatusistem FIS yang telahada a = addvar (a,varType,varName,varBounds) • Deskripsi: • a = nama FIS • varType = tipevariabel ‘input’ atau ‘output’ • varName = namavariabel • varBounds = rentangnilaivariabel MenambahVariabel

  7. Contoh • Misalkankitainginmembuatvariabel fuzzy untuk input tinggibadandenganrentangnilai 100 – 180. a = addvar(a, ‘input’, ‘tinggi’, [100-180]) getfis(a, ‘input’, 1) • Coba: help getfis. Fungsigetfisadalahuntuk…. MenambahVariabel

  8. Task 1 : • Menambahvariabel • Menambahmembership function • Task 2 : menambah Rule • Task 3 : evaluasi FIS Pembahasan

  9. Fungsiaddmf • Fungsiaddmfuntukmenambahmembership functionkesuatuvariabel yang telahada. a = addmf(a, varType, varIndex, mfName, mfType, mfParams) • Deskripsi: • a = nama FIS • varType = tipevariabel ‘input’ atau ‘output’ • varIndex = varibelkeberapa yang mauditambahin mf-nya • mfName = nama/linguistiknya. • mfType = jenismembership function, contoh: trapesium (trapmf), segitiga (trimf), ataugaussian (gaussmf) MenambahMembership Function

  10. Contoh a=newfis('tipper'); a=addvar(a,'input','service',[0 10]); a=addmf(a,'input',1,'poor','gaussmf',[1.5 0]); a=addmf(a,'input',1,'good','gaussmf',[1.5 5]); a=addmf(a,'input',1,'excellent','gaussmf',[1.5 10]); plotmf(a,'input',1) MenambahMembership Function

  11. myfis1.m % #1 membuatSistem FIS barudisimpandalamvariabel a a = newfis('myfis1'); % #2 menambahvariabel input fuzzy "usia" denganrentangnilaiusia 0-70 a = addvar(a, 'input', 'usia', [0 70]); Let’s Create a FIS…!

  12. myfis1.m % #3 menambah membership function % ada 3 label yang digunakan : muda, pertengahan, lansia % membership function menggunakantipe Gaussian a = addmf(a, 'input', 1, 'muda', 'gaussmf', [10 0]); a = addmf(a, 'input', 1, 'pertengahan', 'gaussmf', [10 35]); a = addmf(a, 'input', 1, 'lansia', 'gaussmf', [10 70]); % mem-plot membership function plotmf (a, 'input', 1) Let’s Create a FIS…!

  13. LATIHAN • Tambahkansatubuahvariabel “berat_pria” denganrentangnilai 65-120 • Nilailinguistiknya : small, medium, large. • Tipe MF segitiga (trimf). Pembahasan

  14. % #4 menambahvariabel input fuzzy "berat_pria" denganrentangnilaiusia 0-70 a = addvar(a, 'input', 'berat_pria', [65 120]); % #5 menambah membership function untukvariabel "berat_pria" % ada 3 label yang digunakan : small, medium, large % membership function menggunakantipe Triangular (Segitiga) a = addmf(a, 'input', 2, 'small', 'trimf', [65 70 80]); a = addmf(a, 'input', 2, 'medium', 'trimf', [75 85 95]); a = addmf(a, 'input', 2, 'large', 'trimf', [90 110 120]); Let’s Create a FIS…!

  15. % mem-plot membership function subplot(211), plotmf (a, 'input', 1); subplot(212), plotmf (a, 'input', 2); Subplot

  16. Task 1 : • Menambahvariabel • Menambahmembership function • Task 2 : menambah Rule • Task 3 : evaluasi FIS Pembahasan

  17. Fungsiaddrule • Fungsiaddruleuntukmenambahrule kesuatu FIS yang telahada. a = addrule(a, ruleList) • Deskripsi: • a = nama FIS • ruleList = list rule. BerisiM+N+ 2 kolomuntuksetiap rule. • M = jumlahvariabel input • N = jumlahvariabel output MenambahRule

  18. Contoh MenambahRule

More Related