A predictive control method, device and medium based on state space model

Through the predictive control method based on the state space model, including historical data processing and Kalman filter algorithm, the problem of long predictive control period of the distillation tower is solved, faster prediction and optimization are achieved, and product quality and economic benefits are improved.

CN115860450BActive Publication Date: 2024-09-03BEIJING SHUANGHE SCI & TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211564654.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-07
Publication Date
2024-09-03
Estimated Expiration
2042-12-07

AI Technical Summary

Technical Problem

In the process industry, the predictive control period of the distillation tower is long, resulting in a long control period and affecting product quality and economic benefits.

Method used

A predictive control method based on the state space model is adopted. By obtaining historical input and output data, an intermediate state space model and a predictive output model are established, including unmeasurable interference quantities. The Kalman filter algorithm is used to estimate the state variables, and the predictive output model is converted into Constrained quadratic programming problem solves the target control sequence to shorten the prediction cycle.

Benefits of technology

It greatly shortens the prediction cycle, improves the product qualification rate, enhances the real-time and stability of control, and reduces the loss of high-value components in low-value products.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115860450B
    Figure CN115860450B
Patent Text Reader

Abstract

The present application discloses a predictive control method, device and medium based on a state space model, and relates to the technical field of process industry production and processing. In order to shorten the prediction period, the present application establishes an intermediate state space model and a predictive output model according to historical input data and historical output data; obtains predictive input data according to the intermediate state space model, the predictive output model and preset output parameters; sets the controlled object according to the predictive input data; a multi-dimensional output data includes all output data to be detected of the current controlled object, and a multi-dimensional vector of predictive input data corresponding to the preset output parameters of the multi-dimensional vector can be obtained through the intermediate state space model and the predictive output model, and it is not necessary for each output parameter to correspond to a solution calculation containing multiple input parameters, so that the controlled object is controlled, the amount of calculation is greatly reduced, and the prediction period is shortened.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of process industry production and processing, and in particular to a predictive control method, device and medium based on a state space model. Background Art

[0002] With the rapid development of science and technology, in the process of realizing industrial large-scale, high integration and high efficiency, reducing energy consumption and improving production quality, the systems and process control objects involved in production units, transpositions and even processes have become more complex, strongly coupled with more constraints and more target optimization. In order to pursue greater economic and social benefits, the requirements for control technology level and performance are getting higher and higher.

[0003] A distillation tower is a tower-type vapor-liquid contact device for distillation, which is widely used in the petrochemical and oil refining industries. The principle is: steam enters from the bottom of the tower, and the evaporated gas phase contacts the descending liquid in countercurrent. During the two-phase contact, the volatile (low boiling point) components in the descending liquid are continuously transferred to the gas phase, and the non-volatile (high boiling point) components in the gas phase are continuously transferred to the descending liquid. The closer the gas phase is to the top of the tower, the higher the concentration of its volatile components, and the closer the descending liquid is to the bottom of the tower, the more concentrated its non-volatile components are, thereby achieving the purpose of component separation. During the operation of the distillation tower, temperature, liquid level, pressure, and flow parameters play a vital role in separation. Due to the wide application of distillation towers, it is of great significance to predict the product quality of distillation towers. By predicting the product quality of distillation towers, timely control and optimization can be carried out to enable them to operate smoothly, improve the product qualification rate, and reduce the loss of high-value components in low-value products.

[0004] Model Predictive Control (MPC) has been widely used in the fields of petroleum, chemical industry, etc. due to its excellent constrained optimization control capability on complex multivariable systems. In essence, the constrained optimization control capability of MPC mainly comes from the online solution of constrained quadratic programming (QP) problems. Although the traditional numerical solution algorithm of quadratic programming has a wide range of applications, most of them involve operations such as matrix inversion and decomposition, so the real-time performance is low, which makes the MPC model store too much data, resulting in algorithm calculation timeout and long control cycle.

[0005] It can be seen that providing a predictive control method that shortens the prediction cycle is a technical problem that needs to be solved urgently by people in this field. Summary of the invention

[0006] The purpose of this application is to provide a predictive control method based on a state space model that shortens the prediction period.

[0007] In order to solve the above technical problems, the present application provides a predictive control method based on a state space model, comprising:

[0008] Acquire historical input data and historical output data of the controlled object, wherein the historical input data and historical output data are multi-dimensional matrices;

[0009] Establish an intermediate state space model and a predictive output model based on historical input data and historical output data;

[0010] Obtaining prediction input data according to the intermediate state space model, the prediction output model and the preset output parameters;

[0011] The controlled object is set according to the predicted input data.

[0012] Preferably, in the above-mentioned predictive control method based on the state-space model, the historical input data includes: a control input vector and an input measurable disturbance vector.

[0013] Preferably, in the above-mentioned predictive control method based on the state space model, after establishing the intermediate state space model and the predictive output model according to the historical input data and the historical output data, it also includes:

[0014] According to the quantitative values ​​of historical input data and historical output data, the intermediate state space model and the predicted output model are expanded, and the unmeasurable interference quantity is included in the intermediate state variables.

[0015] Preferably, in the above-mentioned predictive control method based on the state space model, the intermediate state space model and the predictive output model are expanded according to the quantity values ​​of the input data and the output data, and after the unmeasurable disturbance quantity is included in the intermediate state variable, the method further includes:

[0016] The Kalman filtering algorithm is used to estimate each state variable in the expanded intermediate state space model and the prediction output model to obtain the estimated value of the state variable.

[0017] Preferably, in the above-mentioned predictive control method based on the state space model, after estimating each state variable in the expanded intermediate state space model and the predictive output model by using a Kalman filter algorithm and obtaining the estimated value of the state variable, it further includes:

[0018] Convert the prediction output model into a constrained quadratic programming problem to obtain the objective function;

[0019] Solve the objective function according to the preset constraints to obtain the target control sequence;

[0020] Correspondingly, the controlled object is set according to the predicted input data, including:

[0021] The controlled object is set according to the target control sequence.

[0022] Preferably, in the above-mentioned predictive control method based on the state space model, establishing an intermediate state space model and a predictive output model according to historical input data and historical output data includes:

[0023] According to the control input vector and the input measurable disturbance vector, an intermediate state space model and a predicted output model are established. The intermediate state space model is as follows:

[0024] x(k+1)=Ax(k)+B u u(k)+B v v(k)

[0025] The prediction output model is as follows:

[0026] y(k)=Cx(k)+D u u(k)+D v v(k)

[0027] In the formula, x represents the intermediate state vector of the controlled object, with a dimension of n; u represents the control input vector of the controlled object, with a dimension of n u ; v represents the input measurable disturbance vector of the controlled object, with a dimension of n v ; y represents the output vector of the controlled object, with a dimension of n y ; k represents the time, A, B u , B v , C, D u , D v is a system matrix with known real constant coefficients, where

[0028]

[0029] Preferably, in the above-mentioned predictive control method based on the state space model, the intermediate state space model and the predictive output model are expanded according to the quantitative values ​​of the historical input data and the historical output data, and the unmeasurable disturbance quantity is included in the intermediate state variable, including:

[0030] When the dimension of the control input vector n u Smaller than the dimension n of the output vector of the controlled object y When , the intermediate state space model and the prediction output model are expanded by input expansion. The expanded intermediate state space model and the expanded prediction output model are as follows:

[0031]

[0032]

[0033] in, d is the unmeasurable interference quantity;

[0034]

[0035]

[0036] is a system matrix with known real constant coefficients;

[0037] When the dimension of the control input vector n u Smaller than the dimension n of the output vector of the controlled object y When , the intermediate state space model and the prediction output model are expanded by input expansion. The expanded intermediate state space model and the expanded prediction output model are as follows:

[0038]

[0039]

[0040] in,

[0041]

[0042]

[0043] is a system matrix with known real constant coefficients.

[0044] In order to solve the above technical problems, the present application also provides a predictive control device based on a state space model, comprising:

[0045] An acquisition module is used to acquire historical input data and historical output data of the controlled object, wherein the historical input data and historical output data are multi-dimensional matrices;

[0046] Establishing a module for establishing an intermediate state space model and a prediction output model based on historical input data and historical output data;

[0047] A prediction module, used to obtain prediction input data according to the intermediate state space model, the prediction output model and the preset output parameters;

[0048] The setting module is used to set the controlled object according to the predicted input data; wherein the historical input data and the historical output data are multi-dimensional vectors.

[0049] In order to solve the above technical problems, the present application also provides a predictive control device based on a state space model, comprising:

[0050] Memory for storing computer programs;

[0051] A processor is used to implement the steps of the above-mentioned predictive control method based on the state space model when executing a computer program.

[0052] In order to solve the above technical problems, the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned predictive control method based on the state-space model are implemented.

[0053] The predictive control method based on the state space model provided in the present application obtains the historical input data and historical output data of the controlled object, wherein the historical input data and the historical output data are multi-dimensional matrices; establishes an intermediate state space model and a predictive output model according to the historical input data and the historical output data; obtains the predicted input data according to the intermediate state space model, the predictive output model and the preset output parameters; and sets the controlled object according to the predicted input data. A multi-dimensional output data includes all the output data to be detected of the current controlled object. The predicted input data of a multi-dimensional vector corresponding to the preset output parameters of a multi-dimensional vector can be obtained through the intermediate state space model and the predictive output model. It is not necessary for each output parameter to correspond to a solution calculation containing multiple input parameters. The amount of calculation is greatly reduced, and the prediction cycle is shortened. Through the predictive analysis of the controlled object, control and optimization are performed to enable it to operate smoothly and improve the product qualification rate.

