Oil-gas transmission system three-phase separator control method and device based on dynamic matrix control, medium and equipment

By using the Dynamic Matrix Control (DMC) method, a step response and prediction model is constructed to achieve precise control of the gas phase outlet flow of the three-phase separator in the oil and gas transmission system. This solves the problem of limited control effect in the existing technology and improves the accuracy and reliability of the system.

CN120949655APending Publication Date: 2025-11-14CHINA NATIONAL OFFSHORE OIL (CHINA) CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511109754.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-08
Publication Date
2025-11-14

AI Technical Summary

Technical Problem

Existing three-phase separator control methods for oil and gas transmission systems are limited in their control effectiveness when faced with complex, nonlinear, time-varying, and uncertain industrial processes, making it difficult to achieve precise control of gas phase flow.

Method used

By employing the Dynamic Matrix Control (DMC) method, a step response model and a prediction model are constructed to calculate the opening degree of the gas phase outlet valve of the three-phase separator, thereby achieving precise control of the gas phase outlet flow rate of the oil and gas transmission system.

Benefits of technology

It improves the accuracy and reliability of gas phase flow control in oil and gas transmission systems, overcomes the shortcomings of traditional PID control in complex industrial processes, and is simple and convenient to operate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120949655A_ABST
    Figure CN120949655A_ABST
Patent Text Reader

Abstract

The invention relates to an oil and gas transmission system three-phase separator control method and device based on dynamic matrix control, a medium and equipment. The method comprises the steps that a step response model and a prediction model of an oil and gas transmission system are constructed, and the prediction model predicts and outputs a prediction value through the step response model; solving the prediction model; constructing a performance index model, and performing rolling optimization; constructing a deviation model, a feedback correction model and a rolling optimization feedback correction model; setting an initial target value of the gas phase outlet flow of the three-phase separator of the oil-gas transmission system, and calculating an error between the initial target value and an actual output value through the deviation model; predicting through the prediction model, and correcting the output predicted value of the gas phase outlet flow of the three-phase separator of the oil and gas transmission system through the feedback correction model; and calculating to obtain an actual control quantity, calculating according to a new output predicted value to obtain a corrected output predicted value, and realizing repeated online rolling optimization feedback correction through a rolling optimization feedback correction model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to a control method, device, medium, and equipment for a three-phase separator in an oil and gas transmission system based on dynamic matrix control, belonging to the field of simulation technology. Background Technology

[0002] Stable operation and precise control of oil and gas transmission systems are core guarantees for efficient, safe, and environmentally friendly production in oil and gas fields. Three-phase separators, as core equipment in oil and gas transmission systems, play a crucial role in efficiently separating crude oil, natural gas, and water. Their performance not only affects the purity of crude oil and the recovery rate of natural gas but also directly relates to environmental protection and production safety. Currently, the control of three-phase separators in oil and gas transmission systems largely relies on traditional PID control strategies or simple logic control. These methods perform well when handling linear, time-invariant systems, but their control effectiveness is limited when facing the complex, nonlinear, time-varying, and highly uncertain industrial process of oil and gas transmission systems.

[0003] Dynamic Matrix Control (DMC), as an advanced predictive control strategy, has shown broad application prospects in the field of complex industrial process control due to its advantages such as low requirement for model accuracy, ability to handle multivariable coupling, and strong anti-interference capability. DMC predicts the future dynamic behavior of the system and optimizes the control input online to minimize predefined performance indicators, making it particularly suitable for handling nonlinear, time-varying, and uncertain systems such as oil and gas transmission systems. Summary of the Invention

[0004] To address the aforementioned technical problems, this invention provides a control method, device, medium, and equipment for a three-phase separator in an oil-gas transmission system based on dynamic matrix control. This method uses dynamic matrix control to accurately calculate and automatically control the opening of the gas phase outlet valve of the three-phase separator based on the current target value of the gas phase flow rate in the oil-gas transmission system, thereby ensuring that the final gas phase outlet flow rate of the oil-gas transmission system reaches the target value and improving the accuracy and reliability of the gas phase flow rate control in the oil-gas transmission system.

[0005] To achieve the above objectives, the present invention adopts the following technical solution:

[0006] A control method for a three-phase separator in an oil and gas transmission system based on dynamic matrix control includes the following steps:

