Debian Codegraph @

examples/original/mamdani/octave/investment_portfolio.fis

raw
1 ## Copyright (C) 2011-2012 L. Markowsky <[email protected]>
2 ##
3 ## This file is part of the fuzzy-logic-toolkit.
4 ##
5 ## The fuzzy-logic-toolkit is free software; you can redistribute it
6 ## and/or modify it under the terms of the GNU General Public License
7 ## as published by the Free Software Foundation; either version 3 of
8 ## the License, or (at your option) any later version.
9 ##
10 ## The fuzzy-logic-toolkit is distributed in the hope that it will be
11 ## useful, but WITHOUT ANY WARRANTY; without even the implied warranty
12 ## of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 ## General Public License for more details.
14 ##
15 ## You should have received a copy of the GNU General Public License
16 ## along with the fuzzy-logic-toolkit; see the file COPYING. If not,
17 ## see <http://www.gnu.org/licenses/>.
18
19 ## Author: L. Markowsky
20 ## Keywords: fuzzy-logic-toolkit fis
21 ## Directory: fuzzy-logic-toolkit/inst/
22 ## Filename: investment_portfolio.fis
23 ## Last-Modified: 28 Aug 2012
24
25 [System]
26 Name='Investment-Portfolio'
27 Type='mamdani'
28 Version=2.0
29 NumInputs=2
30 NumOutputs=1
31 NumRules=4
32 AndMethod='einstein_product'
33 OrMethod='einstein_sum'
34 ImpMethod='einstein_product'
35 AggMethod='einstein_sum'
36 DefuzzMethod='centroid'
37
38 [Input1]
39 Name='Age'
40 Range=[20 100]
41 NumMFs=2
42 MF1='Young':'zmf',[30 90]
43 MF2='Old':'smf',[30 90]
44
45 [Input2]
46 Name='Risk-Tolerance'
47 Range=[0 10]
48 NumMFs=2
49 MF1='Low':'zmf',[2 8]
50 MF2='High':'smf',[2 8]
51
52 [Output1]
53 Name='Percentage-In-Stocks'
54 Range=[0 100]
55 NumMFs=3
56 MF1='About-Fifteen':'gaussmf',[10 15]
57 MF2='About-Fifty':'gaussmf',[10 50]
58 MF3='About-Eighty-Five':'gaussmf',[10 85]
59
60 [Rules]
61 1 2, 3 (1) : 2
62 2 1, 1 (1) : 2
63 -2.3 -1.3, 2 (0.5) : 1
64 -1.3 -2.3, 2 (0.5) : 1