diff options
Diffstat (limited to 'examples/mamdani/octave/investment_portfolio.fll')
-rw-r--r-- | examples/mamdani/octave/investment_portfolio.fll | 11 |
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 |