[0054] In addition, the present application also provides a device and a medium, which correspond to the above method and have the same effect as above. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0056] Figure 1 A flowchart of a predictive control method based on a state space model provided in an embodiment of the present application;

[0057] Figure 2 A structural diagram of a predictive control device based on a state space model provided in an embodiment of the present application;

[0058] Figure 3 A structural diagram of another predictive control device based on a state-space model provided in an embodiment of the present application. DETAILED DESCRIPTION

[0059] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0060] The core of this application is to provide a predictive control method, device and medium based on a state-space model.

[0061] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0062] A distillation tower is a tower-type gas-liquid contact device for distillation. By utilizing the different volatilities of the components in the mixture, that is, the different vapor pressures of the components at the same temperature, the light components (low-boiling substances) in the liquid phase are transferred to the gas phase, and the heavy components (high-boiling substances) in the gas phase are transferred to the liquid phase, thereby achieving the purpose of separation. The distillation tower is also a mass transfer and heat transfer device that is widely used in petrochemical production. Due to the wide application of distillation towers, the control and optimization of distillation towers are of great significance. Through the control and optimization of the distillation tower, it can operate smoothly, improve the product qualification rate, reduce the loss of high-value components in low-value products, save energy and reduce consumption, and reduce the heat load of the reboiler. Therefore, the control and optimization of the distillation tower has a high economic benefit.

[0063] Model predictive control has been widely used in the fields of petroleum, chemical industry, etc. due to its excellent constrained optimization control capability on complex multivariable systems. In essence, the constrained optimization control capability of MPC mainly comes from the online solution of constrained quadratic programming problems. Although the traditional numerical solution algorithm of quadratic programming has a wide range of applications, most of them involve operations such as matrix inversion and decomposition, so the real-time performance is low, which makes the MPC model store too much data, resulting in algorithm calculation timeout and long control cycle.

[0064] This application is applied to process industrial production and processing technology scenarios such as distillation towers and fractionation towers. Through predictive analysis of the controlled objects, control and optimization are carried out to enable them to operate smoothly and improve product qualification rate.

[0065] To solve the above technical problems, the present application provides a predictive control method based on a state space model, such as Figure 1 As shown, including:

[0066] S11: Acquire historical input data and historical output data of the controlled object, wherein the historical input data and historical output data are multi-dimensional matrices;

[0067] S12: Establishing an intermediate state space model and a prediction output model based on historical input data and historical output data;

[0068] S13: Obtaining prediction input data according to the intermediate state space model, the prediction output model and the preset output parameters;

[0069] S14: Setting the controlled object according to the predicted input data.

[0070] In this embodiment, the historical input data and historical output data of the controlled object are obtained; the controlled object here may refer to a distillation tower, and the input data refers to controllable parameters set by humans or some measurable disturbances, such as reflux ratio; tower top temperature and pressure; feed temperature and component composition; tower bottom reboiler reflux temperature and component composition; the number of plates of the overall tower; intermediate circulation reflux and extracted materials, etc. Output data refers to passive detectable data, and changes in input data will lead to changes in output data, such as product composition, product speed, chemical enthalpy, heat and other parameters.

[0071] The state space model is a dynamic time domain model with implicit time as the independent variable. The application of state space models in economic time series analysis is increasing rapidly. The state space model stores less data and is more lightweight.

[0072] In this embodiment, the historical input data and the historical output data are multi-dimensional matrices, which are data sets including time nodes. An intermediate state space model is established based on the historical input data, that is, an intermediate state space model of the input data of a controlled object is established by analyzing the relationship between the historical input data. There are many methods for establishing a state space model, such as a differential equation method and a Z transfer function method. A prediction output model is established based on the intermediate state space model and the historical input data and the historical output data.

[0073] The established intermediate state space model, predicted output model and preset output parameters are used to obtain predicted input data. The preset output parameters mentioned here refer to the target parameters set according to current needs. The predicted input data is obtained through the intermediate state space model and the predicted output model, and then the controlled object is set according to the predicted input data, which will make the controlled object output the target parameters.

[0074] Preferably, the historical input data includes: a control input vector and an input measurable disturbance vector.

[0075] In the production process, there are some uncontrollable but measurable input data, such as feed flow rate, which can be measured as input measurable disturbance vector data to participate in the establishment of intermediate state space model and predicted output model.

[0076] Preferably, establishing an intermediate state space model and a prediction output model based on historical input data and historical output data includes:

[0077] According to the control input vector and the input measurable disturbance vector, an intermediate state space model and a predicted output model are established. The intermediate state space model is as follows:

[0078] x(k+1)=Ax(k)+B u u(k)+B v v(k)

[0079] The prediction output model is as follows:

[0080] y(k)=Cx(k)+D u u(k)+D v v(k)

