SlideShare a Scribd company logo
1 of 13
Fuzzy tool box manual for tip calculation 
By- Sanchita Singha 
 To use the fuzzy tool box, at first we have to write only "fuzzy" at the command window, and 
then press Enter. 
>>fuzzy 
Then a FIS Editor window will open- 
 Then we use ctrl+s to save it. the output will be .fis or we can say FIS file type.
Here we save it as "tipcal.fis". 
Here we can see the input, then the system(tipcal) then the output. 
 Now select the existing input and output and delete or remove them except the existing system.
We Remove them by selecting the input or output first the go to Edit, then select- Remove Selected 
Variable or by directly pressing Ctrl+X. 
 Now we will add variables as 2 input variables and 1 output variable. 
For adding an input variable we have to do the following steps- 
Go to Edit ---> Add variable-->Input 
here we have taken 2 input variables FOOD and SERVICES 
For adding an output variable we have to do the following steps- 
Go to Edit ---> Add variable-->Output 
Here we have taken 1 output variable TIP 
After adding input and output variables change their names by selecting them 
After changing the names the FIS Editor will look like-
 Then we will change the range of each variables, by double clicking on the variables. Then a 
new window known as Membership Function Editor : tipcal will open. We will assign the input 
parameter Food to range to [0 50] and the other input parameter Service to range to [0 50]. and 
the output variable Tip to [0 1000] and then the window will look like-
 Then we will remove all the existing membership functions. 
After Removing existing Membership functions the Membership Function Editor window will look 
like-
 Now we will add membership functions of our own choice. For adding new membership 
functions we first go to Edit then Add MFs- 
After selecting Add MFs we will get a new window which is, Membership Function window- 
Here We will choose What kind of MFs we want to add and what would be the no of MFs we want 
to add. It has a number of choice available for MF type.
As here we have food as 3 types which are Delicious, Average and Worst. So we take Triangular 
MF or trimf and Number of MFs as 3.And there are also 3 types of Service which are Excellent, 
Average, and Worst so we take Trapezoidal MF and Number of MFs as 3. And also there are 3 
types of tips which are High, Medium and Low so we take Trapezoidal MF and Number of MFs as 
3.So now the 
Membership 
Function 
Editor: tipcal 
will look like- 
 Now we will chance the parameters-
Let for Food the definition of Delicious is above 30, Average is within 15-35, and Worst is below 
20. For Service the definition of Excellent is above 30, Average is within 15-35, and Worst is below 
20. And for Tip the definition of High is above 700, Medium is within 300-700 and Low is below 
300. 
 So now we will at first select each line and write the parameter for Food- 
 So for worst the parameters will be [0 0 50] and the name will be Worst 
 For Average the parameter will be [0 25 50] and the name will be Average 
 For Delicious the parameter will be [0 50 50] and the name will be Delicious 
 Now we will select each line and write the parameter for Service- 
 So for Worst the parameter will be [0 0 20 50] and the name will be Worst 
 For Average the parameter will be [0 15 35 50] and the name will be Average 
 For Excellent the parameter will be [0 30 50 50] and the name will be Excellent 
 Now we will select each line and write the parameter for Tip- 
 So for Low the parameter will be [0 0 300 1000] and the name will be Low 
 For Medium the parameter will be [0 300 700 1000] and the name will be Medium 
 For High the parameter will be [0 700 1000 1000] and the name will be High
And 
 Now we will define the rules by double clicking on the system, a Rule Editor Window will 
open-
After writing all the rules we get the following window- 
Here Rules I had Taken are- 
1. If the Food Delicious and Service is Excellent then Tip is High. 
2. If the Food Delicious and Service is Average then Tip is High. 
3. If the Food Delicious and Service is Worst then Tip is Medium. 
4. If the Food Average and Service is Excellent then Tip is Medium. 
5. If the Food Average and Service is Average then Tip is Medium. 
6. If the Food Average and Service is Worst then Tip is Low. 
7. If the Food Worst and Service is Excellent then Tip is Medium. 
8. If the Food Worst and Service is Average then Tip is Low. 
9. If the Food Worst and Service is Worst then Tip is Low.
-Now to view the output we first click on View the select rules or by directly pressing Ctrl+5 
Then the output or the Transfer function will be shown at Rule Viewer Window, for centroid 
Defuzzification-
For some other input the variation of the output is shown here in min of max-
The Surface graph for the centroid Defuzzyfication is shown below-

