A MatlabSimulink Toolbox For Inversion of Local Linear Model Trees PDF
A MatlabSimulink Toolbox For Inversion of Local Linear Model Trees PDF
______________________________________________________________________________________
AbstractModels in the form of characteristic diagrams or more specifically, in the form of engine
operating maps are mostly used in the automobile
industry. This yields a large amount of measurements and involves the use of advanced instrumentations. This paper shows a developed software environment, namely a toolbox for the program Matlab/Simulink developed by company Mathworks. The
name of the toolbox is Inversion of the Local Linear
Model Trees and it basically consists of a local inversion of the Local Linear Model Trees (LOLIMOT).
The importance of the inversion in control problems
is widely known. Neural networks are a very effective and popular tools mostly used for modeling. The
inversion of a neural network produces real possibilities to involve the networks in the control problem
schemes. The developed toolbox is explained with
the help of diagrams and GUI structure from Matlab
which tend to clarify the idea of the program and its
structure. The presentation is organized as a short
tutorial of the toolbox, so that a potential user can
directly understand how to access it. Nevertheless,
formal mathematical equations, concerning the neural networks and membership functions, need to be
explained together with the LOLIMOT structure. To
validate and to clarify the explained toolbox, an example from a system used in the automobile industry
is briefly shown.
Paolo Mercorelli
inversion using a physical model approach is presented.
The model which is adopted suffers from some hard reductions in order to be applied. Nowadays neural networks are often adopted for modeling of complex systems. In the neural network area the inversion problem
attracted a lot of researchers and mathematicians. The
inversion problem is a very hard problem which involves,
in the case of neural networks, the inversion of the membership functions which are non linear functions. In Fig.
1 a schematic structure of a possible control system is
represented. From the picture the importance of the inversion of the neural network in particular for tracking
problems emerges. Due to the inexact description of the
model, its imperfect inversion as well as the presence of
not modeled external disturbances imply that the controller must consist of a structured feedback part. This
Keywords: Neuro-fuzzy identification, nonlinear systems, local linear model trees (LOLIMOT), inversion,
Matlab/Simulink
1.1
Structure
Figure 2: Left: Network Structure of Local Linear Neuro Fuzzy Model. Right: Partitioning of Input Space by
Validity Functions
(u)
PM i
,
j=1 j (u)
1.2
Xi =
1
1
..
.
u1 (1)
u1 (1)
..
.
...
...
up (1)
up (1)
..
.
1 u1 (N ) u2 (N ) . . .
up (N )
wi0
wi1
wi = .
..
wip
and
It should be noted that the regression matrices of all linear models i = 1, ..., M are identical, because all the elements of X i do not depend on i. Due to the structure
of the local linear models with their limited validity, its
useful to apply a weighted least squares. The validity factors are described by the validity functions. This leads
to the following N xN weight matrix
i (u(1))
0
...
0
0
i (u(1)) . . .
0
Qi =
.
..
..
.
..
..
.
.
.
0
u2 (1)
u2 (1)
..
.
...
i (u(N ))
1.3
Structure
Premises
Optimization
of
Rule
input space in rectangle areas shown in Fig. 2. If normalized Gaussians are used, then cij describe the centers
of the rectangles and the standard deviations ij describe
the extension in each dimension. The proportional factor
k relates the standard deviation of the validity functions
to the extension of the rectangle by ij = k ij .
1.4
N
X
e2 (j)i (u(j)).
j=1
LOLIMOT Inversion
2.1
Consider the model output function y, with M local linear model u = [u1 , ..., up ] inputs
y =
M
X
i=1
(up cip )2
2
ip
!!
. (3)
A difficulty is that, due to the exponential quadratic nonlinearity, the model is not invertible. Hence, it is necessary to convert the functions into a linear type, as shown
in Fig. 4. The membership function is split into a spline
function that consists of the linear functions.
(
k
1.6r
1.6 r (ur c) + 1 k + c ur c
ir =
k
r
1.6 r (ur + c) + 1 c ur 1.6
k + c.
(4)
Using the function defined in equation (4), it is now possible to invert the local linear model tree.
2.2
as the following:
(ur )i,r =
(ur )i,r,1
(ur )i,r,2 .
(7)
(8)
Then, the input ur is reconsidered in the final membership function and the following expression is obtained,
1 (ur cir )2
i (u) = exp
)
+ c .
2
2
ir
(6)
r j
If there are no valid linear membership functions for a local linear model, then the model
will not be considered for further actions.
Initially create the output function for every local linear model by multiplying its validity function with the local linear model function:
y(ur )LLM,i = y(ur )i (ur )i .
Next, sum the output functions to create the
model output:
y(ur ) =
M
X
y(ur )LLM,i .
i=1
Toolbox Description
3.1
3.3
An Application
3.2
Input Parameters:
Lolimot - Local linear model tree structure
u seek - Number of the desired input e.g. 1 = u1
u input - Model input data as row vector
[u1 u2 ... un ], where the desired input should
be set to 0, but it is a not caring value, e.g.
[u1 u2 (required) u3 ], i.e. [12.4 0 34.2]
3.4
Figure 8: Simulink Structure of a Feed Forward Control Scheme Based on the Inversion of a Neural Network
Model
References
[1] A. Toepfer A. Fink. Technical report - on the inversion of nonlinear models. 2003.
[2] R. Isermann A. Fink, S. Toepfer. Neuro and neurofuzzy identification for model-based control. IFAC
Workshop on Advanced Fuzzy/Neural Control, Valencia, Spain, Volume Q:111116, 2001.
[3] R. Isermann A. Fink, S. Toepfer. Nonlinear modelbased control with local linear neuro-fuzzy models.
Archive of Applied Mechanics, Volume 72(11-12):911
922, 2003.
This paper deals with local inversion of the Local Linear Model Trees. An analytical solution is presented and
implemented in Matlab. Further the theoretical structures of the neural network and also a useful Matlab tool
for any researcher who utilizes LOLIMOT are explained.
[4] A. Fink and O. Nelles. Nonlinear internal model control based on local linear neural networks. IEEE Systems, Man, and Cybernetics, Tucson, USA, 2001.
[5] P. Mercorelli. An optimal minimum phase approximating pd regulator for robust control of a throttle
plate. 45th IEEE Conference on Decision and Control
(CDC2006), San Diego (USA), 13th-15th December,
2006.
[6] O. Nelles. Nonlinear System Identification with Local
Linear Neuro-Fuzzy Models. Shaker Verlag, 1999.
[7] R. Isermann O. Nelles, A. Fink. Local linear model
trees (lolimot) toolbox for nonlinear system identification. 12th IFAC Symposium on System Identification
(SYSID), Santa Barbara, USA, 2000.