[0081] In the formula, x represents the intermediate state vector of the controlled object, with a dimension of n; u represents the control input vector of the controlled object, with a dimension of n u ; v represents the input measurable disturbance vector of the controlled object, with a dimension of n v ; y represents the output vector of the controlled object, with a dimension of n y ; k represents time; A, B u , B v , C, D u , D v is a system matrix with known real constant coefficients, where

[0082]

[0083] The predictive control method based on the state space model provided by the present application includes: obtaining historical input data and historical output data of the controlled object, wherein the historical input data and historical output data are multi-dimensional matrices; establishing an intermediate state space model and a predictive output model according to the historical input data and historical output data; obtaining the predicted input data according to the intermediate state space model, the predictive output model and the preset output parameters; and setting the controlled object according to the predicted input data. A multi-dimensional output data includes all the output data to be detected of the current controlled object. The predicted input data of a multi-dimensional vector corresponding to the preset output parameters of a multi-dimensional vector can be obtained through the intermediate state space model and the predictive output model. It is not necessary for each output parameter to correspond to a solution calculation containing multiple input parameters, which greatly reduces the amount of calculation and shortens the prediction cycle. Through the predictive analysis of the controlled object, control and optimization are performed to enable it to operate smoothly and improve the product qualification rate.

[0084] According to the above embodiment, the embodiment of the present application provides an optimization solution, a predictive control method based on a state space model, after establishing a predictive output model according to the intermediate state space model and historical input data and historical output data, further comprising:

[0085] According to the quantitative values ​​of historical input data and historical output data, the intermediate state space model and the predicted output model are expanded, and the unmeasurable interference quantity is included in the intermediate state variables.

[0086] In a multivariable system, the number of control variables MV and CV inputs is uncertain. The manipulated variable (MV) is the input data and the controlled variable (CV) is the output data. The size of these two will affect the effect of state estimation. In order to achieve the optimal solution of the MPC controller, the model is expanded and the unmeasurable disturbance is included in the intermediate state variables to reduce the error caused by the difference in the amount of input and output data.

[0087] This embodiment provides a specific implementation scheme.

[0088] According to the quantitative values ​​of historical input data and historical output data, the intermediate state space model and the predicted output model are expanded to include the unmeasurable interference quantity in the intermediate state variables, including:

[0089] When the dimension of the control input vector n u Smaller than the dimension n of the output vector of the controlled object y When , the intermediate state space model and the prediction output model are expanded by input expansion. The expanded intermediate state space model and the expanded prediction output model are as follows:

[0090]

[0091]

[0092] in, d is the unmeasurable interference quantity;

[0093]

[0094]

[0095] is a system matrix with known real constant coefficients;

[0096] When the dimension of the control input vector n u Smaller than the dimension n of the output vector of the controlled object yWhen , the intermediate state space model and the prediction output model are expanded by input expansion. The expanded intermediate state space model and the expanded prediction output model are as follows:

[0097]

[0098]

[0099] in,

[0100]

[0101]

[0102] is a system matrix with known real constant coefficients.

[0103] By expanding the model and including the unmeasurable disturbance in the intermediate state variables, the anti-disturbance performance of the model is improved and the disturbance can be estimated.

[0104] According to the above embodiment, the embodiment of the present application provides an optimization solution, which expands the intermediate state space model and the prediction output model according to the quantity values ​​of the input data and the output data, and includes the unmeasurable interference amount in the intermediate state variable, and further includes:

[0105] The Kalman filtering algorithm is used to estimate each state variable in the expanded intermediate state space model and the prediction output model to obtain the estimated value of the state variable.

[0106] In actual industrial sites, the input random signal, output random signal, and measurement noise model cannot be accurately obtained. Generally, the unmeasurable parts are estimated through observers. In addition, the models on site are generally nonlinear objects. Therefore, the extended Kalman filter is generally used to estimate the state vector.

[0107] Preferably, the Kalman filtering algorithm is used to estimate each state variable in the expanded intermediate state space model and the prediction output model, and the estimated values ​​of the state variables are obtained as follows:

[0108]

[0109]

[0110]

[0111] in,

[0112]

[0113]

[0114]

[0115] Among them, x(k-1) represents the controller state at time k-1, represents the observer state at time k estimated by the controller state at time k-1; represents the estimated output value at time k; y(k) represents the actual output measurement value at time k; K k represents the state compensation gain matrix at time k; P k represents the state covariance matrix at time k; Q represents the prediction model input state noise covariance matrix; R represents the prediction model output measurement noise covariance matrix.

[0116] The observer can predict the output and control the unstable system, which has strong applicability. The observer is used to observe the state, which can solve the prediction error caused by model error, unmeasurable disturbance and other factors, and then compensated by Kalman observer, which is more adaptable to the complexity of the actual site and the controller has stronger robust performance.

