Parameter selection method, device, equipment and medium for signal compensation method PID controller
By using system identification and adaptive deep learning to establish a digital twin model in complex industrial processes, the signal compensation method PID controller is designed, which solves the problem of traditional PID controllers being difficult to select high control performance parameters in complex industrial processes, and achieves high performance. Performance control and energy consumption reduction effects.
Patent Information
- Application Number
- CN202211107462.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-13
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-09-13
AI Technical Summary
The traditional signal compensation method PID controller is difficult to select parameters with high control performance in complex industrial processes, resulting in high energy consumption, low product quality, and may affect production safety when parameters are tested on site.
By obtaining the controlled process mechanism model, the system identification algorithm and adaptive deep learning algorithm are used to establish a digital twin model, the signal compensation method PID controller is designed, the tuning method is used to determine the PID controller parameters, and the feedforward compensator parameters are determined based on the digital twin model. , and determine the optimal control compensator weighting parameters through the root locus method and gradient descent method.
It achieves high-performance control in complex industrial processes, reduces energy consumption, improves product quality, and avoids safety risks caused by on-site trials.
Smart Images

Figure CN115437234B
Abstract
Description
Technical Field
[0001] The present application belongs to the field of industrial process control technology, and specifically relates to a parameter selection method, device, equipment and medium for a signal compensation method PID controller. Background Art
[0002] Complex industrial processes such as steel, metallurgy, electricity, petrochemicals, mineral processing and building materials have complex physical and chemical reactions and unclear mechanisms, high energy and material consumption, and low-quality products that are difficult to meet the requirements of high-end manufacturing. To achieve low energy and material consumption and high product quality in complex industrial processes, achieving high-performance control is the key, that is, controlling the controlled variables within the target value range specified by the process and minimizing the fluctuation of the control input.
[0003] In complex industrial production processes, the properties of raw ore change with the production process. Material flow, energy flow and information flow always interact with each other, resulting in unknown and frequent changes in its nonlinear strong coupling dynamic characteristics. The integrator of the traditional PID (Proportional Integral Derivative) control system fails and it is difficult to achieve high-performance control, resulting in high energy consumption and low product quality. In response to the high-performance control requirements and challenges of the above-mentioned complex industrial processes, the existing related technologies improve the adaptability and robustness of the PID control system by designing a signal compensator. A signal compensation method PID controller consisting of a PID controller, a feedforward compensator and a one-step optimal control compensator is proposed. The controller and compensator parameters are selected by the trial and error method. It has been successfully applied in complex industrial processes such as molten magnesia smelting process, industrial steam-water heat exchange process, hematite regrinding process, and mixed separation and thickening process. However, the changes in the production process, the unknown nonlinear strong coupling and the frequent addition of materials make it difficult to use the trial and error method to obtain the controller parameters with the best control performance. In addition, the on-site trial and error of the controller parameters will affect the normal production of the actual process and even cause safety accidents.
[0004] Therefore, it is expected to invent a parameter selection method for a signal compensation PID controller to solve the problem that it is difficult to select parameters with high control performance in a traditional signal compensation PID controller in a complex industrial process. Summary of the invention
[0005] In view of this, the present invention provides a parameter selection method, device, equipment and medium for a signal compensation PID controller, the main purpose of which is to solve the problem that it is difficult to select parameters with high control performance in a traditional signal compensation PID controller in a complex industrial process.
[0006] According to a first aspect of the present application, a method for selecting parameters of a signal compensation PID controller is provided, comprising:
[0007] Acquire a controlled process mechanism model, and based on the controlled process mechanism model, use a system identification algorithm and an adaptive deep learning algorithm to establish a controlled process digital twin model;
[0008] Designing a signal compensation PID controller, the signal compensation PID controller is composed of a PID controller, a feedforward compensator and an optimal control compensator, wherein the output of the signal compensation PID controller is the sum of the output of the PID controller, the output of the feedforward compensator and the output of the optimal control compensator;
[0009] Based on the output formula of the PID controller, the parameters of the PID controller are determined by a tuning method;
[0010] Based on the output formula of the feedforward compensator, the parameters of the feedforward compensator are determined by using the digital twin model of the controlled process;
[0011] Based on the closed-loop system equation of the optimal control compensator and the digital twin model of the controlled process, the weighted parameters of the optimal control compensator are determined by using the root locus method and the gradient descent method;
[0012] The signal compensation method PID controller is applied to the actual controlled object by using the PID controller parameters, the feedforward compensator parameters and the optimal control compensator weighted parameters.
[0013] Optionally, the controlled process mechanism model is expressed as the following linear model A i (z -1 )y i (k+1)=B i (z -1 ) i (k) and nonlinear dynamic system model v i (k) The sum is in the form of:
[0014] Formula 1:A i (z -1 )y i (k+1)=B i (z -1 ) i (k)+v i (k)
[0015] Among them, z -1 is the delay operator, k is the sampling time, i represents three phases and i=1,2,3, is the first parameter of the linear model, is the second parameter of the linear model, is the third parameter of the linear model.
[0016] Optionally, the establishing of a digital twin model of the controlled process based on the controlled process mechanism model by using a system identification algorithm and an adaptive deep learning algorithm includes:
[0017] The first parameters are respectively obtained by using the system identification algorithm The estimated value of a i1 The second parameter The estimated value of a i2 , the third parameter The estimated value of b i0 ;
[0018] The first parameter The estimated value of a i1 The second parameter The estimated value of a i2 , the third parameter The estimated value of b i0 Substituting into the linear model of formula 1, we get the linear model output The linear model output for:
[0019] Formula 2:
[0020] Based on the nonlinear dynamic system model v i (k) Adopting an adaptive deep learning algorithm to establish the nonlinear dynamic system model v i (k) an adaptive deep learning model, wherein the adaptive deep learning model outputs for:
[0021] Formula 3:
[0022] in, is the first estimate of the nonlinear dynamic system, is the second estimated value of the nonlinear dynamic system and is a third estimated value of the nonlinear dynamic system;
[0023] Based on the linear model output And the adaptive deep learning model outputs The digital twin model of the controlled process is obtained, and the digital twin model of the controlled process is:
[0024] Formula 4:
[0025] Optionally, the output of the signal compensation method PID controller is the sum of the output of the PID controller, the output of the feedforward compensator and the output of the optimal control compensator, expressed as:
[0026] Formula 5: u i (k) = u i1 (k)+u i2 (k)+u i3 (k)
[0027] u i1 (k) is the output of the PID controller, expressed as:
[0028] Formula 6:
[0029] Among them, k pi is the proportional gain parameter of the PID controller, k ii is the integral gain parameter of the PID controller, k di is the differential gain parameter of the PID controller, e i (k) is the tracking error and e i (k) = y sp (k)-y i (k)
[0030] u i2 (k) is the output of the feedforward compensator, expressed as:
[0031] Formula 7: u i2 (k)=-k fi v i (k-1),
[0032] in,
[0033] u i3 (k) is the output of the optimal control compensator, expressed as:
[0034] Formula 8:
[0035] Among them, λ i is the weighting parameter, G' i (z -1 ) = g' i0 +g' i1 z -1 +g' i2 z -2 ,and,
[0036]
[0037] Optionally, the determining the PID controller parameters by a tuning method based on the output formula of the PID controller; and the determining the feedforward compensator parameters by using the digital twin model of the controlled process based on the output formula of the feedforward compensator include:
[0038] Based on formula 6, the proportional gain parameter k of the PID controller is obtained by the tuning method. pi , the PID controller integral gain parameter k ii , the PID controller differential gain parameter k di , where Formula 9:
[0039] Among them, T Ui is the delay time, T Gi To balance time;
[0040] Get the delay time based on experiments and balance time
[0041] The delay time obtained based on the experiment and balance time Substituting into formula 9, we get the PID controller parameters and
[0042] The third parameter The estimated value of b i0 Substituting into Equation 7 Get the feedforward compensator parameters
[0043] Optionally, the determining of the weighted parameters of the optimal control compensator based on the closed-loop system equation of the optimal control compensator and the digital twin model of the controlled process by using the root locus method and the gradient descent method includes:
[0044] Substituting Formula 5 into Formula 1, a closed-loop system equation is obtained, which is:
[0045] Formula 10:
[0046] In order to ensure the stability of the closed-loop system, the weighted parameter λ i Satisfies the following formula:
[0047] Formula 11:
[0048] Based on formula 11, the weighted parameter λ is obtained by using the root locus method: i The root locus equation of , the locus equation is:
[0049] Formula 12: 1+λ i [1-z -1 G′ i (z -1 )] / b i0 =0,
[0050] The weighting parameter λ is plotted based on formula 12 i The root locus of the unit circle is determined to determine whether the root locus intersects the unit circle, and the weighting parameter λ is determined. i The value range of the weighting parameter λ i The value range of is:
[0051] Formula 13: λ i ∈(0,∞),
[0052] in, When the root locus has no intersection with the unit circle, λ i,max =∞, when the root locus intersects the unit circle, is the intersection point of the root locus and the unit circle;
[0053] Based on Formula 4, the gradient descent method is used to calculate the weight parameter λ i The optimal control compensator weighting parameters are determined within the value range of .
[0054] Optionally, based on Formula 4, the gradient descent method is used to calculate the weighted parameter λ i Determining the optimal control compensator weighted parameters within the range of includes:
[0055] Construct an optimization problem of the optimal control compensator weighted parameters, the optimization problem is:
[0056] Formula 14:
[0057] Formula 15:
[0058] Formula 16: λ i (k-1)∈(0,λ i,max ),
[0059] Formula 17: |e i (k)|<δ 1 ,
[0060] Formula 18: |u i (k)|<δ 2 ,
[0061] Among them, δ 1 and δ 2 are the tracking errors e i (k) and the output u of the signal compensation method PID controller i (k) The upper bound of the target value;
[0062] Based on Formula 15-Formula 18, the gradient descent method is used to establish a weighted parameter selection algorithm, and the weighted parameter selection algorithm is:
[0063] Formula 19:
[0064] Among them, α i is the learning rate;
[0065] Partial derivatives are performed on Formula 14 and Formula 15 respectively to obtain Formula 20 and Formula 21, which are:
[0066] Formula 20:
[0067] Formula 21:
[0068] Among them, δ 3 and δ 4 They are i (k) and J ie (k) is the convergence bound, N is the convergence time;
[0069] Based on Formula 4, Formulas 19-21 are used to determine the optimal control compensator weighted parameter λ i *.
[0070] According to a second aspect of the present invention, there is provided a parameter selection device for a signal compensation method PID controller, comprising:
[0071] Establishing a module for acquiring a mechanism model of a controlled process, and establishing a digital twin model of the controlled process based on the mechanism model of the controlled process by using a system identification algorithm and an adaptive deep learning algorithm;
[0072] A design module is used to design a signal compensation method PID controller, wherein the signal compensation method PID controller is composed of a PID controller, a feedforward compensator and an optimal control compensator, wherein the output of the signal compensation method PID controller is the sum of the output of the PID controller, the output of the feedforward compensator and the output of the optimal control compensator;
[0073] A determination module, used for determining the parameters of the PID controller by a tuning method based on an output formula of the PID controller;
[0074] The determination module is further used to determine the parameters of the feedforward compensator based on the output formula of the feedforward compensator and using the digital twin model of the controlled process;
[0075] The determination module is further used to determine the weighted parameters of the optimal control compensator by using the root locus method and the gradient descent method based on the closed-loop system equation of the optimal control compensator and the digital twin model of the controlled process;
[0076] The control module is used to use the PID controller parameters, the feedforward compensator parameters and the optimal control compensator weighted parameters to apply the signal compensation method PID controller to the actual controlled object.
[0077] Optionally, the establishment module is also used to express the controlled process mechanism model as the following linear model A i (z -1 )y i (k+1)=B i (z -1 ) i (k) and nonlinear dynamic system model v i (k) The sum is in the form of:
[0078] Formula 1:A i (z -1 )y i (k+1)=B i (z -1 ) i (k)+v i (k)
[0079] Among them, z -1 is the delay operator, k is the sampling time, i represents three phases and i=1,2,3, is the first parameter of the linear model, is the second parameter of the linear model, is the third parameter of the linear model.
[0080] Optionally, the establishing module is further used for:
[0081] The first parameters are respectively obtained by using the system identification algorithm The estimated value of a i1 The second parameter The estimated value of a i2 , the third parameter The estimated value of b i0 ;
[0082] The first parameter The estimated value of a i1 The second parameter The estimated value of a i2 , the third parameter The estimated value of b i0Substituting into the linear model of formula 1, we get the linear model output The linear model output for:
[0083] Formula 2:
[0084] Based on the nonlinear dynamic system model v i (k) Adopting an adaptive deep learning algorithm to establish the nonlinear dynamic system model v i (k) an adaptive deep learning model, wherein the adaptive deep learning model outputs for:
[0085] Formula 3:
[0086] in, is the first estimate of the nonlinear dynamic system, is the second estimated value of the nonlinear dynamic system and is a third estimated value of the nonlinear dynamic system;
[0087] Based on the linear model output And the adaptive deep learning model outputs The digital twin model of the controlled process is obtained, and the digital twin model of the controlled process is:
[0088] Formula 4:
[0089] Optionally, the output of the signal compensation method PID controller is the sum of the output of the PID controller, the output of the feedforward compensator and the output of the optimal control compensator and is expressed as:
[0090] Formula 5: u i (k) = u i1 (k)+u i2 (k)+u i3 (k)
[0091] u i1 (k) is the output of the PID controller, expressed as:
[0092] Formula 6:
[0093] Among them, k pi is the proportional gain parameter of the PID controller, k ii is the integral gain parameter of the PID controller, k di is the differential gain parameter of the PID controller, e i (k) is the tracking error and e i (k) = ysp (k)-y i (k)
[0094] u i2 (k) is the output of the feedforward compensator, expressed as:
[0095] Formula 7: u i2 (k)=-k fi v i (k-1),
[0096] in,
[0097] u i3 (k) is the output of the optimal control compensator, expressed as:
[0098] Formula 8:
[0099] Among them, λ i is the weighting parameter, G' i (z -1 ) = g' i0 +g' i1 z -1 +g' i2 z -2 ,and,
[0100]
[0101] Optionally, the determining module is further used for:
[0102] Based on formula 6, the proportional gain parameter k of the PID controller is obtained by the tuning method. pi , the PID controller integral gain parameter k ii , the PID controller differential gain parameter k di , where Formula 9:
[0103] Among them, T Ui is the delay time, T Gi To balance time;
[0104] Get the delay time based on experiments and balance time
[0105] The delay time obtained based on the experiment and balance time Substituting into formula 9, we get the PID controller parameters and
[0106] The third parameter The estimated value of b i0 Substituting into Equation 7 Get the feedforward compensator parameters
[0107] Optionally, the determining module is further used for:
[0108] Substituting Formula 5 into Formula 1, a closed-loop system equation is obtained, which is:
[0109] Formula 10:
[0110] In order to ensure the stability of the closed-loop system, the weighted parameter λ i Satisfies the following formula:
[0111] Formula 11:
[0112] Based on formula 11, the weighted parameter λ is obtained by using the root locus method: i The root locus equation of , the locus equation is:
[0113] Formula 12: 1+λ i [1-z -1 G′ i (z -1 )] / b i0 =0,
[0114] The weighting parameter λ is plotted based on formula 12 i , determine whether the root locus intersects the unit circle, and determine the weighting parameter λ i The value range of the weighting parameter λ i The value range of is:
[0115] Formula 13: λ i ∈(0,∞),
[0116] in, When the root locus has no intersection with the unit circle, λ i,max =∞, when the root locus intersects the unit circle, is the intersection point of the root locus and the unit circle;
[0117] Based on Formula 4, the gradient descent method is used to calculate the weight parameter λ i The optimal control compensator weighting parameters are determined within the value range of .
[0118] Optionally, the determining module is further used for:
[0119] Construct an optimization problem of the optimal control compensator weighted parameters, the optimization problem is:
[0120] Formula 14:
[0121] Formula 15:
[0122] Formula 16: λ i (k-1)∈(0,λ i,max ), (18)
[0123] Formula 17: |e i (k)|<δ 1 ,
[0124] Formula 18: |u i (k)|<δ 2 ,
[0125] Among them, δ 1 and δ 2 are the tracking errors e i (k) and the output u of the signal compensation method PID controller i (k) The upper bound of the target value;
[0126] Based on Formula 15-Formula 18, the gradient descent method is used to establish a weighted parameter selection algorithm, and the weighted parameter selection algorithm is:
[0127] Formula 19:
[0128] Among them, α i is the learning rate;
[0129] Partial derivatives are performed on Formula 14 and Formula 15 respectively to obtain Formula 20 and Formula 21, which are:
[0130] Formula 20:
[0131] Formula 21:
[0132] Among them, δ 3 and δ 4 They are i (k) and J ie (k) is the convergence bound, N is the convergence time;
[0133] Based on Formula 4, Formulas 19-21 are used to determine the optimal control compensator weighted parameter λ i * .
[0134] According to a third aspect of the present invention, there is provided an electronic device, comprising a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, wherein the processor implements the steps of any one of the methods described in the first aspect when executing the computer program.
[0135] According to a fourth aspect of the present invention, there is provided a storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of any one of the methods described in the first aspect.
[0136] By means of the above technical scheme, the present application provides a parameter selection method for a signal compensation PID controller. Based on the acquired controlled process mechanism model, a system identification algorithm and an adaptive deep learning algorithm are used to establish a digital twin model of the controlled process, and a signal compensation PID controller is designed. The signal compensation PID controller consists of a PID controller, a feedforward compensator and an optimal control compensator. The PID controller parameters are selected by a tuning method, the feedforward compensator parameters are determined by the digital twin model of the controlled process, and the root locus method and the gradient descent method are used to determine the weighted parameters of the optimal control compensator, thereby solving the problem that it is difficult for traditional signal compensation PID controllers to select parameters with high control performance in complex industrial processes.
[0137] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0138] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0139] Figure 1 A flow chart showing a parameter selection method of a signal compensation method PID controller provided in an embodiment of the present application is shown;
[0140] Figure 2 A flow chart showing another method for selecting parameters of a PID controller using a signal compensation method provided in an embodiment of the present application is shown;
[0141] Figure 3 The performance index J of another parameter selection method of the signal compensation method PID controller provided in the embodiment of the present application is shown. ie (k) and weighting parameter λ i(k) Schematic diagram of the iteration curve;
[0142] Figure 4 The electrode current y when the conventional PID controller is used according to the embodiment of the present application is shown. i (k) and current setting value y sp (k) is a schematic diagram of the curve;
[0143] Figure 5 Another method for selecting parameters of a PID controller using a signal compensation method according to an embodiment of the present application is shown. i The electrode current y is i (k) and current setting value y sp (k) is a schematic diagram of the curve;
[0144] Figure 6 The method for selecting the parameters of another signal compensation PID controller provided by the embodiment of the present application is shown in FIG. i The electrode current y is i (k) and current setting value y sp (k) is a schematic diagram of the curve;
[0145] Figure 7 A schematic diagram of the structure of a parameter selection device for a signal compensation method PID controller provided in an embodiment of the present application is shown;
[0146] Figure 8 A schematic diagram of the device structure of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0147] Various aspects and features of the present application are described herein with reference to the accompanying drawings.
[0148] It should be understood that various modifications may be made to the embodiments of the present application. Therefore, the above description should not be considered as limiting, but only as an example of an embodiment. Other modifications within the scope and spirit of the present application will occur to those skilled in the art.
[0149] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the present application and, together with the general description of the present application given above and the detailed description of the embodiments given below, serve to explain the principles of the present application.
[0150] These and other characteristics of the present application will become apparent from the following description of a preferred form of embodiment given as a non-limiting example with reference to the accompanying drawings.
[0151] It should also be understood that although the present application has been described with reference to some specific examples, those skilled in the art will be able to readily implement many other equivalent forms of the present application.
[0152] The above and other aspects, features and advantages of the present application will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.
[0153] Specific embodiments of the present application are described hereinafter with reference to the accompanying drawings; however, it should be understood that the embodiments applied for are merely examples of the present application, which may be implemented in a variety of ways. Well-known and / or repeated functions and structures are not described in detail to avoid unnecessary or redundant details that obscure the present application. Therefore, the specific structural and functional details applied for herein are not intended to be limiting, but merely serve as a basis and representative basis for the claims to teach those skilled in the art to use the present application in a variety of ways with substantially any suitable detailed structure.
[0154] This specification may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," all of which may refer to one or more of the same or different embodiments according to the present application.
[0155] Example 1
[0156] The present application embodiment provides a method for selecting parameters of a signal compensation PID controller, such as Figure 1 As shown, including:
[0157] 101. Obtain the mechanism model of the controlled process, and based on the mechanism model of the controlled process, use the system identification algorithm and adaptive deep learning algorithm to establish a digital twin model of the controlled process.
[0158] 102. Design a signal compensation PID controller. The signal compensation PID controller consists of a PID controller, a feedforward compensator and an optimal control compensator. The output of the signal compensation PID controller is the sum of the output of the PID controller, the output of the feedforward compensator and the output of the optimal control compensator.
[0159] 103. Based on the output formula of the PID controller, the tuning method is used to determine the PID controller parameters.
[0160] 104. Based on the output formula of the feedforward compensator, the digital twin model of the controlled process is used to determine the parameters of the feedforward compensator.
[0161] 105. Based on the closed-loop system equation of the optimal control compensator and the digital twin model of the controlled process, the root locus method and gradient descent method are used to determine the weighted parameters of the optimal control compensator.
[0162] 106. The signal compensation method PID controller is applied to the actual controlled object by using PID controller parameters, feedforward compensator parameters and optimal control compensator weighted parameters.
[0163] The method provided in the embodiment of the present application can establish a digital twin model of the controlled process based on the acquired controlled process mechanism model, adopt a system identification algorithm and an adaptive deep learning algorithm, and design a signal compensation PID controller. The signal compensation PID controller consists of a PID controller, a feedforward compensator and an optimal control compensator. The PID controller parameters are selected by a tuning method, the feedforward compensator parameters are determined by the digital twin model of the controlled process, and the root locus method and the gradient descent method are used to determine the weighted parameters of the optimal control compensator, thereby solving the problem that it is difficult for traditional signal compensation PID controllers to select parameters with high control performance in complex industrial processes.
[0164] The present application embodiment provides a method for selecting parameters of a signal compensation PID controller, such as Figure 2 As shown, including:
[0165] 201: Establish a digital twin model of the controlled process.
[0166] In an embodiment of the present application, a system identification algorithm that combines existing system identification and adaptive deep learning in the prior art is used to establish a digital twin model of the controlled process. The idea of the existing system identification algorithm is: using the actual data of the actual process input variables and output variables, a least squares identification algorithm is used to estimate the linear model parameters, and an adaptive deep learning algorithm is used to establish an adaptive deep learning model of an unknown nonlinear dynamic system. The output of the linear model is added to the output of the adaptive deep learning model of the unknown nonlinear dynamic system to obtain the output of the digital twin model of the controlled process.
[0167] 2011: Representing the current mechanism model as the sum of a linear model and a nonlinear dynamic system.
[0168] In the embodiment of the present application, the motor rotation direction and frequency u i (t) is the input, and the electrode current y i The dynamic model of electrode current in the smelting process with (t) as the output is:
[0169] Formula 1:
[0170] Where i represents three phases and i=1,2,3, L i is the short network self-inductance, R i is the short network resistance. b(T a ) is the arc coefficient, which changes with the arc temperature T a The change of unknown changes, k uh is the conversion factor, di (t) represents the current dynamic characteristics caused by unknown nonlinear strong coupling, unknown frequent changes in model parameters and unknown frequent changes caused by adding materials.
[0171] Replace b(T a ) Substitute the unknown constant b and take the derivative to get:
[0172] Formula 2: in for:
[0173] Formula 3:
[0174] The Euler method is used to discretize Formula 2, so the current mechanism model shown in Formula 1 can be expressed as the linear model and the unknown nonlinear dynamic system v shown in the following formula: i (k) The sum is in the form of:
[0175] Formula 4:A i (z -1 )y i (k+1)=B i (z -1 ) i (k)+v i (k)
[0176] Among them, z -1 is the delay operator, k is the sampling time, i represents three phases and i=1,2,3, is the first parameter of the linear model, is the second parameter of the linear model, is the third parameter of the linear model, and Respectively expressed as:
[0177] Formula 5:
[0178] Among them, v i (k) is a nonlinear dynamic system with unknown model structure and order, which represents the unknown nonlinear strong coupling dynamic characteristics in the current model and the changes in dynamic characteristics caused by melting and adding materials at different furnaces.
[0179] 2012: Using the actual data of the actual process input variables and output variables, the least squares identification algorithm is used to estimate the linear model parameters, and the first parameter in Formula 4 can be obtained The estimated value of a i1 , the second parameter The estimated value of a i2 , the third parameter The estimated value of b i0 .
[0180] In the embodiment of the present application, the first parameter of the three-phase current linear model is The estimated value of a i1 , the second parameter The estimated value of a i2 , the third parameter The estimated value of b i0 Preferably:
[0181] Formula 6:
[0182] From the above formula, we can know that the linear model parameter b i0 >0. The linear model parameter a shown in formula 6 i1 、a i2 and b i0 Substituting into formula 4, we can get the linear model output for:
[0183] Formula 7:
[0184] 2013: Use adaptive deep learning algorithm to establish an adaptive deep learning model for unknown nonlinear dynamic systems.
[0185] In the embodiment of the present application, v in Formula 4 i (k)(i=1,2,3) can be expressed as:
[0186] Formula 8:
[0187] Where f is a nonlinear function with unknown model structure and order n. Adopting the adaptive deep learning method in the prior art, preferably using 8×36000 sets of data from 8 furnaces, an adaptive deep learning model of v(k) based on LSTM structure is established, where the input of the unit neural network is the input variable of f in formula 8, the number of neurons in each layer is 5, the number of unit nodes is 480, the time series window length is 1500, the number of network layers is 7, and the network output is v(k). So the output of the adaptive deep learning model of unknown nonlinear dynamic system is:
[0188] Formula 9:
[0189] 2014: Output the linear model shown in Formula 7 Output of the adaptive deep learning model of the unknown nonlinear dynamic system obtained in step 2013 By adding them together, we can get the digital twin model of fused magnesia current.
[0190] In the embodiment of the present application, the digital twin model of fused magnesia current is:
[0191] Formula 10:
[0192] The actual three-phase current value of a furnace and the output value of the current model are used to evaluate the accuracy of the established current digital twin model using the mean absolute error (MAE), as shown in Formula 11, and the root mean square error (RMSE), as shown in Formula 12. 1 (k), y 2 (k), y 3 The MAE of (k) are 0.8851, 1.0470, and 0.9415, respectively, and the RMSE are 1.2618, 1.4105, and 1.3691, respectively, which meet the controller design requirements.
[0193] Formula 11:
[0194] Formula 12:
[0195] in, y i (k) is the actual current value, Output values for the model.
[0196] 202: Design a PID controller with signal compensation method for the molten magnesia smelting process.
[0197] In the embodiment of the present application, according to the existing related technology, a PID controller for signal compensation of molten magnesia smelting process composed of a PID controller, a feedforward compensator and a one-step optimal control compensator can be designed. i (k) is:
[0198] Formula 13: u i (k) = u i1 (k)+u i2 (k)+u i3 (k)
[0199] where u i1 (k) is the PID controller, u i2 (k) is the feedforward compensator, u i3 (k) is a one-step optimal control compensator.
[0200] PID controller i1 (k) is:
[0201] Formula 14:
[0202] where k pi , k ii and k di are the proportional gain, integral gain and differential gain of the PID controller parameters, and the tracking error e i (k) is:
[0203] Formula 15: e i (k) = y sp (k)-y i (k)
[0204] Feedforward compensator u i2 (k) is:
[0205] Formula 16: u i2 (k)=-k fi v i (k-1),
[0206] Among them, k fi for:
[0207] Formula 17:
[0208] One-step optimal control compensator u i3 (k) is:
[0209] Formula 18:
[0210] Among them, λ i is a weighting parameter and is related to b i0 The positive and negative signs are consistent, G' i (z -1 ) = g' i0 +g' i1 z -1 +g' i2 z -2 ,
[0211] Formula 19:
[0212] Substituting formula 14, formula 16 and formula 18 into formula 13, we can get the signal compensation method PID controller u i (k).
[0213] 203: The Ziegler-Nichols tuning method, which is most commonly used in the industry, is used to select the parameters of the PID controller, and the parameters of the digital twin model of the controlled process are used to determine the parameters of the feedforward compensator.
[0214] In the embodiment of the present application, a unit step response experiment is performed on the controlled process to determine the delay time and the equilibrium time, and the PID controller parameters are determined using the Ziegler-Nichols tuning formula. The linear model parameters are substituted into the parameter solution formula of the feedforward compensator to directly obtain the feedforward compensator parameters.
[0215] Specifically, according to the existing discrete Ziegler-Nichols tuning technology, firstly, a unit step response experiment is conducted on the fused magnesia smelting process to obtain the delay time and balance time Then the PID controller parameters in formula 14 can be obtained by using the following tuning formula: and
[0216] Formula 20:
[0217] The delay time obtained from the unit step response experiment of the fused magnesia smelting process is and balance time for:
[0218] Formula 21:
[0219] Substituting Equation 21 into Equation 20, the determined PID controller parameters are:
[0220] Formula 22:
[0221] Replace b in Formula 6 i0 Substituting into formula 17, the feedforward compensator parameters are obtained for:
[0222] Formula 23:
[0223] 204: The root locus method is used to determine the range of weighted parameter selection for the one-step optimal control compensator to ensure system stability.
[0224] 2041: Determine the root locus equations for the weighted parameters of the one-step optimal control compensator.
[0225] The signal compensation PID controller u composed of the PID controller, feedforward compensator and one-step optimal control compensator shown in Formula 13, Formula 14, Formula 16 and Formula 18 is i (k) Substituting into the controlled object model equation 4, the optimal control compensator u can be obtained in one step i3 (k) is the input, tracking error e i The closed-loop system equation with (k+1) as the output is:
[0226] Formula 24:
[0227] In order to make the closed-loop system equation (24) stable, the weighting parameter λ i The choice satisfies the following formula:
[0228] Formula 25:
[0229] Due to b i0 >0, so λ i >0. Use the root locus method to determine λi The value range of λ is obtained from formula 25. i The parametric root locus equation is:
[0230] Formula 26: 1+λ i [1-z -1 G′ i (z -1 )] / b i0 =0,
[0231] Among them, G' i (z -1 ) is obtained by Formula 19.
[0232] 2042: Use the root locus method to find the value range of the weighting parameter.
[0233] Using Equation 26 to plot λ i The root locus of the closed-loop characteristic root changing from 0 to ∞ on the complex plane, and the intersection of the root locus and the unit circle determine λ i The value range of λ i ∈(0,λ i,max ), where λ i,max for:
[0234] Formula 27:
[0235] When the root locus has no intersection with the unit circle, λ i,max =∞, when the root locus intersects the unit circle, is the intersection of the root locus and the unit circle. From the root locus drawn based on formula 26, it can be seen that the root locus has no intersection with the unit circle, so λ i,max =∞,λ i The value range is λ i ∈(0,∞).
[0236] 205: The cumulative sum of squared tracking errors performance index is introduced, and based on the established digital twin model of electric molten magnesium furnace current, the gradient descent method is used to select the one-step optimal control compensator weighted parameters that minimize the performance index.
[0237] 2051: Construct an optimization problem for selecting the weighted parameters of a one-step optimal control compensator.
[0238] In the embodiment of the present application, in order to i Select the value range of e in formula 24 i The cumulative sum of squares of (k) is as small as possible, even if the performance index Very small λ i , construct the following optimization problem:
[0239] Formula 28:
[0240] Formula 29:
[0241] Formula 30: λ i (k-1)∈(0,λ i,max ),
[0242] Formula 31: |e i (k)|<δ 1 ,
[0243] Formula 32: |u i (k)|<δ 2 ,
[0244] Among them, δ 1 and δ 2 are the tracking errors e i (k) and the output u of the signal compensation PID controller i (k) is the upper limit of the target value. Specifically, in the embodiment of the present application, δ 1 Preferably 2kA, δ 2 Preferably it is 30 Hz.
[0245] 2052: Using the gradient descent method to solve the optimization problem shown in Formula 28 to Formula 32, a weighted parameter selection algorithm is established.
[0246] In the embodiment of the present application, the gradient descent method is used to obtain the optimal solution λ that satisfies Formula 28 to Formula 32. i The selection algorithm of * is as follows:
[0247] Formula 33:
[0248] where α i is the learning rate, and the partial derivative is obtained by formula 28 and formula 29 for:
[0249] Formula 34:
[0250] Formula 35:
[0251] In the formula, δ 3 and δ 4 is i (k) and J ie (k) is the convergence bound, N is the convergence time. i , δ 3 , δ 4 , N is determined experimentally to meet the control objective and optimization objective formula 28.
[0252] 2053: Based on the current digital twin model shown in formula 10, the weighted parameter selection algorithm shown in formulas 33 to 35 is used to select the optimal solution λ of the weighted parameter i * . Select λ i,max =∞,λ i (0) = 0.01, α i =0.365,δ 3 =0.004,δ 4 =0.08, N = 2000, J ie (k) and λ i The iteration curve of (k) is as follows Figure 3 As shown. Figure 3 , when λ i (k) and J ie (k) When convergence, the optimal solution λ can be obtained i * , so the weighted parameter of the one-step optimal control compensator selected by the present invention is λ i =λ i * ,Right now:
[0253] Formula 36: λ 1 =1591.9556,λ 2 =1678.1472,λ 3 =1102.2503,
[0254] 2054: Using the PID parameter formula 22, the feedforward compensator parameter formula 23 and the one-step optimal control compensator weighted parameter formula 36 selected in the above steps, the signal compensation method PID controller output u shown in formulas 13, 14, 16 and 18 is converted to i (k) Act on the actual fused magnesia smelting process to achieve high performance control.
[0255] In the embodiment of the present application, fused magnesia has a high melting point, stable chemical properties, and strong insulation. It is a high-grade refractory material widely used in industries such as steel, cement, glass, non-ferrous metal smelting, and aerospace. The fused magnesia furnace is the main equipment for producing fused magnesia. It adopts a submerged arc method and a smelting temperature of up to 3000°C. It is a typical high-energy-consuming equipment. The cost of electricity accounts for more than 60% of the total production cost. Only by controlling the melting current to track the optimal melting current well and making the electrode fluctuation as small as possible can the product quality be guaranteed to be qualified and the energy consumption per ton be low. During the smelting process of fused magnesia, the material is added while melting. The nonlinear strongly coupled current dynamic characteristics change frequently and unknownly with the changes in the smelting process, model parameters, ore properties, furnace changes, and feeding interference, causing the traditional PID integral action to fail and difficult to achieve its high-performance control. It is difficult to make the signal compensation method PID controller achieve the optimal control effect of the fused magnesia smelting process through on-site testing of controller parameters. For the molten magnesia smelting process, the signal compensation method PID parameter selection method driven by machine learning and digital twin of the present invention is adopted to obtain the optimal selection of signal compensation method PID controller parameters in the molten magnesia smelting process, which solves the problem that manual trial and error have poor effects and affect actual production, and realizes high-performance control of the molten magnesia smelting process.
[0256] The specific implementation effects are:
[0257] The PID control system of the signal compensation method for the molten magnesia smelting process designed by the present invention has been successfully applied in the actual molten magnesium furnace of a certain molten magnesia production enterprise. It was successful at one time on the actual site without the need for debugging, and the effectiveness of the technical solution of the present invention was demonstrated through control experimental comparison.
[0258] Using traditional PID controller, manual test i Signal compensation method PID controller and the technology of the present invention to select λ i The current control effects of the signal compensation method PID controller are as follows Figure 4 , Figure 5 and Figure 6 The PID parameters of the three controllers are the same, as shown in Equation 22. The feedforward compensator parameters of the latter two controllers are the same, as shown in Equation 23. The weighting parameters λ of the latter two controllers are i different,
[0259] The λ selected by the present invention i As shown in Formula 36, the λ obtained by manual trial and error is i As shown below:
[0260] Formula 37: λ 1 =1776.9003,λ 2 =8492.2010,λ 3 =166.3340,
[0261] against Figure 4-Figure 6 The current control effect shown is evaluated by using the mean square error (MSE), such as formula 38, and the integral of the absolute value of the error (IAE), such as formula 39, for the electrode current tracking error when using the above three controllers. The results are shown in Table 1.
[0262] Formula 38:
[0263] Formula 39:
[0264] in,
[0265] Table 1
[0266]
[0267] Example 2
[0268] The embodiment of the present application provides a parameter selection device for a signal compensation method PID controller, such as Figure 7 As shown, including:
[0269] Establishing module 701, for acquiring a controlled process mechanism model, and establishing a controlled process digital twin model based on the controlled process mechanism model by using a system identification algorithm and an adaptive deep learning algorithm;
[0270] A design module 702 is used to design a signal compensation method PID controller, which is composed of a PID controller, a feedforward compensator and an optimal control compensator, wherein the output of the signal compensation method PID controller is the sum of the output of the PID controller, the output of the feedforward compensator and the output of the optimal control compensator;
[0271] A determination module 703 is used to determine the parameters of the PID controller by using a tuning method based on an output formula of the PID controller;
[0272] The determination module 703 is further used to determine the parameters of the feedforward compensator based on the output formula of the feedforward compensator and using the digital twin model of the controlled process;
[0273] The determination module 703 is further used to determine the weighted parameters of the optimal control compensator based on the closed-loop system equation of the optimal control compensator and the digital twin model of the controlled process by using the root locus method and the gradient descent method;
[0274] The control module 704 is used to use the PID controller parameters, the feedforward compensator parameters and the optimal control compensator weighted parameters to apply the signal compensation method PID controller to the actual controlled object.
[0275] In a specific application scenario, the establishment module 701 is also used to express the controlled process mechanism model as the following linear model A i (z -1 )y i (k+1)=B i (z -1 ) i (k) and nonlinear dynamic system model v i (k) The sum is in the form of:
[0276] Formula 1:A i (z -1 )y i (k+1)=B i (z -1 ) i (k)+v i (k)
[0277] Among them, z -1 is the delay operator, k is the sampling time, i represents three phases and i=1,2,3, is the first parameter of the linear model, is the second parameter of the linear model, is the third parameter of the linear model.
[0278] In a specific application scenario, the establishment module 701 is also used to:
[0279] The first parameters are obtained by using the system identification algorithm The estimated value of a i1 , the second parameter The estimated value of a i2 , the third parameter The estimated value of b i0 ;
[0280] The first parameter The estimated value of a i1 , the second parameter The estimated value of a i2 , the third parameter The estimated value of b i0 Substituting into the linear model of formula 1, we get the linear model output Linear model output for:
[0281] Formula 2:
[0282] Based on nonlinear dynamic system model v i (k) Adopting adaptive deep learning algorithm to establish nonlinear dynamic system model v i(k) Adaptive deep learning model, adaptive deep learning model output for:
[0283] Formula 3:
[0284] in, is the first estimate of the nonlinear dynamic system, is the second estimate of the nonlinear dynamic system and is the third estimate of the nonlinear dynamic system;
[0285] Based on linear model output and adaptive deep learning model output The digital twin model of the controlled process is obtained. The digital twin model of the controlled process is:
[0286] Formula 4:
[0287] In a specific application scenario, the output of the signal compensation PID controller is the sum of the output of the PID controller, the output of the feedforward compensator, and the output of the optimal control compensator, expressed as:
[0288] Formula 5: u i (k) = u i1 (k)+u i2 (k)+u i3 (k)
[0289] u i1 (k) is the output of the PID controller, expressed as:
[0290] Formula 6:
[0291] Among them, k pi is the proportional gain parameter of the PID controller, k ii is the integral gain parameter of the PID controller, k di is the differential gain parameter of the PID controller, e i (k) is the tracking error and e i (k) = y sp (k)-y i (k)
[0292] u i2 (k) is the output of the feedforward compensator, expressed as:
[0293] Formula 7: u i2 (k)=-k fi v i (k-1),
[0294] in,
[0295] u i3 (k) is the output of the optimal control compensator, expressed as:
[0296] Formula 8:
[0297] Among them, λ i is the weighting parameter, G' i (z -1 ) = g' i0 +g' i1 z -1 +g' i2 z -2 ,and,
[0298]
[0299] In a specific application scenario, the determination module 703 is further used to:
[0300] Based on formula 6, the proportional gain parameter k of the PID controller is obtained by the tuning method. pi , PID controller integral gain parameter k ii , PID controller differential gain parameter k di ,in,
[0301] Formula 9:
[0302] Among them, T Ui is the delay time, T Gi To balance time;
[0303] Get the delay time based on experiments and balance time
[0304] The delay time obtained based on the experiment and balance time Substituting into formula 9, we get the PID controller parameters and
[0305] The third parameter The estimated value of b i0 Substituting into Equation 7 Get the feedforward compensator parameters
[0306] In a specific application scenario, the determination module 703 is further used to:
[0307] Substituting Formula 5 into Formula 1, we get the closed-loop system equation, which is:
[0308] Formula 10:
[0309] Among them, in order to ensure the stability of the closed-loop system, the weighting parameter λ i Satisfies the following formula:
[0310] Formula 11:
[0311] Based on formula 11, the root locus method is used to obtain the weighted parameter λ i The root locus equation of , the locus equation is:
[0312] Formula 12: 1+λ i [1-z -1 G′ i (z -1 )] / b i0 =0,
[0313] Plotting the weighting parameter λ based on Equation 12 i , determine whether the root locus intersects the unit circle, and determine the weighting parameter λ i The value range of the weight parameter λ i The value range of is:
[0314] Formula 13: λ i ∈(0,∞),
[0315] in, When the root locus has no intersection with the unit circle, λ i,max =∞, when the root locus intersects the unit circle, is the intersection of the root locus and the unit circle;
[0316] Based on Formula 4, the gradient descent method is used to adjust the weight parameter λ i The optimal control compensator weighting parameters are determined within the value range of .
[0317] In a specific application scenario, the determination module 703 is further used to:
[0318] Construct the optimization problem of the optimal control compensator weighted parameters. The optimization problem is:
[0319] Formula 14:
[0320] Formula 15:
[0321] Formula 16: λ i (k-1)∈(0,λ i,max ), (18)
[0322] Formula 17: |e i (k)|<δ1 ,
[0323] Formula 18: |u i (k)|<δ 2 ,
[0324] Among them, δ 1 and δ 2 are the tracking errors e i (k) and the output u of the compensation method PID controller i (k) The upper bound of the target value;
[0325] Based on Formula 15-Formula 18, the weighted parameter selection algorithm is established using the gradient descent method. The weighted parameter selection algorithm is:
[0326] Formula 19:
[0327] Among them, α i is the learning rate;
[0328] Partially derive Formula 14 and Formula 15 respectively to obtain Formula 20 and Formula 21, which are:
[0329] Formula 20:
[0330] Formula 21:
[0331] Among them, δ 3 and δ 4 They are i (k) and J ie (k) is the convergence bound, N is the convergence time;
[0332] Based on Formula 4, the optimal control compensator weighting parameter λ is determined using Formula 19-Formula 21 i * .
[0333] In an embodiment of the present application, a module can be established based on the acquired controlled process mechanism model, and a digital twin model of the controlled process can be established by using a system identification algorithm and an adaptive deep learning algorithm. A signal compensation PID controller can be designed through a design module. The signal compensation PID controller consists of a PID controller, a feedforward compensator and an optimal control compensator. The PID controller parameters are selected by a tuning method through a determination module, the feedforward compensator parameters are determined by using the digital twin model of the controlled process, and the optimal control compensator weighted parameters are determined by using the root locus method and the gradient descent method. Finally, the signal compensation PID controller is applied to the actual controlled object by using the PID controller parameters, the feedforward compensator parameters and the optimal control compensator weighted parameters through a construction module, thereby solving the problem that it is difficult for traditional signal compensation PID controllers to select parameters with high control performance in complex industrial processes.
[0334] Example 3
[0335] The present application also provides an electronic device, such as Figure 8 As shown, the electronic device includes a bus, a processor, a memory and a communication interface, and may also include an input / output interface and a display device, wherein each functional unit can communicate with each other through the bus. The memory stores a computer program, and the processor is used to execute the program stored in the memory and execute the parameter selection method of the signal compensation method PID controller in the above embodiment.
[0336] Example 4
[0337] An embodiment of the present application also provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the parameter selection method of the signal compensation method PID controller are implemented.
[0338] Through the description of the above implementation methods, those skilled in the art can clearly understand that the present application can be implemented by hardware, or by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each implementation scenario of the present application.
[0339] The above embodiments are only exemplary embodiments of the present application and are not intended to limit the present application. The protection scope of the present application is defined by the claims. Those skilled in the art may make various modifications or equivalent substitutions to the present application within the essence and protection scope of the present application, and such modifications or equivalent substitutions shall also be deemed to fall within the protection scope of the present application.
Claims
1. A parameter selection method for a signal compensation PID controller. It is characterized in that include: Acquire a controlled process mechanism model, and based on the controlled process mechanism model, use a system identification algorithm and an adaptive deep learning algorithm to establish a controlled process digital twin model; Designing a signal compensation PID controller, the signal compensation PID controller is composed of a PID controller, a feedforward compensator and an optimal control compensator, wherein the output of the signal compensation PID controller is the sum of the output of the PID controller, the output of the feedforward compensator and the output of the optimal control compensator; Based on the output formula of the PID controller, the parameters of the PID controller are determined by a tuning method; Based on the output formula of the feedforward compensator, the parameters of the feedforward compensator are determined by using the digital twin model of the controlled process; Based on the closed-loop system equation of the optimal control compensator and the digital twin model of the controlled process, the weighted parameters of the optimal control compensator are determined by using the root locus method and the gradient descent method; The signal compensation method PID controller is applied to the actual controlled object by using the PID controller parameters, the feedforward compensator parameters and the optimal control compensator weighted parameters.
2. The parameter selection method of the signal compensation method PID controller according to claim 1, It is characterized in that The controlled process mechanism model is expressed as the following linear model A i (z -1 )y i (k+1)=B i (z -1 ) i (k) and nonlinear dynamic system model v i (k) The sum is in the form of: Formula 1: A i (z -1 )y i (k + 1)= B i (z -1 )u i (k)+ v i (k), Among them, z -1 is the delay operator, k is the sampling time, i represents three phases and i=1,2,3, is the first parameter of the linear model, is the second parameter of the linear model, is the third parameter of the linear model.
3. The parameter selection method of the signal compensation method PID controller according to claim 2, It is characterized in that The method of establishing a digital twin model of the controlled process based on the controlled process mechanism model by using a system identification algorithm and an adaptive deep learning algorithm includes: The first parameters are respectively obtained by using the system identification algorithm The estimated value of a i1 The second parameter The estimated value of a i2 , the third parameter The estimated value of b i0 ; The first parameter The estimated value of a i1 The second parameter The estimated value of a i2 , the third parameter The estimated value of b i0 Substituting into the linear model of formula 1, we get the linear model output The linear model output for: Formula 2: Based on the nonlinear dynamic system model v i (k) Adopting an adaptive deep learning algorithm to establish the nonlinear dynamic system model v i (k) an adaptive deep learning model, wherein the adaptive deep learning model outputs for: Formula 3: in, is the first estimate of the nonlinear dynamic system, is the second estimated value of the nonlinear dynamic system and is a third estimated value of the nonlinear dynamic system; Based on the linear model output And the adaptive deep learning model outputs The digital twin model of the controlled process is obtained, and the digital twin model of the controlled process is: Formula 4:
4. The parameter selection method of the signal compensation method PID controller according to claim 3, It is characterized in that The output of the signal compensation method PID controller is the sum of the output of the PID controller, the output of the feedforward compensator and the output of the optimal control compensator, expressed as: Formula 5: u i (k) = u i1 (k) + u i2 (k) + u i3 (k), u i1 (k) is the output of the PID controller, expressed as: Formula 6: u i1 (k) = u i1 (k - 1) + k pi [e i (k) - e i (k - 1)] e i (k) = y sp (k) - y i (k), +k ii e i (k)+k di [e i (k)-2e i (k-1)+e i (k-2)] Among them, k pi is the proportional gain parameter of the PID controller, k ii is the integral gain parameter of the PID controller, k di is the differential gain parameter of the PID controller, e i (k) is the tracking error and e i (k) = y sp (k)-y i (k) u i2 (k) is the output of the feedforward compensator, expressed as: Formula 7: u i2 (k)=-k fi v i (k-1), in, u i3 (k) is the output of the optimal control compensator, expressed as: Formula 8: Among them, λ i is the weighting parameter, G' i (z -1 ) = g' i0 +g' i1 z -1 +g' i2 z -2 ,and, 5. The parameter selection method of the signal compensation method PID controller according to claim 4, It is characterized in that Determining the PID controller parameters by a tuning method based on an output formula of the PID controller; Based on the output formula of the feedforward compensator, determining the parameters of the feedforward compensator using the controlled process digital twin model includes: Based on formula 6, the proportional gain parameter k of the PID controller is obtained by the tuning method. pi , the PID controller integral gain parameter k ii , the PID controller differential gain parameter k di ,in, Formula 9: Among them, T Ui is the delay time, T Gi To balance time; Get the delay time based on experiments and balance time The experimentally obtained delay time and balance time Substituting into formula 9, we get the PID controller parameters and The third parameter The estimated value of b i0 Substituting into Equation 7 Get the feedforward compensator parameters 6. The parameter selection method of the signal compensation method PID controller according to claim 4, It is characterized in that The method of determining the weighted parameters of the optimal control compensator based on the closed-loop system equation of the optimal control compensator and the digital twin model of the controlled process by using the root locus method and the gradient descent method includes: Substituting Formula 5 into Formula 1, a closed-loop system equation is obtained, which is: Formula 10: In order to ensure the stability of the closed-loop system, the weighted parameter λ i Satisfies the following formula: Formula 11: Based on formula 11, the weighted parameter λ is obtained by using the root locus method: i The root locus equation is: Formula 12: 1 + λ i [1 - z -1 G i ′(z -1 )] / b i0 = 0, The weighting parameter λ is plotted based on formula 12 i The root locus of the unit circle is determined to determine whether the root locus intersects the unit circle, and the weighting parameter λ is determined. i The value range of the weighting parameter λ i The value range of is: Formula 13: λ i ∈(0,λ i,max ), in, When the root locus has no intersection with the unit circle, λ i,max =∞, when the root locus intersects the unit circle, is the intersection point of the root locus and the unit circle; Based on Formula 4, the gradient descent method is used to calculate the weight parameter λ i The optimal control compensator weighting parameters are determined within the value range of .
7. The parameter selection method of the signal compensation method PID controller according to claim 6, It is characterized in that Based on formula 4, the gradient descent method is used to adjust the weight parameter λ i Determining the optimal control compensator weighted parameters within the range of includes: Construct an optimization problem of the optimal control compensator weighted parameters, the optimization problem is: Formula 14: Formula 15: Formula 16: λ i (k-1)∈(0,λ i,max ), Formula 17: |e i (k)|<δ 1 , Formula 18: |u i (k)|<δ 2 , Among them, δ 1 and δ 2 are the tracking errors e i (k) and the output u of the signal compensation method PID controller i (k) The upper bound of the target value; Based on Formula 15-Formula 18, the gradient descent method is used to establish a weighted parameter selection algorithm, and the weighted parameter selection algorithm is: Formula 19: Among them, α i is the learning rate; Partial derivatives are performed on Formula 14 and Formula 15 respectively to obtain Formula 20 and Formula 21, which are: Formula 20: Formula 21: Among them, δ 3 and δ 4 They are i (k) and J ie (k) is the convergence bound, N is the convergence time; Based on Formula 4, Formulas 19-21 are used to determine the optimal control compensator weighted parameter λ i * .
8. A parameter selection device for a signal compensation PID controller, It is characterized in that include: Establishing a module for acquiring a mechanism model of a controlled process, and establishing a digital twin model of the controlled process based on the mechanism model of the controlled process by using a system identification algorithm and an adaptive deep learning algorithm; A design module is used to design a signal compensation method PID controller, wherein the signal compensation method PID controller is composed of a PID controller, a feedforward compensator and an optimal control compensator, wherein the output of the signal compensation method PID controller is the sum of the output of the PID controller, the output of the feedforward compensator and the output of the optimal control compensator; A determination module, used for determining the parameters of the PID controller by a tuning method based on an output formula of the PID controller; The determination module is further used to determine the parameters of the feedforward compensator based on the output formula of the feedforward compensator and using the digital twin model of the controlled process; The determination module is further used to determine the weighted parameters of the optimal control compensator by using the root locus method and the gradient descent method based on the closed-loop system equation of the optimal control compensator and the digital twin model of the controlled process; The control module is used to use the PID controller parameters, the feedforward compensator parameters and the optimal control compensator weighted parameters to apply the signal compensation method PID controller to the actual controlled object.
9. An electronic device comprising a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