[0007] A step response model and a prediction model for a three-phase separator in an oil-gas transmission system are constructed. The prediction model uses the step response model to predict the output value of the gas phase outlet flow of the three-phase separator in the oil-gas transmission system.

[0008] Construct the prediction output vector, initial prediction vector, increment vector, and dynamic matrix, and solve the prediction model;

[0009] A performance index model is constructed, and the optimal values ​​of Δu(K), Δu(K+1), ..., Δu(K+M-1) are calculated based on the performance index model to make the predicted output value of the gas phase outlet flow of the three-phase separator in the oil and gas transmission system close to the given target value at the future time P. u(K) at the current time is calculated through the optimal Δu(K), and u(K+1) is obtained by calculating Δu(K+1) at the next time through the performance index model, thus obtaining u(K+1), and rolling optimization is performed.

[0010] Construct a deviation model, a feedback correction model, and a rolling optimization feedback correction model;

[0011] Set an initial target value for the gas phase outlet flow rate of the three-phase separator in the oil-gas transmission system, and calculate the error between the initial target value and the actual output value using a deviation model.

[0012] The predicted output value of the gas phase outlet flow of the three-phase separator in the oil and gas transmission system is corrected by using a prediction model and a feedback correction model.

[0013] The actual control quantity is calculated, and the corrected output prediction value is obtained based on the new output prediction value. The rolling optimization feedback correction is repeatedly performed online through the rolling optimization feedback correction model.

[0014] The three-phase separator control method for the oil and gas transmission system based on dynamic matrix control, preferably, involves the following specific construction process for the step response model:

[0015] By applying a step input signal to the gas phase outlet valve of the three-phase separator in the oil-gas transmission system, the sampled value 'a' of the gas phase outlet flow rate of the three-phase separator in the oil-gas transmission system is recorded. i =a(iT), the step response will tend to a stable equilibrium at a certain moment tN=NT. The dynamic information of the gas phase outlet flow rate of the three-phase separator in the oil and gas transmission system is approximately represented by a finite set {a1,a2,...,a...}. N-1 ,a N To describe it, vector a = [a1, a2, ..., a2] N-1 ,a N ] T Let N be the step response model, where N is the modeling time domain and T is the matrix transpose symbol.

[0016] The three-phase separator control method for oil and gas transmission systems based on dynamic matrix control, preferably, involves the following process for constructing the prediction model:

[0017] At time K, assuming the control action remains unchanged, there is an initial prediction value y0(K+i|K) for the gas phase outlet flow of the three-phase separator of the oil and gas transmission system at N future times, i=1,...,N, where K+i|K represents the prediction at time K+i from time K;

[0018] When the increment of input u at time K is Δu(K), the increment of input u at time K+1 is Δu(K+1), and so on, the increments of input u for M consecutive times are Δu(K), Δu(K+1), Δu(K+M-1). Based on this, a prediction model for the oil and gas transmission system is constructed to predict the output value of the gas phase outlet flow rate of the three-phase separator in the oil and gas transmission system at future times.

[0019] The three-phase separator control method for the oil and gas transmission system based on dynamic matrix control, preferably, includes the following expressions for the predicted output vector, initial predicted vector, incremental vector, and dynamic matrix:

[0020] Predicted output vector: Initial prediction vector: Increment vector: Dynamic matrix:

[0021] Among them, y M (K+1|K) represents the predicted output value at time K+1 under the action of M consecutive input increments of Δu(K), ..., Δu(K+M-1) at time K; y0(K+1|K) is the initial predicted value, i = 1, ..., N, where K+1|K represents the prediction at time K+i; Δu(K) is the control increment input at time K; M is the control time domain; a1...a P-M+1 This is the sampled value of the system's unit impulse response.

[0022] The control method for the three-phase separator of the oil and gas transmission system based on dynamic matrix control, preferably, has the following expression for its performance index model:

[0023]

[0024] Where, ω P (K)=[ω P (K)+1,...,ω P (K+P)] T Q is the error weight matrix, Q = diag(q1,...,q) P R is the control weight matrix, R = diag(r1,...,r) M ).

[0025] The preferred expression for the deviation model and feedback correction model in the three-phase separator control method for the oil and gas transmission system based on dynamic matrix control is as follows:

