Week7 Fuzzy Logic Matlab (1)
-
Upload
surinder-kumar-makwana -
Category
Documents
-
view
170 -
download
41
Transcript of Week7 Fuzzy Logic Matlab (1)
![Page 1: Week7 Fuzzy Logic Matlab (1)](https://reader031.fdocuments.us/reader031/viewer/2022020709/54529383af79591d308b5083/html5/thumbnails/1.jpg)
October 2005October 2005 1
MATLAB Fuzzy Logic ToolboxMATLAB Fuzzy Logic ToolboxCS364 Artificial Intelligence
![Page 2: Week7 Fuzzy Logic Matlab (1)](https://reader031.fdocuments.us/reader031/viewer/2022020709/54529383af79591d308b5083/html5/thumbnails/2.jpg)
October 2005October 2005 2
Introduction
Graphical User Interface (GUI) Tools
Example: Dinner for two
MATLAB Fuzzy Logic ToolboxMATLAB Fuzzy Logic Toolbox
![Page 3: Week7 Fuzzy Logic Matlab (1)](https://reader031.fdocuments.us/reader031/viewer/2022020709/54529383af79591d308b5083/html5/thumbnails/3.jpg)
October 2005October 2005 3
MATLAB fuzzy logic toolbox facilitates the development of fuzzy-logic systems using:
IntroductionIntroduction
The tool can be used for building
• Fuzzy Expert Systems
• Adaptive Neuro-Fuzzy Inference Systems (ANFIS)
• graphical user interface (GUI) tools
• command line functionality
![Page 4: Week7 Fuzzy Logic Matlab (1)](https://reader031.fdocuments.us/reader031/viewer/2022020709/54529383af79591d308b5083/html5/thumbnails/4.jpg)
October 2005October 2005 4
Graphical User Interface (GUI) Tools
IntroductionIntroduction
• Fuzzy Inference System (FIS) Editor
• Membership Function Editor
• Rule Editor
• Rule Viewer
• Surface Viewer
There are five primary GUI tools for building, editing, and observing fuzzy inference systems in the Fuzzy Logic Toolbox:
![Page 5: Week7 Fuzzy Logic Matlab (1)](https://reader031.fdocuments.us/reader031/viewer/2022020709/54529383af79591d308b5083/html5/thumbnails/5.jpg)
October 2005October 2005 5
Introduction
Graphical User Interface (GUI) Tools
Example: Dinner for two
MATLAB Fuzzy Logic ToolboxMATLAB Fuzzy Logic Toolbox
![Page 6: Week7 Fuzzy Logic Matlab (1)](https://reader031.fdocuments.us/reader031/viewer/2022020709/54529383af79591d308b5083/html5/thumbnails/6.jpg)
October 2005October 2005 6
Graphical User Interface (GUI) ToolsGraphical User Interface (GUI) Tools
![Page 7: Week7 Fuzzy Logic Matlab (1)](https://reader031.fdocuments.us/reader031/viewer/2022020709/54529383af79591d308b5083/html5/thumbnails/7.jpg)
October 2005October 2005 7
Fuzzy Inference System (FIS) Editor
Adjust fuzzy inference functions
Define number of input and output
variables
Name and edit names of input, output variables
Graphical User Interface (GUI) ToolsGraphical User Interface (GUI) Tools
![Page 8: Week7 Fuzzy Logic Matlab (1)](https://reader031.fdocuments.us/reader031/viewer/2022020709/54529383af79591d308b5083/html5/thumbnails/8.jpg)
October 2005October 2005 8
Membership Function Editor
Display & edit values of current
variable
Select & edit attributes of membership
function
Name & edit parameters of membership
function
Graphical User Interface (GUI) ToolsGraphical User Interface (GUI) Tools
![Page 9: Week7 Fuzzy Logic Matlab (1)](https://reader031.fdocuments.us/reader031/viewer/2022020709/54529383af79591d308b5083/html5/thumbnails/9.jpg)
October 2005October 2005 9
Rule Editor
Create and edit rules
Rules – automatically
updated
Graphical User Interface (GUI) ToolsGraphical User Interface (GUI) Tools
![Page 10: Week7 Fuzzy Logic Matlab (1)](https://reader031.fdocuments.us/reader031/viewer/2022020709/54529383af79591d308b5083/html5/thumbnails/10.jpg)
October 2005October 2005 10
Rule Viewer
Shows how output variable is used in
rules; shows output of fuzzy
system
Shows how input variable is used in
rules
Graphical User Interface (GUI) ToolsGraphical User Interface (GUI) Tools
![Page 11: Week7 Fuzzy Logic Matlab (1)](https://reader031.fdocuments.us/reader031/viewer/2022020709/54529383af79591d308b5083/html5/thumbnails/11.jpg)
October 2005October 2005 11
Surface Viewer
Shows output surface for any system output
versus any one (or two) inputsSpecify input and
output variables
Graphical User Interface (GUI) ToolsGraphical User Interface (GUI) Tools
![Page 12: Week7 Fuzzy Logic Matlab (1)](https://reader031.fdocuments.us/reader031/viewer/2022020709/54529383af79591d308b5083/html5/thumbnails/12.jpg)
October 2005October 2005 12
Introduction
Graphical User Interface (GUI) Tools
Example: Dinner for two
MATLAB Fuzzy Logic ToolboxMATLAB Fuzzy Logic Toolbox
![Page 13: Week7 Fuzzy Logic Matlab (1)](https://reader031.fdocuments.us/reader031/viewer/2022020709/54529383af79591d308b5083/html5/thumbnails/13.jpg)
October 2005October 2005 13
Example: Dinner for twoExample: Dinner for two
Golden rules for tipping:
1. IF the service is poor OR the food is rancid, THEN tip is cheap (5%).
2. IF the service is good, THEN tip is average (15%).
3. IF the service is excellent OR the food is delicious, THEN tip is generous (25%).
![Page 14: Week7 Fuzzy Logic Matlab (1)](https://reader031.fdocuments.us/reader031/viewer/2022020709/54529383af79591d308b5083/html5/thumbnails/14.jpg)
October 2005October 2005 14
Example: Dinner for twoExample: Dinner for two
![Page 15: Week7 Fuzzy Logic Matlab (1)](https://reader031.fdocuments.us/reader031/viewer/2022020709/54529383af79591d308b5083/html5/thumbnails/15.jpg)
October 2005October 2005 15
Example: Dinner for twoExample: Dinner for two
Fuzzy Inference System (FIS) Editor
input variables
output variable
![Page 16: Week7 Fuzzy Logic Matlab (1)](https://reader031.fdocuments.us/reader031/viewer/2022020709/54529383af79591d308b5083/html5/thumbnails/16.jpg)
October 2005October 2005 16
Example: Dinner for twoExample: Dinner for two
Membership Function Editor
Select type of membership
function
![Page 17: Week7 Fuzzy Logic Matlab (1)](https://reader031.fdocuments.us/reader031/viewer/2022020709/54529383af79591d308b5083/html5/thumbnails/17.jpg)
October 2005October 2005 17
Example: Dinner for twoExample: Dinner for two
Rule Editor
![Page 18: Week7 Fuzzy Logic Matlab (1)](https://reader031.fdocuments.us/reader031/viewer/2022020709/54529383af79591d308b5083/html5/thumbnails/18.jpg)
October 2005October 2005 18
Example: Dinner for twoExample: Dinner for two
Rule Viewer Defuzzified output
![Page 19: Week7 Fuzzy Logic Matlab (1)](https://reader031.fdocuments.us/reader031/viewer/2022020709/54529383af79591d308b5083/html5/thumbnails/19.jpg)
October 2005October 2005 19
Example: Dinner for twoExample: Dinner for two
Surface Viewer