A generalized minimum variance controller design method for CSTR temperature control

Through the data-driven generalized minimum variance controller design method, the problems of model dependence and computational complexity in the CSTR temperature control system are solved, and stable temperature control and control signal constraints are achieved, with stronger applicability.

CN113534663BActive Publication Date: 2024-10-01SHAANXI LUKE TECHNOLOGY DEVELOPMENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110799173.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-14
Publication Date
2024-10-01
Estimated Expiration
2041-07-14

AI Technical Summary

Technical Problem

Due to the complexity of the CSTR temperature control system, existing model-based generalized minimum variance controller designs are difficult to achieve effective control, and traditional methods rely on process models, which are complex to calculate and difficult to implement.

Method used

A data-driven generalized minimum variance controller design method is adopted. By constructing a closed-loop control loop, the signal data is used to design generalized output and variance performance criterion functions, and the Gauss-Newton algorithm is used to update the controller parameters to achieve model-free control.

Benefits of technology

It achieves the same control performance as the traditional model-based generalized minimum variance controller, while avoiding the limitations of model dependence, reducing the computational load, having stronger applicability, and being able to update and optimize parameters during operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113534663B_ABST
    Figure CN113534663B_ABST
Patent Text Reader

Abstract

The invention discloses a generalized minimum variance controller design method for CSTR temperature control. The goal of designing the generalized minimum variance controller is not only to make the liquid temperature of the CSTR outlet pipe reach the set value, but also to make the variance of the manipulated variable and the system output small enough to ensure the stability of the system. The generalized minimum variance controller selects a numerical controller C(ρ) with a fixed structure and only needs to adjust parameters, where ρ is a controller parameter. The method comprises the following steps: step one: constructing a closed-loop control loop of a CSTR temperature control system; step two: designing a generalized minimum variance controller for the temperature control system, and determining a variance performance criterion function J(ρ) corresponding to the generalized system output φ under the controller; step three: obtaining an unbiased gradient of the criterion function J(ρ); and obtaining the optimal value of the controller parameter ρ through parameter updating, and selecting a fixed structure controller under the controller parameter ρ at this time as the generalized minimum variance controller of the CSTR temperature control system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a generalized minimum variance controller design method for CSTR temperature control, and belongs to the field of industrial process control. In particular, the invention relates to a generalized minimum variance controller design method based on data driving for CSTR temperature control. Background Art

[0002] In industrial processes such as petroleum, chemical industry, food fermentation and pharmaceutical industry, many objects have complex mathematical mechanisms and are often accompanied by time-varying and nonlinear characteristics. Reactors are the core equipment for chemical reactions in chemical industry production. Tank reactors that adopt continuous operation mode, namely continuous stirred tank reactors (CSTR), are widely used in industries such as petrochemical industry and biopharmaceutical industry. CSTR has the advantages of low cost, strong heat exchange capacity and stable products; however, as a typical complex chemical equipment, it also has some nonlinear characteristics, and the quality of its parameter control will have a direct impact on production efficiency and product quality. Due to the complex mathematical mechanism, model-based control methods are difficult to achieve satisfactory results when implementing control strategies due to inaccurate modeling.

[0003] Furthermore, when the reactor is operated, the reaction materials are first mixed in a certain proportion and put into the cylinder together with the catalyst; at the same time, the heat agent, usually high-pressure steam, is passed into the jacket as a heat transfer element, and the temperature in the reactor is increased through heat transfer; the stirring mechanism of the agitator is then used to increase the heat conduction rate to ensure that the materials in the reactor are evenly distributed and the temperature is consistent. When the temperature reaches a suitable range, it is necessary to maintain a constant temperature for a certain period of time to ensure the normal progress of the chemical reaction, and then cool it after the reaction is completed. In addition, in some special cases, the reactor needs to be heated up a second time.

[0004] The most important part of the reactor process is the constant temperature stage. During this stage, the increase and decrease of temperature will affect the conversion rate and reaction depth of the reaction, thus indirectly affecting the quality of the reaction product. Therefore, it is extremely important to control the output variation variance of the CSTR temperature system to make its output as stable as possible.