[0026] Deviation model: e(K+1)=y(K+1)-y1(K+1|K),

[0027] Where y(K+1) is the actual output of the system, and y1(K+1|K) is the predicted output;

[0028] Feedback correction model: Y cor (K+1)=Y N1 (K)+he(K+1)

[0029] in, h is the correction vector.

[0030] The three-phase separator control method for the oil and gas transmission system based on dynamic matrix control, preferably, uses the following expression for the rolling optimization feedback correction model:

[0031] Y N0 (K+1)=SY cor (K+1)

[0032] Where S is the displacement matrix, and the rolling optimization feedback correction is repeatedly performed online through the rolling optimization feedback correction model.

[0033] A second aspect of the present invention provides a three-phase separator control device for an oil and gas transmission system based on dynamic matrix control, comprising:

[0034] The first processing unit is used to construct the step response model and prediction model of the three-phase separator of the oil and gas transmission system. The prediction model uses the step response model to predict the output value of the gas phase outlet flow of the three-phase separator of the oil and gas transmission system.

[0035] The second processing unit is used to construct the prediction output vector, the initial prediction vector, the increment vector, and the dynamic matrix, and to solve the prediction model.

[0036] The third processing unit is used to construct a performance index model, calculate the optimal values ​​of Δu(K), Δu(K+1), ..., Δu(K+M-1) based on the performance index model, so that the predicted output value of the gas phase outlet flow of the three-phase separator in the oil and gas transmission system is close to the given target value at the future time P; calculate u(K) at the current time through the optimal Δu(K), and obtain u(K+1) at the next time through the performance index model, thus performing rolling optimization;

[0037] The fourth processing unit is used to construct the deviation model, the feedback correction model, and the rolling optimization feedback correction model;

[0038] The fifth processing unit is used to set the initial target value of the gas phase outlet flow rate of the three-phase separator in the oil and gas transmission system, and to calculate the error between the initial target value and the actual output value through a deviation model.

[0039] The sixth processing unit is used to make predictions through a prediction model and correct the predicted output value of the gas phase outlet flow of the three-phase separator in the oil and gas transmission system through a feedback correction model.

[0040] The seventh processing unit is used to calculate the actual control quantity, calculate the corrected output prediction value based on the new output prediction value, and realize the rolling optimization feedback correction repeatedly online through the rolling optimization feedback correction model.

[0041] A third aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the three-phase separator control method for an oil and gas transmission system based on dynamic matrix control as described above.

[0042] A fourth aspect of the present invention provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the three-phase separator control method for oil and gas transmission system based on dynamic matrix control described above.

[0043] The present invention has the following advantages due to the adoption of the above technical solutions:

[0044] 1. The three-phase separator control method of the oil-gas transmission system of the present invention realizes the automatic control of the gas phase outlet valve of the three-phase separator according to the target value, thereby realizing the precise control of the gas phase outlet flow of the oil-gas transmission system.

[0045] 2. The three-phase separator control method for oil and gas transmission system of the present invention overcomes the problem that the control effect of traditional PID is limited when facing the complex, nonlinear, time-varying, and uncertain industrial process of oil and gas transmission system.

[0046] 3. The three-phase separator control method for the oil and gas transmission system of the present invention is simple to operate and convenient to use in the modeling process, and no additional operators are required in the actual real-time process. Attached Figure Description

[0047] Figure 1 A flowchart of the step response model and prediction model calculation method of the three-phase separator control method for an oil and gas transmission system provided in an embodiment of the present invention;

[0048] Figure 2 This is a flowchart of the rolling optimization calculation method for the three-phase separator control method of the oil and gas transmission system provided in this embodiment of the present invention;

[0049] Figure 3 The flowchart shows the dynamic matrix control calculation method of the three-phase separator control method for the oil and gas transmission system provided in this embodiment of the present invention. Detailed Implementation

[0050] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention are described clearly and completely below. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.

[0051] Unless otherwise defined, the technical or scientific terms used in this invention shall have the ordinary meaning understood by one of ordinary skill in the art to which this invention pertains. The terms "first," "second," "third," "fourth," and similar terms used in this invention do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Terms such as "comprising" or "including" mean that the element or object preceding the word encompasses the elements or objects listed following the word and their equivalents, without excluding other elements or objects. Terms such as "connected" or "linked" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect.

