Subsections
RaPID identifies discrete models with sample time Ts equal to
the sample time of the project. The general form of the discrete
identified model is:
|  |
(1) |
with:
- z-1 the backward shift operator: z-1 uk = uk-1
- K a gain (Note that this is not the DC gain of
the model, which is given by Formula 5.6.)
- nd the number of samples delay (Note that due to the
sample and hold assumption in the input, there is at least
one sample delay.)
-
the zeros and nz the number of zeros
-
the poles and np the number of
poles.
With this model, you can compute the simulated output as follows.
First rewrite (5.1) as a transfer function in z-1:
|  |
(2) |
From this transfer function, you find that the simulated output at
time instance k (denoted with yks) equals:
|  |
(3) |
The general idea behind identification of linear models is to get
the processed output yk (green line on the plot in the main
``Identification'' window) and the simulated output yks (blue
line) as close as possible. The error (the difference between
processed and simulated output) which is drawn in yellow should thus
be as small as possible. This is exactly what the identification
algorithm
does:
|  |
(4) |
where
denotes the identification parameters
and yO an additional
constant offset on yk to compensate for slight errors in the
detrending (see also Section 5.3.2). The identification
error indicated in the top right corner of the ``Identification''
window is
then:
|  |
(5) |
with
the mean processed output.
Special care has been taken in RaPID to provide the optimization
problem (5.4) with excellent initial guesses.
There are two sets of parameters which influence the outcome of
the identification: the number of delays, poles and zeros on the one
hand and the identification design parameters on the other (see Figure
5.2).
You change the delay (nd Ts), the number of poles (np) and
zeros (nz) through one of the edit boxes of the main
``Identification'' window (Figure 5.1) or by
clicking on the desired bar in the bar graphs (The range of the
bar graphs can be changed in the ``Identification Settings'' window,
as described in Section 5.8.). Each time one
of these parameters is changed, the optimization problem (5.4)
is solved and a new model is computed. The simulated output and error
are also automatically updated.
The bar graphs give an indication of the
quality of the model. The lower the bar, the best the model.
Ideally, you should thus look for the lowest values in these plots.
Note however that the bar graphs do not give the exact
identification error (5.5), but only an indication. It could
thus well be that a model corresponding to a structure with a higher
bar, has a lower identification error and vice versa.
You should select the delay, number of poles and zeros based on
the following guidelines:
- Of two models with an almost similar identification error, the
one with the lowest complexity (The complexity of the model
is the sum of the number of poles and zeros. The delays do not
count.) is always the better. This implies that, within the set
of models with an acceptable identification error, you should always
choose the number of poles and zeros as low as possible.
A good strategy is to start with a model with one or two poles,
and no zeros. Then increase the number of poles and/or zeros, and
monitor the improvement of the identification error. This will give
an indication of the required
complexity.
- You can compute the exact (Exact as opposed to the
indications in the bar graphs in the main
``Identification'' window.) identification error for a whole range
of delays, number of poles and zeros in batch through a parameters
sweep as explained in Section 5.7.
- The message area at the bottom of the main ``identification''
window (Figure 5.1) indicates in red letters when
there is a near pole-zero cancelation. When this is the case, you
should reduce the number of zeros and/or poles. See also Section
5.8.
- You find more tricks and intuition in the RaPID course notes.
Figure 5.4:
The ``Identification Design Parameters''
window where you further determine the structure of the identified
model. You can completely determine the pole-zero pattern of the
model, you can allow a free output offset yO and you can specify
limits on the DC gain of the model.
![\begin{figure}
\centering
\includegraphics [width=6.55cm]{line1.ps}
\end{figure}](img44.gif) |
As indicated in Figure 5.2 you influence the
final quality of the model also with the identification design
parameters. These parameters further determine the structure of the
identified model and thus the outcome of the identification
optimization problem (5.4). You start the ``Identification
Design Parameters'' window of Figure 5.4 from the
menu Identification
Design Parameters.
- Resonant Poles & Anti-Resonant Zeros
-
With these two parameters you
determine the number of resonant pole pairs, which determine the
number of resonances in the model (number of complex pole pairs) and
the number of complex zero pairs, which determine the number of
anti-resonances in the model (number of complex zero pairs).
The possibilities are:
- The number of (anti-)resonant poles/zeros is ``Free''. This
means that it is made equal to the number of oscillatory
poles/zeros in the initial model
. This is
the default for the poles. You should use this setting when you
have no clue about the number of resonances in the process.
- There are ``No'' (anti-)resonant poles/zeros, which implies
all poles/zeros are real. This is the default for the zeros.
- The number of resonant pole pairs is fixed to one or two or
the number of anti-resonant zero pairs is fixed to one. You
should use this when you know from the physics that the model
has to have a (anti-)resonant pair.
- Non-min Phase Zeros
-
With this entry you specify whether or not
non-minimum phase zeros are allowed in the model. Non-minimum phase
zeros imply that an upward step response initially goes the wrong
way (first negative and then positive). This could be physically
relevant (for instance a glass thermometer that is suddenly heated
is non-minimum phase: the glass expands faster than the alcohol,
which results in an initial drop of the alcohol level. Once
the alcohol is expanding, the temperature rises as it should), but
for most systems it is not relevant. That is why non-minimum phase
zeros are by default not allowed. If you know that your process has
a non-minimum phase behavior, you should set this parameter to
``Free''.
- Add Fixed Model Part
-
When you
hit this button, the ``Fixed Model Part'' window of Figure
5.5 pops up. This window allows you to specify
even more details about certain pole and/or zero locations. With
the buttons on the right hand side of the figure, you can add and/or
delete real poles/zeros, complex poles/zeros and differentiators.
You can then enter the ``region'' to which these fixed poles and
zeros should be confined. For a resonance, you can for instance
specify the frequency, which is often well known, with a low
accuracy margin and the damping, which is often not well known, with
a high accuracy margin.
Figure 5.5:
The ``Fixed Model Part'' window
allows you to specify certain parts of the model. In this window
a resonance with a frequency of 5
and a damping of
is specified.
![\begin{figure}
\centering
\includegraphics [width=10.85cm]{line1.ps}
\end{figure}](img47.gif) |
Note that the number of ``Resonant Poles'' (and ``Anti-Resonant
Zeros'') of the ``Identification Design Parameters'' window and the
number of complex poles (zeros) you specify in the ``Fixed Model
Part'' window refer to different poles (zeros). For instance, if
you specify one pair of ``Resonant Poles'' in the ``Identification
Design Parameters'' window of Figure 5.4 and one
complex pole pair in the ``Fixed Model Part'' window of
Figure 5.5, you have actually specified
two complex pairs. Note also that the number of poles in the
main ``Identification'' window is automatically adjusted such that
it is always larger or equal to the number of fixed poles.
- Output Offset
-
The
extra detrending offset yO in (5.4). It is either
``Free'', or fixed at zero (no extra output offset), which implies
there is no parameter yO in the identification optimization
problem (5.4). By default the extra output offset is
``Free''.
- DC Gain
-
This is the
unit step response gain:
|  |
(6) |
By default, this DC gain is free. If however, from a-priori
knowledge you know it to lie between two limits, you can enter them
here. The optimization (5.4) will take this DC gain range
as an extra constraint into account. In the case of Figure
5.4 the DC gain is limited between 0.9 and
1.1.
Note that when the system is integrating, and you specified an
integrator in the ``PreProcessing'' window of Figure
5.3, this DC gain limitation is actually a
limitation on the DC speed.
Peter Van Overschee
1/21/1998