| 1 |
Engine: mamdani_tip_calculator |
| 2 |
InputVariable: FoodQuality |
| 3 |
enabled: true |
| 4 |
range: 1.000 10.000 |
| 5 |
term: Bad Trapezoid 0.000 1.000 3.000 7.000 |
| 6 |
term: Good Trapezoid 3.000 7.000 10.000 11.000 |
| 7 |
InputVariable: Service |
| 8 |
enabled: true |
| 9 |
range: 1.000 10.000 |
| 10 |
term: Bad Trapezoid 0.000 1.000 3.000 7.000 |
| 11 |
term: Good Trapezoid 3.000 7.000 10.000 11.000 |
| 12 |
OutputVariable: Tip |
| 13 |
enabled: true |
| 14 |
range: 0.000 30.000 |
| 15 |
aggregation: AlgebraicSum |
| 16 |
defuzzifier: Centroid 200 |
| 17 |
default: nan |
| 18 |
lock-previous: false |
| 19 |
lock-range: false |
| 20 |
term: AboutTenPercent Gaussian 10.000 2.000 |
| 21 |
term: AboutFifteenPercent Gaussian 15.000 2.000 |
| 22 |
term: AboutTwentyPercent Gaussian 20.000 2.000 |
| 23 |
OutputVariable: CheckPlusTip |
| 24 |
enabled: true |
| 25 |
range: 1.000 1.300 |
| 26 |
aggregation: AlgebraicSum |
| 27 |
defuzzifier: Centroid 200 |
| 28 |
default: nan |
| 29 |
lock-previous: false |
| 30 |
lock-range: false |
| 31 |
term: PlusAboutTenPercent Gaussian 1.100 0.020 |
| 32 |
term: PlusAboutFifteenPercent Gaussian 1.150 0.020 |
| 33 |
term: PlusAboutTwentyPercent Gaussian 1.200 0.020 |
| 34 |
RuleBlock: |
| 35 |
enabled: true |
| 36 |
conjunction: AlgebraicProduct |
| 37 |
disjunction: Maximum |
| 38 |
implication: Minimum |
| 39 |
activation: General |
| 40 |
rule: if FoodQuality is Bad and Service is Bad then Tip is AboutTenPercent and CheckPlusTip is PlusAboutTenPercent |
| 41 |
rule: if FoodQuality is Bad and Service is Good then Tip is AboutFifteenPercent and CheckPlusTip is PlusAboutFifteenPercent |
| 42 |
rule: if FoodQuality is Good and Service is Bad then Tip is AboutFifteenPercent and CheckPlusTip is PlusAboutFifteenPercent |
| 43 |
rule: if FoodQuality is Good and Service is Good then Tip is AboutTwentyPercent and CheckPlusTip is PlusAboutTwentyPercent |