[0005] The generalized minimum variance controller (GMVC) is an improvement and perfection of the minimum variance controller (MVC). It introduces dynamic weight functions on the control signal and the output signal, so that the controller signal amplitude is constrained, which is more suitable for application in CSTR temperature control systems. However, due to the complexity of the CSTR mechanism, the generalized minimum variance controller based on model design is extremely difficult to implement. Summary of the invention

[0006] Since data-driven control does not require a process model, the generalized minimum variance controller can be designed or optimized by using the offline or online input and output data of the control system. In order to solve the above-mentioned existing problems, the present invention provides a generalized minimum variance controller design method for continuous stirred tank reactor (CSTR) temperature control. More specifically, the present invention provides a data-driven generalized minimum variance controller design method for CSTR temperature control. The entire design process is completely based on signal data e and y, without the need for mechanism modeling or model identification of the temperature control system.

[0007] The technical solution of the present invention is as follows:

[0008] A data-driven generalized minimum variance controller design approach for temperature control of a continuous stirred tank reactor (CSTR), see Figure 1 The process flow diagram of the continuous stirred tank reactor (CSTR) shown in the figure is that hot and cold water enter the tank and are fully stirred and mixed, and then flow out from the bottom of the tank after being heated by steam. The whole process simulates the exothermic process of the chemical reaction. The operating variable selected in the temperature control system is the opening signal u of the steam valve, and the temperature in the outlet pipe is the system output y of the temperature control system.

[0009] The invention discloses a method for designing a generalized minimum variance controller for temperature control of a continuous stirred tank reactor (CSTR), characterized in that the goal of designing the generalized minimum variance controller is not only to make the liquid temperature of the CSTR outlet pipe reach a set value, but also to make the variance of the manipulated variable and the system output sufficiently small to ensure the stability of the system. The generalized minimum variance controller selects a numerical controller C(ρ) with a fixed structure and only needs to adjust parameters, where ρ is a controller parameter. The method comprises the following steps:

[0010] Step 1: Construct a closed-loop control circuit for the CSTR temperature control system, such as Figure 2 As shown in the figure, the set value r of the system is the desired temperature in the CSTR outlet pipe, the controlled variable of the system is the opening u of the steam valve, and the system output y is the liquid temperature of the CSTR outlet pipe; the disturbance signal d in the loop that affects the system output is generated by the objective environment and human operation, usually with a mean of 0 and a variance of σ 2 The system setting value r is subtracted from the system output y to generate the error signal e. To design the generalized minimum variance controller, the generalized output φ of the system is first established:

[0011] φ=P c e+F c u;

[0012] Among them, P c is the error weight, F cTo control weight;

[0013] Step 2: Design a generalized minimum variance controller for the temperature control system of the CSTR, and determine the variance performance criterion function J(ρ) corresponding to the generalized system output φ under the generalized minimum variance controller;

[0014] Step 3: Obtain the unbiased gradient of the criterion function J(ρ) through a response experiment of a closed-loop system; and obtain the optimal value of the controller parameter ρ through parameter updating, and select the fixed structure controller under the controller parameter ρ at this time as the generalized minimum variance controller of the CSTR temperature control system.

[0015] According to the method of the present invention, in the control loop, the deviation signal e generated by subtracting the system setting value r from the system output y is controlled by the designed generalized minimum variance controller to form a control signal u, which is the opening of the steam valve in actual operation. The steam flow is adjusted by the opening to affect the liquid temperature in the outlet pipe of the temperature system, thereby generating a stable system output y. The system output y is the temperature in the outlet pipe, thereby completing the temperature control of the CSTR temperature control system.

[0016] According to the method of the present invention, the step 2 further includes: designing an expression of a fixed structure numerical controller for the temperature control system of the CSTR, selecting an initial parameter as ρ1=[ρ1 ρ2 ρ3] T In the closed-loop control loop of the CSTR temperature control system under this parameter, the system output y(ρ) and the control signal u(ρ) are acquired by using sensors.

