october 13, 2005 0 matlab fuzzy logic toolbox intelligent control
TRANSCRIPT
October 13, 2005October 13, 2005 1
MATLAB Fuzzy Logic ToolboxMATLAB Fuzzy Logic ToolboxIntelligent Control
October 13, 2005October 13, 2005 2
Introduction
Example: Dinner for two
MATLAB Fuzzy Logic ToolboxMATLAB Fuzzy Logic Toolbox
October 13, 2005October 13, 2005 3
Introduction
Example: Dinner for two
MATLAB Fuzzy Logic ToolboxMATLAB Fuzzy Logic Toolbox
October 13, 2005October 13, 2005 4
The MATLAB fuzzy logic toolbox facilitates the development of fuzzy-logic systems using:
• graphical user interface (GUI) tools
• command line functionality
The tool can be used for building
• Fuzzy Expert Systems
• Adaptive Neuro-Fuzzy Inference Systems (ANFIS)
IntroductionIntroduction
October 13, 2005October 13, 2005 5
Three Interfaces:
matlab/simulink/
independent code
General VisionGeneral Vision
October 13, 2005October 13, 2005 6
Graphical User Interface (GUI) Tools
There are five primary GUI tools for building, editing, and observing fuzzy inference systems in the Fuzzy Logic Toolbox:
• Fuzzy Inference System (FIS) Editor
• Membership Function Editor
• Rule Editor
• Rule Viewer
• Surface Viewer
IntroductionIntroduction
October 13, 2005October 13, 2005 7
Graphical User Interface (GUI) Tools
IntroductionIntroduction
October 13, 2005October 13, 2005 8
Introduction
Example: Dinner for two
MATLAB Fuzzy Logic ToolboxMATLAB Fuzzy Logic Toolbox
October 13, 2005October 13, 2005 9
Building a FIS from scratchBuilding a FIS from scratch
The Basic Tipping Problem.The Basic Tipping Problem. Given a Given a number between 0 and 10 that represents number between 0 and 10 that represents the quality of service at a restaurant the quality of service at a restaurant (where 10 is excellent), and another (where 10 is excellent), and another number between 0 and 10 that represents number between 0 and 10 that represents the quality of the food at that restaurant the quality of the food at that restaurant (again, 10 is excellent), what should the tip (again, 10 is excellent), what should the tip be?be?
October 13, 2005October 13, 2005 10
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%).
October 13, 2005October 13, 2005 11
Fuzzy Logic Toolbox (GUI)Fuzzy Logic Toolbox (GUI)
Start the toolbox:Start the toolbox:
October 13, 2005October 13, 2005 12
Example: Dinner for twoExample: Dinner for two
Fuzzy Inference System (FIS) Editor
October 13, 2005October 13, 2005 13
Fuzzy Inference System (FIS) EditorFIS EditorFIS Editor
October 13, 2005October 13, 2005 14
Example: Dinner for twoExample: Dinner for two
Membership Function Editor
October 13, 2005October 13, 2005 15
Fuzzy Inference System (FIS) EditorMembership Function EditorMembership Function Editor
October 13, 2005October 13, 2005 16
Example: Dinner for twoExample: Dinner for two
Rule Editor
October 13, 2005October 13, 2005 17
Fuzzy Inference System (FIS) EditorRule EditorRule Editor
October 13, 2005October 13, 2005 18
Example: Dinner for twoExample: Dinner for two
Rule Viewer
October 13, 2005October 13, 2005 19
Fuzzy Inference System (FIS) EditorRule ViewerRule Viewer
October 13, 2005October 13, 2005 20
Example: Dinner for twoExample: Dinner for two
October 13, 2005October 13, 2005 21
Example: Dinner for twoExample: Dinner for two
Surface Viewer
October 13, 2005October 13, 2005 22
Fuzzy Inference System (FIS) EditorSurface ViewerSurface Viewer