Continuous stirring reaction kettle parameter identification method based on two-stage least square method

By using two-stage weighted recursive least squares algorithm and fractional-order Wiener model in the continuous stirring reactor, the problems of slow convergence speed and low accuracy in parameter identification are solved, and the fast and high accuracy of the parameters of the continuous stirring reactor are achieved. Identification improves the control ability of the production process.

CN118938673AActive Publication Date: 2024-11-12NANTONG UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410995656.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-11-12
Estimated Expiration
2044-07-24

AI Technical Summary

Technical Problem

The existing parameter identification methods have problems such as slow convergence speed, low recognition accuracy, complex calculations and difficult to select initial parameters in the continuous stirred reactor, making it difficult to establish an accurate mathematical model to achieve effective control of the production process.

Method used

The two-stage weighted recursive least squares algorithm is used to construct the fractional-order Wiener model and solve the fractional derivative using Grünwald Letnikov definition, combined with the identification process of the weighted recursive least squares algorithm, the convergence speed and accuracy of parameter identification are improved.

Benefits of technology

It realizes fast and high-precision identification of the parameters of continuous stirred reactors, establishes a more accurate mathematical model, and improves the analysis and prediction capabilities of the production process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118938673A_ABST
    Figure CN118938673A_ABST
Patent Text Reader

Abstract

The invention provides a continuous stirring reaction kettle parameter identification method based on a two-stage least square method, belongs to the technical field of fine chemical process identification, and solves the technical problem of low parameter identification precision of a continuous stirring reaction kettle. According to the technical scheme, the method comprises the following steps: 1) establishing a fractional order Wiener model of the continuous stirred tank reactor; and step 2) constructing an identification process of a two-stage weighted recursive least square algorithm. The method has the beneficial effects that the two-stage weighted recursive least square algorithm provided by the invention has relatively high convergence speed and relatively high convergence precision, and can be relatively well suitable for parameter identification of the continuous stirring reaction kettle.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of fine chemical process identification, and in particular to a continuous stirred reactor parameter identification method based on a two-stage least squares method. Background Art

[0002] With the rapid development of science and technology, industrial processes are bound to put forward stricter and more urgent requirements for the control of actual production processes. In order to meet this control requirement and achieve better control effects, it is necessary to establish an accurate and effective mathematical model for the actual production process. The continuous stirred reactor belongs to the field of fine chemicals and is particularly widely used in the industrial world. The continuous stirred reactor is a common equipment in chemical production. When the reaction raw materials enter the reactor at a stable flow rate, the reaction materials of the reactor flow out at a stable flow rate. Since the continuous stirred reactor is a typical nonlinear system, its modeling becomes the key and difficult point of production control. In order to better analyze and predict the production process, it is necessary to establish an accurate mathematical model for the continuous stirred reactor and identify the parameters of the established model.

[0003] To this end, researchers have also proposed different identification methods, such as stochastic gradient algorithm, Newton iteration algorithm and particle swarm algorithm. The stochastic gradient algorithm has the problem of slow convergence speed and low identification accuracy in parameter identification; the Newton iteration algorithm is an iterative algorithm, and each step requires solving the inverse matrix of the Hessian matrix of the objective function, which is complex to calculate and occupies a large amount of memory; although the particle swarm algorithm as a swarm intelligence algorithm can be well applied to different working conditions, the selection of genetic operators is sometimes troublesome, and there is a problem of low identification accuracy. In the document "Identification of Hammerstein System Based on Improved Differential Evolution", although the improved differential evolution algorithm is used to identify the parameters of the continuous stirred reactor, the improved differential evolution algorithm as an intelligent algorithm has the problem of excessive calculation and difficulty in selecting initial parameters, which is not conducive to the parameter identification of the continuous stirred reactor in the actual production process.

[0004] How to solve the above technical problems is the subject faced by the present invention. Summary of the invention

[0005] The object of the present invention is to provide a method for parameter identification of a continuous stirred reactor based on a two-stage least squares method. The proposed two-stage weighted recursive least squares algorithm has a faster convergence speed and higher convergence accuracy, and can be well applied to modeling and parameter identification of a continuous stirred reactor.