[0052] For ease of description, spatial relative terms may be used in the text to describe the relationship of one element or feature relative to another element or feature as shown in the figure. These relative terms include, for example, "inside," "outside," "middle," "outer," "below," "above," etc. Such spatial relative terms are intended to include different orientations of the device in use or operation, other than those depicted in the figure.

[0053] Dynamic Matrix Control (DMC), as an advanced predictive control strategy, has shown broad application prospects in the field of complex industrial process control due to its advantages such as low requirement for model accuracy, ability to handle multivariable coupling, and strong anti-interference capability. DMC predicts the future dynamic behavior of the system and optimizes the control input online to minimize predefined performance indicators, making it particularly suitable for handling nonlinear, time-varying, and uncertain systems such as oil and gas transmission systems.

[0054] To address the aforementioned technical issues, this invention provides a method, apparatus, medium, and equipment for controlling a three-phase separator in an oil-gas transmission system based on dynamic matrix control. This method uses dynamic matrix control to accurately calculate and automatically control the opening of the gas phase outlet valve of the three-phase separator based on the current target value of the gas phase flow rate in the oil-gas transmission system, thereby ensuring that the final gas phase outlet flow rate of the oil-gas transmission system reaches the target value and improving the accuracy and reliability of the gas phase flow rate control in the oil-gas transmission system.

[0055] like Figure 1 As shown, the calculation flow of the jump response model and prediction model of the three-phase separator control method for oil and gas transmission systems based on dynamic matrix control involved in this invention is as follows:

[0056] SA1: Construct a step response model and a prediction model. The prediction model uses the step response model of the oil and gas transmission system to predict the output value of the gas phase outlet flow of the three-phase separator in the oil and gas transmission system at future moments.

[0057] SA2: By applying a step input signal to the gas phase outlet valve of the three-phase separator in the oil-gas transmission system, the sampled value 'a' of the gas phase outlet flow rate of the three-phase separator in the oil-gas transmission system is recorded. i =a(iT), the oil and gas transmission system tends to a stable equilibrium at a certain moment tN=NT, and the dynamic information of the gas phase outlet flow rate can be approximately described by a finite set, vector a=[a1,a2,...,a...]. N-1 ,a N ] T This is a step response model;

[0058] SA3: At time K, assuming the control action remains unchanged, there is an initial prediction value y0(K+i|K) for the gas phase outlet flow of the three-phase separator of the oil and gas transmission system for the next N time points, i=1,...,N, where K+i|K represents the prediction at time K+i from time K.

[0059] SA4: When the increment of input u at time K is Δu(K), the increment of input u at time K+1 is Δu(K+1), and so on, the increments of input u for M consecutive times are Δu(K), Δu(K+1), Δu(K+M-1). Based on this, a prediction model for the oil and gas transmission system is constructed to predict the output value of the gas phase outlet flow rate of the oil and gas transmission system at future times.

[0060] In the specific implementation method of SA1: a step response model and a prediction model are constructed. The prediction model uses the step response model of the oil and gas transmission system to predict the output value of the gas phase outlet flow of the oil and gas transmission system at future moments.

[0061] Specifically, both the step response model and the prediction model were built using the Modelica language.

[0062] In the specific implementation method of SA2: a step input signal is given to the gas phase outlet valve of the three-phase separator of the oil-gas transmission system, and the sampled value 'a' of the gas phase outlet flow rate of the oil-gas transmission system is recorded. i =a(iT), the oil and gas transmission system tends to a stable equilibrium at a certain moment tN=NT, and the dynamic information of the gas phase outlet flow rate can be approximately described by a finite set, vector a=[a1,a2,...,a...]. N-1 ,a N ] T This is a step response model.

[0063] Specifically, sample value a i = a(iT), where T is the sampling time. The oil and gas transmission system asymptotically stabilizes at a certain time tN = NT, then the sampled value a after time TN is... N =a N+1 =a N+2 ...The dynamic information of the gas phase outlet flow rate of an oil and gas transmission system can be approximated by a finite set {a1, a2, ..., a...} N-1 ,a N To describe it, vector a = [a1, a2, ..., a2] N-1 ,a N ] T This is the step response model, which is also the model vector of the system. N is the modeling time domain, and T is the matrix transpose symbol.

