.


:




:

































 

 

 

 





MatLab , . 5.1.

FIS :

  • readfis;
  • fis- File Export To workspace.

:

name - ;
type - . 'Mamdani' 'Sugeno';
andMethod - . : 'min' - 'prod' - ;
orMethod - . : 'max' - 'probor' - ;
defuzzMethod - . : 'centroid' - ; 'bisector' -; 'lom' - ; 'som' - ; 'mom' - . : 'wtaver' - 'wtsum' - ;
impMethod - . : 'min' - 'prod' - ;
aggMethod - . : 'max' - ; 'sum' - 'probor' - ;
input - ;
input.name - ;
input.range - ;
input.mf - ;
input.mf.name - ;
input.mf.type - . : dsigmf - ; gauss2mf - ; gaussmf - ; gbellmf - ; pimf - - ; psigmf - ; sigmf - ; smf - s- ; trapmf - ; trimf - ; zmf - z- ;
input.mf.params - ;
output - ;
output.name - ;
output.range - ;
output.mf - ;
output.mf.name - ;
output.mf.type - . : dsigmf - ; gauss2mf - ; gaussmf - ; gbellmf - ; pimf - - ; psigmf - . : constatnt - ( ); linear - ;
output.mf.params - ;
rule - ;
rule.antecedent - . . 0 , ;
rule.consequent - . . 0 , ;
rule.weight - . [0, 1];
rule.connection - : 1 - ; 2 - .

. , FIS_NAME.rule(1).weight=0.5 0.5, length(FIS_NAME.rule) , FIS_NAME.input(1).mf(1).name='' "".

fis-

fis- - . readfis writefis . fis-, GUI - Fuzzy Logic Toolbox. fis- . fis- , . , , , , , .

fis- . 5.1 tipper.fis - , . , .

5.1 - fis - ( tipper.fis)

% $ Revision: 1.1 $
[System] ,
Name='tipper'
Type='mamdani'
NumInputs=2
NumOutputs=1
NumRules=3
AndMethod='min'
OrMethod='max'
ImpMethod='min'
AggMethod='max'
DefuzzMethod='centroid'
[Input1] ,
Name='service'
Range=[0 10]
NumMFs=3
MF1='poor':'gaussmf',[1.5 0] ,
MF2='good':'gaussmf',[1.5 5] ,
MF3='excellent':'gaussmf',[1.5 10] ,
[Input2] ,
Name='food'
Range=[0 10]
NumMFs=2
MF1='rancid':'trapmf',[0 0 1 3] ,
MF2='delicious':'trapmf',[7 9 10 10] ,
[Output1] ,
Name='tip'
Range=[0 30]
NumMFs=3
MF1='cheap':'trimf',[0 5 10] ,
MF2='average':'trimf',[10 15 20] ,
MF3='generous':'trimf',[20 25 30] ,
[Rules] ,
1 1, 1 (1): 2 2 0, 2 (1): 1 3 2, 3 (1): 2

\ \

Fuzzy Logic Toolbox 11 , :

  • -;
  • ;
  • ;
  • .

mf. :

namemf(x, params),

namemf ;
x , ;
params .

(trimf) (trapmf) - . , . : ; .

(gaussmf) (gaussmf) . gaussmf . (gbellmf) . , .

sigmf, dsigmf, psigmf . , + (-) 1. .

zmf, pimf smf, sigmf, dsigmf, psigmf, .

. 6.1. . 6.1 , mfdemo. , .

Fuzzy Logic Toolbox . m -, , . . m -, :

function mu=bellmf(x, params)
%bellmf bell membership function;
%x input vector;
%params(1) concentration coefficient (>0);
%params(2) coordinate of maximuma.
a=params(1);
b=params(2);
mu=1./(1+ ((x-b)/a).^2);

6.1.

6.1.

dsigmf [a1 c1 a2 c2]
gauss2mf   c1<c2, ; c1>c2, . [a1 c1 a2 c2]
gaussmf [c b]
gbellmf [a b c]
pimf - smf zmf [a b c d] [a d] ; [b c] ;
psigmf [a1 c1 a2 c2]
sigmf [a c]
smf s- [a, b]
trapmf [a, b, c, d]
trimf [a, b, c]
zmf z- [a, b]

 

FIS-

FIS - , , , :

  • ;
  • ;
  • ;
  • ;
  • .

FIS - fuzzy. , . 3.2. . FIS - Help Close, , .

FIS- 8 . - File, Edit, View, And Method,Or Method,Implication,AggregationDefuzzification.

File

GUI- . . 7.1.

7.1 File

New FIS . : Mamdani Sugeno, . Mamdani Ctrl+N.

Import . From Workspace From disk, MatLab , . From Workspace , , MatLab. From disk (. 7.2), . .fis. Ctrl+N

fuzzy FIS_name,

FIS_name .

7.2

Export To Workspace To disk, MatLab , . To Workspace , , MatLab. To disk , . Ctrl+T Ctrl+S, .

Print . Ctrl+P.

Close . Ctrl+W Close.

Edit

. 7.3.

7.3 Edit

Undo . Ctrl+Z.

Add Variable . Input Output, , .

Remove Selected Variable . . . Ctrl+X.

Membership Function . Ctrl+2.

Rules . Ctrl+3.

View

GUI-, . . 7.4. ( Rules Ctrl+5) -, ( Surface Ctrl+6).

7.4 View

And Method

:

  • min ;
  • prod .

. Custom , .

Or Method

:

  • max ;
  • probor - .

. Custom , .

Implication

:

  • min ;
  • prod .

. Custom , .

Aggregation

:

  • max ;
  • sum ;
  • probor - .

. Custom ,

Defuzzification

. :

  • centroid ;
  • bisector ;
  • lom ;
  • som ;
  • mom .

:

  • wtaver ;
  • wtsum .

. Custom , .





:


: 2015-11-23; !; : 1204 |


:

:

! . .
==> ...

1007 - | 838 -


© 2015-2024 lektsii.org - -

: 0.056 .