[0006] The present invention is achieved by the following measures: a method for identifying parameters of a continuous stirred reactor based on a two-stage least squares method, specifically comprising the following steps:

[0007] Step 1) establishing a continuous stirred reactor fractional order Wiener model;

[0008] Step 2) Construct the identification process of the two-stage weighted recursive least squares algorithm.

[0009] As a further optimization scheme of the least squares-based continuous stirred reactor parameter identification method provided by the present invention, the specific modeling steps of step 1) are as follows:

[0010] Step 1-1) Construct a fractional-order Wiener model for a continuous stirred reactor and give the general form of a fractional-order Wiener system, where u(t) is the input signal, y(t) is the output signal, and v(t) is a signal with a mean of 0 and a variance of σ 2 And the white noise satisfies the Gaussian distribution, the intermediate variable m(t) is the intermediate unmeasurable signal, where N(·) is a nonlinear polynomial, and the general form of the model can be obtained:

[0011]

[0012] y(t)=N(·)+v(t),(1)

[0013] Where A(z) and B(z) are constant polynomials, and the polynomial factor a i ,b j and p i is the parameter to be estimated, α i and β j is the fractional order of the denominator of the polynomial. The present invention considers a fractional symmetric system, that is, the fractional order is a multiple of the same base and is known, then the intermediate signal m(t) is expressed as:

[0014]

[0015] Step 1-2) The present invention adopts the Grünwald Letnikov (GL) definition to solve the fractional derivative, and GL is defined as:

[0016]

[0017] where Δ is the discrete fractional difference operator, Δ α x(kh) is the α-order fractional derivative of the function x(k). Let t = kh, where h is the sampling interval and k is the number of samples for calculating the derivative approximation. Substituting equation (3) into equation (2), the intermediate signal m(t) is rewritten as:

[0018]

[0019] Assuming that the first coefficient p1 of the nonlinear function is 1, the key term m(t) of the nonlinear output of the system is separated by the key term separation technique. The nonlinear part can be described as:

[0020]

[0021] Step 1-3) obtains the identification model of the continuous stirred reactor fractional order Wiener model:

[0022]

[0023] In the above formula, is the information vector of the system, expressed as:

[0024]

[0025] θ is the parameter vector of the system, expressed as:

[0026]

[0027] θ2=[p2,p3,…,p r ] T ,

[0028] As a further optimization scheme of the least squares-based continuous stirred reactor parameter identification method provided by the present invention, the specific process of the step 2) algorithm includes the following steps:

[0029] Step 2-1) Initialization, given the number of loops h, define the data length L d , weight factor ω, let P1(0)=1 / 10 6 , P2(0)=1 / 10 6 , t = 1;

[0030] Step 2-2) Using the coolant flow rate of the continuous stirred tank reactor as input data u(t), and the fluid concentration as output data y(t), and recording the data;

[0031] Step 2-3) The intermediate variable m(t) and fractional derivative Δ in the information vector α m(t) is replaced by its estimated value and According to equations (7) and (8), the estimation of the information vector is constructed and

[0032]

[0033] Step 2-4) Calculate the gain vectors L1(t) and L2(t) according to equations (9) and (10), and calculate the covariance matrices P1(t) and P2(t) according to equations (11) and (12);

[0034]

[0035]

[0036] Step 2-5) Calculate the estimated value of the parameter vector according to equations (13) and (14) and

[0037]

[0038] Step 2-6) Calculate according to formula (15) And calculate the fractional derivative

[0039]

[0040] Step 2-7) Determine whether the maximum number of cycles has been reached. If not, t=t+1 and jump to step 2-3). If reached, go to step 2-8);

[0041] Step 2-8) Output the recognition results Complete identification.

[0042] Compared with the prior art, the present invention has the following beneficial effects:

[0043] (1) The present invention establishes a fractional-order Wiener model for a continuous stirred reactor. The model is composed of a linear dynamic system connected in series with a static nonlinear system. Different from the common integer-order model, the present invention establishes a model with a fractional order when describing the system. When describing a real system, the fractional-order model is more accurate than the integer-order model. Figure 4 and Figure 5 It can be seen that the algorithm can identify the internal parameters of the model very well.