[0064] In the specific implementation method of SA3: at time K, assuming that the control action remains unchanged, there is an initial predicted value y0(K+i|K) for the gas phase outlet flow of the three-phase separator of the oil and gas transmission system for the next N time points, i=1,...,N, where K+i|K represents the prediction of time K+i at time K.

[0065] In the specific implementation method of SA4: when the increment of input u at time K is Δu(K), the increment of input u at time K+1 is Δu(K+1), and so on, the increments of input u for M consecutive times are Δu(K), Δu(K+1), Δu(K+M-1). Based on this, a prediction model of the oil and gas transmission system is constructed to predict the output value of the gas phase outlet flow of the oil and gas transmission system at future times.

[0066] Specifically, the output value at future time moments is The output value at a future time is the prediction model.

[0067] Figure 2 This is a flowchart of the rolling optimization calculation method for the three-phase separator control method of the oil and gas transmission system based on dynamic matrix control provided by the present invention. The method includes:

[0068] SB1: Construct the predicted output vector, initial predicted vector, incremental vector, performance index model, and dynamic matrix, and perform rolling optimization;

[0069] SB2: Predicted output vector: Initial prediction vector: Increment vector: Dynamic matrix:

[0070]

[0071] Among them, y M (K+1|K) represents the predicted output value at time K+1 under the action of M consecutive input increments of Δu(K), ..., Δu(K+M-1) at time K; y0(K+1|K) is the initial predicted value, i = 1, ..., N, where K+1|K represents the prediction at time K+i; Δu(K) is the control increment input at time K; M is the control time domain; a1...a P-M+1 The sampled value of the system's unit impulse response. The prediction model is the predicted output vector, defined as the predicted future output value of the system at time p under M control increments at time K. The entire purpose of DMC is to make the predicted future output value as close as possible to the given expected value. The predicted output vector is a physical representation of the predicted future output value, while the prediction model is the method for calculating the predicted future output value. The initial prediction vector, increment vector, and dynamic matrix are used to solve the prediction model.

[0072] To distinguish between the prediction model and the prediction output vector, the expression is changed as follows: the prediction model is represented by a vector, Y. PM =Y P0 +AΔU M (K).

[0073] SB3: Construct a performance index model, and calculate the optimal values ​​of Δu(K), Δu(K+1), and Δu(K+M-1) based on the performance index model, so that the predicted output value of the gas phase outlet flow of the oil and gas transmission system is as close as possible to the given target value at the future time P.

[0074] SB4: Calculate u(K) at the current time using the optimal Δu(K), and calculate Δu(K+1) at the next time using the performance index model to obtain u(K+1), and perform rolling optimization.

[0075] In the specific implementation of SB1: construct the prediction output vector, initial prediction vector, incremental vector, performance index model and dynamic matrix, and perform rolling optimization.

[0076] Specifically, the predicted output vector, initial predicted vector, incremental vector, performance index model, and dynamic matrix are all built using the Modelica language.

[0077] In the specific implementation of SB3: a performance index model is constructed, and the optimal values ​​of Δu(K), Δu(K+1), and Δu(K+M-1) are calculated based on the performance index model, so that the predicted output value of the gas phase outlet flow of the oil and gas transmission system is as close as possible to the given target value at the future time P.

[0078] Specifically, constructing a performance index model Where ω P (K)=[ω P (K)+1,...,ω P (K+P)] T Q is the error weight matrix, Q = diag(q1,...,q) P R is the control weight matrix, R = diag(r1,...,r) M Based on the performance index model, calculate the optimal values ​​of Δu(K), Δu(K+1), ..., Δu(K+M-1) to ensure the predicted output value y of the gas phase outlet flow of the oil and gas transmission system. M (K+i|K) approaches the given target value ω(K+i) as close as possible to time P in the future, i=1,...,P, M and P are the control time domain and optimization time domain respectively, M≤P≤N.

[0079] In the specific implementation of SB4: u(K) at the current time is calculated through the optimal Δu(K), and Δu(K+1) is calculated through the performance index model at the next time to obtain u(K+1), and rolling optimization is performed.

