home Forums Feature Requests Reading/Writing FIS files using FuzzyLite Reply To: Reading/Writing FIS files using FuzzyLite

#1030
Juan Rada-Vilela
Juan Rada-Vilela
Keymaster

Hi hacmachdien,

If you have a fuzzy engine in “fis” format (check examples), then you can copy and paste the contents of the “fis” file into the import window.

For example, if you copy and paste the following block into the import window, you will have a fuzzy engine ready to use.


[System]
Name='simple-dimmer'
Type='mamdani'
NumInputs=1
NumOutputs=1
NumRules=3
AndMethod=''
OrMethod=''
ImpMethod='min'
AggMethod='max'
DefuzzMethod='centroid'

[Input1]
Enabled=1
Name='Ambient'
Range=[0.000 1.000]
NumMFs=3
MF1='DARK':'trimf',[0.000 0.250 0.500]
MF2='MEDIUM':'trimf',[0.250 0.500 0.750]
MF3='BRIGHT':'trimf',[0.500 0.750 1.000]

[Output1]
Enabled=1
Name='Power'
Range=[0.000 1.000]
Default=nan
LockValid=0
LockRange=0
NumMFs=3
MF1='LOW':'trimf',[0.000 0.250 0.500]
MF2='MEDIUM':'trimf',[0.250 0.500 0.750]
MF3='HIGH':'trimf',[0.500 0.750 1.000]

[Rules]
1.000 , 3.000 (1.000) : 1
2.000 , 2.000 (1.000) : 1
3.000 , 1.000 (1.000) : 1