Sunday, July 26, 2020

Fuzzy Raw Code MATLAB

 [System]

Name='poweroutput'

Type='mamdani'

Version=2.0

NumInputs=2

NumOutputs=1

NumRules=25

AndMethod='min'

OrMethod='max'

ImpMethod='min'

AggMethod='max'

DefuzzMethod='centroid'


[Input1]

Name='Peak_Power'

Range=[50 100]

NumMFs=5

MF1='VLPP':'gaussmf',[5.308 50]

MF2='LPP':'gaussmf',[5.308 62.5]

MF3='MPP':'gaussmf',[5.308 75]

MF4='HPP':'gaussmf',[5.308 87.5]

MF5='VHPP':'gaussmf',[5.308 100]


[Input2]

Name='Power_Slope'

Range=[10 80]

NumMFs=5

MF1='VLPS':'gaussmf',[7.434 10]

MF2='LPS':'gaussmf',[7.434 27.5]

MF3='MPS':'gaussmf',[7.434 45]

MF4='HPS':'gaussmf',[7.434 62.5]

MF5='VHPS':'gaussmf',[7.434 80]


[Output1]

Name='Power_Rating'

Range=[20 60]

NumMFs=5

MF1='VL':'trimf',[10 20 30]

MF2='L':'trimf',[20 30 40]

MF3='M':'trimf',[30 40 50]

MF4='H':'trimf',[40 50 60]

MF5='VH':'trimf',[50 60 70]


[Rules]

5 5, 2 (1) : 1

1 1, 2 (1) : 1

3 3, 3 (1) : 1

5 1, 5 (1) : 1

4 1, 5 (1) : 1

4 2, 4 (1) : 1

4 5, 2 (1) : 1

5 4, 3 (1) : 1

5 3, 4 (1) : 1

5 2, 5 (1) : 1

5 1, 5 (1) : 1

3 3, 3 (1) : 1

3 2, 4 (1) : 1

3 4, 3 (1) : 1

3 5, 2 (1) : 1

1 5, 1 (1) : 1

1 4, 1 (1) : 1

1 3, 2 (1) : 1

1 2, 3 (1) : 1

1 1, 3 (1) : 1

2 5, 2 (1) : 1

2 4, 2 (1) : 1

2 3, 3 (1) : 1

2 2, 4 (1) : 1

2 1, 4 (1) : 1


No comments:

Post a Comment

2nd Generation EV

     A Control board was developed for testing the power load draw of the vehicle. The basic component of the board consists of a motor cont...