A method for identifying continuous stirring process of reactor based on improved Adam optimization algorithm

By improving the Adam optimization algorithm and the Hammerstein-CARMA model, the data saturation and robustness problems in parameter identification of chemical stirred reactors are solved, and high-precision and fast parameter identification is achieved, which is suitable for the continuous stirring process of reactors.

CN115097735BActive Publication Date: 2024-10-11NANTONG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210866614.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-22
Publication Date
2024-10-11
Estimated Expiration
2042-07-22

AI Technical Summary

Technical Problem

The existing parameter identification methods for chemical stirred reactors have problems such as data saturation, weak robustness, large amount of calculation, and high parameter sensitivity, resulting in low identification accuracy and poor convergence results.

Method used

Using the improved Adam optimization algorithm, by establishing the input nonlinear Hammerstein-CARMA model and constructing the identification process of the improved Adam optimization algorithm, the improved parameter values ​​of the first-order moment estimation and the second-order moment estimation are used to reduce the impact of gradient data on the current moment. , improve the convergence speed and accuracy.

Benefits of technology

It achieves high-precision identification of the parameters of the continuous stirring process of the reactor, improves the convergence speed and applicability, reduces the amount of calculation, and obtains a small estimation error, which is suitable for nonlinear systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115097735B_ABST
    Figure CN115097735B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for identifying a continuous stirring process of a reactor based on an improved Adam optimization algorithm, and belongs to the technical field of chemical engineering system identification. The technical scheme is: a method for identifying a continuous stirring process of a reactor based on an improved Adam optimization algorithm, comprising the following steps: step 1) establishing an input nonlinear Hammerstein-CARMA model of the continuous stirring process of the reactor; step 2) constructing an identification process of the improved Adam optimization algorithm. The beneficial effects of the present invention are: the improved Adam optimization algorithm proposed in the present invention is an improved gradient optimization algorithm, which has a faster convergence speed and higher convergence accuracy than traditional gradient optimization algorithms, and can be better applied to modeling and parameter identification of the continuous stirring process of the reactor, and has certain practical engineering application value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of chemical engineering system identification, and in particular to a method for identifying a continuous stirring process of a reactor based on an improved Adam optimization algorithm. Background Art

[0002] With the development of society and technology, parameter identification and control of chemical stirred reactors have gradually become a research hotspot in the field of chemical process control. Since stirred reactors often have the characteristics of nonlinearity and system dynamic complexity, the identification of their control parameters is often not accurate. Compared with other reactors, continuous stirred reactors have many advantages, such as low investment rate and strong heat exchange capacity, and have high research value. Therefore, it is necessary to establish a corresponding system model for the continuous stirring process of the reactor and identify the parameters of the established model. To this end, many researchers have also proposed different identification methods, such as least squares algorithm, particle swarm algorithm and differential evolution algorithm.

[0003] The least squares algorithm has the problem of data saturation due to the increase in data volume in the process of tracking time-varying parameters; the particle swarm algorithm has high applicability in engineering applications, but the algorithm is more sensitive and not robust, which leads to instability and convergence problems; the differential evolution algorithm is a new type of genetic algorithm with good global search capability and robustness, but due to its large amount of calculation and high sensitivity to parameters, the selection of control variable parameters requires certain experience.

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

[0005] The purpose of the present invention is to provide a method for identifying the continuous stirring process of a reactor based on an improved Adam optimization algorithm. The improved Adam optimization algorithm proposed in the present invention is an improved gradient optimization algorithm, which has a faster convergence speed and higher convergence accuracy. Its calculation amount is much smaller than that of an intelligent algorithm, and its calculation accuracy is much better than that of a traditional gradient optimization algorithm. It can be well applied to parameter identification of the continuous stirring process of a reactor.

[0006] The present invention is achieved by the following measures: a method for identifying a continuous stirring process of a reactor based on an improved Adam optimization algorithm, comprising the following steps:

[0007] Step 1) Establish an input nonlinear Hammerstein-CARMA model for the continuous stirring process of the reactor.

[0008] Step 2) Construct the identification process of the improved Adam optimization algorithm.

[0009] As a further optimization scheme of the reactor continuous stirring process identification method based on the improved Adam optimization algorithm provided by the present invention, the specific modeling steps of step 1) are as follows:

[0010] Step 1-1) Construct the input nonlinear Hammerstein-CARMA model of the continuous stirring process of the reactor: In formula (1), y(t) is the output of the system, w(t) is the colored noise, and q(t) is the non-interference output of the system:

[0011] y(t)=q(t)+w(t), (1)

[0012] Where q(t) and w(t) are expressed as:

[0013]

[0014]

[0015] A(z -1 ), B(z -1 ) and D(z -1 ) is about the backshift operator z -1 Polynomial of:

[0016]

[0017]

[0018]

[0019] Step 1-2) According to equations (2) and (3), the relationship between the output y(t) and the input u(t), the intermediate variable m(t), the interference-free output q(t) and the error v(t) can be obtained, where

[0020] q(t)=[1-A(z -1 )]q(t)+[B(z -1 )-1]m(t)+m(t), (2)

[0021] The nonlinear part is defined as follows:

[0022] m(t)=f(u(t))=γ1f1(u(t))+γ2f2(u(t))+...+γ m f m (u(t)), (3)

[0023] where γ=[γ1,γ2,...,γ m ] T ∈R m is the parameter vector of the nonlinear part, and equation (2) can be re-expressed as:

[0024]

[0025]

[0026]

[0027] The parameter estimation vector and system input and output data vector are

[0028]

[0029] As a further optimization scheme for the identification method of the continuous stirring process of a reactor based on the improved Adam optimization algorithm provided by the present invention, the specific steps of constructing the identification process of the improved Adam optimization algorithm in step 2) are as follows:

[0030] Step 2-1) using the input coolant flow rate as input data of the reactor continuous stirring process model, and the concentration of the output fluid as output data;

[0031] Step 2-2) Define the fitness function

[0032]

[0033] Where: l is the data length, t is the time, is the estimated value of the system output, and y(t) is the actual output value of the system;

[0034] Step 2-3) Calculate the gradient of the fitness function according to formula (8):

[0035]

[0036] Step 2-4) According to formula (9), the improved parameter values ​​ζ1(t) and ζ2(t) of the first-order moment estimation and the second-order moment estimation of the improved Adam algorithm are obtained:

[0037]

[0038] Where: w is the clipping parameter of the improved parameter of the second-order moment estimation;

[0039] Step 2-5) According to formula (10), the first-order moment estimate and second-order moment estimate values ​​V(t), S(t) of the improved Adam optimization algorithm are obtained:

[0040]

[0041] Among them: β1 is the control parameter of the first-order moment estimation, β2 is the control parameter of the second-order moment estimation;

[0042] Step 2-6) Select the appropriate convergence limit parameter r(t) according to formula (11):

[0043]

[0044] Step 2-7) Calculate the parameter estimation vector according to formula (12)

[0045]

[0046] Where: ε is a constant to avoid the denominator being 0, usually 0.0001;

[0047] Step 2-8) determines whether the maximum number of recursions has been reached. If not, the program jumps to step 2-2). If reached, proceeds to step 2-9);

[0048] Step 2-9) Output the identified parameter estimation vector Complete identification.

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

[0050] (1) The present invention establishes a model for identifying parameters of the continuous stirring process of a reactor, takes the input coolant flow rate as input data, and uses the improved Adam optimization algorithm to identify the model parameters; Figure 4 and Figure 5 It can be seen that the algorithm can identify the model parameters very well.

[0051] (2) Compared with the Adam optimization algorithm, the improved Adam optimization algorithm in the present invention adds a coefficient that changes continuously according to the number of recursions to the second term in the first-order moment estimation formula, and at the same time imposes a limit on the learning rate of the second-order moment estimation. At the same time, because its improved parameter value is adaptive, the previous gradient data will also weaken the influence of the first-order moment estimation and the second-order moment estimation at the current moment, thereby improving the convergence speed; the improved Adam optimization algorithm can better identify nonlinear systems, and the identification accuracy is also high, and the estimation error obtained is small; at the same time, it also shows that the identification method has good applicability to the continuous stirring process of the reactor. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] 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.

[0053] Figure 1 The overall flow chart of the method for identifying the continuous stirring process of a reactor based on the improved Adam optimization algorithm provided by the present invention.

[0054] Figure 2A schematic diagram of a continuous stirring process of a reactor according to a method for identifying a continuous stirring process of a reactor based on an improved Adam optimization algorithm provided by the present invention.

[0055] Figure 3 A schematic diagram of a general model of an input nonlinear Hammerstein-CARMA system for the reactor continuous stirring process identification method of the improved Adam optimization algorithm provided by the present invention.

[0056] Figure 4 Schematic diagram of the error between the identification parameters of the present invention and the true value.

[0057] Figure 5 This is a schematic diagram comparing the actual output and the fitted output obtained from the last one hundred recursions of the embodiment identified by the present invention. DETAILED DESCRIPTION

[0058] 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.

[0059] Example 1