More Related Content

Recently uploaded

Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerunnathinaik
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 

Recently uploaded (20)

Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developer
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

fuzzy toolbox manual for tip calculation

  • 1. Fuzzy tool box manual for tip calculation By- Sanchita Singha  To use the fuzzy tool box, at first we have to write only "fuzzy" at the command window, and then press Enter. >>fuzzy Then a FIS Editor window will open-  Then we use ctrl+s to save it. the output will be .fis or we can say FIS file type.
  • 2. Here we save it as "tipcal.fis". Here we can see the input, then the system(tipcal) then the output.  Now select the existing input and output and delete or remove them except the existing system.
  • 3. We Remove them by selecting the input or output first the go to Edit, then select- Remove Selected Variable or by directly pressing Ctrl+X.  Now we will add variables as 2 input variables and 1 output variable. For adding an input variable we have to do the following steps- Go to Edit ---> Add variable-->Input here we have taken 2 input variables FOOD and SERVICES For adding an output variable we have to do the following steps- Go to Edit ---> Add variable-->Output Here we have taken 1 output variable TIP After adding input and output variables change their names by selecting them After changing the names the FIS Editor will look like-
  • 4.  Then we will change the range of each variables, by double clicking on the variables. Then a new window known as Membership Function Editor : tipcal will open. We will assign the input parameter Food to range to [0 50] and the other input parameter Service to range to [0 50]. and the output variable Tip to [0 1000] and then the window will look like-
  • 5.  Then we will remove all the existing membership functions. After Removing existing Membership functions the Membership Function Editor window will look like-
  • 6.  Now we will add membership functions of our own choice. For adding new membership functions we first go to Edit then Add MFs- After selecting Add MFs we will get a new window which is, Membership Function window- Here We will choose What kind of MFs we want to add and what would be the no of MFs we want to add. It has a number of choice available for MF type.
  • 7. As here we have food as 3 types which are Delicious, Average and Worst. So we take Triangular MF or trimf and Number of MFs as 3.And there are also 3 types of Service which are Excellent, Average, and Worst so we take Trapezoidal MF and Number of MFs as 3. And also there are 3 types of tips which are High, Medium and Low so we take Trapezoidal MF and Number of MFs as 3.So now the Membership Function Editor: tipcal will look like-  Now we will chance the parameters-
  • 8. Let for Food the definition of Delicious is above 30, Average is within 15-35, and Worst is below 20. For Service the definition of Excellent is above 30, Average is within 15-35, and Worst is below 20. And for Tip the definition of High is above 700, Medium is within 300-700 and Low is below 300.  So now we will at first select each line and write the parameter for Food-  So for worst the parameters will be [0 0 50] and the name will be Worst  For Average the parameter will be [0 25 50] and the name will be Average  For Delicious the parameter will be [0 50 50] and the name will be Delicious  Now we will select each line and write the parameter for Service-  So for Worst the parameter will be [0 0 20 50] and the name will be Worst  For Average the parameter will be [0 15 35 50] and the name will be Average  For Excellent the parameter will be [0 30 50 50] and the name will be Excellent  Now we will select each line and write the parameter for Tip-  So for Low the parameter will be [0 0 300 1000] and the name will be Low  For Medium the parameter will be [0 300 700 1000] and the name will be Medium  For High the parameter will be [0 700 1000 1000] and the name will be High
  • 9. And  Now we will define the rules by double clicking on the system, a Rule Editor Window will open-
  • 10. After writing all the rules we get the following window- Here Rules I had Taken are- 1. If the Food Delicious and Service is Excellent then Tip is High. 2. If the Food Delicious and Service is Average then Tip is High. 3. If the Food Delicious and Service is Worst then Tip is Medium. 4. If the Food Average and Service is Excellent then Tip is Medium. 5. If the Food Average and Service is Average then Tip is Medium. 6. If the Food Average and Service is Worst then Tip is Low. 7. If the Food Worst and Service is Excellent then Tip is Medium. 8. If the Food Worst and Service is Average then Tip is Low. 9. If the Food Worst and Service is Worst then Tip is Low.
  • 11. -Now to view the output we first click on View the select rules or by directly pressing Ctrl+5 Then the output or the Transfer function will be shown at Rule Viewer Window, for centroid Defuzzification-
  • 12. For some other input the variation of the output is shown here in min of max-
  • 13. The Surface graph for the centroid Defuzzyfication is shown below-