[0017] According to the method of the present invention, in step 2, the variance performance criterion function J(ρ) corresponding to the generalized output φ is taken as:

[0018]

[0019] Wherein, N is the number of samples, and E is the mathematical symbol for finding the expected value of the data; further, in the step 3, the unbiased gradient of the criterion function J(ρ) is obtained based on the data-driven method.

[0020] According to the method of the present invention, step three of the method further comprises the following steps:

[0021] Step S1: Initialize controller parameters ρ i , i is taken as the number of parameter updates and the starting value of i is 1;

[0022] Step S2: Determine controller parameter ρ i The generalized minimum variance performance index η under the action GMV Whether the preset value η is reached max.

[0023] According to the method of the present invention, step S2 further includes: if the controller parameter p i The generalized minimum variance performance index η under the action GMV Smaller than or not greater than the preset value η max ; then the controller parameter ρ i Update the parameters and get the controller parameter ρ i+1 .

[0024] According to the method of the present invention, step S2 further includes: if the controller parameter p i The generalized minimum variance performance index η under the action GMV Greater than the preset value n max , then the controller parameter ρ is selected i As the parameters of the generalized minimum variance controller of the CSTR temperature control system.

[0025] According to the method of the present invention, when the controller parameter ρ i The process for performing an update is as follows:

[0026] Collect controller parameter ρ at system setting value r i The generalized output φ of the closed-loop control loop under the action i (1) and the system output y i (1) , and when obtaining the unbiased gradient of the criterion function J(ρ) ry i (1) Substitute the system setting value r to get the system output y (2) , multiply the error weight product term P c e to -P c y and get the generalized output Combined with φ i (1) Obtain the unbiased gradient of the criterion function J(ρ) Based on the unbiased gradient, the controller parameter ρ i Update and get the controller parameter ρ i+1 .

[0027] According to the method of the present invention, the unbiased gradient of the criterion function J(ρ) is obtained based on a data-driven method. The specific process is as follows: i Under the action, the system generalized output signal φ(ρ i ), system output signal y(ρ i ) and system control signal u(ρ i ) About ρ i The partial derivative of is:

[0028]

[0029]

[0030]

[0031] Next, in the controller parameter ρ i Two response experiments are carried out in the closed-loop control loop under the action of the second response experiment, in which the second response experiment is also called the gradient experiment. The system reference input, controller output, system output, and generalized system output of the two response experiments are:

[0032]

[0033] In the formula, r i (1) and r i (2) are the inputs of the first and second response experiments respectively. and are the independent interference signals in the two experiments. Therefore, according to the signals obtained from the response experiment, the unbiased gradient estimates of the system output y(ρ) and the controller output u(ρ) with respect to the controller parameters can be determined as follows:

[0034]

[0035]

[0036] Based on the controller parameter ρ i The results of the closed-loop control loop response experiment under the action of

[0037]

[0038] The u obtained in the gradient experiment 2 (ρ i ) and y 2 (ρ i ) into the above formula, we can get the unbiased gradient of the generalized output signal And according to the unbiased gradient of the generalized output signal The unbiased gradient of the criterion function J(ρ) can be obtained

[0039] In the above calculation process, two response experiments are required and each response experiment requires the collection of two sets of data on u(ρ) and y(ρ). In order to reduce the calculation load, the above formula is further processed. When conducting the second response experiment, refer to Figure 4 Change the generalized output, that is, redefine φ (2), multiply the error weight product P c e to -P c y (2) :

[0040] φ (2) :=-P c y (2) +F c u (2) ;

[0041] Then the unbiased gradient of the generalized output is Change to:

[0042]

[0043] And according to the unbiased gradient of the generalized output Further get the controller parameter ρ i Under the action, the variance performance criterion function J(ρ i )

[0044]

[0045] According to the controller parameter ρ i The unbiased gradient of the variance performance criterion function J(ρ) defined with the generalized output signal Use the Gauss-Newton algorithm to determine the controller parameter ρ at the i+1th update i+1 for:

[0046]

