Subsections

5.3 The Identification Process       

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:  
 \begin{displaymath}
K \; z^{-nd} \;\; 
\frac{(1 - z_1 z^{-1}) . (1 - z_2 z^{-1})...
 ...^{-1}) . (1 - p_2 z^{-1}) \ldots (1 - p_{n_p} z^{-1})} \;\;\; ,\end{displaymath} (1)
with:

With this model, you can compute the simulated output as follows. First rewrite (5.1) as a transfer function in z-1:  
 \begin{displaymath}
z^{-n_d} \; . \; \frac{b_0 + b_1 z^{-1} + \ldots + b_{n_z-1}...
 ...} + \ldots +
 a_{n_p-1} z^{-n_p+1} + a_{n_p} z^{-n_p}} \;\;\; .\end{displaymath} (2)
From this transfer function, you find that the simulated output at time instance k (denoted with yks) equals:  
 \begin{displaymath}
\mbox{\shortstack{
 $y_k^s = b_0 u_{k-n_d} + b_1 u_{k-n_d-1}...
 ...ots - a_{n_p-1} y^s_{k-n_p+1} - a_{n_p} y^s_{k-n_p} \; ,$
 }}
 \end{displaymath} (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:     
 \begin{displaymath}
\min_{{\cal P},y_O} \sum_{k=1}^N \left( y_k - y_O - y^s_k({\cal P})\right)^2 \; ,\end{displaymath} (4)
where ${\cal P}$ denotes the identification parameters $K, z_1,
\ldots, z_{n_z}, p_1, \ldots, p_{n_p}$ 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:  
 \begin{displaymath}
100 \sqrt{\frac{\sum_{k=1}^N \left( y_k - y^s_k - y_O
 \right)^2}{\sum_{k=1}^N \left( y_k - \overline{y} \right)^2 }}
 \;\; ,\end{displaymath} (5)
with $\overline{y}$ 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).

5.3.1 Delays, Poles and Zeros       

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:

5.3.2 Identification Design Parameters        


  
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}


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 $\rightarrow \;$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:

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 $\pm 3 \%$ and a damping of $0.5 \pm 10 \%$ is specified.
\begin{figure}
\centering
\includegraphics [width=10.85cm]{line1.ps}
\end{figure}


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:  
 \begin{displaymath}
 K . \frac{(1-z_1) . (1-z_2) \ldots (1-z_{n_z})}{(1-p_1) . (1-p_2)
 \ldots (1-p_{n_p})}
 \end{displaymath} (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