[0044] (2) Compared with the least squares algorithm, the two-stage weighted least squares algorithm introduces the hierarchical identification theory and the weighted identification idea, which improves the convergence speed. The two-stage weighted least squares algorithm can better identify nonlinear systems, and the identification accuracy is also high, and the estimation error is small. At the same time, it also shows that this identification method has good applicability for continuous stirred reactors. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention.

[0046] Figure 1 This is a schematic diagram of a continuous stirred reactor provided by the present invention.

[0047] Figure 2 The overall flow chart of the two-stage weighted least squares algorithm provided by the present invention.

[0048] Figure 3 It is a general schematic diagram of the Wiener fractional-order system of the present invention.

[0049] Figure 4 It is a schematic diagram of the error curve between the identification parameters and the true value of the present invention.

[0050] Figure 5 It is a schematic diagram of the error curve between the identification parameters and the true value of the present invention. DETAILED DESCRIPTION

[0051] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. Of course, the specific embodiments described here are only used to explain the present invention and are not used to limit the present invention.

[0052] Example 1

[0053] See also Figures 1 to 4 The technical solution provided in this embodiment is a method for identifying parameters of a continuous stirred reactor based on a two-stage least squares method, and the specific steps are as follows:

[0054] Step 1) establishing a continuous stirred reactor fractional order Wiener model;

[0055] Step 2) Construct the identification process of the two-stage weighted recursive least squares algorithm.

[0056] As a further optimization scheme of the least squares-based continuous stirred reactor parameter identification method provided by the present invention, the specific modeling steps of step 1) are as follows:

[0057] Step 1-1) Construct a fractional-order Wiener model for a continuous stirred reactor and give the general form of a fractional-order Wiener system, where u(t) is the input signal, y(t) is the output signal, and v(t) is a signal with a mean of 0 and a variance of σ 2 And the white noise satisfies the Gaussian distribution, the intermediate variable m(t) is the intermediate unmeasurable signal, where N(·) is a nonlinear polynomial, and the general form of the model can be obtained:

[0058]

[0059] y(t)=N(·)+v(t),(1)

[0060] Where A(z) and B(z) are constant polynomials, and the polynomial factor a i ,b j and p i is the parameter to be estimated, α i and β j is the fractional order of the denominator of the polynomial. The present invention considers a fractional symmetric system, that is, the fractional order is a multiple of the same base and is known, then the intermediate signal m(t) is expressed as:

[0061]

[0062] Step 1-2) The present invention adopts the Grünwald Letnikov (GL) definition to solve the fractional derivative, and GL is defined as:

[0063]

[0064] where Δ is the discrete fractional difference operator, Δ α x(kh) is the α-order fractional derivative of the function x(k). Let t = kh, where h is the sampling interval and k is the number of samples for calculating the derivative approximation. Substituting equation (3) into equation (2), the intermediate signal m(t) is rewritten as:

[0065]

[0066] Assuming that the first coefficient p1 of the nonlinear function is 1, the key term m(t) of the nonlinear output of the system is separated by the key term separation technique. The nonlinear part can be described as:

[0067]

[0068] Step 1-3) obtains the identification model of the continuous stirred reactor fractional order Wiener model:

[0069]

[0070] In the above formula, is the information vector of the system, expressed as:

[0071]

[0072] θ is the parameter vector of the system, expressed as:

[0073]

[0074] θ2=[p2,p3,…,p r ] T ,

[0075] As a further optimization scheme of the least squares-based continuous stirred reactor parameter identification method provided by the present invention, the specific process of the step 2) algorithm includes the following steps:

[0076] Step 2-1) Initialization, given the number of loops h, define the data length L d , weight factor ω, let P1(0)=1 / 10 6 , P2(0)=1 / 10 6 , t = 1;

[0077] Step 2-2) Using the coolant flow rate of the continuous stirred tank reactor as input data u(t), and the fluid concentration as output data y(t), and recording the data;

[0078] Step 2-3) The intermediate variable m(t) and fractional derivative Δ in the information vector α m(t) is replaced by its estimated value and According to equations (7) and (8), the estimation of the information vector is constructed and