[0047] Among them, γ i It represents the step size of the parameter update for the i-th time, and its selection needs to balance the convergence of the optimization algorithm and the stability of the system. Generally speaking, the smaller the step size, the more times the update is performed, and the more guaranteed the convergence is. In actual operation, the step size is usually constrained to 0 < γ i ≤1.R i It is an approximate matrix of the Hessian matrix of J(ρ), indicating the optimization search direction of the parameters. In one embodiment, the update step sizes of the three parameters are 0, 0.1, and 0.1 respectively. The generalized output variance at the i-th parameter update defines the variance performance criterion function J(ρ i ), we have:

[0048]

[0049] After determining the controller parameter ρ i+1 After that, the controller parameter ρ is tested again. i+1The variance performance index η under the action GMV Is it greater than the preset value η max Step S2, and the variance performance index η GMV Not greater than the preset value η max In the case of i=i+1, the unbiased gradient of the criterion function J(ρ) described above is performed again The solution process is carried out for the next parameter update.

[0050] According to the method of the present invention, optionally, if the controller parameter ρ i The variance performance index η under the action GMV Greater than the preset value η max , then the controller parameter ρ is selected i As parameters of the generalized minimum variance controller for the CSTR temperature control system.

[0051] Since the generalized minimum variance controller designed in the present invention is a model-free method, there are no other constraints except the constraint that the system is time-invariant. In one embodiment, the controller parameter ρ i The variance performance index η after 30 parameter updates GMV Close to η max =1, then ρ 30 =[-1 -1.57 1.56] T ; The controller under this parameter is the generalized minimum variance controller of the CSTR temperature control system.

[0052] The beneficial effects of the present invention are:

[0053] The present invention aims at the problems that the modeling of CSTR temperature control system is complex and inaccurate, and the traditional design method of generalized minimum variance controller is heavily dependent on process model, complicated calculation and difficult to implement, and proposes a generalized minimum variance controller design method based on data-driven. This method belongs to a model-free method and avoids the limitation that traditional design requires known model information. This method only needs to define the controller design criterion function for data-driven under a general structure, and obtain the gradient value of the generalized output signal through gradient experiment; then the Gauss-Newton optimization algorithm is used to update the controller parameters and seek the optimal parameters, and the optimal controller parameters under the generalized minimum variance performance index are obtained, so that the generalized minimum variance controller design based on data-driven can be realized.

[0054] Under the reasonable selection of the number of controller parameters, the method of the present invention can achieve the same control performance as the traditional model-based generalized minimum variance controller while maintaining good control signal constraints. At the same time, due to the use of a data-driven design mechanism, the method can use the data collected in the closed-loop control system to update, calibrate and optimize the parameters of the running controller.

[0055] In addition, compared with the traditional data-based parameter update feedback tuning method, the present application reduces the operation amount and computational load of the gradient experiment by combining the two updated signals into a generalized output signal, making the method more applicable. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0057] Figure 1 It is a process flow diagram of the CSTH temperature control system of the present invention;

[0058] Figure 2 It is a schematic diagram of the structure of the closed-loop control circuit of the present invention;

[0059] Figure 3 is a flow chart of the data driven process of the present invention;

[0060] Figure 4 It is a redefined generalized system in the gradient experiment of the present invention;

[0061] Figure 5 1 is a schematic diagram of comparing system signals under two generalized minimum variance controllers in an embodiment of the present invention;

[0062] Figure 6 is the index η in the controller parameter update process in the first embodiment of the present invention. GMV Schematic diagram of the changing trend of

[0063] Figure 7 is a schematic diagram of system signals under a data driven controller in Embodiment 1 of the present invention;

[0064] Figure 8 It is the structure diagram of the traditional generalized minimum variance controller. DETAILED DESCRIPTION

[0065] In order to make the objectives, technical solutions and advantages of the present invention more clear, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.

[0066] Embodiment 1:

[0067] A data-driven generalized minimum variance controller design approach for temperature control of a continuous stirred tank reactor (CSTR), see Figure 1 The process flow diagram of the continuous stirred tank reactor (CSTR) shown in the figure is that hot and cold water enter the tank and are fully stirred and mixed, and then flow out from the bottom of the tank after being heated by steam. The whole process simulates the exothermic process of the chemical reaction. The operating variable selected in the temperature control system is the opening signal u of the steam valve, and the temperature in the outlet pipe is the system output y of the temperature control system.

[0068] A data-driven generalized minimum variance controller design approach for temperature control of a continuous stirred tank reactor (CSTR), see Figure 1 The process flow diagram of the continuous stirred tank reactor (CSTR) shown in the figure is that hot and cold water enter the tank and are fully stirred and mixed, and then flow out from the bottom of the tank after being heated by steam. The whole process simulates the exothermic process of the chemical reaction. The operating variable selected in the temperature control system is the opening signal u of the steam valve, and the temperature in the outlet pipe is the system output y of the temperature control system.

[0069] The invention discloses a method for designing a generalized minimum variance controller for temperature control of a continuous stirred tank reactor (CSTR), characterized in that the goal of designing the generalized minimum variance controller is not only to make the liquid temperature of the CSTR outlet pipe reach a set value, but also to make the variance of the manipulated variable and the system output signal sufficiently small to ensure the stability of the system. The generalized minimum variance controller selects a numerical controller C(ρ) with a fixed structure and only needs to adjust parameters, where ρ is a controller parameter. The method comprises the following steps:

[0070] Step 1: Construct a closed-loop control circuit for the CSTR temperature control system, such as Figure 2 As shown in the figure, the set value r of the system is the desired temperature in the CSTR outlet pipe, the controlled variable of the system is the opening u of the steam valve, and the output variable of the system is the liquid temperature of the CSTR outlet pipe; the disturbance signal d in the loop that affects the system output is generated by the objective environment and human operation, usually with a mean of 0 and a variance of σ 2 The system setting value r is subtracted from the system output y to generate the error signal e. To design the generalized minimum variance controller, the generalized output φ of the system is first established:

[0071] φ=P c e+F c u;

[0072] Among them, P c is the error weight, F c To control weight;

[0073] Step 2: Design a generalized minimum variance controller for the temperature control system of the CSTR, and determine the variance performance criterion function J(ρ) corresponding to the generalized system output φ under the generalized minimum variance controller;

[0074] Step 3: Obtain the unbiased gradient of the criterion function J(ρ) through a response experiment of a closed-loop system; and obtain the optimal value of the controller parameter ρ through parameter updating, and select the fixed structure controller under the controller parameter ρ at this time as the generalized minimum variance controller of the CSTR temperature control system.

[0075] According to the method of this embodiment, in the control loop, the deviation signal e generated by subtracting the system setting value r from the system output signal y is controlled by the designed generalized minimum variance controller to form a control signal u, which is the opening of the steam valve in actual operation. The steam flow is adjusted by the opening to affect the liquid temperature in the outlet pipe of the temperature system, thereby generating a stable system output y. The system output y is the temperature in the outlet pipe, thereby completing the temperature control of the CSTR temperature control system.

[0076] According to the method of this embodiment, the step 2 further includes: designing an expression of a fixed structure numerical controller for the temperature control system of the CSTR, selecting an initial parameter as ρ i =[ρ1 ρ2 ρ3] T In the closed-loop control loop of the CSTR temperature control system under this parameter, the system output y(ρ i ) and the control signal u(ρ i ).

[0077] According to the method of this embodiment, in step 2, the variance performance criterion function J(ρ) corresponding to the generalized output φ is taken as:

[0078]

[0079] Wherein, N is the number of samples, and E is the mathematical symbol for finding the expected value of the data; further, in the step 3, the unbiased gradient of the criterion function J(ρ) is obtained based on the data-driven method.

[0080] According to the method of this embodiment, the error weight P of the generalized output φ c and control weight F c Select as:

[0081]

[0082] Thus, the generalized output φ is determined:

[0083]

[0084] Then the criterion function corresponding to the generalized output φ in step 2 is taken as:

[0085]

[0086] Wherein N is the number of samples, and in this embodiment, N=1000.

[0087] According to the method of this embodiment, step three of the method further includes the following steps:

[0088] Step S1: Initialize controller parameters ρ i , i is taken as the number of parameter updates and the starting value of i is 1;

[0089] Step S2: Determine controller parameter ρ i The generalized minimum variance performance index η under the action GMV Whether the preset value η is reached max .

[0090] According to the method of this embodiment, step S2 further includes: if the controller parameter p i The generalized minimum variance performance index η under the action GMV Smaller than or not greater than the preset value η max ; then the controller parameter ρ i Update the parameters and get the controller parameter ρ i+1 .

[0091] According to the method of this embodiment, step S2 further includes: if the controller parameter p i The generalized minimum variance performance index η under the action GMV Greater than the preset value n max , then the controller parameter ρ is selected i As the parameters of the generalized minimum variance controller of the CSTR temperature control system.

[0092] According to the method of this embodiment, when the controller parameter ρ i The process for performing an update is as follows:

[0093] Collect controller parameter ρ at system setting value r i The generalized output φ of the closed-loop control loop under the action i (1) and the system output y i (1) , and when obtaining the unbiased gradient of the criterion function J(ρ) ry i (1) Substitute the system setting value r to get the system output y (2) , multiply the error weight product term P c e to -Pc y and get the generalized output Combined with φ i (1) Obtain the unbiased gradient of the criterion function J(ρ) Based on the unbiased gradient, the controller parameter ρ i Update and get the controller parameter ρ i+1 .

[0094] According to the method of this embodiment, combined with Figure 3 As shown, the unbiased gradient of the criterion function J(ρ) is obtained based on the data-driven method The specific process is as follows: i Under the action, the system generalized output signal φ(ρ i ), system output signal y(ρ i ) and system control signal u(ρ i ) About ρ i The partial derivative of is:

[0095]

[0096]

[0097]

[0098] Next, in the controller parameter ρ i Two response experiments are carried out in the closed-loop control loop under the action of the second response experiment, in which the second response experiment is also called the gradient experiment. The system reference input, controller output, system output, and generalized system output of the two response experiments are:

[0099]

[0100] In the formula, r i (1) and r i (2) are the inputs of the first and second response experiments respectively. and are the independent interference signals in the two experiments. Therefore, according to the signals obtained from the response experiment, the unbiased gradient estimates of the system output y(ρ) and the controller output u(ρ) with respect to the controller parameters can be determined as follows:

[0101]

[0102]

[0103] Based on the controller parameter ρ i The results of the closed-loop control loop response experiment under the action of

[0104]

[0105] The u obtained in the gradient experiment 2 (ρ i ) and y 2 (ρ i ) into the above formula, we can get the unbiased gradient of the generalized output signal And according to the unbiased gradient of the generalized output signal The unbiased gradient of the criterion function J(ρ) can be obtained

[0106] In the above calculation process, two response experiments are required and each response experiment requires the collection of two sets of data on u(ρ) and y(ρ). In order to reduce the calculation load, the above formula is further processed. When conducting the second response experiment, refer to Figure 4 Change the generalized output, that is, redefine φ (2) , multiply the error weight product P c e to -P c y (2) :

[0107] φ (2) :=-P c y (2) +f c u (2) ;

[0108] Then the unbiased gradient of the generalized output is Change to:

[0109]

[0110] And according to the unbiased gradient of the generalized output Further get the controller parameter ρ i Under the action, the variance performance criterion function J(ρ i )

[0111]

[0112] According to the controller parameter ρ i The unbiased gradient of the variance performance criterion function J(ρ) defined with the generalized output signal Use the Gauss-Newton algorithm to determine the controller parameter ρ in the i+1th parameter update process i+1 for:

[0113]

[0114] Among them, γ i It represents the step size of the ith update, and its selection needs to balance the convergence of the optimization algorithm and the stability of the system. Generally speaking, the smaller the step size and the more updates, the more guaranteed the convergence. In actual operation, the step size is usually constrained to 0 < γ i ≤1.R i It is an approximate matrix of the Hessian matrix of J(ρ), indicating the optimization search direction of the parameters. In one embodiment, the update step sizes of the three parameters are 0, 0.1, and 0.1 respectively. The generalized output variance at the i-th parameter update defines the variance performance criterion function J(ρ i ), we have:

[0115]

[0116] After determining the controller parameter ρ i+1 After that, the controller parameter ρ is tested again. i+1 The variance performance index η under the action GMV Is it greater than the preset value η max Step S2, and the variance performance index η GMV Not greater than the preset value η max In the case of i=i+1, the unbiased gradient of the criterion function J(ρ) described above is performed again The solution process is carried out for the next parameter update.

[0117] According to the method of this embodiment, if the controller parameter ρ i The variance performance index η under the action GMV Greater than the preset value η max , then the controller parameter ρ is selected i As parameters of the generalized minimum variance controller for the CSTR temperature control system.

[0118] Since the generalized minimum variance controller designed in the present invention is a model-free method, there are no other constraints except the constraint that the system is time-invariant. In this embodiment, the controller parameter ρ i The variance performance index η after 30 parameter updates GMV Close to η max =1, then ρ 30 =[-1 -1.57 1.56] T ; The controller under this parameter is the generalized minimum variance controller of the CSTR temperature control system. The system signal at this time is as follows Figure 7 shown.

[0119] Embodiment 2

[0120] In this example, the control loop of the CSTR temperature control system is as follows: Figure 2 As shown, r is the system setting value, d is the disturbance signal superimposed on the system output after the disturbance model N, which has a mean of 0 and a variance of σ 2 The white noise signal, e is the error signal, u is the controller output, y is the system output, and G is the mathematical model of the CSTR temperature control system. According to the law of conservation of energy, G is expressed as follows:

[0121]

[0122] Where x is the liquid level, V is the volume of water, and f hw is the flow rate of hot water flowing into the heater; f cw is the cold water flow into the heater; f out is the flow rate of water out of the heater; H is the total enthalpy in the heater; h hw is the specific heat enthalpy of the hot water flowing into the heater; h cw is the specific heat enthalpy of the cold water flowing into the heater; h out is the specific heat enthalpy of water flowing out of the heater; ρ cw is the density of cold water flowing into the heater; ρ hw is the density of hot water flowing into the heater; ρ out is the density of water flowing out of the heater; W st The heat of steam.

[0123] To further verify the effectiveness of the method of the present invention, the CSTR temperature control system is now identified as a transfer function:

[0124]

[0125] The transfer function of the generalized minimum variance controller designed based on the above model is:

[0126]

[0127] Figure 8 The following is the structure diagram of the traditional generalized minimum variance controller. Figure 8 The structure shown in the figure builds a generalized minimum variance controller. The system signal of the generalized minimum variance controller (DD-GMV) designed in this application is compared with that of the traditional generalized minimum variance controller (GMV) based on model design, as shown in the figure. Figure 5 As shown. Figure 5 It can be found from the results that the generalized output signals and control signals of the two controllers are almost the same, indicating that the data-driven generalized minimum variance controller designed in this application almost completely achieves the performance of the traditional generalized minimum variance controller based on model design. Figure 6 The figure shows the index η in the controller parameter update process in the embodiment of the invention.GMV The changing trend of Figure 6 It can be found that after the parameter update is completed, the performance index η under the action of the data-driven generalized minimum variance controller is GMV =0.9857, which is close to 1, indicating that the performance of the control system at this time is consistent with that of the ideal generalized minimum variance controller.

[0128] Some steps in the embodiments of the present invention need to be implemented using data analysis software, such as MATLAB, PYTHON, etc. The corresponding software program can be stored in a readable storage medium, such as a CD or a hard disk.