[0117] The embodiment of the present application provides a preferred solution, a predictive control method based on a state space model, which estimates each state variable in the expanded intermediate state space model and the predictive output model through a Kalman filter algorithm, and after obtaining the estimated value of the state variable, further includes:

[0118] Convert the prediction output model into a constrained quadratic programming problem to obtain the objective function;

[0119] Solve the objective function according to the preset constraints to obtain the target control sequence;

[0120] Correspondingly, the controlled object is set according to the predicted input data, including:

[0121] The controlled object is set according to the target control sequence.

[0122] Model predictive control, also known as rolling horizon control, is a feedback control strategy that has been widely discussed in recent years and an effective control method developed in the process of industrial practice. The model predictive control algorithm predicts the output of the control system in the future based on the control system model, and minimizes the tracking error of the control system in the future by solving the optimal control problem with constraints. It has the characteristics of strong robustness. The model predictive control algorithm has the basic characteristics of prediction model, rolling optimization and feedback correction. It can effectively handle multiple optimization objectives and system constraint problems, and can promptly compensate for uncertainties caused by model mismatch, time variation, interference, etc. It is suitable for trajectory tracking control of unmanned vehicles.

[0123] It has great advantages in tracking control under extreme working conditions such as high speed and low adhesion. The essence of the model predictive control algorithm is: in each control cycle, a set of control sequences is obtained to minimize the objective function, and the final optimization problem is converted into an optimization solution of a constrained quadratic programming (QP) problem. The objective function is solved using the sequential quadratic programming algorithm to obtain the target control sequence. According to the target control sequence, the controlled object is controlled and optimized so that it can operate smoothly and improve the product qualification rate.

[0124] Specifically,

[0125] (1) Perform a specific transformation of the QP problem solving matrix and define the MPC control algorithm loss function as follows:

[0126] min J(z k )=J y (z k )+J u (z k )+J Δu (z k )

[0127] st.

[0128] y j,min (i)≤y j (k+i|k)≤y j,max (i),i=1:p,j=1:n y

[0129] u j,min (i)≤u j (k+i-1|k)≤u j,max (i),i=1:p,j=1:n u

[0130] Δu j,min (i)≤Δu j (k+i-1|k)≤Δu j,max (i),i=1:p,j=1:n u

[0131] Among them, z k Represents the decision vector for the QP problem.

[0132] Among them, the meaning and implementation form of other sub-objective functions are as follows:

[0133] J y (z k ) represents the objective function of setting value tracking, which is implemented as follows:

[0134]

[0135] The meanings of the parameters are as follows: k represents the current control interval; p represents the prediction time domain; n y Indicates the number of outputs of the controlled object; z k represents the QP decision vector, which is expressed as follows:

[0136]

[0137] e j (k+i|k) represents the deviation of the jth output of the predicted i-th step at the k-th moment. The solution to this deviation is shown in step (2).

[0138] (2) For interval requirements in are the upper and lower limits of the output variable. In order to eliminate the influence of model mismatch, interference and other factors on the control system, we use the difference between the model output and the actual system output for correction. Then the tracking error e of the j-th output variable at time k+j is j (k+i|k) is defined as:

[0139]

[0140] In this function, n y ,p, The values ​​of y are given constants. j The value of (k+i|k) depends on the control sequence z k , measurable disturbance and state estimation. Therefore, J y (z k ) is just z k function.

[0141] (3) For the estimated value of the state variable J u (z k ) function is the objective function used to realize the control quantity tracking, and its representation is as follows:

[0142]

[0143] Where k represents the current control interval; p represents the prediction time domain; n u Indicates the number of outputs of the controlled object; z k represents the QP decision vector, which is expressed as follows:

[0144]

[0145] u j,ta(k+i|k) represents the target MV value of the jth control variable with the i-th prediction step in the k-th control cycle;

[0146] Represents the weight of the i-th control amount of the object at the j-th prediction step;

[0147] In this function, n u ,p, The values ​​of are all given constants. j,ta The value of (k+i|k) is obtained by the controller from the outside. u (z k ) is just z k function.

[0148] (4) For the estimated value of the state variable J Δu (z k ) is the objective function used to achieve the minimum MV increment, and its representation is as follows:

[0149]

[0150] Where k represents the current control interval; p represents the prediction time domain; n u Indicates the number of outputs of the controlled object; z k represents the QP decision vector, which is expressed as follows:

[0151]

[0152] represents the weight of the i-th control increment of the object at the j-th prediction step;

[0153] In this function, n u ,p, The values ​​of are all given constants. u(k-1|k)=u(k-1), which can be read in the control interval. Therefore, J Δu (z k ) is just z k function.

[0154] (5) For the above deviation formula z k Because the representation of its deviation term is non-smooth, it cannot be directly solved using the QP solution algorithm. By analyzing the solution principle of the first deviation, we can draw the following conclusions:

