0% found this document useful (0 votes)
24 views20 pages

Fuzzy Logic Toolbox: Lecture # 6 CECOS University

This document provides instructions for building a fuzzy inference system (FIS) from scratch to determine tip amounts based on food and service quality ratings. It explains that the FIS will use three linguistic variables - poor/average/generous tip, poor/good/excellent service, and rancid/average/delicious food. Tips will be 5% for poor ratings, 15% for average, and 25% for excellent. It also introduces the Fuzzy Logic Toolbox GUI and command line functions for plotting, evaluating, and visualizing the FIS.

Uploaded by

hamzoni
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views20 pages

Fuzzy Logic Toolbox: Lecture # 6 CECOS University

This document provides instructions for building a fuzzy inference system (FIS) from scratch to determine tip amounts based on food and service quality ratings. It explains that the FIS will use three linguistic variables - poor/average/generous tip, poor/good/excellent service, and rancid/average/delicious food. Tips will be 5% for poor ratings, 15% for average, and 25% for excellent. It also introduces the Fuzzy Logic Toolbox GUI and command line functions for plotting, evaluating, and visualizing the FIS.

Uploaded by

hamzoni
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 20

Fuzzy Logic Toolbox

Lecture # 6 CECOS University

Building a FIS from scratch

The Basic Tipping Problem. Given a number between 0 and 10 that represents the quality of service at a restaurant (where 10 is excellent), and another number between 0 and 10 that represents the quality of the food at that restaurant (again, 10 is excellent), what should the tip be?

Building a FIS from scratch (cont.)


1. If the service is poor or the food is rancid, then tip is cheap. 2. If the service is good, then tip is average. 3. If the service is excellent or the food is delicious, then tip is generous. We'll assume that an average tip is 15%, a generous tip is 25%, and a cheap tip is 5%. It's also useful to have a vague idea of what the tipping function should look like.

Fuzzy Logic Toolbox (GUI)

Start the toolbox:

FIS Editor

Example: Dinner for two

October 13, 2005

17

Command Line functions


plotfis plotmf gensurf

Evaluate tipper
>> a = readfis('tipper'); >> evalfis([1 2], a)
ans = 5.5586

>> evalfis([3 5; 2 7], a)


ans = 12.2184 7.7885

You might also like