[0129] The above-mentioned embodiment of temperature control during fermentation is only a preferred embodiment of the present invention and does not limit the scope of application of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A generalized minimum variance controller design method for CSTR temperature control, characterized in that: The goal of designing a generalized minimum variance controller is not only to make the liquid temperature of the CSTR outlet pipe reach the set value, but also to make the variance of the manipulated variable and the system output small enough to ensure the stability of the system. The generalized minimum variance controller selects a numerical controller C(ρ) with a fixed structure and only needs to adjust parameters, where ρ is a controller parameter; the method includes the following steps: Step 1: Construct a closed-loop control loop of the CSTR temperature control system. In the closed-loop control loop, the deviation signal generated by subtracting the system set value from the system output is controlled by the designed generalized minimum variance controller to form a control signal, which is the opening of the steam valve in actual operation. The steam flow is adjusted by the opening to affect the liquid temperature in the CSTR outlet pipe, thereby generating a stable system output; the system output is the temperature in the outlet pipe, thereby completing the temperature control of the CSTR temperature control system; Among them, the system set value r is the desired temperature in the CSTR outlet pipe, the system control variable u is the opening of the steam valve, and the system output y is the liquid temperature of the CSTR outlet pipe; the system set value r is subtracted from the system output y to generate the error signal e; in order to design the generalized minimum variance controller, the generalized output φ of the system is first established: φ=P c e+F c the; Among them, P c is the error weight, F c To control weight; Step 2: Design a generalized minimum variance controller for the temperature control system of the CSTR, that is, design an expression of a fixed structure numerical controller C(ρ) for the temperature control system of the CSTR, and select the initial parameter ρ1=[ρ1 ρ2 ρ3] T , the system output y(ρ) and the control signal u(ρ) are acquired by using sensors in the closed-loop control loop of the CSTR temperature control system under this parameter, and the variance performance criterion function J(ρ) corresponding to the generalized system output φ under the generalized minimum variance controller is determined; the variance performance criterion function J(ρ) corresponding to the generalized output φ is taken as: Where N is the number of samples, and E is the mathematical symbol for finding the expected value of data; Step 3: Obtain the unbiased gradient of the criterion function J(ρ) through the response experiment of the closed-loop system and based on the data-driven method The optimal value of the controller parameter ρ is obtained by parameter updating, and the fixed structure controller under the controller parameter ρ at this time is selected as the generalized minimum variance controller of the CSTR temperature control system; Step three of the method also includes: Step S1: Initialize controller parameters ρ i , i is taken as the number of parameter updates, and the starting value of i is 1; Step S2: Determine controller parameter ρ i The generalized minimum variance performance index η under the action GMV Whether the preset value η is reached max ; The step S2 further comprises: If the controller parameter ρ i The generalized minimum variance performance index η under the action GMV Smaller than or not greater than the preset value η max ; then the controller parameter ρ i Update the parameters and get the controller parameter ρ i+1 ; If the controller parameter ρ i The generalized minimum variance performance index η under the action GMV Greater than the preset value n max , then the controller parameter ρ is selected i as parameters of a generalized minimum variance controller of the CSTR temperature control system; The process of updating the controller parameters ρi is as follows: Collect controller parameter ρ at system setting value r i The generalized output of the closed-loop control loop under the action of i (1) And the system output y i (1) , And when obtaining the unbiased gradient of the criterion function J(ρ), ry i (1) Substituting the system setting value r to obtain the system output y(2), the error weight product term P c e to -P c y and get the generalized output Combined with φ i (1) Obtain the unbiased gradient of the criterion function J(ρ) Based on the unbiased gradient, the controller parameter ρ i Update and get the controller parameter ρ i+1 .

2. The method according to claim 1, characterized in that The method further comprises: According to the controller parameter ρ i With the generalized output φ(ρ i ) defines the unbiased gradient of the variance performance criterion function J(ρ) The Gauss-Newton algorithm is used to determine the controller parameter ρ at the i+1th update. i+1 .

3. The method according to any one of claims 1 to 2, characterized in that: The method designs a generalized minimum variance controller in the temperature control system of the CSTR in a data-driven manner, so that the design of the generalized minimum variance controller does not require a process model and can effectively control the temperature of the CSTR temperature control system.