CN103760931A - Oil-gas-water horizontal type three-phase separator pressure control method optimized through dynamic matrix control - Google Patents
Oil-gas-water horizontal type three-phase separator pressure control method optimized through dynamic matrix control Download PDFInfo
- Publication number
- CN103760931A CN103760931A CN201410029644.3A CN201410029644A CN103760931A CN 103760931 A CN103760931 A CN 103760931A CN 201410029644 A CN201410029644 A CN 201410029644A CN 103760931 A CN103760931 A CN 103760931A
- Authority
- CN
- China
- Prior art keywords
- mrow
- mtr
- mtd
- msub
- control
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 239000011159 matrix material Substances 0.000 title claims abstract description 62
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 title claims abstract description 41
- 238000000034 method Methods 0.000 title claims abstract description 33
- 238000005070 sampling Methods 0.000 claims description 11
- 238000012937 correction Methods 0.000 claims description 7
- 238000005259 measurement Methods 0.000 claims description 3
- 238000012545 processing Methods 0.000 claims description 3
- 230000007704 transition Effects 0.000 claims description 3
- 229920012306 M5 Rigid-Rod Polymer Fiber Polymers 0.000 claims description 2
- 239000000470 constituent Substances 0.000 claims 1
- 238000001914 filtration Methods 0.000 claims 1
- 230000001131 transforming effect Effects 0.000 claims 1
- 238000005457 optimization Methods 0.000 description 7
- 238000004519 manufacturing process Methods 0.000 description 3
- 238000013461 design Methods 0.000 description 2
- VNWKTOKETHGBQD-UHFFFAOYSA-N methane Chemical compound C VNWKTOKETHGBQD-UHFFFAOYSA-N 0.000 description 2
- 238000013480 data collection Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000007789 gas Substances 0.000 description 1
- 239000003345 natural gas Substances 0.000 description 1
- 239000003921 oil Substances 0.000 description 1
- 230000010355 oscillation Effects 0.000 description 1
- 238000005191 phase separation Methods 0.000 description 1
- 238000004886 process control Methods 0.000 description 1
- 238000007670 refining Methods 0.000 description 1
- 230000017105 transposition Effects 0.000 description 1
Landscapes
- Feedback Control In General (AREA)
Abstract
本发明公开了一种动态矩阵控制优化的油气水卧式三相分离器压力控制方法。本发明方法首先基于油气水卧式三相分离器内的压力对象的阶跃响应数据建立油气水卧式三相分离器内压力对象的模型,挖掘出基本的对象特性;然后依据动态矩阵控制的特性去整定相应PI-PD控制器的参数;最后对油气水卧式三相分离器内的压力对象实施PI-PD控制。本发明结合了PI-PD控制和动态矩阵控制的良好的控制性能,有效地提高了传统控制方法的不足。The invention discloses a dynamic matrix control optimized oil-gas-water horizontal three-phase separator pressure control method. The method of the present invention first establishes the model of the pressure object in the oil-gas-water horizontal three-phase separator based on the step response data of the pressure object in the oil-gas-water horizontal three-phase separator, and digs out the basic object characteristics; then according to the dynamic matrix control characteristics to adjust the parameters of the corresponding PI-PD controller; finally implement PI-PD control on the pressure object in the oil-gas-water horizontal three-phase separator. The invention combines the good control performance of PI-PD control and dynamic matrix control, and effectively improves the shortcomings of traditional control methods.
Description
技术领域technical field
本发明属于自动化技术领域,涉及一种基于动态矩阵控制(DMC)优化的油气水卧式三相分离器内压力比例积分-比例微分(PI-PD)控制方法。The invention belongs to the technical field of automation, and relates to a dynamic matrix control (DMC) optimization-based proportional-integral-proportional-derivative (PI-PD) control method for internal pressure of an oil-gas-water horizontal three-phase separator.
背景技术Background technique
PID控制器结构简单,控制方便,被广泛应用于各种工业控制系统中。但是,对于积分、振荡或者不稳定的控制对象,PID有时候很难满足更高的控制要求。例如,在阶跃输入时,经常产生较大的超调和振荡,这可能给生产带来安全隐患。目前,油气水卧式三相分离器压力的控制大多是采用PID控制,如果能在内环加上PD控制,先抑制其超调,外环采用PI控制,将会得到更好的生产性能。动态矩阵控制算法作为先进控制算法的一种,对模型要求很低,同时控制性能良好,如果能将动态矩阵控制和PI-PD技术结合,将能进一步提高炼油和收集天然气的效率。PID controller is simple in structure and convenient in control, and is widely used in various industrial control systems. However, for integral, oscillating or unstable control objects, PID is sometimes difficult to meet higher control requirements. For example, when the step is input, it often produces large overshoot and oscillation, which may bring safety hazards to production. At present, the pressure control of oil-gas-water horizontal three-phase separator mostly adopts PID control. If PD control can be added to the inner loop to suppress its overshoot first, and PI control is used for the outer loop, better production performance will be obtained. As one of the advanced control algorithms, the dynamic matrix control algorithm has low requirements on the model and has good control performance. If the dynamic matrix control and PI-PD technology can be combined, the efficiency of oil refining and natural gas collection will be further improved.
发明内容Contents of the invention
本发明的目的是针对现有PID控制器的不足之处,提供一种基于动态矩阵控制优化的油气水卧式三相分离器内压力的PI-PD控制方法,用来抑制超调,以便获得更好的实际控制性能。该方法通过结合动态矩阵控制和PI-PD控制,得到了一种带有动态矩阵控制性能的PI-PD控制方法。该方法不仅继承了动态矩阵控制的优良性能,同时形式简单并能满足实际工业过程的需要。The purpose of the present invention is to provide a kind of PI-PD control method of the pressure in the oil-gas-water horizontal three-phase separator based on dynamic matrix control optimization for the deficiencies of the existing PID controller, which is used to suppress overshoot, so as to obtain Better real control performance. In this method, a PI-PD control method with dynamic matrix control performance is obtained by combining dynamic matrix control and PI-PD control. This method not only inherits the excellent performance of dynamic matrix control, but also has a simple form and can meet the needs of actual industrial processes.
本发明方法首先基于油气水卧式三相分离器内的压力对象的阶跃响应数据建立油气水卧式三相分离器内压力对象的模型,挖掘出基本的对象特性;然后依据动态矩阵控制的特性去整定相应PI-PD控制器的参数;最后对油气水卧式三相分离器内的压力对象实施PI-PD控制。The method of the present invention first establishes the model of the pressure object in the oil-gas-water horizontal three-phase separator based on the step response data of the pressure object in the oil-gas-water horizontal three-phase separator, and digs out the basic object characteristics; then according to the dynamic matrix control characteristics to adjust the parameters of the corresponding PI-PD controller; finally implement PI-PD control on the pressure object in the oil-gas-water horizontal three-phase separator.
本发明的技术方案通过数据采集,建立动态矩阵、建立预测模型、预测机理、优化等手段,确立了一种基于动态矩阵控制优化的PI-PD控制方法,利用该方法可有效抑制超调并提高系统的稳定性。The technical scheme of the present invention establishes a PI-PD control method based on dynamic matrix control optimization through data collection, establishment of dynamic matrix, establishment of prediction model, prediction mechanism, optimization, etc., which can effectively suppress overshoot and improve System stability.
本发明方法的步骤包括:The steps of the inventive method comprise:
步骤(1).通过过程对象的实时阶跃响应数据建立被控对象的模型,具体方法是:Step (1). Establish the model of the controlled object through the real-time step response data of the process object, the specific method is:
a.给被控对象一个阶跃输入信号,记录被控对象的阶跃响应曲线。a. Give the controlled object a step input signal, and record the step response curve of the controlled object.
b.将a步骤得到的阶跃响应曲线进行滤波处理,然后拟合成一条光滑曲线,记录光滑曲线上每个采样时刻对应的阶跃响应数据,第一个采样时刻为Ts,相邻两个采样时刻间隔的时间为Ts,采样时刻顺序为Ts、2Ts、3Ts……;被控对象的阶跃响应将在某一个时刻tN=NT后趋于平稳,当ai(i>N)与aN的误差和测量误差有相同的数量级时,即可认为aN近似等于阶跃响应的稳态值。建立对象的模型向量a:b. Filter the step response curve obtained in step a, then fit it into a smooth curve, and record the step response data corresponding to each sampling time on the smooth curve. The first sampling time is T s , and two adjacent The time interval between each sampling moment is T s , and the order of sampling moments is T s , 2T s , 3T s ...; the step response of the controlled object will tend to be stable after a certain moment t N = NT, when a i ( When i>N) has the same order of magnitude as the error of a N and the measurement error, it can be considered that a N is approximately equal to the steady-state value of the step response. Build the model vector a of the object:
a=[a1,a2,…aN]Τ a=[a 1 ,a 2 ,…a N ] Τ
其中Τ为矩阵的转置符号,ai是过程对象阶跃响应的数据,N为建模时域。where T is the transpose symbol of the matrix, a i is the data of the step response of the process object, and N is the modeling time domain.
步骤(2).设计被控对象的PIPD控制器,具体方法是:Step (2). Design the PIPD controller of the controlled object, the specific method is:
a.建立被控对象的动态矩阵a. Establish the dynamic matrix of the controlled object
利用步骤(1)b获得的模型向量a,建立被控对象的动态控制矩阵,其形式如下:Using the model vector a obtained in step (1)b, establish the dynamic control matrix of the controlled object, and its form is as follows:
其中,A是被控对象的P×M阶动态矩阵,P为动态矩阵控制算法的优化时域,M为动态矩阵控制算法的控制时域,M<P<N。Among them, A is the P×M order dynamic matrix of the controlled object, P is the optimization time domain of the dynamic matrix control algorithm, M is the control time domain of the dynamic matrix control algorithm, M<P<N.
b.计算被控对象当前k时刻的模型预测初始响应值yM(k)b. Calculate the model-predicted initial response value y M (k) of the controlled object at the current moment k
①.计算k-1时刻加入控制增量Δu(k-1)后的模型预测值yp(k-1):①. Calculate the model prediction value y p (k-1) after adding the control increment Δu(k-1) at time k-1:
yP(k-1)=yM(k-1)+A0Δu(k-1)y P (k-1)=y M (k-1)+A 0 Δu(k-1)
其中,in,
y1(k|k-1),y1(k+1|k-1),…,y1(k+N-1|k-1)分别表示被控对象在k-1时刻对k,k+1,…,k+N-1时刻加入控制增量Δu(k-1)后的模型预测值,y0(k|k-1),y0(k|k-1),…y0(k+N-1|k-1)表示k-1时刻对k,k+1,…,k+N-1时刻的初始预测值,A0为阶跃响应数据建立的矩阵,Δu(k-1)为k-1时刻的输入控制增量。y 1 (k|k-1), y 1 (k+1|k-1),…, y 1 (k+N-1|k-1) represent the controlled object’s response to k, k+1,...,k+N-1 time adding control increment Δu(k-1) model prediction value, y 0 (k|k-1), y 0 (k|k-1),...y 0 (k+N-1|k-1) represents the initial prediction value of time k-1 for k, k+1,...,k+N-1 time, A 0 is the matrix established by the step response data, Δu( k-1) is the input control increment at time k-1.
②.计算k时刻被控对象的模型预测误差值e(k):②. Calculate the model prediction error value e(k) of the controlled object at time k:
ess(k)=y(k)-y1(k|k-1)ess(k)=y(k)-y 1 (k|k-1)
其中,y(k)表示k时刻测得的被控对象的实际输出值,y1(k|k-1)表示加入了控制增量Δu(k-1)后,被控对象在k-1时刻对k时刻的模型预测值。Among them, y(k) indicates the actual output value of the controlled object measured at time k, and y 1 (k|k-1) indicates that after adding the control increment Δu(k-1), the controlled object is at k-1 time-to-k time model predictions.
③.计算k时刻模型输出的修正值ycor(k):③. Calculate the corrected value y cor (k) of the model output at time k:
ycor(k)=yM(k-1)+h*ess(k)y cor (k)=y M (k-1)+h*ess(k)
其中,in,
ycor(k|k),ycor(k+1|k),…ycor(k+N-1|k)分别表示被控对象在k时刻预测模型的修正值,h为误差补偿的权矩阵,α为误差校正系数。y cor (k|k), y cor (k+1|k), ... y cor (k+N-1|k) respectively represent the correction value of the forecast model of the controlled object at time k, and h is the weight of error compensation Matrix, α is the error correction coefficient.
④.计算k时刻的模型预测的初始响应值yM(k):④. Calculate the initial response value y M (k) predicted by the model at time k:
yM(k)=Sycor(k)y M (k) = Sy cor (k)
其中,S为N×N阶的状态转移矩阵,Among them, S is the state transition matrix of order N×N,
c.计算被控对象在M个连续的控制增量Δu(k),…,Δu(k+M-1)下的预测输出值yPM,具体方法是:c. Calculate the predicted output value y PM of the controlled object under M continuous control increments Δu(k),...,Δu(k+M-1), the specific method is:
yPM(k)=yp0(k)+AΔuM(k)y PM (k) = y p0 (k) + AΔu M (k)
其中,in,
yM(k+1|k),yM(k+2|k),…,yM(k+P|k)为k时刻对k+1,k+2,…,k+P时刻的模型预测输出值,y0(k+1|k),y0(k+2|k-1),…y0(k+N|k)表示k时刻对k+1,k+2,…k+P时刻的初始预测值。y M (k+1|k), y M (k+2|k),…, y M (k+P|k) are time k to k+1, k+2,…,k+P Model predicted output value, y 0 (k+1|k), y 0 (k+2|k-1),…y 0 (k+N|k) means k+1, k+2,… The initial predicted value at time k+P.
d.令被控对象的控制时域M=1,选取被控对象的目标函数J(k),J(k)形式如下:d. Make the control time domain of the controlled object M=1, select the objective function J(k) of the controlled object, and the form of J(k) is as follows:
ref(k)=[ref1(k),ref2(k),…,refP(k)]Τ ref(k)=[ref 1 (k), ref 2 (k),...,ref P (k)] Τ
Q=diag(q1,q2,…qP)Q=diag(q 1 ,q 2 ,…q P )
r=diag(r1,r2,…rM)r=diag(r 1 ,r 2 ,…r M )
refi(k)=βiy(k)+(1-βi)c(k)ref i (k)=β i y(k)+(1-β i )c(k)
其中,Q为误差加权矩阵,q1,q2,…,qP为加权矩阵的加权系数;β为柔化系数,c(k)为过程对象的设定值;r为控制加权矩阵,r1,r2,…rM为控制加权矩阵的加权系数,ref(k)为系统的参考轨迹,refi(k)为参考轨迹中第i个参考点的值。Among them, Q is the error weighting matrix, q 1 , q 2 ,…,q P are the weighting coefficients of the weighting matrix; β is the softening coefficient, c(k) is the set value of the process object; r is the control weighting matrix, r 1 ,r 2 ,…r M are the weighting coefficients of the control weighting matrix, ref(k) is the reference trajectory of the system, and ref i (k) is the value of the i-th reference point in the reference trajectory.
e.将控制量u(k)进行变换:e. Transform the control quantity u(k):
e(k)=c(k)-y(k)e(k)=c(k)-y(k)
u(k)=u(k-1)+Kp(k)(e(k)-e(k-1))+Ki(k)e(k)-Kf(k)(y(k)-y(k-1)-Kd(y(k)-2y(k-1)+y(k-2))=u(k-1)+Kp(k)(e(k)-e(k-1))+Ki(k)e(k)-Kf(k)(y(k)-y(k-1)-Kd(y(k)-y(k-1))+Kd(y(k-1)-y(k-2))u(k)=u(k-1)+K p (k)(e(k)-e(k-1))+K i (k)e(k)-K f (k)(y(k )-y(k-1)-Kd(y(k)-2y(k-1)+y(k-2))=u(k-1)+K p (k)(e(k)-e (k-1))+K i (k)e(k)-K f (k)(y(k)-y(k-1)-Kd(y(k)-y(k-1))+ Kd(y(k-1)-y(k-2))
将u(k)进一步处理,可得By further processing u(k), we can get
u(k)=u(k-1)+w(k)ΤE(k)u(k)=u(k-1)+w(k) Τ E(k)
其中,in,
w(:,k)=[Kp(k)+Ki(k),-Kp(k),-Kf(k)-Kd(k),Kd(k)]Τ w(:,k)=[ Kp (k)+Ki( k ),- Kp (k),- Kf (k) -Kd (k), Kd (k)] Τ
E(k)=(e(k),e(k-1),y(k)-y(k-1),y(k-1)-y(k-2))Τ E(k)=(e(k), e(k-1), y(k)-y(k-1), y(k-1)-y(k-2)) Τ
Kp(k)、Ki(k)、Kf(k)、Kd(k)分别为k时刻PI-PD控制器外环的比例、外环的积分、内环的比例、内环的微分参数,e(k)为k时刻参考轨迹值与实际输出值之间的误差,Τ为矩阵的转置符号,w(:,k)为四行k列矩阵。Kp(k), K i (k), K f (k), K d (k) are the proportion of the outer loop of the PI-PD controller at time k, the integral of the outer loop, the proportion of the inner loop, and the differential of the inner loop Parameters, e(k) is the error between the reference trajectory value and the actual output value at time k, Τ is the transpose symbol of the matrix, and w(:,k) is a matrix with four rows and k columns.
f.将u(k)代入到步骤d中的目标函数求解PI-PD控制器中的参数,可得:f. Substituting u(k) into the objective function in step d to solve the parameters in the PI-PD controller, we can get:
进一步可以得到:Further can get:
Kp(k)=w(1,k)+w(2,k) Kp (k)=w(1,k)+w(2,k)
Ki(k)=-w(2,k) Ki (k)=-w(2,k)
Kf(k)=-w(3,k)-w(4,k)K f (k)=-w(3,k)-w(4,k)
Kd(k)=w(4,k)K d (k)=w(4,k)
g.得到PI-PD控制器的参数Kp(k)、Ki(k)、Kf(k)、Kd(k)以后构成控制量u(k)作用于被控对象g. After obtaining the parameters K p (k), K i (k), K f (k), and K d (k) of the PI-PD controller, the control quantity u(k) acts on the controlled object
u(k)=u(k-1)+Kp(k)(e(k)-e(k-1))+Ki(k)e(k)-Kf(k)(y(k)-y(k-1)-Kd(y(k)-2y(k-1)+y(k-2))。u(k)=u(k-1)+K p (k)(e(k)-e(k-1))+K i (k)e(k)-K f (k)(y(k )-y(k-1)-K d (y(k)-2y(k-1)+y(k-2)).
h.在下一时刻,依照b到g中的步骤继续求解PI-PD控制器新的参数kP(k+1)、ki(k+1)、kf(k+1)、kd(k+1)的值,依次循环。h. At the next moment, continue to solve the new parameters k P (k+1), ki (k+1), k f (k+1), k d ( The value of k+1) is cycled in turn.
本发明提出了一种基于动态矩阵控制优化的油气水卧式三相分离器内压力的PI-PD控制方法,该方法结合了PI-PD控制和动态矩阵控制的良好的控制性能,有效地提高了传统控制方法的不足,同时也促进了先进控制算法的发展与应用。The present invention proposes a PI-PD control method for internal pressure of an oil-gas-water horizontal three-phase separator based on dynamic matrix control optimization. The method combines the good control performance of PI-PD control and dynamic matrix control to effectively improve the It overcomes the shortcomings of traditional control methods, and also promotes the development and application of advanced control algorithms.
具体实施方式Detailed ways
以油气水卧式三相分离器内压力的过程控制为例:Take the process control of the internal pressure of the oil-gas-water horizontal three-phase separator as an example:
油气水卧式三相分离器内压力的控制是一滞后过程,调节手段采用控制沉降室内排气阀阀门的开度。The control of the internal pressure of the oil-gas-water horizontal three-phase separator is a lagging process, and the adjustment means is to control the opening of the exhaust valve in the settling chamber.
步骤(1).通过油气水卧式三相分离器内压力对象的实时阶跃响应数据建立被控对象的模型,具体方法是:Step (1). Establish the model of the controlled object by the real-time step response data of the pressure object in the oil-gas-water horizontal three-phase separator, the specific method is:
a.给油气水卧式三相分离器一个阶跃输入信号,记录其阶跃响应曲线。a. Give a step input signal to the oil-gas-water horizontal three-phase separator, and record its step response curve.
b.将对应的阶跃响应曲线进行滤波处理,然后拟合成一条光滑曲线,记录光滑曲线上每个采样时刻对应的阶跃响应数据,第一个采样时刻为Ts,相邻两个采样时刻间隔的时间为Ts,采样时刻顺序为Ts、2Ts、3Ts……;响应将在某一个时刻tN=NT后趋于平稳,当ai(i>N)与aN的误差和测量误差有相同的数量级时,即可认为aN近似等于阶跃响应的稳态值。建立油气水卧式三相分离器内压力对象的模型向量a:b. Filter the corresponding step response curve, and then fit it into a smooth curve, record the step response data corresponding to each sampling time on the smooth curve, the first sampling time is T s , two adjacent samples The time interval between moments is T s , and the sequence of sampling moments is T s , 2T s , 3T s . When the error and the measurement error have the same order of magnitude, it can be considered that a N is approximately equal to the steady-state value of the step response. Establish the model vector a of the pressure object in the oil-gas-water horizontal three-phase separator:
a=[a1,a2,…aN]Τ a=[a 1 ,a 2 ,…a N ] Τ
其中Τ为矩阵的转置符号,ai是油气水卧式三相分离器沉降室内压力的阶跃响应的数据,N为建模时域。Where Τ is the transposition symbol of the matrix, a i is the data of the step response of the pressure in the settling chamber of the oil-gas-water horizontal three-phase separator, and N is the modeling time domain.
步骤(2).设计油气水卧式三相分离器内压力的PI-PD控制器,具体方法是:Step (2). Design the PI-PD controller of the internal pressure of the oil-gas-water horizontal three-phase separator, the specific method is:
a.利用步骤(1)b获得的模型向量a建立油气水卧式三相分离器内压力的动态矩阵,其形式如下:A. utilize the model vector a that step (1) b obtains to establish the dynamic matrix of pressure in the oil-gas-water horizontal three-phase separator, its form is as follows:
其中,A是油气水卧式三相分离器内压力的P×M阶动态矩阵,P为动态矩阵控制算法的优化时域,M为动态矩阵控制算法的控制时域,M<P<N。Among them, A is the P×M order dynamic matrix of the internal pressure of the oil-gas-water horizontal three-phase separator, P is the optimization time domain of the dynamic matrix control algorithm, M is the control time domain of the dynamic matrix control algorithm, and M<P<N.
b.建立油气水卧式三相分离器内压力在当前k时刻的初始模型预测值yM(k)b. Establish the initial model prediction value y M (k) of the internal pressure of the oil-gas-water horizontal three-phase separator at the current moment k
①.计算k-1时刻加入控制增量Δu(k-1)后油气水卧式三相分离器内压力的模型预测值yp(k-1):①. Calculate the model prediction value y p (k-1) of the internal pressure of the oil-gas-water horizontal three-phase separator after adding the control increment Δu(k-1) at time k-1:
yP(k-1)=yM(k-1)+A0Δu(k-1)y P (k-1)=y M (k-1)+A 0 Δu(k-1)
其中,in,
y1(k|k-1),y1(k+1|k-1),…,y1(k+N-1|k-1)分别表示油气水卧式三相分离器内压力在k-1时刻对k,k+1,…,k+N-1时刻加入Δu(k-1)后的模型预测值,y0(k|k-1),y0(k|k-1),…y0(k+N-1|k-1)表示油气水卧式三相分离器内压力在k-1时刻对k,k+1,…,k+N-1时刻的初始预测值,A0为由油气水卧式三相分离器沉降室内压力阶跃响应数据建立的矩阵,Δu(k-1)为k-1时刻油气水卧式三相分离器内排气阀阀门开度的控制增量。y 1 (k|k-1), y 1 (k+1|k-1),…, y 1 (k+N-1|k-1) represent the pressure in the oil-gas-water horizontal three-phase separator respectively The predicted value of the model after adding Δu(k-1) to k, k+1,..., k+N-1 time at k-1 time, y 0 (k|k-1), y 0 (k|k-1 ),…y 0 (k+N-1|k-1) represents the initial prediction of the internal pressure of the oil-gas-water horizontal three-phase separator at k-1 time to k,k+1,…,k+N-1 time A 0 is the matrix established from the pressure step response data in the settling chamber of the oil-gas-water horizontal three-phase separator, Δu(k-1) is the opening of the exhaust valve in the oil-gas-water horizontal three-phase separator at time k-1 degree of control increments.
②.计算k时刻油气水卧式三相分离器内压力的模型预测误差值ess(k):②. Calculate the model prediction error value ess(k) of the internal pressure of the oil-gas-water horizontal three-phase separator at time k:
ess(k)=y(k)-y1(k|k-1)ess(k)=y(k)-y 1 (k|k-1)
其中,y(k)表示k时刻测得的油气水卧式三相分离器内压力的实际输出值,y1(k|k-1)表示加入了控制增量Δu(k-1)后,油气水卧式三相分离器内压力在k-1时刻对k时刻的模型预测值。Among them, y(k) represents the actual output value of the internal pressure of the oil-gas-water horizontal three-phase separator measured at time k, and y 1 (k|k-1) represents that after adding the control increment Δu(k-1), The model prediction value of the internal pressure of the oil-gas-water horizontal three-phase separator at time k-1 versus time k.
③.计算k时刻油气水卧式三相分离器内的压力模型输出的修正值ycor(k):③. Calculate the correction value y cor (k) output by the pressure model in the oil-gas-water horizontal three-phase separator at time k:
ycor(k)=yM(k-1)+h*ess(k)y cor (k)=y M (k-1)+h*ess(k)
其中,in,
ycor(k|k),ycor(k+1|k),…ycor(k+N-1|k)分别表示油气水卧式三相分离器内的压力在k时刻模型的修正值,h为误差补偿的权矩阵,α为误差校正系数。y cor (k|k), y cor (k+1|k), ... y cor (k+N-1|k) respectively represent the correction value of the pressure in the oil-gas-water horizontal three-phase separator at time k , h is the weight matrix of error compensation, and α is the error correction coefficient.
④.计算油气水卧式三相分离器内的压力在k时刻的模型预测初始响应值yM(k):④. Calculate the model-predicted initial response value y M (k) of the pressure in the oil-gas-water horizontal three-phase separator at time k:
yM(k)=Sycor(k)y M (k) = Sy cor (k)
其中,S为N×N阶的状态转移矩阵,Among them, S is the state transition matrix of order N×N,
c.计算油气水卧式三相分离器内的压力在M个连续的控制增量Δu(k),…,Δu(k+M-1)下的预测输出值yPM,具体方法是:c. Calculate the predicted output value y PM of the pressure in the oil-gas-water horizontal three-phase separator under M continuous control increments Δu(k),...,Δu(k+M-1), the specific method is:
yPM(k)=yP0(k)+AΔuM(k)y PM (k) = y P0 (k) + AΔu M (k)
其中,in,
yP0(k)是yM(k)的前P项,yM(k+1|k),yM(k+2|k),…,yM(k+P|k)为油气水卧式三相分离器内的压力在k时刻对k+1,k+2,…,k+P时刻的模型预测输出值。y P0 (k) is the first P item of y M (k), y M (k+1|k), y M (k+2|k),…, y M (k+P|k) are oil, gas and water The pressure in the horizontal three-phase separator at time k is the output value of the model prediction at time k+1, k+2,...,k+P.
d.令控制时域M=1,并选取油气水卧式三相分离器内压力的目标函数J(k),J(k)形式如下:d. Make the control time domain M=1, and select the objective function J(k) of the internal pressure of the oil-gas-water horizontal three-phase separator, and the form of J(k) is as follows:
ref(k)=[ref1(k),ref2(k),…,refP(k)]Τ ref(k)=[ref 1 (k), ref 2 (k),...,ref P (k)] Τ
Q=diag(q1,q2,…qP)Q=diag(q 1 ,q 2 ,…q P )
r=diag(r1,r2,…rM)r=diag(r 1 ,r 2 ,…r M )
refi(k)=βiy(k)+(1-βi)c(k)ref i (k)=β i y(k)+(1-β i )c(k)
其中,Q为误差加权矩阵,q1,q2,…,qP为误差加权矩阵的加权系数;β为柔化系数,c(k)为油气水卧式三相分离器内压力的设定值;r=diag(r1,r2,…rM)为控制加权矩阵,r1,r2,…rM为控制加权矩阵的加权系数;ref(k)为k时刻油气水卧式三相分离器内压力的参考轨迹,refi(k)为参考轨迹中第i个参考点的值。Among them, Q is the error weighting matrix, q 1 , q 2 ,…,q P are the weighting coefficients of the error weighting matrix; β is the softening coefficient, and c(k) is the internal pressure setting of the oil-gas-water horizontal three-phase separator value; r=diag(r 1 , r 2 ,...r M ) is the control weight matrix, r 1 , r 2 ,...r M is the weighting coefficient of the control weight matrix; ref(k) is the oil-gas-water horizontal formula three The reference trajectory of the pressure in the phase separator, ref i (k) is the value of the ith reference point in the reference trajectory.
e.将油气水卧式三相分离器内排气阀阀门开度的控制量u(k)进行变换:e. Transform the control value u(k) of the valve opening of the exhaust valve in the oil-gas-water horizontal three-phase separator:
e(k)=c(k)-y(k)e(k)=c(k)-y(k)
u(k)=u(k-1)+Kp(k)(e(k)-e(k-1))+Ki(k)e(k)-Kf(k)(y(k)-y(k-1)-Kd(y(k)-2y(k-1)+y(k-2))=u(k-1)+Kp(k)(e(k)-e(k-1))+Ki(k)e(k)-Kf(k)(y(k)-y(k-1)-Kd(y(k)-y(k-1))+Kd(y(k-1)-y(k-2))u(k)=u(k-1)+K p (k)(e(k)-e(k-1))+K i (k)e(k)-K f (k)(y(k )-y(k-1)-Kd(y(k)-2y(k-1)+y(k-2))=u(k-1)+K p (k)(e(k)-e (k-1))+K i (k)e(k)-K f (k)(y(k)-y(k-1)-Kd(y(k)-y(k-1))+ Kd(y(k-1)-y(k-2))
将u(k)进一步处理,可得By further processing u(k), we can get
u(k)=u(k-1)+w(k)ΤE(k)u(k)=u(k-1)+w(k) Τ E(k)
其中,in,
w(:,k)=[Kp(k)+Ki(k),-Kp(k),-Kf(k)-Kd(k),Kd(k)]w(:,k)=[K p (k)+K i (k),-K p (k),-K f (k)-K d (k),K d (k)]
E(k)=(e(k),e(k-1),y(k)-y(k-1),y(k-1)-y(k-2))Τ E(k)=(e(k), e(k-1), y(k)-y(k-1), y(k-1)-y(k-2)) Τ
Kp(k)、Ki(k)、Kf(k)、Kd(k)分别为PI-PD控制器外环的比例、外环的积分、内环的比例、内环的微分参数,e(k)为k时刻参考轨迹值与实际输出值之间的误差,Τ为矩阵的转置符号,w(:,k)为四行k列矩阵。Kp(k), K i (k), K f (k), and K d (k) are the ratio of the outer loop of the PI-PD controller, the integral of the outer loop, the ratio of the inner loop, and the differential parameters of the inner loop, respectively, e(k) is the error between the reference trajectory value and the actual output value at time k, Τ is the transpose symbol of the matrix, and w(:,k) is a matrix with four rows and k columns.
f.将u(k)代入到步骤d中的目标函数中,求解PI-PD控制器中的参数,可得:f. Substituting u(k) into the objective function in step d, and solving the parameters in the PI-PD controller, we can get:
进一步可以得到:Further can get:
Kp(k)=w(1,k)+w(2,k) Kp (k)=w(1,k)+w(2,k)
Ki(k)=-w(2,k) Ki (k)=-w(2,k)
Kf(k)=-w(3,k)-w(4,k)K f (k)=-w(3,k)-w(4,k)
Kd(k)=w(4,k)K d (k)=w(4,k)
g.得到PI-PD控制器的参数Kp(k)、Ki(k)、Kf(k)、Kd(k)以后构成控制量u(k)作用于油气水卧式三相分离器g. After obtaining the parameters K p (k), K i (k), K f (k), and K d (k) of the PI-PD controller, the control quantity u (k) acts on the oil-gas-water horizontal three-phase separation device
u(k)=u(k-1)+Kp(k)(e(k)-e(k-1))+Ki(k)e(k)-Kf(k)(y(k)-y(k-1)-Kd(y(k)-2y(k-1)+y(k-2))u(k)=u(k-1)+K p (k)(e(k)-e(k-1))+K i (k)e(k)-K f (k)(y(k )-y(k-1)-Kd(y(k)-2y(k-1)+y(k-2))
h.在下一时刻,依照b到g中的步骤继续求解PI-PD控制器新的参数kP(k+1)、ki(k+1)、kf(k+1)、kd(k+1)的值,作用于被控对象,并依次循环。h. At the next moment, continue to solve the new parameters k P (k+1), ki (k+1), k f (k+1), k d ( The value of k+1) acts on the controlled object and cycles in turn.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410029644.3A CN103760931B (en) | 2014-01-22 | 2014-01-22 | The oil gas water horizontal three-phase separator compress control method that dynamic matrix control optimizes |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410029644.3A CN103760931B (en) | 2014-01-22 | 2014-01-22 | The oil gas water horizontal three-phase separator compress control method that dynamic matrix control optimizes |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103760931A true CN103760931A (en) | 2014-04-30 |
CN103760931B CN103760931B (en) | 2016-09-14 |
Family
ID=50528185
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410029644.3A Active CN103760931B (en) | 2014-01-22 | 2014-01-22 | The oil gas water horizontal three-phase separator compress control method that dynamic matrix control optimizes |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103760931B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105955014A (en) * | 2016-05-11 | 2016-09-21 | 杭州电子科技大学 | Method for controlling coke furnace chamber pressure based on distributed dynamic matrix control optimization |
CN106444388A (en) * | 2016-12-06 | 2017-02-22 | 杭州电子科技大学 | Distributed PID type dynamic matrix control method for furnace pressure of coke furnace |
CN109581870A (en) * | 2018-11-27 | 2019-04-05 | 中国工程物理研究院化工材料研究所 | The temperature in the kettle dynamic matrix control method of energetic material reaction kettle |
CN113041652A (en) * | 2021-03-17 | 2021-06-29 | 中国海洋石油集团有限公司 | Oil-gas separator and pressure setting method thereof |
CN113359460A (en) * | 2021-06-24 | 2021-09-07 | 杭州司南智能技术有限公司 | Integral object control method for constrained dynamic matrix control optimization |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB9212122D0 (en) * | 1992-06-09 | 1992-07-22 | Technolog Ltd | Water supply pressure control apparatus |
CN2455329Y (en) * | 2000-11-23 | 2001-10-24 | 中国石化集团河南石油勘探局勘察设计研究院 | Three phase separator for oil, gas and water |
US10260329B2 (en) * | 2006-05-25 | 2019-04-16 | Honeywell International Inc. | System and method for multivariable control in three-phase separation oil and gas production |
CN201143393Y (en) * | 2007-11-20 | 2008-11-05 | 中国石油天然气集团公司 | Low-multiple hypergravity oil, gas and water three-phase separator |
CN101457264B (en) * | 2008-12-29 | 2010-07-21 | 杭州电子科技大学 | Blast furnace temperature optimization control method |
CN103116283A (en) * | 2013-01-18 | 2013-05-22 | 杭州电子科技大学 | Method for controlling dynamic matrix of non-self-balance object |
CN103389746B (en) * | 2013-07-19 | 2016-04-13 | 杭州电子科技大学 | The waste plastic oil-refining pyrolysis furnace hearth pressure control method that Predictive function control is optimized |
-
2014
- 2014-01-22 CN CN201410029644.3A patent/CN103760931B/en active Active
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105955014A (en) * | 2016-05-11 | 2016-09-21 | 杭州电子科技大学 | Method for controlling coke furnace chamber pressure based on distributed dynamic matrix control optimization |
CN106444388A (en) * | 2016-12-06 | 2017-02-22 | 杭州电子科技大学 | Distributed PID type dynamic matrix control method for furnace pressure of coke furnace |
CN109581870A (en) * | 2018-11-27 | 2019-04-05 | 中国工程物理研究院化工材料研究所 | The temperature in the kettle dynamic matrix control method of energetic material reaction kettle |
CN109581870B (en) * | 2018-11-27 | 2022-01-25 | 中国工程物理研究院化工材料研究所 | Dynamic matrix control method for temperature in energetic material reaction kettle |
CN113041652A (en) * | 2021-03-17 | 2021-06-29 | 中国海洋石油集团有限公司 | Oil-gas separator and pressure setting method thereof |
CN113359460A (en) * | 2021-06-24 | 2021-09-07 | 杭州司南智能技术有限公司 | Integral object control method for constrained dynamic matrix control optimization |
Also Published As
Publication number | Publication date |
---|---|
CN103760931B (en) | 2016-09-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103760931B (en) | The oil gas water horizontal three-phase separator compress control method that dynamic matrix control optimizes | |
CN105334736B (en) | A kind of temperature control method for heating furnace of fractional model PREDICTIVE CONTROL | |
CN103116283A (en) | Method for controlling dynamic matrix of non-self-balance object | |
CN102890446A (en) | Design method for IMC-PID (Internal Mode Control-Proportion Integration Differentiation) controller of non-square time delay system | |
Zhao et al. | IMC-PID tuning method based on sensitivity specification for process with time-delay | |
CN100462877C (en) | Decoupling control methods for non-cubic systems in industrial processes | |
CN103616815B (en) | The waste plastic oil-refining pyrolyzer fire box temperature control method that dynamic matrix control is optimized | |
CN105892296B (en) | A kind of fractional order dynamic matrix control method of industry heating furnace system | |
CN103605284B (en) | The cracking waste plastics stove hearth pressure control method that dynamic matrix control is optimized | |
CN104932579A (en) | A CO2 supercritical extraction temperature fractional PID control method | |
CN106054596B (en) | It is a kind of that setting method is optimized based on the PID controller parameter for improving performance indicator | |
CN103529706A (en) | Method for controlling error to be converged in fixed time | |
CN109100935A (en) | The damping wisdom PI control method of Correction for Large Dead Time System | |
CN106483853A (en) | The fractional order distributed dynamic matrix majorization method of Heat Loss in Oil Refining Heating Furnace furnace pressure | |
CN106338915A (en) | Extended state space predictive function control based integral object control method | |
CN103389746A (en) | Prediction function control optimized control method for furnace pressure of waste plastic oil refining cracking furnace | |
CN109507870B (en) | Structure-adaptive fractional order proportional integral or proportional differential controller design method | |
CN106200379B (en) | A kind of distributed dynamic matrix majorization method of Nonself-regulating plant | |
CN106896786B (en) | A time-delay process ADRC-PD compensation control system and method | |
CN103345150A (en) | Waste plastic oil refining cracking furnace box temperature control method with optimized forecasting function control | |
CN104881512A (en) | Particle swarm optimization-based automatic design method of ripple-free deadbeat controller | |
CN107065541A (en) | A kind of system ambiguous network optimization PID PFC control methods of coking furnace furnace pressure | |
CN104317321A (en) | Coking furnace hearth pressure control method based on state-space predictive functional control optimization | |
CN105955014A (en) | Method for controlling coke furnace chamber pressure based on distributed dynamic matrix control optimization | |
CN103605381B (en) | The fractionating column liquid level controlling method that dynamic matrix control optimizes |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |