How to Merge two rules in Fuzzy Logic

For example if I have 2 inputs and one output as follows
Inputs: Food {Excellent, Good, Average, Bad}, Service{Good, Bad}
Output: Tip
and I have 2 rules as
If Food is good and Service is good then Tip is good
If Food is average and Service is good then Tip is good.
Can I combine the above 2 rules into one rule as
If ((Food is good) or (Food is average)) and Service is good then Tip is good. If it is possible what is the format?

답변 (2개)

Walter Roberson
Walter Roberson 2011년 10월 20일

0 개 추천

If (Service is bad or Food is bad) then Tip is bad else Tip is good

댓글 수: 1

Sampath
Sampath 2011년 10월 20일
Thank you Walter but I was looking at something else. Let me rephrase my question.
Inputs: Food {Excellent, Good, Average, Bad}, Service{Very Good, Good, Average, Bad}, Ambiance {Good, Average, Bad}
Output: Tip {Very Good, Good, Average, Bad}
Rules:
1) If Food = Good & Service = Good & Ambiance = Good Then Tip = Good
2) IF Food = Average & Service = Good & Ambiance = Good Then Tip = Good
And I'm feeding these rules to the Fuzzy Logic Rule Editor. How do I add an Else case in Fuzzy Logic Rule Editor.
Thanks in Advance.

댓글을 달려면 로그인하십시오.

Shehbaz Aslam
Shehbaz Aslam 2020년 11월 3일

0 개 추천

Hope all of you are doing well. I need help on fuzzy logic. I have three inputs SOC,Sloar and wind. On the basis of these inputs I want to create rule base for three modes. Emergency, energy saving and normal mode. How I can define rules. Thanks in advance

카테고리

도움말 센터File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

태그

질문:

2011년 10월 20일

답변:

2020년 11월 3일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by