A System of Procedures for Identification of Simple Models Using

In this paper, a system of procedures for identification using the transient ... The identification aims at modeling dynamic processes with simple mod...
1 downloads 0 Views 147KB Size
Ind. Eng. Chem. Res. 2001, 40, 1903-1915

1903

A System of Procedures for Identification of Simple Models Using Transient Step Response Hsiao-Ping Huang,* Ming-Wei Lee, and Cheng-Liang Chen Department of Chemical Engineering, National Taiwan University, Taipei 10617, Taiwan, Republic of China

In this paper, a system of procedures for identification using the transient step response is presented. The identification aims at modeling dynamic processes with simple models that have general second-order dynamics. The procedures consist of three parts, including classification of the response, selection of the model structure, and the estimation of parameters. Technically, this proposed system provides a strategy based on quantitative measures to identify the model structure and extends the identification of models to include possible RHP/LHP zeros and dead time. One important aspect of this proposed system of procedures is the minimization of the need for human decisions to be made during the identification process. With this advantage, it is then possible to facilitate the development of software to perform the identification automatically. 1. Introduction In the past, numerous papers have been published on the topic of model identification using on-line and off-line methods. The terminology concerning the online methods is used to refer to those methods that (1) infer the model at the same time as data collection, (2) update the model using a recursive algorithm at each time instant when new data are collected, and (3) employ the model to support decisions to be taken online for purposes of control,1 such as adaptive control or filtering. Extensive developments of such methods can be found in many books.1-3 There are also a number of papers regarding developments of off-line methods. This category of methods includes those that use batchwise data to perform identification for either timedomain or frequency-domain models. In those cases, there is no need for decisions when data are collected, but the model development requires special inputs for open-loop experiments. A good summary of such methods can be found in the book by Juang.4 Each of these two categories of methods has its advantages and disadvantages, and the justification for which method to be employed is determined by the application of the model, in other words, the objective of the identification. One of the developments in common to both categories of methods is the use of estimations with recursive least squares, which are directly applied to the measured input and output data. Regarding the method of recursive least squares, there are some major disadvantages in contrast to the off-line methods of nonleast squares. First, such methods require an a priori decision on what model structure to use before the procedure the procedure. This means that the estimation procedures have to be repeated on models with several different structures. Second, within a presumed model structure, the estimation of dead time can be done in two ways. If linear least squares are to be formulated for identification, then estimation of the dead time has to be carried out by trials, which means repetitive estimations for * Corresponding author. E-mail: [email protected]. Tel.:886-2-23638999. Fax: 886-2-3623040.

parameters are needed. Otherwise, estimations with nonlinear least squares might be encountered, and the algorithms would become much more complicated and fragile. In general, these methods do not give as accurate a description of the model as those off-line methods using nonleast squares.1 More difficulties that these methods might encounter include the choice of sampling interval, selection of step size for iterations, bias of the results, convergence of the algorithms, nonunique conversion from discrete-time to continuoustime models,5 etc. Recently, developments of leastsquares identification methods that apply transformed input and output data for continuous-time models have also been reported.6,7 Nevertheless, the difficulties mentioned have not been resolved. By the facts described above, it seems that an off-line method of nonleast squares that uses transient step response for identification is more convenient for industrial uses, because the experiments are easy to perform and the development of models for designs does not involve decisions or instant needs for a model during the identification process. In literature, nonleastsquares methods using step responses have been used to develop simple models such as FOPDT (first-order plus dead time) or SOPDT (second-order plus dead time)8-18 for process control. However, these identification methods usually need to presume that the model structure has been decided a priori, and there seems to be no quantitative criteria for making such decisions. The identification methods thus focused on parameter estimations and ignored the issue of determining the model structure. Furthermore, there is in lack of nonleast-squares methods that use step response to develop models that have RHP/LHP zeros. These kind of models will find more and more uses in performing advanced control, such as in tuning advanced PID controllers,19 tuning the controllers in a cascaded control loop, and tuning controllers in a multi-loop system. To address the deficiencies just mentioned, a system of procedures for modeling dynamic systems with simple models of the following forms is presented

10.1021/ie0005001 CCC: $20.00 © 2001 American Chemical Society Published on Web 03/27/2001

1904

Ind. Eng. Chem. Res., Vol. 40, No. 8, 2001

y(s) ) G(s) ) u(s) kp(1 + as)e-θs

