Week7 Fuzzy Logic Matlab (1)

19
October 2005 October 2005 1 MATLAB Fuzzy Logic MATLAB Fuzzy Logic Toolbox Toolbox CS364 Artificial Intelligence

Transcript of Week7 Fuzzy Logic Matlab (1)

Page 1: Week7 Fuzzy Logic Matlab (1)

October 2005October 2005 1

MATLAB Fuzzy Logic ToolboxMATLAB Fuzzy Logic ToolboxCS364 Artificial Intelligence

Page 2: Week7 Fuzzy Logic Matlab (1)

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)

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)

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)

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)

October 2005October 2005 6

Graphical User Interface (GUI) ToolsGraphical User Interface (GUI) Tools

Page 7: Week7 Fuzzy Logic Matlab (1)

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)

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)

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)

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)

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)

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)

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)

October 2005October 2005 14

Example: Dinner for twoExample: Dinner for two

Page 15: Week7 Fuzzy Logic Matlab (1)

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)

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)

October 2005October 2005 17

Example: Dinner for twoExample: Dinner for two

Rule Editor

Page 18: Week7 Fuzzy Logic Matlab (1)

October 2005October 2005 18

Example: Dinner for twoExample: Dinner for two

Rule Viewer Defuzzified output

Page 19: Week7 Fuzzy Logic Matlab (1)

October 2005October 2005 19

Example: Dinner for twoExample: Dinner for two

Surface Viewer