[0155] e j (k+i|k) is the minimum ε that satisfies the following relationship j :

[0156]

[0157] ε j ≥0

[0158] When the output variable violates the interval control requirements, directly correcting the output variable back to the interval may cause a large overshoot and may cause the system to oscillate for a long time. To avoid this problem and slow down the control effect, a corresponding interval trajectory can be established so that the controlled variable gradually approaches the interval along the interval trajectory. Therefore, the above constraints are modified as follows:

[0159]

[0160] ε j ≥0

[0161] in, Special treatment is performed on the upper and lower limits of the interval, and they are no longer completely unchanged trajectory upper and lower limits.

[0162] (6) After further transformation, the above optimal solution problem can be transformed into a standard QP solution problem as shown below:

[0163] min J(z k )=J y (z k )+J u (z k )+J Δu (z k )

[0164] st.

[0165]

[0166] u j,min (i)≤u j (k+i-1|k)≤u j,max (i),i=1:p,j=1:n u

[0167] Δu j,min (i)≤Δu j (k+i-1|k)≤Δu j,max (i),i=1:p,j=1:n u

[0168] ε j ≥0, j=1:n y

[0169] Among them, z k represents the QP decision vector, which is expressed as follows:

[0170]

[0171] J y (z k ) is represented as follows:

[0172]

[0173] The solutions to the other items are the same as the original optimization problem definition. A non-smooth optimization problem is transformed into a standard smooth problem, which can be solved using the QP solution algorithm. The next step is to derive the specific formula for the above problem.

[0174] Let the number of time steps be 0, then the solution for the predicted value of the next p steps can be solved by the following formula:

[0175]

[0176] The above formula can be used to set the time based on demand and solve the predicted input value at future time.

[0177] The solution matrix is:

[0178]

[0179] Further deduction yields:

[0180]

[0181] Substituting into the relevant formula, we can get the matrix representation of the constraint conditions as follows:

[0182]

[0183] Among them, the matrix M z ,M ε ,M lim ,M v ,M u , and M x They are all calculated based on the constraints of the object.

[0184] In the above embodiments, the predictive control method based on the state space model is described in detail, and the present application also provides an embodiment corresponding to the predictive control device based on the state space model. It should be noted that the present application describes the embodiments of the device part from two perspectives, one is based on the functional module perspective, and the other is based on the hardware perspective.

[0185] From the perspective of functional modules, Figure 2 A structural diagram of a predictive control device based on a state space model provided in an embodiment of the present application, such as Figure 2 As shown, the predictive control device based on the state space model includes:

[0186] An acquisition module 21 is used to acquire historical input data and historical output data of the controlled object, wherein the historical input data and historical output data are multi-dimensional matrices;

[0187] Establishing module 22, used to establish intermediate state space model and prediction output model according to historical input data and historical output data;

[0188] The prediction module 23 is used to obtain prediction input data according to the intermediate state space model, the prediction output model and the preset output parameters;

[0189] The setting module 24 is used to set the controlled object according to the predicted input data; wherein the historical input data and the historical output data are multi-dimensional vectors.

[0190] Specifically, the acquisition module 21 acquires the historical input data and historical output data of the controlled object, wherein the historical input data and historical output data are multi-dimensional matrices; the establishment module 22 establishes an intermediate state space model and a predicted output model according to the historical input data and historical output data; the prediction module 23 obtains the predicted input data according to the intermediate state space model, the predicted output model and the preset output parameters; the setting module 24 sets the controlled object according to the predicted input data; wherein the historical input data and historical output data are multi-dimensional vectors. A multi-dimensional output data includes all the output data to be detected of the current controlled object. Through the intermediate state space model and the predicted output model, a multi-dimensional vector of predicted input data corresponding to the preset output parameters of the multi-dimensional vector can be obtained. It is not necessary for each output parameter to correspond to a solution calculation containing multiple input parameters, and the amount of calculation is greatly reduced, shortening the prediction cycle. Through the predictive analysis of the controlled object, control and optimization are performed to enable it to operate smoothly and improve the product qualification rate.

[0191] In addition, the device also includes:

[0192] The expansion module is used to expand the intermediate state space model and the prediction output model according to the quantitative values ​​of the historical input data and the historical output data, and include the unmeasurable interference quantity in the intermediate state variable.

[0193] The estimation module is used to estimate each state variable in the expanded intermediate state space model and the prediction output model through the Kalman filtering algorithm to obtain the estimated value of the state variable.

[0194] The constraint module is used to convert the prediction output model into a constrained quadratic programming problem to obtain the objective function;

[0195] A solution module is used to solve the objective function according to preset constraints to obtain a target control sequence;

[0196] The setting module is also used to set the controlled object according to the target control sequence.

[0197] Since the embodiments of the apparatus part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the apparatus part, which will not be repeated here.

