summaryrefslogtreecommitdiff
path: root/examples/mamdani/octave/investment_portfolio.fll
diff options
context:
space:
mode:
authorJohannes 'josch' Schauer <josch@debian.org>2019-01-27 13:56:24 +0100
committerJohannes 'josch' Schauer <josch@debian.org>2019-01-27 13:56:33 +0100
commit6ce553563bc795f389f639a3a8cdfe356de71441 (patch)
treeda4c9ede3087ca534d93bc1ac5a14f044f036600 /examples/mamdani/octave/investment_portfolio.fll
parentbbefa170378553e5a6e0d72e4d52328b61f3e8ac (diff)
new upstream version 6.0
Diffstat (limited to 'examples/mamdani/octave/investment_portfolio.fll')
-rw-r--r--examples/mamdani/octave/investment_portfolio.fll11
1 files changed, 7 insertions, 4 deletions
diff --git a/examples/mamdani/octave/investment_portfolio.fll b/examples/mamdani/octave/investment_portfolio.fll
index 4bb14e1..628fdef 100644
--- a/examples/mamdani/octave/investment_portfolio.fll
+++ b/examples/mamdani/octave/investment_portfolio.fll
@@ -1,22 +1,24 @@
-Engine: Investment-Portfolio
+Engine: investment_portfolio
InputVariable: Age
enabled: true
range: 20.000 100.000
+ lock-range: false
term: Young ZShape 30.000 90.000
term: Old SShape 30.000 90.000
InputVariable: RiskTolerance
enabled: true
range: 0.000 10.000
+ lock-range: false
term: Low ZShape 2.000 8.000
term: High SShape 2.000 8.000
OutputVariable: PercentageInStocks
enabled: true
range: 0.000 100.000
- accumulation: EinsteinSum
+ lock-range: false
+ aggregation: EinsteinSum
defuzzifier: Centroid 200
default: nan
lock-previous: false
- lock-range: false
term: AboutFifteen Gaussian 15.000 10.000
term: AboutFifty Gaussian 50.000 10.000
term: AboutEightyFive Gaussian 85.000 10.000
@@ -24,7 +26,8 @@ RuleBlock:
enabled: true
conjunction: EinsteinProduct
disjunction: EinsteinSum
- activation: EinsteinProduct
+ implication: EinsteinProduct
+ activation: General
rule: if Age is Young or RiskTolerance is High then PercentageInStocks is AboutEightyFive
rule: if Age is Old or RiskTolerance is Low then PercentageInStocks is AboutFifteen
rule: if Age is not extremely Old and RiskTolerance is not extremely Low then PercentageInStocks is AboutFifty with 0.500