Script File: investment_portfolio_demo

Demonstrate the use of the Octave Fuzzy Logic Toolkit to read and evaluate a Mamdani-type FIS stored in a file. Also demonstrate the use of hedges and weights in the FIS rules, the use of the Einstein product and sum as the T-norm/S-norm pair, and the non-standard use of the Einstein sum as the aggregation method.

The demo:

  • - reads the FIS structure from a file
  • - plots the input and output membership functions
  • - plots the FIS output as a function of the inputs
  • - plots the output of the 4 individual rules for (Age, Risk-Tolerance) = (40, 7)
  • - plots the aggregated fuzzy output and the crisp output for (Age, Risk-Tolerance) = (40, 7)
  • - shows the rules in verbose format in the Octave window

See also: cubic_approx_demo, heart_disease_demo_1, heart_disease_demo_2, linear_tip_demo, mamdani_tip_demo, sugeno_tip_demo.

Package: fuzzy-logic-toolkit