[0060] See also Figures 1 to 5 The present invention provides a technical solution, which is a method for identifying a continuous stirring process of a reactor based on an improved Adam optimization algorithm, and the specific steps are as follows:

[0061] Step 1) establishing an input nonlinear Hammerstein-CARMA model for the continuous stirring process of the reactor;

[0062] Step 2) Construct the identification process of the improved Adam optimization algorithm.

[0063] Specifically, the specific modeling steps of step 1) are as follows:

[0064] Step 1-1) Construct the input nonlinear Hammerstein-CARMA model of the continuous stirring process of the reactor: In formula (1), y(t) is the output of the system, w(t) is the colored noise, and q(t) is the non-interference output of the system:

[0065] y(t)=q(t)+w(t), (1)

[0066] Where q(t) and w(t) are expressed as:

[0067]

[0068]

[0069] A(z -1 ), B(z -1 ) and D(z -1 ) is about the backshift operator z -1 Polynomial of:

[0070]

[0071]

[0072]

[0073] Step 1-2) According to equations (2) and (3), the relationship between the output y(t) and the input u(t), the intermediate variable m(t), the interference-free output q(t) and the error v(t) can be obtained, where

[0074] q(t)=[1-A(z -1 )]q(t)+[B(z -1 )-1]m(t)+m(t), (2)

[0075] The nonlinear part is defined as follows:

[0076] m(t)=f(u(t))=γ1f1(u(t))+γ2f2(u(t))+...+γ m f m (u(t)), (3)

[0077] where γ=[γ1,γ2,...,γ m ] T ∈R m is the parameter vector of the nonlinear part, and equation (2) can be re-expressed as:

[0078]

[0079]

[0080]

[0081] The parameter estimation vector and system input and output data vector are

[0082]

[0083] Preferably, the specific steps of step 2) constructing the identification process of the improved Adam optimization algorithm are as follows:

[0084] Step 2-1) using the input coolant flow rate as input data of the reactor continuous stirring process model, and the concentration of the output fluid as output data;

[0085] Step 2-2) Define the fitness function

[0086]

[0087] Where: l is the data length, t is the time, is the estimated value of the system output, and y(t) is the actual output value of the system; Step 2-3) calculates the gradient of the fitness function according to formula (8):

[0088]

[0089] Step 2-4) According to formula (9), the improved parameter values ​​ζ1(t) and ζ2(t) of the first-order moment estimation and the second-order moment estimation of the improved Adam algorithm are obtained:

[0090]

[0091] Where: w is the clipping parameter of the improved parameter of the second-order moment estimation;

[0092] Step 2-5) According to formula (10), the first-order moment estimate and second-order moment estimate values ​​V(t), S(t) of the improved Adam optimization algorithm are obtained:

[0093]

[0094] Among them: β1 is the control parameter of the first-order moment estimation, β2 is the control parameter of the second-order moment estimation;

[0095] Step 2-6) Select the appropriate convergence limit parameter r(t) according to formula (11):

[0096]

[0097] Step 2-7) Calculate the parameter estimation vector according to formula (12)

[0098]

[0099] Where: ε is a constant to avoid the denominator being 0, usually 0.0001;

[0100] Step 2-8) determines whether the maximum number of recursions has been reached. If not, the program jumps to step 2-2). If reached, proceeds to step 2-9);

[0101] Step 2-9) Output the identified parameter estimation vector Complete identification.

[0102] The present invention is further described in conjunction with the accompanying drawings and embodiments. The embodiments are only used to illustrate the present invention, but the scope of the present invention is not limited to the embodiments. Figure 2 As shown in Figure 2, u(t) is the input coolant flow rate, and y(t) is the concentration of the output fluid after the stirring reaction is completed.

[0103] Through the above-mentioned general input nonlinear Hammerstein-CARMA model, the following model can be established in this embodiment:

[0104] y(t)=q(t)+w(t),

[0105]

[0106] m(t)=f(u(t))=γ1f1(u(t))+γ2f2(u(t))=1.15u(t)-0.51u 2 (t),

[0107] w(t)=1+d1z -1 +d2z -2 =1+0.91z -1 -1.38z -2 ,

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

[0109] a1=0.7, a2=0.1, b1=1.8, b2=1.5, γ1=1.15, γ2=-0.51, d1=0.91, d2=-1.38,

[0110] Determine a fitness function for the above model In order to be used in the improved Adam optimization algorithm, the fitness function is defined as follows:

[0111]

[0112] In the formula, is the estimated value of the output, and y(t) is the actual value of the output.

[0113] In order to conveniently substitute the parameters to be identified into the improved Adam optimization algorithm, the parameters to be identified are combined into a parameter vector η, and the parameters to be identified are as follows:

[0114]

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

[0116] According to step 2-2), the fitness function value is obtained

[0117] According to step 2-3), find the gradient of the fitness function

[0118] According to step 2-4), the improved optimization parameters ζ1(t), ζ2(t) of the first-order moment estimation and the second-order moment estimation of the improved Adam optimization algorithm are calculated;

[0119] Calculate the first-order moment estimate V(t), S(t) according to step 2-5);

[0120] According to step 2-6), calculate and select an appropriate convergence limit parameter r(t);

[0121] According to steps 2-7), we can find the parameter estimation vector

[0122] Complete the loop according to step 2-8) and step 2-9) and output the parameter estimation vector obtained by identification Complete identification.

[0123] Among them, several issues need to be considered when setting the initial values ​​of the parameters β1, β2 of the first-order moment estimation and the second-order moment estimation and r(t): if the β1 of the first-order moment estimation is set too large, the convergence speed will be accelerated, but the convergence accuracy will be reduced at the same time; if the β2 of the second-order moment estimation is set too large, the convergence speed will be slowed down. In order to ensure Convergence of , symmetric matrix All eigenvalues ​​must be in the unit circle. A relatively conservative method is to impose an interval restriction on the value of r(t). Therefore, the selection of these parameters needs to be reasonably selected according to different systems.

[0124] The parameter identification results of the reactor continuous stirring process identification method based on the improved Adam optimization algorithm of the present invention are as follows: Figure 4 As shown in the figure, the comparison between the actual output and the fitted output identification results is as follows: Figure 5 As shown. It can be seen that this method has high identification accuracy and small calculation dimension, so the convergence time is very fast, and only a short time is needed to reach the maximum number of recursions. At the same time, it also shows that this identification method has good applicability for the continuous stirring process model of the reactor.

[0125] 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 a continuous stirring process of a reactor based on an improved Adam optimization algorithm, characterized in that: The following steps are involved: Step 1) establishing an input nonlinear Hammerstein-CARMA model for the continuous stirring process of the reactor; Step 2) constructing the identification process of the improved Adam optimization algorithm; The modeling steps of step 1) are as follows: Step 1-1) Construct the input nonlinear Hammerstein-CARMA model of the continuous stirring process of the reactor: In formula (1), y(t) is the output of the system, w(t) is the colored noise, and q(t) is the non-interference output of the system: y(t)=q(t)+w(t), (1) Where q(t) and w(t) are expressed as: A(z -1 ), B(z -1 ) and D(z -1 ) is about the backshift operator z -1 Polynomial of: Step 1-2) According to equations (2) and (3), the relationship between the output y(t) and the input u(t), the intermediate variable m(t), the interference-free output q(t) and the error v(t) is obtained, where q(t)=[1-A(z -1 )]q(t)+[B(z -1 )-1]m(t)+m(t), (2) The nonlinear part is defined as follows: m(t)=f(u(t))=γ1f1(u(t))+γ2f2(u(t))+...+γ m f m (u(t)), (3) where γ=[γ1,γ2,...,γ m ] Τ ∈R m is the parameter vector of the nonlinear part, and equation (2) can be re-expressed as: The parameter estimation vector and system input and output data vector are The steps of step 2) constructing the identification process of the improved Adam optimization algorithm are as follows: Step 2-1) using the input coolant flow rate as input data of the reactor continuous stirring process model, and the concentration of the output fluid as output data; Step 2-2) Define the fitness function Where: l is the data length, t is the time, is the estimated value of the system output, and y(t) is the actual output value of the system; Step 2-3) Calculate the gradient of the fitness function according to formula (8): Step 2-4) According to formula (9), the improved parameter values ​​ζ1(t) and ζ2(t) of the first-order moment estimation and the second-order moment estimation of the improved Adam algorithm are obtained: Where: w is the clipping parameter of the improved parameter of the second-order moment estimation; Step 2-5) According to formula (10), the first-order moment estimate and second-order moment estimate values ​​V(t), S(t) of the improved Adam optimization algorithm are obtained: Among them: β1 is the control parameter of the first-order moment estimation, β2 is the control parameter of the second-order moment estimation; Step 2-6) Select the appropriate convergence limit parameter r(t) according to formula (11): Step 2-7) Calculate the parameter estimation vector according to formula (12) Where: ε is a constant to avoid the denominator being 0, usually 0.0001; Step 2-8) determines whether the maximum number of recursions has been reached. If not, the program jumps to step 2-2). If reached, proceeds to step 2-9); Step 2-9) Output the identified parameter estimation vector Complete identification.