{

τ2s2 + 2ζτs + 1 kp(1 + as)e-θs (τs + 1)(ητs + 1)

0 < ζ < 1 (model I) (1) 0 < η e 1 (model II)

where model I is assigned with ζ < 1 and model II with ζ g 1. This system of procedures consists of three parts. In the first part, the transient dynamic response of a given process is classified with its appearance into four classes. Second, a key parameter (i.e., ζ or η) of the system is determined to select a model structure. Third, estimation of the parameters of the model in accord with the selected model structure is performed. Finally, the resulting model is validated by comparing the predicted step response with the experimental one. Technically, this proposed system provides a strategy based on quantitative measures to identify the model structure and extends the identification of models to include possible RHP/LHP zeros. The estimation of dead time is also included in each of models. One important aspect of this proposed system of procedures is that it minimizes the need for human decisions during the identification process. Thus, with the development of computer software, the identification process can be automated. 2. Strategies for Model Structure Identification As is well-known, a higher-order dynamic process can be described with models in the form of model I or model II in eq 1. Because the steady-state gain, kp, can be obtained from the changes in the input and output at steady state, the kp value is assumed to be known and is not included in the study that follows. By considering sj ) τs and θ h ) θ/τ in eq 1, G(s) can be changed into the dimensionless form

{

(1 + a j sj)e-θh sj

(model I) 2 yj(sj) y(sj) s j + 2ζs j + 1 ) )G h (sj) ) kpu(sj) u(sj) (1 + a j sj)e-θh sj (model II) (sj + 1)(ηsj + 1) (2)

where yj ) y/kp and a j ) a/τ. The unit step response resulting from eq 2 is given in the equation

{

1-

yj(th) )

[x

ζ-a j 2

1-ζ

1-

sin(x1 - ζ2ht ) + + cos(x1 - ζ2˜t)

1-a j -th η - a j -th/η e e 1-η η-1

for model I

] for model II

Figure 1. Flowchart for identification of model structure.

tions of these key parameters, some typical step responses are shown in Table 1. These typical step responses are grouped into four categories according to their features such as the existence of oscillation, overshoot, inverse response, etc. These four groups are: group A, those that are oscillatory; group B, those that are nonoscillatory and do not have overshoot at all times, nor do they respond in the reverse direction; group C, those that are nonoscillatory and have overshoot; and group D, those that are nonoscillatory and have an inverse response. Table 2 depicts the important features of the step response of these four categories. In table 2, an entry with the digit 1 designates that the indicated feature relating to the status of the corresponding parameters is feasible, and an entry with a + designates that the feature is conditionally feasible. A strategy for identifying the statuses of ζ and a j is thus presented in Figure 1. Notably, groups B, C, and D include some ζ values less than 1. It is desirable to devise an index from the step responses to identify the status of ζ. For this purpose, R1(x) is defined as

R1(x) t

(4)

where tx is the time when y(tx)/y∞ ) x, 0 e x e 1. Notably, the computation of R1(x) in eq 4 does not need a model in the form of either model I or model II. By the definition of ht, R1(x) can also be written as

(3)

where (th - θ/τ). Thus, excluding the true time delay, the dynamics of a general second-order system can be characterized by two additional dimensionless parameters. They are ζ and a j for model I and η and a j for model II. Based on many simulations with various combina-

tx - t(x-0.2) t(x-0.2) - t(x-0.4)

R1(x) )

ht x - ht (x-0.2) ht (x-0.2) - ht (x-0.4)

(5)

where htx ) (tx - θ)/τ is the dimensionless time derived from tx and yj(thx) ) x.

Ind. Eng. Chem. Res., Vol. 40, No. 8, 2001 1905 Table 1. Some Typical Unit Step Responses for Model I and Model II with Various Parametric Values

Table 2. Categories of Features for Step Responses oscillatory ∆ ) P/2a ∆ * P/2a a)0 ζ0 a0 a 0. It is easy to conclude that a j < 0 when an inverse response occurs. However, to differentiate between a response with a j) 0 and one with a j * 0 the following lemma is needed: Lemma 1. Consider a system of model I having ζ < 1 and a j ∈(-∞, ∞). Let tp,i and tm,i be the time instants when the output, y, reaches its ith peak and ith valley,

1906

Ind. Eng. Chem. Res., Vol. 40, No. 8, 2001

respectively. Then, if and only if a j ) 0, we have

tp,1 - θ ) tp,i+1 - tm,i ) tm,i - tp,i )

P ) 2 πτ

x1 - ζ2

∀ i g 1, j > i

Notably, the value of tp,1 - θ is taken as tp,1 - tm,0 from Figure 3. Thus, the criterion to establish that a j) 0 is to determine whether tp,1 - tm,0 is equal to tp,2 tm,1. Then, the estimation of the parameters can be obtained by carrying computations of the following quantities:

(1) the time constant, τ, of the system τ)

P Px1 - ζ2 ) 2π 2 x4π + P2χ2

{

where

( (

)

yjp,2 - 1 1 ln ∀a jg0 t - tp,2 yjp,1 - 1 χ ) p,1 yjp,1 - 1 1 ln ∀a j0 (10) ∀a j0 π - tan-1 2π 1-a jζ

(

)

P a j x1 - ζ2 tan-1 tm,1 + 2π 1-a jζ

∀a j