[0198] Figure 3 A structural diagram of another predictive control device based on a state space model provided in an embodiment of the present application, such as Figure 3 As shown, the predictive control device based on the state space model includes: a memory 30 for storing a computer program;

[0199] The processor 31 is used to implement the steps of the method for obtaining user operation habit information in the above embodiment (predictive control method based on state space model) when executing the computer program.

[0200] The predictive control device based on the state space model provided in this embodiment may include but is not limited to a smart phone, a tablet computer, a laptop computer or a desktop computer.

[0201] Among them, the processor 31 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 31 can be implemented in at least one hardware form of a digital signal processor (DSP), a field-programmable gate array (FPGA), and a programmable logic array (PLA). The processor 31 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 31 may be integrated with a graphics processing unit (GPU), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 31 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.

[0202] The memory 30 may include one or more computer-readable storage media, which may be non-transitory. The memory 30 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 30 is at least used to store the following computer program 301, wherein, after the computer program is loaded and executed by the processor 31, it can implement the relevant steps of the predictive control method based on the state-space model disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 30 may also include an operating system 302 and data 303, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 302 may include Windows, Unix, Linux, etc. Data 303 may include but is not limited to data involved in implementing the predictive control method based on the state-space model, etc.

[0203] In some embodiments, the predictive control device based on the state-space model may further include a display screen 32 , an input / output interface 33 , a communication interface 34 , a power supply 35 , and a communication bus 36 .

[0204] Those skilled in the art will understand that Figure 3 The structure shown in the figure does not constitute a limitation on the predictive control device based on the state-space model, and may include more or less components than those shown in the figure.

[0205] The predictive control device based on the state space model provided in the embodiment of the present application includes a memory and a processor. When the processor executes the program stored in the memory, it can implement the following method: based on the predictive control method of the state space model, obtain the historical input data and historical output data of the controlled object, wherein the historical input data and historical output data are multi-dimensional matrices; establish an intermediate state space model and a predictive output model according to the historical input data and historical output data; obtain the predicted input data according to the intermediate state space model, the predicted output model and the preset output parameters; and set the controlled object according to the predicted input data. A multi-dimensional output data includes all the output data to be detected of the current controlled object. Through the intermediate state space model and the predictive output model, a multi-dimensional vector of predicted input data corresponding to the preset output parameters of a multi-dimensional vector can be obtained. It is not necessary for each output parameter to correspond to a solution calculation containing multiple input parameters, and the amount of calculation is greatly reduced, shortening the prediction cycle. Through the predictive analysis of the controlled object, control and optimization are performed to enable it to operate smoothly and improve the product qualification rate.

[0206] Finally, the present application also provides an embodiment corresponding to a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps described in the above-mentioned state-space model-based predictive control method embodiment are implemented.

[0207] It is understandable that if the method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of the methods of each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0208] The computer-readable storage medium provided in this embodiment stores a computer program thereon. When the processor executes the program, the following method can be implemented: based on the predictive control method of the state space model, the historical input data and the historical output data of the controlled object are obtained, wherein the historical input data and the historical output data are multi-dimensional matrices; an intermediate state space model and a predictive output model are established according to the historical input data and the historical output data; the predicted input data are obtained according to the intermediate state space model, the predictive output model and the preset output parameters; the controlled object is set according to the predicted input data. A multi-dimensional output data includes all the output data to be detected of the current controlled object. The predicted input data of a multi-dimensional vector corresponding to the preset output parameter of a multi-dimensional vector can be obtained through the intermediate state space model and the predictive output model. It is not necessary for each output parameter to correspond to a solution calculation containing multiple input parameters, the amount of calculation is greatly reduced, the prediction cycle is shortened, and the controlled object is controlled and optimized through predictive analysis, so that it can operate smoothly and improve the product qualification rate.

[0209] The above is a detailed introduction to the predictive control method, device and medium based on the state-space model provided by the present application. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the embodiments can be referenced to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.

[0210] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

Claims

