Académique Documents
Professionnel Documents
Culture Documents
15 de abril de 2004
ANFIS STRUCTURE
Let the membership functions of fuzzy sets Ai, Bi, i=1,2, be , Ai Bi.
Layer 2 (L2): Each node calculates the firing strength of each rule using the
min or prod operator. In general, any other fuzzy AND
operation can be used.
Layer 3 (L3): The nodes calculate the ratios of the rules firing strength to the
sum of all the rules firing strength. The result is a normalised
firing strength.
Layer 4 (L4): The nodes compute a parameter function on the layer 3 output.
Parameters in this layer are called consequent parameters.
Layer 5 (L5): Normally a single node that aggregates the overall outputas the
summation of all incoming signals
When the premise parameters are fixed, the overall output is a linear
combination of the consequent parameters. In symbols, the output f can be
written as
In Fuzzy Control Toolbox a useful command called anfis exists. This provides
an optimization scheme to find the parameters in the fuzzy system that best fit
the data. It is explained in the Toolbox manual that since most (not all)
optimization algorithms require computation of the gradient, this is done with
a neural network. Then, in principle, any of the optimization schemes, say
those in the MATLAB Optimization Toolbox, can be used.
It is not clear at the beginning, what the initial fuzzy system should be, that is,
the type and number of membership functions, command genfis1 may be
used. This command will go over the data in a crude way and find a good
starting system (See genfis1_use.m).
EXAMPLE 1.
SOLUTION: EXAMPLE1.m
EXERCISE 1.
EXERCISE 2.
Study how the nonlinearity modeled with the fuzzy system fismat1 distorts a
sinusoidal signal. Assume sin(t) at the input.
Remark: Clearly higher order harmonics are generated. Such phenomenon can
be observed e.g. in electrical transformers.
SOLUTION: EXERCISE2.mdl
EXERCISE 3.
with different initial conditions. Here f(x) = -2x - x2 as before. Start with x(0) =
-0.2 and (dx/dt)(0) = 0.5.
Study both the exact relationship and the fuzzy approximation determined in
the previous example. Are there any differences?
SOURCES