[0080] Specifically, the optimal Δu(K) = d T [ω P (K)-Y P0 (K)], where d T =c T (A T QA+R) -1 A T Q,c T = [100...0], the actual control increment at time k is u(K) = u(K-1) + Δu(K), and at the next time step, Δu(K+1) is calculated through the performance index model to obtain u(K+1), and rolling optimization is performed.

[0081] Furthermore, solve ΔU M (K) Let minJ(K) be minimized to obtain the optimal ΔU. M (K), take ΔU MIf the first element of (K) is applied to the object, then the optimal Δu(K) = d T [ω P (K)-Y P0 (K)], where d T =c T (A T QA+R) -1 A T Q,c T =[1 00...0].

[0082] Furthermore, the actual control increment at time K is solved as u(K) = u(K-1) + Δu(K). At the next time step, Δu(K+1) is calculated using the performance index model, yielding u(K+1). Based on the performance index model, the optimal values ​​of Δu(K), Δu(K+1), ..., Δu(K+M-1) are calculated to ensure the predicted output value y of the gas phase outlet flow rate of the oil and gas transmission system. M (K+i|K) is optimized as close as possible to the given target value ω(K+i), i=1,...,P, through rolling optimization. M and P are the control time domain and optimization time domain, respectively, and M≤P≤N.

[0083] Figure 3 This is a flowchart of the dynamic matrix control calculation method for a three-phase separator control method for an oil and gas transmission system based on dynamic matrix control, provided by the present invention. The method includes:

[0084] SC1: Initial target value of gas phase outlet flow rate of the oil and gas transmission system y(i) = y;

[0085] SC2: Calculates the error between the initial target value and the actual output value using a deviation model;

[0086] SC3: Make predictions using a predictive model and correct the predicted values ​​using a feedback correction model;

[0087] SC4: The actual control quantity u = u + Δu is calculated;

[0088] SC5: Calculate the corrected output prediction value based on the new output prediction value, and repeatedly perform rolling optimization feedback correction online through the rolling optimization feedback correction model.

[0089] In the specific implementation of SC1: the initial target value of the gas phase outlet flow rate of the oil and gas transmission system is y(i) = y;

[0090] Specifically, a reasonable target value for the outlet flow rate should be set based on the actual conditions and operating status of the oil and gas transmission system.

[0091] In the specific implementation of SC2: the error between the initial target value and the actual output value is calculated through the deviation model;

[0092] Specifically, the deviation model is e(K+1)=y(K+1)-y1(K+1|K), where y(K+1) is the actual output of the system and y1(K+1|K) is the predicted output.

[0093] In the specific implementation of SC3: predictions are made through a prediction model and the predicted values ​​are corrected through a feedback correction model;

[0094] Specifically, the prediction model is Y represents the predicted output value of the gas phase outlet flow rate of the oil and gas transmission system at future times under the action of M input increments Δu(K), Δu(K+1), ..., Δu(K+M-1), and the feedback correction model Y. cor (K+1)=Y N1 (K)+he(K+1), where h is the correction vector.

[0095] In the specific implementation of SC4: the actual control quantity u = u + Δu is calculated;

[0096] Specifically, the optimal Δu(K) = d T [ω P (K)-Y P0 (K)], where d T =c T (A T QA+R) -1 A T Q,c T = [100...0], the actual control increment at time k is u(K) = u(K-1) + Δu(K), and the output Y for the next N times is obtained based on the optimal Δu(K). N1 (K)=Y N0 (K)+aΔu(K), where

[0097] In the specific implementation of SC5: the corrected output prediction value is obtained by calculating based on the new output prediction value, and the rolling optimization feedback correction is repeatedly performed online through the rolling optimization feedback correction model.

[0098] Specifically, the rolling optimization feedback correction model Y N0 (K+1)=SY cor (K+1), where S is the displacement matrix, and the rolling optimization feedback correction is repeatedly performed online through the rolling optimization feedback correction model.

[0099] A second aspect of the present invention provides a three-phase separator control device for an oil and gas transmission system based on dynamic matrix control, comprising:

[0100] The first processing unit is used to construct the step response model and prediction model of the three-phase separator of the oil and gas transmission system. The prediction model uses the step response model to predict the output value of the gas phase outlet flow of the three-phase separator of the oil and gas transmission system.