1. A predictive control method based on a state space model, characterized in that: include: Obtaining historical input data and historical output data of the controlled object, wherein the historical input data and the historical output data are multi-dimensional matrices; wherein the historical input data include: a control input vector and an input measurable disturbance vector; wherein the historical input data include: reflux ratio, tower top temperature, pressure, feed temperature, component composition, tower bottom reboiler reflux temperature, component composition, the number of plates of the overall tower, any one or more of the intermediate circulation reflux and extracted materials; the historical output data include: any one or more of the product composition, product velocity, chemical enthalpy, and heat; Establishing an intermediate state space model and a prediction output model according to the historical input data and the historical output data; Obtaining prediction input data according to the intermediate state space model, the prediction output model and preset output parameters; Setting the controlled object according to the predicted input data; Also includes: According to the quantity values ​​of the historical input data and the historical output data, the intermediate state space model and the predicted output model are expanded to include the unmeasurable interference quantity in the intermediate state variable, specifically including: When the dimension of the control input vector is smaller than the dimension of the output vector of the controlled object, the intermediate state space model and the predicted output model are expanded by input and output expansion; the expanded intermediate state space model and the expanded predicted output model are as follows: in, d is the unmeasurable disturbance; x is the intermediate state vector of the controlled object, with a dimension of n; u is the control input vector of the controlled object, with a dimension of n u ; v represents the input measurable disturbance vector of the controlled object, with a dimension of n v ; y represents the output vector of the controlled object, with a dimension of n y ; k represents the time; is a system matrix with known real constant coefficients; When the dimension of the control input vector is greater than or equal to the dimension of the output vector of the controlled object, the intermediate state space model and the predicted output model are expanded by input expansion; the expanded intermediate state space model and the expanded predicted output model are as follows: in, is a system matrix with known real constant coefficients.

2. The predictive control method based on the state space model according to claim 1, characterized in that: According to the quantitative values ​​of the historical input data and the historical output data, the intermediate state space model and the predicted output model are expanded, and after the unmeasurable interference quantity is included in the intermediate state variable, the following is further included: The Kalman filtering algorithm is used to estimate each state variable in the expanded intermediate state space model and the prediction output model to obtain estimated values ​​of the state variables.

3. The predictive control method based on the state space model according to claim 2, characterized in that: After estimating the expanded intermediate state space model and each state variable in the prediction output model by the Kalman filtering algorithm to obtain the estimated value of the state variable, the method further includes: Converting the prediction output model into a constrained quadratic programming problem to obtain an objective function; Solving the objective function according to preset constraints to obtain a target control sequence; Correspondingly, the setting of the controlled object according to the predicted input data includes: The controlled object is set according to the target control sequence.

4. The predictive control method based on the state space model according to claim 1, characterized in that: The establishing of the intermediate state space model and the prediction output model according to the historical input data and the historical output data comprises: An intermediate state space model and a prediction output model are established according to the control input vector and the input measurable disturbance vector. The intermediate state space model is as follows: x(k+1)=Ax(k)+B u u(k)+B v v(k); The prediction output model is as follows: y(k)=Cx(k)+D u u(k)+D v v(k); Wherein, x represents the intermediate state vector of the controlled object, and its dimension is n; u represents the control input vector of the controlled object, and its dimension is n u ; v represents the input measurable disturbance vector of the controlled object, with a dimension of n v ; y represents the output vector of the controlled object, and its dimension is n y , k represents the time; A, B u , B v , C, D u , D v is a system matrix with known real constant coefficients, where A∈R n×n , 5. A predictive control device based on a state space model, characterized in that: include: An acquisition module is used to acquire historical input data and historical output data of the controlled object, wherein the historical input data and the historical output data are multi-dimensional matrices; wherein the historical input data include: a control input vector and an input measurable disturbance vector; wherein the historical input data include: reflux ratio, tower top temperature, pressure, feed temperature, component composition, tower bottom reboiler reflux temperature, component composition, the number of plates of the overall tower, any one or more of the intermediate circulation reflux and extracted materials; the historical output data include: any one or more of the product composition, product velocity, chemical enthalpy, and heat; An establishment module, used to establish an intermediate state space model and a prediction output model according to the historical input data and the historical output data; A prediction module, used for obtaining prediction input data according to the intermediate state space model, the prediction output model and preset output parameters; A setting module, used for setting the controlled object according to the predicted input data; wherein the historical input data and the historical output data are multi-dimensional vectors; Also includes: According to the quantity values ​​of the historical input data and the historical output data, the intermediate state space model and the predicted output model are expanded to include the unmeasurable interference quantity in the intermediate state variable, specifically including: When the dimension of the control input vector is smaller than the dimension of the output vector of the controlled object, the intermediate state space model and the predicted output model are expanded by input and output expansion; the expanded intermediate state space model and the expanded predicted output model are as follows: in, d is the unmeasurable disturbance; x is the intermediate state vector of the controlled object, with a dimension of n; u is the control input vector of the controlled object, with a dimension of n u ; v represents the input measurable disturbance vector of the controlled object, with a dimension of n v ; y represents the output vector of the controlled object, with a dimension of n y ; k represents the time; is a system matrix with known real constant coefficients; When the dimension of the control input vector is greater than or equal to the dimension of the output vector of the controlled object, the intermediate state space model and the predicted output model are expanded by input expansion; the expanded intermediate state space model and the expanded predicted output model are as follows: in, is a system matrix with known real constant coefficients.

6. A predictive control device based on a state space model, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the state-space model-based predictive control method as described in any one of claims 1 to 4 when executing the computer program.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the predictive control method based on the state-space model as described in any one of claims 1 to 4 are implemented.