[0079]

[0080] Step 2-4) Calculate the gain vectors L1(t) and L2(t) according to equations (9) and (10), and calculate the covariance matrices P1(t) and P2(t) according to equations (11) and (12);

[0081]

[0082] Step 2-5) Calculate the estimated value of the parameter vector according to equations (13) and (14) and

[0083]

[0084] Step 2-6) Calculate according to formula (15) And calculate the fractional derivative

[0085]

[0086] Step 2-7) Determine whether the maximum number of cycles has been reached. If not, t=t+1 and jump to step 2-3). If reached, go to step 2-8);

[0087] Step 2-8) Output the recognition results Complete identification.

[0088] The schematic diagram of the continuous stirring reactor used in this embodiment is as follows Figure 2 As shown in Figure 2, the input signal u(t) is the coolant flow rate of the continuous stirred reactor, and the output signal y(t) is the fluid concentration.

[0089] Through the above-mentioned fractional-order Wiener model, the following model can be established for this embodiment 1:

[0090] y(t)=-0.16Δ 0.3 m(t-1)-0.17Δ 0.3 m(t-2)+0.60Δ 0.3 u(t-1)-0.28Δ 0.3 u(t-2)-0.29m 2 (t)+0.71m 3 (t),

[0091] Comparing the above model with step 1), we can get

[0092] a1=0.16, a2=0.17, b1=0.60, b2=-0.28, p2=-0.29, p3=0.71,

[0093] In order to conveniently substitute the parameters to be identified into the gradient iteration algorithm, the parameters to be identified are combined into a parameter vector θ, and the parameters to be identified are as follows:

[0094] θ=[a1,a2,b1,b2,p2,p3] T ,

[0095] Initialize according to step 2-1), give the number of loops h, and define the data length L d , weight factor ω;

[0096] Collect input and output data according to step 2-2);

[0097] According to step 2-3) construct an estimate of the information vector and

[0098] According to step 2-4), the gain vectors L1(t) and L2(t) are calculated, and the covariance matrices P1(t) and P2(t) are calculated;

[0099] Calculate the parameter vector estimate according to steps 2-5) and

[0100] Calculate according to step 2-6) And calculate the fractional derivative

[0101] Complete the loop according to step 2-7) and step 2-8) and output the result.

[0102] Among them, when setting the weight factor ω and data length L d Several issues need to be considered: if the weight factor is too small or too large, the identification error will be too large and accurate identification results cannot be obtained. If the data length is too small, the identification result will be unsatisfactory, resulting in low identification accuracy; if the data length is too large, the calculation amount will be large.

[0103] The parameter identification results of the continuous stirred reactor parameter identification method based on least squares in this embodiment are as follows: Figure 4 As shown; it can be seen that the identification accuracy of this method is high, and the estimated value of the parameter to be identified is very close to the true value. At the same time, it also shows that this identification method has good applicability for the parameter identification of the continuous stirred reactor.

[0104] Example 2

[0105] According to the continuous stirred reactor parameter identification method based on the two-stage least squares method in Example 1, the following model can be established in this Example 2:

[0106] y(t)=-0.123Δ 0.43 m(t-1)-0.177Δ 0.43 m(t-2)-0.124Δ 0.43 m(t-3)+0.672Δ 0.43 u(t-1)-0.252Δ 0.43 u(t-2)-0.306m 2 (t)+0.828m 3 (t),

[0107] Comparing the above model with step 1), we can get

[0108] a1=0.123, a2=0.177, a3=0.124, b1=0.672, b2=-0.252, p2=-0.306, p3=0.828,

[0109] In order to conveniently substitute the parameters to be identified into the gradient iteration algorithm, the parameters to be identified are combined into a parameter vector θ, and the parameters to be identified are as follows:

[0110] θ=[a1,a2,a3,b1,b2,p2,p3] T ,

[0111] Initialize according to step 2-1), give the number of loops h, and define the data length L d , weight factor ω;

[0112] Collect input and output data according to step 2-2);

[0113] According to step 2-3) construct an estimate of the information vector and

