Signal compensation PID control method and device based on multi-step prediction
By adopting a multi-step predictive signal compensation PID control method during the fused magnesite smelting process, the problem of unstable dynamic characteristics of the electrode current caused by changes in the properties of the raw ore is solved, more efficient electrode current control is achieved, and energy and material consumption are reduced. .
Patent Information
- Application Number
- CN202210611153.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-31
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2042-05-31
AI Technical Summary
During the fused magnesite smelting process, changes in the length of the raw ore particles and impurity components lead to continuous changes in the dynamic characteristics of the electrode current. PID control technology is difficult to achieve the control target of the electrode flow, resulting in product quality fluctuations and increased energy and material consumption.
The signal compensation PID control method based on multi-step prediction is used to describe the dynamic characteristics of the electrode current through a discrete linear model, calculate the critical parameters to tune the PID controller, generate the predicted compensation signal, and superimpose it into the PID feedback control law to improve the control system stability and dynamic performance.
It effectively reduces the deviation between the electrode current and the current setting value, improves the control system's ability and stability to control the electrode current, and reduces product quality fluctuations and energy consumption.
Smart Images

Figure CN114791701B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of industrial production process control, and in particular to a signal compensation PID control method and device based on multi-step prediction. Background Art
[0002] An industrial process is a production process consisting of one or more industrial equipment. Its function is to process the incoming raw materials into semi-finished materials required for the next process. Multiple production processes constitute the full-process production line. For example, the fused magnesia smelting process uses magnesite ore as the raw ore, and the arc releases heat to melt the raw ore in the furnace to form a molten liquid. The material is added while melting. When the molten pool rises to the upper surface of the furnace mouth, the smelting ends, and the finished product is generated after cooling and crystallization.
[0003] In the related technology, the industrial control system adopts the PID control technology designed by the conventional parameter setting method such as ZN method (Ziegler-Nichols method) to control the three-phase electrode current to track the melting current to generate an arc, thereby realizing the smelting process of magnesite ore.
[0004] In the process of implementing this application, the applicant found that the related technology has at least the following problems:
[0005] Raw ore needs to be continuously added during the smelting process, and the continuous changes in the raw ore particle length and impurity composition cause the raw ore properties to change continuously, making the dynamic characteristics of the electrode current always changing during the smelting process. The electrode current generated by PID control technology is difficult to achieve the control target of the electrode flow, which in turn makes it impossible to achieve the optimized operation of the industrial process, resulting in fluctuations in product quality and increased energy and material consumption. Summary of the invention
[0006] In view of this, the present application provides a signal compensation PID control method, device, computer equipment and computer-readable storage medium based on multi-step prediction. The main purpose is to solve the problem that the electrode current generated by the current PID control technology is difficult to achieve the control target of the electrode flow, which leads to the inability to achieve the optimized operation of the industrial process, resulting in product quality fluctuations and increased energy and material consumption.
[0007] According to the first aspect of the present application, a signal compensation PID control method based on multi-step prediction is provided, the method comprising:
[0008] In response to the electrode current control demand, a discrete linear model is used to describe the electrode current of the target process, and an electrode current dynamic model corresponding to the target process is obtained;
[0009] Calculating the critical parameters of the electrode current dynamic model, adjusting the control parameters of the PID controller according to the critical parameters, and obtaining the PID feedback control law of the PID controller;
[0010] Adding an original compensation signal, calculating the original compensation signal based on the electrode current dynamic model and the PID feedback control law, and outputting a predicted compensation signal;
[0011] The PID feedback control law and the predicted compensation signal are superimposed as inputs of the electrode current dynamic model to control the output of the PID controller.
[0012] According to a second aspect of the present application, a signal compensation PID control device based on multi-step prediction is provided, the device comprising:
[0013] A generation module, for responding to electrode current control requirements, using a discrete linear model to describe the electrode current of a target process, and obtaining an electrode current dynamic model corresponding to the target process;
[0014] A calculation module, used for calculating the critical parameters of the electrode current dynamic model, adjusting the control parameters of the PID controller according to the critical parameters, and obtaining the PID feedback control law of the PID controller;
[0015] An output module, used for adding an original compensation signal, calculating the original compensation signal based on the electrode current dynamic model and the PID feedback control law, and outputting a predicted compensation signal;
[0016] A superposition module is used to superimpose the PID feedback control law and the predicted compensation signal as the input of the electrode current dynamic model to control the output of the PID controller.
[0017] According to a third aspect of the present application, a computer device is provided, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the methods described in the first aspect when executing the computer program.
[0018] According to a fourth aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of any one of the methods described in the first aspect are implemented.
[0019] By means of the above technical scheme, the present application provides a signal compensation PID control method, device, computer equipment and computer-readable storage medium based on multi-step prediction. In response to the electrode current regulation demand, the present application adopts a discrete linear model to describe the electrode current of the target process, and obtains the electrode current dynamic model corresponding to the target process. Next, the critical parameters of the electrode current dynamic model are calculated, and the control parameters of the PID controller are adjusted according to the critical parameters to obtain the PID feedback control law of the PID controller. Subsequently, the original compensation signal is added, and the original compensation signal is calculated based on the electrode current dynamic model and the PID feedback control law, and the predicted compensation signal is output. Finally, the PID feedback control law and the predicted compensation signal are superimposed as the input of the electrode current dynamic model to control the output of the PID controller. By using the critical parameters of the electrode current dynamic model calculated by the input and output data, the control parameters of the PID controller are adjusted, and then the output of the PID controller is compensated by the predicted compensation signal calculated by the PID feedback control law, the uncertainty of the model can be introduced, the deviation between the electrode current and the current set value can be reduced, and the control ability of the control system to the electrode current and the stability of the electrode current can be improved.
[0020] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] 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 application. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0022] Figure 1 A schematic flow chart of a signal compensation PID control method based on multi-step prediction provided in an embodiment of the present application is shown;
[0023] Figure 2 A schematic flow chart of a signal compensation PID control method based on multi-step prediction provided in an embodiment of the present application is shown;
[0024] Figure 3 A result schematic diagram of a signal compensation PID control method based on multi-step prediction provided by an embodiment of the present application is shown;
[0025] Figure 4 A result schematic diagram of a signal compensation PID control method based on multi-step prediction provided by an embodiment of the present application is shown;
[0026] Figure 5 A schematic diagram of the structure of a signal compensation PID control device based on multi-step prediction provided in an embodiment of the present application is shown;
[0027] Figure 6 A schematic diagram of the device structure of a computer device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0028] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.
[0029] The applicant realized that raw ore needs to be continuously added during the smelting process of fused magnesia, and the continuous changes in the particle length and impurity composition of the raw ore cause the continuous changes in the properties of the raw ore, making the dynamic characteristics of the electrode current always changing during the smelting process. The electrode current generated by using PID control technology is difficult to achieve the control target of the electrode flow, which in turn makes it impossible to achieve the optimized operation of the industrial process, resulting in fluctuations in product quality and increased energy and material consumption.
[0030] Therefore, the embodiment of the present application provides a signal compensation PID control method based on multi-step prediction, such as Figure 1 As shown, the method includes:
[0031] 101. In response to the electrode current control demand, a discrete linear model is used to describe the electrode current of the target process, and an electrode current dynamic model corresponding to the target process is obtained.
[0032] In the embodiment of the present application, the smelting process of fused magnesia is taken as an example and the smelting process of fused magnesia is taken as the target process. The characteristic that the electrode current runs near the working point during the smelting process of fused magnesia is utilized, a discrete linear model is used to describe the electrode current of the controlled process, and then a system identification algorithm is used to identify the model parameters to obtain a trained electrode current dynamic model.
[0033] 102. Calculate critical parameters of the electrode current dynamic model, adjust control parameters of a PID controller according to the critical parameters, and obtain a PID feedback control law of the PID controller.
[0034] In the embodiment of the present application, the PID (proportional integral differential) controller is mainly suitable for systems with basic linearity and dynamic characteristics that do not change over time. It is composed of a proportional unit P, an integral unit I and a differential unit D, and optimizes the control of industrial processes by setting the three parameters of proportion, integration and differentiation. In actual application, the system calculates the critical parameters of the electrode current dynamic model based on the electrode current dynamic model established in the above steps using preset parameter values, and then adjusts the control parameters of the PID controller by using the critical parameters calculated using the actual input and output data as the new PID controller tuning rules to obtain the PID feedback control law of the PID controller, that is, the PID feedback control rate.
[0035] 103. Add the original compensation signal, calculate the original compensation signal based on the electrode current dynamic model and PID feedback control law, and output the predicted compensation signal.
[0036] In the embodiment of the present application, by quoting the original compensation signal, the PID feedback control law and the original compensation signal are used as the new control input of the controlled object, and a dynamic model of a closed-loop control system with a tracking error as output and an original compensation signal as input is established. Furthermore, the original compensation signal is calculated by the tracking error output by the closed-loop system to obtain a predicted compensation signal.
[0037] 104. Superimpose the PID feedback control law and the prediction compensation signal as the input of the electrode current dynamic model to control the output of the PID controller.
[0038] In an embodiment of the present application, the system superimposes the predicted compensation signal on the output of the PID controller to form a new control input signal, that is, the predicted compensation signal is superimposed on the PID feedback control law as the input of the electrode current dynamic model, thereby changing the output of the electrode current dynamic model, and then realizing dynamic control of the electrode current in the smelting process, thereby enhancing the dynamic performance of the control system.
[0039] The method provided in the embodiment of the present application responds to the electrode current regulation demand, adopts a discrete linear model to describe the electrode current of the target process, and obtains the electrode current dynamic model corresponding to the target process. Next, the critical parameters of the electrode current dynamic model are calculated, and the control parameters of the PID controller are adjusted according to the critical parameters to obtain the PID feedback control law of the PID controller. Subsequently, the original compensation signal is added, and the original compensation signal is calculated based on the electrode current dynamic model and the PID feedback control law, and the predicted compensation signal is output. Finally, the PID feedback control law and the predicted compensation signal are superimposed as the input of the electrode current dynamic model to control the output of the PID controller. By using the critical parameters of the electrode current dynamic model calculated by the input and output data, the control parameters of the PID controller are adjusted, and then the output of the PID controller is compensated by the predicted compensation signal calculated by the PID feedback control law, it is possible to introduce the uncertainty of the model, reduce the deviation between the electrode current and the current set value, and improve the control ability of the control system to the electrode current and the stability of the electrode current.
[0040] The embodiment of the present application provides a signal compensation PID control method based on multi-step prediction, such as Figure 2 As shown, the method includes:
[0041] 201. In response to electrode current control requirements, an actual motor rotation frequency in a target process is obtained as sample input data, and an actual electrode current in the target process is obtained as sample output data.
[0042] In the embodiment of the present application, the fused magnesia smelting process is taken as the target process as an example. The fused magnesia smelting process uses magnesite ore as the raw ore and adopts a fused magnesium furnace with a submerged arc method unique to my country for smelting. During the smelting process, the temperature in the fused magnesium furnace is as high as 2850°C, and each smelting consumes about 40,000 kWh of electricity, which is a typical high-risk and high-energy-consuming industrial production process. During the smelting process, the control system adjusts the distance between the three-phase electrode and the molten pool to control the three-phase electrode current to track the melting current, so that an arc is generated. The arc releases heat to melt the raw ore in the furnace to form a molten liquid, and the material is added while melting. When the molten pool rises to the upper surface of the furnace mouth, the smelting ends, and the finished product is generated after cooling and crystallization.
[0043] During operation, it is necessary to control the electrode current to reach the preset control target and maintain a stable current output. In order to introduce the uncertainty generated during the molten magnesia smelting process into the model, this method uses actual input and output data to establish an electrode current dynamic model. Specifically, after the smelting process starts, the system discretely samples the electrode current and the motor rotation frequency by setting the sampling period and sampling time to obtain sample input data and sample output data. Furthermore, the acquisition step is repeated to obtain sample data sufficient for model training. Then, in response to the regulation requirements of the electrode current, the electrode current dynamic model is established using the sample input data and sample output data.
[0044] Through the above steps, the actual input and output data in the molten magnesia smelting process are obtained, and the electrode current dynamic model is established using the actual input and output data. The uncertainty in the actual operation process is introduced, thereby improving the accuracy of controlling the electrode current of the subsequent electrode current dynamic model, so that the electrode current can reach the preset control target.
[0045] 202. Input the sample input data and the sample output data into the discrete linear model for model training, and use the system identification algorithm to identify the model parameters of the discrete linear model, complete the model training, and obtain the electrode current dynamic model.
[0046] In an embodiment of the present application, the system performs model training by inputting sample input data and sample output data into a discrete linear model, identifies the model parameters of the discrete linear model based on a large amount of sample data and a system identification algorithm, and finally completes the model training to obtain an electrode current dynamic model.
[0047] Specifically, the system first determines the target sampling time as k+1, and calculates the sub-sample input data u corresponding to the sampling time k before the target sampling time i (k) and the first coefficient B i (z -1 ), multiplying the product by the first parameter v i (k) Add, where the first parameter v i (k) indicates the unmodeled dynamic term in the concentration. Further, the equation is established so that the second coefficient A i (z -1 ) The sub-sample output data y corresponding to the target sampling time i The product of (k+1) is equal to the above sub-sample input data u i (k) and the first coefficient B i (z -1 ) multiplied by the first parameter v i(k) The equation of the sum of the addition. The system identification algorithm is used to identify the equation, and the values of the first coefficient and the second coefficient are obtained as model parameters to complete the model training. In fact, the discrete linear model can be shown as the following formula 1:
[0048] Formula 1:A i (Z -1 )y i (k+1)=B i (Z -1 ) i (k)+v i (k)
[0049] Where k is the discrete sampling time. Specifically, t is time; T0 is the system sampling period, which is set to 0.5s.
[0050] u i (k), i = 1, 2, 3 represents the rotation frequency of the i-th phase motor at time k, which is the input of the system; y i (k+1), i=1,2,3 represents the electrode current of the i-th phase at time k+1, which is the output of the system; v i (k) Unmodeled dynamic terms in the collection; A i (z -1 ) and B i (z -1 ) are the second coefficient and the first coefficient, which are about the backshift operator z -1 The polynomials are expressed in the following forms:
[0051] Formula 2:A i (z -1 )=1+a i1 z -1 +a i2 z -2
[0052] Formula 3: B i (z -1 )=b i0 +b i1 z -1
[0053] Among them, a i1 a i2 b i0 b i1 are all model parameters. Furthermore, based on the input and output data of the smelting process, the system identification algorithm is used to identify the model parameters and obtain a i1 =-0.9748,a i2 =-0.0223,b i0 =0.2612, b i1=0.0001.
[0054] Based on the electrode current dynamic model, the transfer function of the electrode current dynamic model with respect to the frequency parameter is obtained, and the transfer function is converted into a Chebyshev polynomial using the Chebyshev model.
[0055] In the embodiment of the present application, the system obtains the input-output transfer function of the smelting process with respect to the frequency parameter Z according to the electrode current dynamic model, which is specifically shown in the following formula 4:
[0056] Formula 4:
[0057] Furthermore, let B i (z) = b i0 z+b i1 ,A i (z) = z 2 +a i1 z+a i2 , define θ:=ωT0,u:=-cosθ, then B i (z),A i (z) represents the Chebyshev polynomial, which is the following formula 5 and formula 6:
[0058] Formula 5:
[0059] Formula 6:
[0060] in, c κ (u)=cosκθ, κ=1,2,...; s κ (u)=sinκθ / sinθ, Among them, c κ (u) = cosκθ, s κ (u) = sinκθ / sinθ, κ = 1, 2, ... are Tchebyshev polynomials of the first and second kind. By iterating formula 7 and formula 8, we can get
[0061] Formula 7:
[0062] Formula 8: c κ+1 (u)=-uc κ (u)-(1-u 2 )s κ (u),κ=1,2,...
[0063] Next, the transfer function is converted into a Chebyshev polynomial using the Chebyshev model, as shown in Equation 9 below:
[0064] Formula 9:
[0065] in,
[0066] Through the above steps, the input-output transfer function of the fused magnesia smelting process is converted into Chebyshev polynomials, and the critical parameters of the electrode current dynamic model are calculated according to the Chebyshev polynomials, thereby providing parameter tuning rules for the subsequent design of the PID feedback control law.
[0067] Calculate the critical parameters of the electrode current dynamic model, determine the proportional parameters, integral parameters and differential parameters of the PID controller according to the critical parameters, and use the proportional parameters, integral parameters and differential parameters to generate the PID feedback control law.
[0068] In the embodiment of the present application, the system adjusts the proportional parameters, integral parameters and differential parameters of the PID controller by calculating the critical parameters of the electrode current dynamic model, thereby generating a PID feedback control law. In the actual operation process, the relevant staff will store the preset coefficient values or parameter values in the preset value library in advance, so as to facilitate the subsequent extraction of the corresponding values in the preset value library for calculation when the system is running. The specific process of generating the PID feedback control law is as follows:
[0069] First, T Gi (u) is set to 0, and the Chebyshev polynomial is calculated to obtain multiple root values, that is, the root in Furthermore, define Extract the target root value whose value is smaller than other root values from multiple root values, that is, Then, the critical frequency and critical gain corresponding to the target process are calculated based on the target root value. Specifically, the arc cosine value of the opposite number of the target root value is calculated, and the ratio of the arc cosine value to the system sampling period is calculated as the critical frequency, as shown in the following formula 10:
[0070] Formula 10:
[0071] Substitute the target root value into the Chebyshev polynomial, because T Gi (u) is set to 0, that is, the target root value is brought into R Gi (u), the parameter value is obtained, and the inverse of the absolute value of the parameter value is used as the critical gain, as shown in the following formula 11:
[0072] Formula 11:
[0073] Then, the ratio of 2π to the critical angular frequency is calculated as the critical period, and the critical frequency, critical gain and critical period are used as critical parameters. According to the critical parameters, the proportional parameter, integral parameter and differential parameter of the PID controller are determined. Specifically, according to the critical parameters, the first auxiliary control parameter ρ is calculated. Ki =-0.0370(ω ui T0) 3 +0.2464(ω ui T0) 2 -0.4421(ω ui T0)+0.5430=0.4375 and the second auxiliary control parameter ρ Ti =0.0142(ω ui T0) 3 -0.0385(ω ui T0) 2 +0.0707(ω ui T0) 3 +0.5488=0.8327, where T0 is the sampling time.
[0074] Then use the above parameters to adjust the PID control parameters. Specifically, calculate the product of the first auxiliary control parameter and the critical gain as the proportional parameter, calculate the product of the second auxiliary control parameter and the critical period as the integral parameter, and calculate the product of the second auxiliary control parameter, the critical period and the preset value as the differential parameter, where the preset value is 0.25, to obtain the proportional parameter K Pi =3.2716, integral parameter T Ii =0.8327, differential parameter T Di =0.2082.
[0075] Finally, the PID feedback control law is designed using the tuned PID parameters, as shown in the following formula 12:
[0076] Formula 12:
[0077] 205. Add the original compensation signal, superimpose the original compensation signal with the PID feedback control law, and use the superimposed signal as the input of the electrode current dynamic model.
[0078] In the embodiment of the present application, the system introduces the original compensation signal to establish a prediction compensation signal model, and superimposes the PID feedback control law and the original compensation signal, and uses the superimposed data as the input data of the electrode current dynamic model to obtain the tracking error output by the electrode current dynamic model. It should be noted that the tracking error refers to the difference between the electrode current value in the time period from the start of movement to the actual position and the control target set by the system during the positioning movement or motor movement. Among them, the control target can use the system default value or can be changed by relevant staff based on the actual operation situation. This application does not specifically limit the numerical value and setting method of the control target. Taking the molten magnesia smelting process as an example, it can be set to 15300A during the working process. Further, a dynamic model of a closed-loop control system with tracking error as output and compensation signal as input is established. Specifically, based on the electrode current dynamic model, the original compensation signal is superimposed with the PID feedback control law, and the superimposed signal is used as the input of the electrode current dynamic model. The product of the tracking error at time k and the fourth coefficient is equal to the difference between the electrode current generated at time k and the electrode current generated at time k-1, as shown in the following formula 13:
[0079] Formula 13:
[0080] Where, increment Δ = 1-z -1 ; The fourth coefficient is Q i (z -1 )=A i (z -1 )(1-z -1 )+z -1 B i (z -1 )Θ i (z -1 ), specifically, Θ i (z -1 )=θ i0 +θ i1 z -1 +θ i2 z -2 ,and In this embodiment, θ i0 =5.6160,θ i1 =-5.0137,θ i2 =1.3621.
[0081] 206. Receive the tracking error output by the electrode current dynamic model, use the tracking error to predict the original compensation signal, and obtain a predicted compensation signal.
[0082] In the embodiment of the present application, the system selects N1, N2, and λ as N1=6, N2=2, and λ=1.5, and introduces the Diophantine equation 1=E ij (z -1 )Q i (z -1 )+z -j F ij (z -1 ), and then determine E ij (z -1 ) and F ij (z -1 ), it should be noted that E ij (z -1 ) and F ij (z -1 ) respectively by Q i (z -1 ) and the prediction time domain j are uniquely determined. ij (z -1 ) is of order j-1,F ij (z -1 ) is of order Q i (z -1 ) order. F ij (z -1 ) and E ij (z -1 ) is expressed as shown in the following formula 14 and formula 15:
[0083] Formula 14:
[0084] Formula 15:
[0085] Multiply both ends of the model indicated by formula 13 by E ij (z -1 ) j The following formula 16 can be obtained:
[0086] Formula 16:
[0087] Formula 16 is rearranged based on the Diophantine equation to obtain the following formula 17:
[0088] Formula 17:
[0089] Further, Polynomial E ij (z -1 )B i (z -1 ) is decomposed into the sum of two terms, and the following formula 18 is obtained:
[0090] Formula 18: E ij (z -1 )B i (z -1 )=G ij (z -1 )+z -j H ij (z -1 )
[0091] Among them, the j-1 order polynomial G ij (z -1 ) is E ij (z -1 )B i (z -1 ) is a polynomial consisting of the first j coefficients of Polynomial H ij (z -1 ) is the remaining A polynomial with coefficients.
[0092] in, G ij (z -1 ) = g i0 +g i1 z -1 +…g i(j-1) z -j+1
[0093] Similarly, Polynomial E ij (z -1 )A i (z -1 ) is expressed as the following formula 19:
[0094] Formula 19: E ij (z -1 )A i (z -1 )=M ij (z -1 )+z -j L ij (z -1 )
[0095] Among them, the j-1 order polynomial M ij (z -1 ) is E ij (z -1 )A i (z -1 ) is a polynomial consisting of the first j coefficients of Polynomial of order L ij (z -1) is the remaining A polynomial with coefficients.
[0096] in, M ij (z -1 )=m i0 +m i1 z -1 +…m i(j-1) z -j+1 .
[0097] Furthermore, the j-1 order polynomial E ij (z -1 ) is represented by E ij (z -1 )=E i(pj) (z -1 )+z -j+1 E i(lj) . Where E i(pj) (z -1 )=ε i0 +ε i1 z -1 +…+ε i(j-2) z -j+2 ,E i(lj) For E ij (z -1 ) The last item, E i(lj) =e i(j-1) .definition
[0098]
[0099]
[0100]
[0101] By polynomial G ij (z -1 ) are arranged in reverse order to form an N1×N1 dimensional lower triangular matrix, and then the first N2 columns are intercepted to define the matrix:
[0102]
[0103] Finally define the matrix:
[0104]
[0105] Among them, F i (z -1 ), H i (z -1 )、L i (z -1 ), M i , Gi 、E il They are
[0106]
[0107] H i (z -1 ) = 1 × 10 -4 [1.0000,0.5079,0.6145,0.1156,0.0859,-0.1473] T ,
[0108]
[0109]
[0110]
[0111] E il =[1.0000,0.5079,0.6145,0.1156,0.0859,-0.1473] T
[0112] Further, Formula 20, Formula 21 and Formula 22 are defined as:
[0113] Formula 20:e i (k+1)=[e i (k+1),e i (k+2),…e i (k+N1)] T
[0114] Formula 21: y spi (k+1)=[y spi (k+1),y spi (k+2),…y spi (k+N1)] T
[0115] Formula 22: Δu i2 (k)=[Δu i2 (k),Δu i2 (k+1),…Δu i2 (k+N2-1)] T
[0116] Then, the compensation signal is expressed in the form of a vector, and an optimal control law of the compensation signal in the form of a vector is established. Further, an optimal control law of the compensation signal in the form of a vector is established, as shown in the following formula 23:
[0117] Formula 23:
[0118] It should be noted that during the operation of the controller, at each moment, the controller only retains the first item Δu of the compensation signal sequence. i2 (k) acts on the controlled object, and the subsequent control sequence is discarded. At the next moment, that is, moment (k+1), the optimal control law is used to obtain the compensation signal sequence Δu for a period of time (N2) in the future from moment (k+1). i2 (k+1),...Δu i2 (k+N2-1), only the first item Δu of the compensation signal sequence is retained i2 (k+1) is added to the controlled object as the control input, and the above process is repeated to implement rolling optimization and feedback correction to obtain the predicted compensation signal, as shown in the following formula 24:
[0119] Formula 24:
[0120] Among them, P i =[0.1620, 0.0763, 0.0965, 0.0150, 0.0132, -0.0244]. Through the above steps, the predicted compensation signal calculated is used to compensate the output of the PID controller, thereby reducing the deviation between the electrode current and the current setting value and improving the control ability of the control system over the electrode current.
[0121] 207. Superimpose the PID feedback control law and the predicted compensation signal as inputs of the electrode current dynamic model to control the output of the PID controller.
[0122] In an embodiment of the present application, the system superimposes the predicted compensation signal on the output of the PID controller to form a new control input signal, that is, the predicted compensation signal is superimposed on the PID feedback control law as the input of the electrode current dynamic model, thereby changing the output of the electrode current dynamic model, that is, changing the electrode current during the smelting process, and enhancing the dynamic performance of the control system.
[0123] in addition, Figure 3 , 4 The control effects of the electrode current of the molten magnesium furnace corresponding to the predictive compensation PID controller obtained by the present invention and the conventional PID controller adjusted by the ZN method are respectively shown when frequent feeding and the properties of the raw ore are constantly changing, resulting in its dynamic characteristics always changing. Figure 4 , 5 In the figure, y1(k), y2(k) and y3(k) are the three-phase electrode current outputs of the fused magnesium furnace, y spis the current setting value, which is set to 15300A during the operation of the fused magnesium furnace. It can be seen that when the sampling period is the same as 0.5s, the electrode current fluctuates greatly under the conventional PID control based on the ZN method, and the actual current value deviates greatly from the current setting value, such as Figure 4 As shown; in contrast, when the predictive compensation PID controller obtained by the present invention is used, the electrode current fluctuation is significantly smaller than that under conventional PID control, such as Figure 3 The predictive compensation PID controller obtained by the present invention can significantly improve the current control effect under normal melting conditions and charging conditions in the molten magnesia smelting process, and meet the process requirements.
[0124] Furthermore, in this embodiment, the absolute value integral error (IAE) and mean square error (MSE) of the tracking error of the electrode current of the fused magnesium furnace to the set value under the predictive compensation PID controller designed by the present invention and the conventional PID controller adjusted based on the ZN method are compared, as shown in Table 1:
[0125] Table 1 Electrode current performance evaluation table when conventional PID adjusted by ZN method and the prediction compensation PID of the present invention are used
[0126]
[0127]
[0128] It can be seen from Table 2 that when the ore grade changes frequently, the predictive compensation PID control system of the present invention reduces the average cumulative sum of the absolute errors of the three-phase electrode current by 19.87% and the average mean square error of the error by 39.97% compared with the conventional PID control system adjusted based on the ZN method.
[0129] The method provided in the embodiment of the present application responds to the electrode current regulation demand, adopts a discrete linear model to describe the electrode current of the target process, and obtains the electrode current dynamic model corresponding to the target process. Next, the critical parameters of the electrode current dynamic model are calculated, and the control parameters of the PID controller are adjusted according to the critical parameters to obtain the PID feedback control law of the PID controller. Subsequently, the original compensation signal is added, and the original compensation signal is calculated based on the electrode current dynamic model and the PID feedback control law, and the predicted compensation signal is output. Finally, the PID feedback control law and the predicted compensation signal are superimposed as the input of the electrode current dynamic model to control the output of the PID controller. By using the critical parameters of the electrode current dynamic model calculated by the input and output data, the control parameters of the PID controller are adjusted, and then the output of the PID controller is compensated by the predicted compensation signal calculated by the PID feedback control law, it is possible to introduce the uncertainty of the model, reduce the deviation between the electrode current and the current set value, and improve the control ability of the control system to the electrode current and the stability of the electrode current.
[0130] Further, as Figure 1 The specific implementation of the method, the embodiment of the present application provides a signal compensation PID control device based on multi-step prediction, such as Figure 5 As shown, the device includes: a generation module 301, a calculation module 302, an output module 303, and a superposition module 304.
[0131] The generation module 301 is used to respond to the electrode current control demand, use a discrete linear model to describe the electrode current of the target process, and obtain an electrode current dynamic model corresponding to the target process;
[0132] The calculation module 302 is used to calculate the critical parameters of the electrode current dynamic model, adjust the control parameters of the PID controller according to the critical parameters, and obtain the PID feedback control law of the PID controller;
[0133] The output module 303 is used to add the original compensation signal, calculate the original compensation signal based on the electrode current dynamic model and the PID feedback control law, and output a predicted compensation signal;
[0134] The superposition module 304 is used to superimpose the PID feedback control law and the predicted compensation signal as the input of the electrode current dynamic model to control the output of the PID controller.
[0135] In a specific application scenario, the generation module 301 is used to obtain the actual motor rotation frequency in the target process as sample input data, and obtain the actual electrode current in the target process as sample output data; repeatedly obtain the actual motor rotation frequency in the target process as sample input data, and obtain the actual electrode current in the target process as sample output data, until the sub-sample input data stored in the sample input data meets the preset sample value. The sample input data and the sample output data are input into the discrete linear model for model training, and the model parameters of the discrete linear model are identified by using a system identification algorithm, and the model training is completed to obtain the electrode current dynamic model.
[0136] In a specific application scenario, the generation module 301 is used to determine the target sampling moment, multiply the sub-sample input data corresponding to the previous sampling moment of the target sampling moment by the first coefficient to obtain the product of the sub-sample input data and the first coefficient, add the product to the first parameter to obtain the input item, and the first parameter indicates the unmodeled dynamic item in the concentration; establish an equation, use the system identification algorithm to identify the equation, obtain the values of the first coefficient and the second coefficient as the model parameters, and complete model training, and the equation is used to indicate that the product of the second coefficient and the sub-sample output data corresponding to the target sampling moment is equal to the input item.
[0137] In a specific application scenario, the calculation module 302 is used to obtain the transfer function of the electrode current dynamic model with respect to the frequency parameter based on the electrode current dynamic model; adopt the Chebyshev model to convert the transfer function into a Chebyshev polynomial; perform polynomial calculation on the Chebyshev polynomial to obtain multiple root values; extract a target root value whose value is smaller than other root values from the multiple root values, and calculate the critical frequency and critical gain corresponding to the target process based on the target root value; use the critical angular frequency to calculate the critical period, and use the critical frequency, the critical gain and the critical period as the critical parameters; determine the proportional parameter, integral parameter and differential parameter of the PID controller according to the critical parameters, and use the proportional parameter, the integral parameter and the differential parameter to generate the PID feedback control law.
[0138] In a specific application scenario, the calculation module 302 is used to calculate the arccosine value of the inverse of the target root value, and calculate the ratio of the arccosine value to the system sampling period as the critical frequency; substitute the target root value into the Chebyshev polynomial to obtain the parameter value, and use the reciprocal of the absolute value of the parameter value as the critical gain.
[0139] In a specific application scenario, the calculation module 302 is used to calculate the first auxiliary control parameter and the second auxiliary control parameter according to the critical parameter; calculate the product of the first auxiliary control parameter and the critical gain as the proportional parameter; calculate the product of the second auxiliary control parameter and the critical period as the integral parameter; calculate the product of the second auxiliary control parameter, the critical period and a preset value as the differential parameter.
[0140] In a specific application scenario, the output module 303 is used to add the original compensation signal, superimpose the original compensation signal with the PID feedback control law, and use the superimposed signal as the input of the electrode current dynamic model; receive the tracking error output by the electrode current dynamic model, use the tracking error to predict the original compensation signal, and obtain the predicted compensation signal.
[0141] The device provided in the embodiment of the present application, in response to the electrode current control demand, adopts a discrete linear model to describe the electrode current of the target process, and obtains the electrode current dynamic model corresponding to the target process. Next, the critical parameters of the electrode current dynamic model are calculated, and the control parameters of the PID controller are adjusted according to the critical parameters to obtain the PID feedback control law of the PID controller. Subsequently, the original compensation signal is added, and the original compensation signal is calculated based on the electrode current dynamic model and the PID feedback control law, and the predicted compensation signal is output. Finally, the PID feedback control law and the predicted compensation signal are superimposed as the input of the electrode current dynamic model to control the output of the PID controller. By using the critical parameters of the electrode current dynamic model calculated by the input and output data, the control parameters of the PID controller are adjusted, and then the output of the PID controller is compensated by the predicted compensation signal calculated by the PID feedback control law, it is possible to introduce the uncertainty of the model, reduce the deviation between the electrode current and the current set value, and improve the control ability of the control system to the electrode current and the stability of the electrode current.
[0142] It should be noted that for other corresponding descriptions of the functional units involved in the signal compensation PID control device based on multi-step prediction provided in the embodiment of the present application, reference can be made to Figure 1 and Figure 2 The corresponding description in will not be repeated here.
[0143] In an exemplary embodiment, see Figure 6 , and also provides a device, which includes a communication bus, a processor, a memory and a communication interface, and may also include an input and 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 signal compensation PID control method based on multi-step prediction in the above embodiment.
[0144] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the signal compensation PID control method based on multi-step prediction.
[0145] 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.
[0146] Those skilled in the art will appreciate that the accompanying drawings are merely schematic diagrams of a preferred implementation scenario, and the modules or processes in the accompanying drawings are not necessarily required for implementing the present application.
[0147] Those skilled in the art will appreciate that the modules in the device in the implementation scenario can be distributed in the device in the implementation scenario according to the implementation scenario description, or can be changed accordingly and located in one or more devices different from the implementation scenario. The modules in the above implementation scenario can be combined into one module, or can be further split into multiple sub-modules.
[0148] The above application serial numbers are for description only and do not represent the advantages or disadvantages of the implementation scenarios.
[0149] The above disclosure only discloses several specific implementation scenarios of the present application. However, the present application is not limited thereto, and any changes that can be conceived by technicians in this field should fall within the scope of protection of the present application.
Claims
1. A signal compensation PID control method based on multi-step prediction, characterized in that: include: In response to the electrode current control demand, a discrete linear model is used to describe the electrode current of the target process, and an electrode current dynamic model corresponding to the target process is obtained; Calculating the critical parameters of the electrode current dynamic model, adjusting the control parameters of the PID controller according to the critical parameters, and obtaining the PID feedback control law of the PID controller; Adding an original compensation signal, calculating the original compensation signal based on the electrode current dynamic model and the PID feedback control law, and outputting a predicted compensation signal; The PID feedback control law and the predicted compensation signal are superimposed as inputs of the electrode current dynamic model to control the output of the PID controller.
2. The method according to claim 1, characterized in that The discrete linear model is used to describe the electrode current of the target process to obtain the electrode current dynamic model corresponding to the target process, including: Acquire the actual motor rotation frequency in the target process as sample input data, and acquire the actual electrode current in the target process as sample output data; Repeating the steps of obtaining the actual motor rotation frequency in the target process as sample input data and obtaining the actual electrode current in the target process as sample output data until the sub-sample input data stored in the sample input data meets a preset sample value; The sample input data and the sample output data are input into the discrete linear model for model training, and a system identification algorithm is used to identify the model parameters of the discrete linear model to complete the model training and obtain the electrode current dynamic model.
3. The method according to claim 2, characterized in that The step of inputting the input sample data and the sample output data into the discrete linear model for model training, and using a system identification algorithm to identify model parameters of the discrete linear model to complete the model training includes: Determine a target sampling time, multiply subsample input data corresponding to a sampling time before the target sampling time by a first coefficient to obtain a product of the subsample input data and the first coefficient, add the product to a first parameter to obtain an input term, wherein the first parameter indicates an unmodeled dynamic term in the set; An equation is established, the system identification algorithm is used to identify the equation, and the numerical values of the first coefficient and the second coefficient are obtained as the model parameters to complete the model training. The equation is used to indicate that the product of the second coefficient and the sub-sample output data corresponding to the target sampling moment is equal to the input item.
4. The method according to claim 1, characterized in that The step of calculating the critical parameters of the electrode current dynamic model, adjusting the control parameters of the PID controller according to the critical parameters, and obtaining the PID feedback control law of the PID controller includes: Based on the electrode current dynamic model, obtaining a transfer function of the electrode current dynamic model with respect to a frequency parameter; Using a Chebyshev model, the transfer function is converted into a Chebyshev polynomial; Performing polynomial calculation on the Chebyshev polynomial to obtain multiple root values; Extracting a target root value whose value is smaller than other root values from the multiple root values, and calculating a critical frequency and a critical gain corresponding to the target process based on the target root value; The critical period is calculated by using the critical angular frequency, and the critical frequency, the critical gain and the critical period are used as the critical parameters; According to the critical parameters, the proportional parameter, the integral parameter and the differential parameter of the PID controller are determined, and the PID feedback control law is generated by using the proportional parameter, the integral parameter and the differential parameter.
5. The method according to claim 4, characterized in that The calculating the critical frequency and critical gain corresponding to the target process based on the target root value includes: Calculate the arccosine value of the opposite number of the target root value, and calculate the ratio of the arccosine value to the system sampling period as the critical frequency; The target root value is substituted into the Chebyshev polynomial to obtain a parameter value, and the reciprocal of the absolute value of the parameter value is used as the critical gain.
6. The method according to claim 4, characterized in that Determining the proportional parameter, integral parameter and differential parameter of the PID controller according to the critical parameter comprises: Calculating a first auxiliary control parameter and a second auxiliary control parameter according to the critical parameter; calculating a product of the first auxiliary control parameter and a critical gain as the proportional parameter; calculating the product of the second auxiliary control parameter and the critical period as the integral parameter; The product of the second auxiliary control parameter, the critical period and a preset value is calculated as the differential parameter.
7. The method according to claim 1, characterized in that The adding of the original compensation signal, calculating the original compensation signal based on the electrode current dynamic model and the PID feedback control law, and outputting a predicted compensation signal, comprises: Adding the original compensation signal, superimposing the original compensation signal with the PID feedback control law, and using the superimposed signal as the input of the electrode current dynamic model; The tracking error output by the electrode current dynamic model is received, and the original compensation signal is predicted using the tracking error to obtain the predicted compensation signal.
8. A signal compensation PID control device based on multi-step prediction, characterized in that: include: A generation module, for responding to electrode current control requirements, using a discrete linear model to describe the electrode current of a target process, and obtaining an electrode current dynamic model corresponding to the target process; A calculation module, used for calculating the critical parameters of the electrode current dynamic model, adjusting the control parameters of the PID controller according to the critical parameters, and obtaining the PID feedback control law of the PID controller; An output module, used for adding an original compensation signal, calculating the original compensation signal based on the electrode current dynamic model and the PID feedback control law, and outputting a predicted compensation signal; A superposition module is used to superimpose the PID feedback control law and the predicted compensation signal as the input of the electrode current dynamic model to control the output of the PID controller.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: 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 computer-readable storage medium having a computer program stored thereon, 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.