[0101] The second processing unit is used to construct the prediction output vector, the initial prediction vector, the increment vector, and the dynamic matrix, and to solve the prediction model.

[0102] The third processing unit is used to construct a performance index model, calculate the optimal values ​​of Δu(K), Δu(K+1), ..., Δu(K+M-1) based on the performance index model, so that the predicted output value of the gas phase outlet flow of the three-phase separator in the oil and gas transmission system is close to the given target value at the future time P; calculate u(K) at the current time through the optimal Δu(K), and obtain u(K+1) at the next time through the performance index model, thus performing rolling optimization;

[0103] The fourth processing unit is used to construct the deviation model, the feedback correction model, and the rolling optimization feedback correction model;

[0104] The fifth processing unit is used to set the initial target value of the gas phase outlet flow rate of the three-phase separator in the oil and gas transmission system, and to calculate the error between the initial target value and the actual output value through a deviation model.

[0105] The sixth processing unit is used to make predictions through a prediction model and correct the predicted output value of the gas phase outlet flow of the three-phase separator in the oil and gas transmission system through a feedback correction model.

[0106] The seventh processing unit is used to calculate the actual control quantity, calculate the corrected output prediction value based on the new output prediction value, and realize the rolling optimization feedback correction repeatedly online through the rolling optimization feedback correction model.

[0107] A third aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the three-phase separator control method for an oil and gas transmission system based on dynamic matrix control as described above.

[0108] A fourth aspect of the present invention provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the three-phase separator control method for oil and gas transmission system based on dynamic matrix control described above.

[0109] This invention is described based on flowcharts and / or block diagrams of methods, apparatus (systems), and computer program products according to specific embodiments. It should be understood that each block of the flowcharts and / or block diagrams, and combinations of blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing device, generate instructions for implementing the flowcharts and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0110] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0111] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0112] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A control method for a three-phase separator in an oil and gas transmission system based on dynamic matrix control, characterized in that, Includes the following steps: A step response model and a prediction model for a three-phase separator in an oil-gas transmission system are constructed. The prediction model uses the step response model to predict the output value of the gas phase outlet flow of the three-phase separator in the oil-gas transmission system. Construct the prediction output vector, initial prediction vector, increment vector, and dynamic matrix, and solve the prediction model; A performance index model is constructed, and the optimal values ​​of Δu(K), Δu(K+1), ..., Δu(K+M-1) are calculated based on the performance index model to make the predicted output value of the gas phase outlet flow of the three-phase separator in the oil and gas transmission system close to the given target value at the future time P. u(K) at the current time is calculated through the optimal Δu(K), and u(K+1) is obtained by calculating Δu(K+1) at the next time through the performance index model, thus obtaining u(K+1), and rolling optimization is performed. Construct a deviation model, a feedback correction model, and a rolling optimization feedback correction model; Set an initial target value for the gas phase outlet flow rate of the three-phase separator in the oil-gas transmission system, and calculate the error between the initial target value and the actual output value using a deviation model. The predicted output value of the gas phase outlet flow of the three-phase separator in the oil and gas transmission system is corrected by using a prediction model and a feedback correction model. The actual control quantity is calculated, and the corrected output prediction value is obtained based on the new output prediction value. The rolling optimization feedback correction is repeatedly performed online through the rolling optimization feedback correction model.

2. The three-phase separator control method for an oil and gas transmission system based on dynamic matrix control according to claim 1, characterized in that, The specific construction process of the step response model is as follows: By applying a step input signal to the gas phase outlet valve of the three-phase separator in the oil-gas transmission system, the sampled value 'a' of the gas phase outlet flow rate of the three-phase separator in the oil-gas transmission system is recorded. i =a(iT), the step response will tend to a stable equilibrium at a certain moment tN=NT. The dynamic information of the gas phase outlet flow rate of the three-phase separator in the oil and gas transmission system is approximately represented by a finite set {a1,a2,...,a...}. N-1 ,a N To describe it, vector a = [a1, a2, ..., a2] N-1 ,a N ] T Let N be the step response model, where N is the modeling time domain and T is the matrix transpose symbol.

