diff options
Diffstat (limited to 'examples/takagi-sugeno/octave/linear_tip_calculator.fll')
-rw-r--r-- | examples/takagi-sugeno/octave/linear_tip_calculator.fll | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/examples/takagi-sugeno/octave/linear_tip_calculator.fll b/examples/takagi-sugeno/octave/linear_tip_calculator.fll new file mode 100644 index 0000000..8c1f597 --- /dev/null +++ b/examples/takagi-sugeno/octave/linear_tip_calculator.fll @@ -0,0 +1,31 @@ +Engine: Linear-Tip-Calculator +InputVariable: FoodQuality + enabled: true + range: 1.000 10.000 + term: Bad Trapezoid 0.000 1.000 3.000 7.000 + term: Good Trapezoid 3.000 7.000 10.000 11.000 +InputVariable: Service + enabled: true + range: 1.000 10.000 + term: Bad Trapezoid 0.000 1.000 3.000 7.000 + term: Good Trapezoid 3.000 7.000 10.000 11.000 +OutputVariable: Tip + enabled: true + range: 10.000 20.000 + accumulation: none + defuzzifier: WeightedAverage TakagiSugeno + default: nan + lock-previous: false + lock-range: false + term: TenPercent Linear 0.000 0.000 10.000 + term: FifteenPercent Linear 0.000 0.000 15.000 + term: TwentyPercent Linear 0.000 0.000 20.000 +RuleBlock: + enabled: true + conjunction: Minimum + disjunction: none + activation: none + rule: if FoodQuality is Bad and Service is Bad then Tip is TenPercent + rule: if FoodQuality is Bad and Service is Good then Tip is FifteenPercent + rule: if FoodQuality is Good and Service is Bad then Tip is FifteenPercent + rule: if FoodQuality is Good and Service is Good then Tip is TwentyPercent
\ No newline at end of file |