[0114] According to step 2-4), the gain vectors L1(t) and L2(t) are calculated, and the covariance matrices P1(t) and P2(t) are calculated;

[0115] Calculate the parameter vector estimate according to steps 2-5) and

[0116] Calculate according to step 2-6) And calculate the fractional derivative

[0117] Complete the loop according to step 2-7) and step 2-8) and output the result.

[0118] The parameter identification results of the continuous stirred reactor parameter identification method based on least squares in this embodiment are as follows: Figure 5 As shown; it can be seen that the identification accuracy of this method is high, and the estimated value of the parameter to be identified is very close to the true value. At the same time, it further illustrates that this identification method has good applicability for the parameter identification of the continuous stirred reactor.

[0119] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for identifying parameters of a continuous stirred reactor based on a two-stage least squares method, characterized in that: The following steps are involved: Step 1) establishing a continuous stirred reactor fractional order Wiener model; Step 2) Construct the identification process of the two-stage weighted recursive least squares algorithm.

2. The method for identifying parameters of a continuous stirred reactor based on a two-stage least squares method according to claim 1, characterized in that: The step 1) comprises the following steps: Step 1-1) Construct a fractional-order Wiener model for a continuous stirred reactor and give the general form of a fractional-order Wiener system, where u(t) is the input signal, y(t) is the output signal, and v(t) is a signal with a mean of 0 and a variance of σ 2 And the white noise satisfies the Gaussian distribution, the intermediate variable m(t) is the intermediate unmeasurable signal, where N(·) is a nonlinear polynomial, and the general form of the model is obtained: y(t)=N(·)+v(t), (1) Where A(z) and B(z) are constant polynomials, and the polynomial factor a i ,b j and p i is the parameter to be estimated, α i and β j is the fractional order of the denominator of the polynomial. Considering the fractional symmetric system, that is, the fractional order is a multiple of the same basis and is known, the intermediate signal m(t) is expressed as: Step 1-2) uses the Grünwald Letnikov, GL definition, to solve the fractional derivatives. GL is defined as: where Δ is the discrete fractional difference operator, Δ α x(kh) is the α-order fractional derivative of the function x(k). Let t = kh, where h is the sampling interval and k is the number of samples for calculating the derivative approximation. Substituting equation (3) into equation (2), the intermediate signal m(t) is rewritten as: Assuming that the first coefficient p1 of the nonlinear function is 1, the key term separation technique is used to separate the key term m(t) of the nonlinear output of the system. The nonlinear part is described as: Step 1-3) obtains the identification model of the continuous stirred reactor fractional order Wiener model: In the above formula, is the information vector of the system, expressed as: is the parameter vector of the system, expressed as: θ2=[p2,p3,...,p r ] T 。 3. The method for identifying parameters of a continuous stirred reactor based on a two-stage least squares method according to claim 1, characterized in that: The specific process of the step 2) algorithm includes the following steps: Step 2-1) Initialization, given the number of loops h, define the data length L d , weight factor ω, let P1(0)=1 / 10 6 , P2(0)=1 / 10 6 , t = 1; Step 2-2) Using the coolant flow rate of the continuous stirred tank reactor as input data u(t), and the fluid concentration as output data y(t), and recording the data; Step 2-3) The intermediate variable m(t) and fractional derivative Δ in the information vector α m(t) is replaced by its estimated value and According to equations (7) and (8), the estimation of the information vector is constructed and Step 2-4) Calculate the gain vectors L1(t) and L2(t) according to equations (9) and (10), and calculate the covariance matrices P1(t) and P2(t) according to equations (11) and (12); Step 2-5) Calculate the estimated value of the parameter vector according to equations (13) and (14) and Step 2-6) Calculate according to formula (15) And calculate the fractional derivative Step 2-7) Determine whether the maximum number of cycles has been reached. If not, t=t+1 and jump to step 2-3). If reached, go to step 2-8); Step 2-8) Output the recognition results Complete identification.

Citation Information

Patent Citations

  • Complex nonlinear system modeling method integrating extreme learning machine and Hammerstein-Wiener

    CN110363285A

  • Nonlinear parameter varying (NPV) model identification method

    WO2013163840A1