3. The three-phase separator control method for an oil and gas transmission system based on dynamic matrix control according to claim 1, characterized in that, The process of building the prediction model is as follows: At time K, assuming the control action remains unchanged, there is an initial prediction value y0(K+i|K) for the gas phase outlet flow of the three-phase separator of the oil and gas transmission system at N future times, i=1,...,N, where K+i|K represents the prediction at time K+i from time K; When the increment of input u at time K is Δu(K), the increment of input u at time K+1 is Δu(K+1), and so on, the increments of input u for M consecutive times are Δu(K), Δu(K+1), Δu(K+M-1). Based on this, a prediction model for the oil and gas transmission system is constructed to predict the output value of the gas phase outlet flow rate of the three-phase separator in the oil and gas transmission system at future times.

4. The three-phase separator control method for an oil and gas transmission system based on dynamic matrix control according to claim 1, characterized in that, The expressions for the predicted output vector, initial predicted vector, increment vector, and dynamic matrix are as follows: Predicted output vector: Initial prediction vector: Increment vector: Dynamic matrix: Among them, y M (K+1|K) represents the predicted output value at time K+1 under the action of M consecutive input increments of Δu(K), ..., Δu(K+M-1) at time K; y0(K+1|K) is the initial predicted value, i = 1, ..., N, where K+1|K represents the prediction at time K+i; Δu(K) is the control increment input at time K; M is the control time domain; a1...a P-M+1 This is the sampled value of the system's unit impulse response.

5. The three-phase separator control method for an oil and gas transmission system based on dynamic matrix control according to claim 1, characterized in that, The expression for the performance index model is as follows: Where, ω P (K)=[ω P (K)+1,...,ω P (K+P)] T Q is the error weight matrix, Q = diag(q1,...,q) P R is the control weight matrix, R = diag(r1,...,r) M ).

6. The three-phase separator control method for an oil and gas transmission system based on dynamic matrix control according to claim 1, characterized in that, The expressions for the deviation model and the feedback correction model are as follows: Deviation model: e(K+1)=y(K+1)-y1(K+1|K), Where y(K+1) is the actual output of the system, and y1(K+1|K) is the predicted output; Feedback correction model: Y cor (K+1)=Y N1 (K)+he(K+1) in, h is the correction vector.

7. The three-phase separator control method for an oil and gas transmission system based on dynamic matrix control according to claim 1, characterized in that, The expression for the rolling optimization feedback correction model is as follows: Y N0 (K+1)=Y cor (K+1) Where S is the displacement matrix, and the rolling optimization feedback correction is repeatedly performed online through the rolling optimization feedback correction model.

8. A three-phase separator control device for an oil and gas transmission system based on dynamic matrix control, characterized in that, include: The first processing unit is used to construct the step response model and prediction model of the three-phase separator of the oil and gas transmission system. The prediction model uses the step response model to predict the output value of the gas phase outlet flow of the three-phase separator of the oil and gas transmission system. The second processing unit is used to construct the prediction output vector, the initial prediction vector, the increment vector, and the dynamic matrix, and to solve the prediction model. The third processing unit is used to construct a performance index model, calculate the optimal values ​​of Δu(K), Δu(K+1), ..., Δu(K+M-1) based on the performance index model, so that the predicted output value of the gas phase outlet flow of the three-phase separator in the oil and gas transmission system is close to the given target value at the future time P; calculate u(K) at the current time through the optimal Δu(K), and obtain u(K+1) at the next time through the performance index model, thus performing rolling optimization; The fourth processing unit is used to construct the deviation model, the feedback correction model, and the rolling optimization feedback correction model; The fifth processing unit is used to set the initial target value of the gas phase outlet flow rate of the three-phase separator in the oil and gas transmission system, and to calculate the error between the initial target value and the actual output value through a deviation model. The sixth processing unit is used to make predictions through a prediction model and correct the predicted output value of the gas phase outlet flow of the three-phase separator in the oil and gas transmission system through a feedback correction model. The seventh processing unit is used to calculate the actual control quantity, calculate the corrected output prediction value based on the new output prediction value, and realize the rolling optimization feedback correction repeatedly online through the rolling optimization feedback correction model.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the three-phase separator control method for oil and gas transmission system based on dynamic matrix control as described in any one of claims 1-7.

10. A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the three-phase separator control method for oil and gas transmission system based on dynamic matrix control as described in any one of claims 1-7.