Вы находитесь на странице: 1из 12

Hindawi

Journal of Control Science and Engineering


Volume 2019, Article ID 4538632, 11 pages
https://doi.org/10.1155/2019/4538632

Research Article
Model Predictive Control Strategies Performance Evaluation
over a Pipeline Transportation System

Jorge Cardenas-Cabrera,1 Luis Diaz-Charris,1 Andrés Torres-Carvajal,1


Narciso Castro-Charris,1 Elena Romero-Fandiño,2 José David Ruiz Ariza,1
and Javier Jiménez-Cabas 1
1
Departamento de Ciencias de la Computación y Electrónica, Universidad de la Costa, Calle 58 #55-66., Barranquilla, Colombia
2
Departamento de Ingenierı́a Mecánica, Universidad del Norte, km. 5 Vı́a Puerto Colombia,
Área Metropolitana de Barranquilla, Colombia

Correspondence should be addressed to Javier Jiménez-Cabas; jajimenez8@hotmail.com

Received 23 January 2019; Accepted 9 April 2019; Published 20 May 2019

Academic Editor: Benoit Iung

Copyright © 2019 Jorge Cardenas-Cabrera et al. This is an open access article distributed under the Creative Commons Attribution
License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly
cited.

In several industries using pipelines to transport different products from one point to another is a common and indispensable
process, especially at oil/hydrocarbon industries. Thus, optimizing the way this process is carried out must be an issue that cannot
be stopped. Therefore, the performance of the control strategy implemented is one way of reaching such optimal operating zones.
This study proposes using Model Predictive Control strategies for solving some issues related to the proper operation of pipelines.
It is proposed a model based on physics and thermodynamic laws, using MATLAB as the development environment. This
model involves four pumping stations separated by three pipeline sections. Three MPC strategies are developed and implemented.
Accordingly, the results indicate that a centralized controller with an antiwindup back-calculation method has the best results
among the three configurations used.

1. Introduction by the so-called water hammer equations. These conditions


are then integrated into a receding horizon optimal control
Transporting various fluids through pipelines is one of the scheme. Although the proposed approach was validated in
most used transport mechanisms worldwide, mainly because simulations, the dynamics of essential elements as sensors
it allows transporting large volumes in relatively short periods and actuators were not taken into account. Yuzhanin et al.
[1]. It is estimated that there are more than 3.500.000 (km) [5] addressed the problem of maintaining pressure below the
of pipelines in about 120 countries of the world and around maximum rated load capacity in a linear section of an oil
134.866 (km) of pipelines are planned and under construction pipeline. The proposed algorithm can suggest the automatic
worldwide [2]. Given the fatalities and severe environmental control action that will allow dampening potentially danger-
and economic consequences of potential failures or down- ous pressure surges in the pipeline. The simulations results
time, pipeline transportation systems have high requirements show an efficient performance of the algorithm. Osiadacz
regarding safety, reliability, and profitability. Thus, it is an and Chaczykowski [6] described an algorithm for optimal
ongoing concern for pipeline system operators to guarantee control of a gas network. Since the compressors station, which
increasingly better performance. forms a significant part of the operational plant of a gas
Some works have been performed by researchers to transportation system, is driven by gas turbines which use
enhance the performance of pipeline transportation systems natural gas as fuel, authors considered optimality concerning
[3, 4] by introducing a set of sufficient conditions to guarantee fuel consumption. Thus, minimizing this fuel usage is a
asymptotic stability for hydraulic pipeline systems described primary objective in the optimal control problem considered.
2 Journal of Control Science and Engineering

A PLC-based Fuzzy-PID controller is proposed in [7] to same performance as the achieved with the optimization
regulate the flow rate of the petroleum products at destination based constraint handling method.
by controlling the multiple pressure signals range along The rest of the paper is organized in the following pattern.
the pipeline. Unlike the previously mentioned cases, whose Section 2 presents the proposed linear model that describes
results were tested through simulations, the performance the fluid behavior in a pipeline and its validation by using data
of the Fuzzy-PID is assessed in a lab-scale experimental of a real pipeline used for transporting Liquefied Petroleum
setup. Real-time experimental results showed that Fuzzy-PID Gas. On the other hand, models for instrumentation and
controller provides better performance than a Cascade-PID additional systems are presented too. Section 3 exposes the
controller. used Discrete Model Predictive Control strategy and the
Motivated by the fact that model predictive control back-calculation scheme proposed as constrains handling
(MPC) is the industry chosen technology for advanced method. Section 4, on the one hand, presents a comparison
control in many processes even over other advanced process between the performances of the three control configurations
control techniques such as constraint control, nonlinear con- proposed. Finally, Section 5 provides some conclusions.
trol and fuzzy logic control [8]; in this work, its performance
is studied on a pipeline transportation systems. MPC control
strategies are based on using a model to predict process 2. Fluid Dynamics Modeling
behavior shortly (moving horizon window), and then the
2.1. Pipeline Model. By assuming negligible convective
future manipulated variable trajectory is computed over the
changes in velocity, as well as constant cross-sectional
same horizon by solving a constrained optimization problem.
area, the momentum and continuity equations governing
Only the first sample of the calculated trajectory is applied to
the dynamics of the fluid in a horizontal pipeline can be
the actuator, and the horizon window is moved one sample
expressed as [15–18]:
forward, and the optimization process is repeated using new
measurement data. Most popular MPC strategies found in
literature are DMC (Dynamic Matrix Control) [9], GPC 𝑑𝑄 (𝑡, 𝑧) 𝐴 𝑃 𝑑𝑃 (𝑡, 𝑧) 𝑓𝑄 (𝑡, 𝑧) |𝑄 (𝑡, 𝑧)|
(Generalized Predictive Control) [10], IMC (Internal Model + + =0 (1)
𝑑𝑡 𝜌 (𝑡, 𝑧) 𝑑𝑧 2𝜙𝐴 𝑃
Control) [11], RHC (Receding Horizon Control) [4], NMPC
(Nonlinear Model Predictive Control) [12, 13], among others 𝑑𝑃 (𝑡, 𝑧) 𝜌 (𝑡, 𝑧) 𝑎2 𝑑𝑄 (𝑡, 𝑧)
[14]. + =0 (2)
𝑑𝑡 𝐴𝑃 𝑑𝑧
The essential contribution of this work is to explore and
to implement in simulation three different MPC control
configurations for a pipeline transportation process: (1) two where (𝑧, 𝑡) ∈ (0, 𝐿 𝑝 ) × (0, ∞) 𝑔athers the space (𝑚) and
decoupled control systems, an MPC based control system time (𝑠) coordinates, respectively, 𝐿 𝑝 is the length of the pipe,
for pressure and an on-off control system for level, (2) two 𝑃 is the pressure (Pa), 𝑄 is the flow rate (𝑚3 /𝑠), 𝑓 is the
decoupled control systems for pressure and level based on Darcy–Weisbach friction factor, 𝐴 𝑃 is the cross-sectional area
MPC strategy, and (3) one MPC control system for pressure of the pipe (𝑚2 ), 𝜙 is the inside diameter of the pipe (𝑚), 𝑎 is
and level. Additionally, it has been proposed an alternative the wave speed in the fluid (𝑚/𝑠), and 𝜌 is the fluid density.
option for constraint handling which involves applying a Due complexity to solve this set of equations, several
back-calculation scheme. The addition of back-calculation linearized versions of this set have been proposed [19–22]. At
as an antiwindup method allows reducing the control algo- the current study, the linearized model (3) is used to design
rithms execution time significantly while maintaining the control strategies.

𝑃𝐿 𝑃
[ ]
[ 𝑄0 ] (𝑠)
[ ]
[𝜌𝐿 𝑃 ]

1 𝑄 (0, 𝑡) 𝑇 1 −𝜏𝑠
[ cosh (𝑛𝐿 ) −𝑍𝐾 tanh (𝑛𝐿 𝑃 ) − 𝐴 𝑠 ( cosh (𝑛𝐿 ) − 𝑒 )]
[ 𝑃 𝑃 𝑃 ]
[ ]
[ 1 1 𝑄 (0, 𝑡) 𝑇 ]
=[ ] (3)
[ tanh (𝑛𝐿 𝑃 ) − tanh (𝑛𝐿 𝑃 ) ]
[ 𝑍𝐾 cosh (𝑛𝐿 ) 𝑍 𝐴 𝑠 ]
[ 𝑃 𝐾 𝑃 ]
−𝜏𝑠
[ 0 0 𝑒 ]

𝑃0
[𝑄 ]
⋅ [ 𝐿 𝑃 ] (𝑠)
[ 𝜌0 ]
Journal of Control Science and Engineering 3

where 𝑍𝐾 = √(𝐿𝑠 + 𝑅)/𝐶𝑠 𝑅 = 𝜌𝑓|𝑄|/𝜙𝐴 𝑃 𝐶 = 1/𝜌𝑎2 𝑇 = Moreover, the model that links valve position and tanks
𝜆𝑄|𝑄|/2𝜙𝐴2𝑃 𝐿 = 𝜌/𝐴 𝑃 , 𝑛 = √(𝐿𝑠 + 𝑅)𝐶𝑠, and the level takes the form shown in (7). Finally, it is important
subindexes 0 and 𝐿 𝑃 indicate input and output. to mention manipulated (𝑀𝑝 , 𝑀V ), and controlled variables
In this work, the Liquefied Petroleum Gas (LPG) pipeline (𝐶𝑃𝐿 , 𝐶𝐿 ) move in the range of 0 to 100%.
presented in [22] would be considered (see Figure 1).
The physical parameters of the pipeline are shown in 𝐻1 𝐺44 (𝑠) 𝐺45 (𝑠) 0 𝑀V1
[𝐻 ] [ 0 ]
𝐺55 (𝑠) 𝐺56 (𝑠)][𝑀V2 ]
[
Table 1. [ 2] = [ ]
LPG is a flammable mixture of hydrocarbon (primarily (7)
propane and butane), gaseous at standard temperature (15∘ C) [ 𝐻3 ]
⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟ [ 0 0 𝐺66 (𝑠)][
⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟ 𝑀V3 ]
⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟
𝐶𝐿 𝐺𝐿 (𝑠) 𝑀V
and pressure (0.1MPa), but easily liquefied by increasing
pressure (see Figure 2). Due to its ease of handling, cleanness
By combining (5), (6), and (7) one obtains the perturbed
of combustion, high purity, and high heating values; LPG is
system form
used as fuel in a large variety of industrial, commercial and
domestic uses [23]. 𝐶𝑃𝐿 (𝑠) = 𝐺𝑃𝐿 (𝑠) 𝑀𝑝 (𝑠) + 𝐺𝑑 (𝑠) 𝑀V (𝑠)
(8)
2.2. Instrumentation and Additional Systems. In order to get 𝐶𝐿 (𝑠) = 𝐺𝐿 (𝑠) 𝑀V (𝑠)
closer to a realistic situation, the pipeline model was enriched
with models of storage tanks, sensors/transmitters, and actu- Discrete-time state space models that approximate the
ators. As it refers to fuel storage modeling, membrane tanks continuous-time models (8) were computed, with sampling
are commonly used. These tanks are designed to provide a time 1s.
constant inside pressure, which avoids phase changes in the
𝑃𝐿 𝑃𝐿 1
system. Inlet and outlet taps in the tanks are positioned at the [ 𝐴 12×12 𝐵12×3 2 ]
same height in order to have pressure changes only caused 𝐺𝑃𝐿 (𝑧) = [ 1 ]
𝑃𝐿
by the liquid column. The dynamic model for this kind of 𝐶3×12 03×3
[ 2 ]
systems can be expressed as
𝑑 𝑑 1
𝑑ℎ (𝑡)
=
1
(𝑄 (𝑡) − 𝑄𝑜𝑢𝑡 (𝑡)) [ 𝐴 12×12 𝐵12×3 2 ]
(4) 𝐺𝑑 (𝑧) = [ 1 ] (9)
𝑑𝑡 𝐴 𝑇 𝑖𝑛 𝑑
𝐶3×12 03×3
where ℎ(𝑡) is the level in the tank in (𝑚), 𝐴 𝑇 is the cross- [ 2 ]
sectional area of the tank (𝑚2 ), 𝑄𝑖𝑛 and 𝑄𝑜𝑢𝑡 are the flows of 𝐿 𝐿
liquid into and from the tank, respectively (𝑚3 /𝑠). [ 𝐴 10×10 𝐵10×3 ]
𝐺𝐿 (𝑧) = [ 1 ]
On the other hand, first-order models were considered for 𝐿
𝐶3×10 03×3
instruments (sensors/transmitters and actuators). There were [ 2 ]
added centrifugal pumps at the beginning of each pipeline
In (9) it shows the matrix dimensions for each model, where
section, control valves at each tank’s inlet section, and level 𝐴 𝐵
transmitters at each tank, as well as manual valves. Figure 3 𝐺(𝑧) = [ ] = 𝐶(𝑧𝐼 − 𝐴)−1 𝐵 + 𝐷.
𝐶 𝐷
shows the piping and instrumentation diagram (P&ID) for a
pipeline section. The total system is constituted by three of
the sections shown in Figure 3. 3. Implemented Control Strategy
Table 2 shows critical parameters of the instruments used
By increasing pressures, above the bubble curve for a given
to model its dynamical behavior. Taking into account the
temperature or density (see Figure 2), LPG can be held
pipeline and instruments parameters, the obtained model
in the liquid phase, which simplifies transporting, measur-
corresponds to
ing, and storage. Once pressure is released, LPG vaporizes
𝑃𝐿 1 𝐺11 (𝑠) 0 0 𝑀𝑝1 and becomes in an ideal energy source for fuel. In order
[𝑃𝐿 ] [𝐺 ][ ] to maintain LPG the liquid phase, tight pressure control
[ 2 ] = [ 21 (𝑠) 𝐺22 (𝑠) 0 ][ ]
[𝑀𝑝2 ] (5) is necessary to avoid possible phase changes during the
[𝑃𝐿 3 ]
⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟ [ 𝐺31 (𝑠) 𝐺32 (𝑠) 𝐺33 (𝑠)][
⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟ 𝑀𝑝3 ]
⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟ transportation process. Additionally, it is well known that
𝐶𝑃𝐿 𝐺𝑃𝐿 (𝑠) 𝑀𝑝 oscillations and rapid changes of pressure within the pipeline
can cause undesirable phenomena as cavitation, slugging and
where 𝑃𝐿 𝑖 is the pressure of pipeline section i at the outlet
hydraulic shock (water hammer). Then, these aspects must be
and 𝑀𝑝𝑖 is pressure drop in pump i. The form of the model
considered in the control strategies performance analysis.
representing the effect of valves position, 𝑀V𝑖 on the pressure
at outlet section of each pipeline section, is represented in
3.1. Discrete Model Predictive Control Strategy. The function-
𝑃𝐿 1 𝐺14 (𝑠) 0 0 𝑀V1 based discrete time model predictive control (DMPC) for-
[𝑃𝐿 ] [𝐺 ][ 𝑀 ]
[ 2 ] = [ 24 (𝑠) 𝐺25 (𝑠) 0 ][ V2 ] mulation proposed by Wang [24] was applied to the LPG
(6) pipeline. The DMPC strategy considered is based on state
[𝑃𝐿 3 ]
⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟ [ 𝐺34 (𝑠) 𝐺35 (𝑠) 𝐺36 (𝑠)][
⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟ 𝑀V3 ]
⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟ space models and was implemented to control the down-
𝐶𝑃𝐿 𝐺𝑑 (𝑠) 𝑀V stream pressure of each pipeline section (CPL ) and the liquid
4 Journal of Control Science and Engineering

Elevation AMSL (m)


2340.00 Station 4

Station 1 Station 2
Station 3
2240.00
−10 0 10 20 30 40 50
Distance (km)

Figure 1: Liquefied Petroleum Gas pipeline.

Table 1: Pipeline model parameters.

Variable Symbol Value Units Variable Symbol Value Units


Density 𝜌 530 Kg/m3 Pipelines Diameter 𝑑 0.5 m
Friction Coefficient 𝜆 0.00965 Tanks Height 𝐻max 15.7920 m
Fluid Speed of Sound 𝑎 2490 m/s Tanks Diameter 𝐷𝑡 52.9032 m
𝐿 𝑝1 10326 𝛼1 1.93×10−4
Pipelines Lengths 𝐿 𝑝2 18560 m Pipelines Inclinations 𝛼2 3.77×10−4 rad
𝐿 𝑝3 14980 𝛼3 5.47×10−4

10,00 is employed. Recall that we embedded integrators in the state


Critical Point (121∘ C,4.5MPa)
space model for obtaining integral action.
Δ𝑥𝑝 (𝑘 + 1) 𝐴 𝑝 0 Δ𝑥𝑝 (𝑘)
Liquid Phase
[ ]=[ ][ ]
𝑒 (𝑘⏟⏟⏟+⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟ 𝐶𝑝 𝐴 𝑝 1 ⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟
1) ⏟⏟ ⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟ 𝑒 (𝑘)
Pressure (MPa)

⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟
𝑥𝑘+1 𝐴𝑒 𝑥𝑘

𝐵𝑝
+[ ]Δ𝑢 (𝑘) (10)
Vapor Phase
𝐶𝑝 𝐵𝑝
⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟⏟
Liquid - Vapor Phase 𝐵𝑒
0,10
−50 −25 0 25 50 75 100 125 Δ𝑥𝑝 (𝑘)
𝑒 (𝑘) = [0 1] [
⏟⏟⏟⏟⏟⏟⏟⏟⏟ ]
Temperature (∘ C) 𝑦 (𝑘)
𝐶𝑒
Bubble Curve
Dew Curve where subindex 𝑝 indicates process, Δ𝑥𝑝 (𝑘 + 1) = 𝑥𝑝 (𝑘 +
500 kg/m3 1) − 𝑥𝑝 (𝑘) Δ𝑢(𝑘) = 𝑢(𝑘) − 𝑢(𝑘 − 1) and 𝑒(𝑘) = 𝑐𝑠𝑒𝑡 (𝑘) − 𝑐(𝑘).
540 kg/m3 Moreover, the poles of the new matrix are the poles of the
580 kg/m3
process and one pole located at 1. So, firstly it was confirmed
Figure 2: Pressure-Temperature Diagram of (40% butane–60% the model was controllable and observable. Then, on the
propane) LPG. other hand, it was necessary to estimate the states, which are
not measured; in this sense a Kalman filter was used [25],
basically because, in the presence of noise and uncertainties, it
produces state estimates that tend to be more precise. Kalman
level of each storage tank (CL ), by manipulating the pressure filter is commonly used for MPC vendor products to provide
drop in pumps (M P ) and control valves positions (𝑀V ), state estimation functionality [26]. Additionally, it is worth
respectively, while respecting the physical limitations of the mentioning that the performance of the control strategies was
actuators. A set of discrete time Laguerre function is used as evaluated by using the nonlinear pipeline model described by
an orthonormal basis to describe the optimum future control (1) and (2). By using the finite difference method, a spatial-
trajectory (that is, the difference of the manipulated variable) discrete version of the nonlinear model [15, 27] was obtained,
within a prediction horizon. The use of the Laguerre function which was used in closed loop simulations. This way, Figure 4
allows reducing the computational burden associated with shows the block diagram of the implemented strategy, 𝐺 the
MPC. Below the DMPC strategy is briefly presented. process to be controlled, and 𝐺𝐶 the DMPC controller.

3.1.1. Augmented State Space Model. As mentioned above, at 3.1.2. DMPC Formulation. The procedure established at [24]
the current study the MPC strategy used is based on state is centered on an orthonormal-base set of discrete functions
space models. The general extended state space model in (12) to approximate the future differences of the manipulated
Journal of Control Science and Engineering 5

Hi
LT
2

Mvi

Ti-1 Ti
PL i
Mpi Mpi+1
PT
1

Figure 3: P&ID for a pipeline section.

Table 2: Sensors and final control elements features.


Instrument Symbol Value Units
Δ𝑝max 1 MPa
Pumps 𝜏𝑝 30 s
𝑚𝑠 50 %
span 6 MPa
Pressure Transmitter
𝜏𝑃𝑇 1 s
span 20 m
Level Transmitter
𝜏𝐿𝑇 ≈0 s
𝐾V1 6×10−3 m3 /(s.%)
𝐾V2 6×10−3 m3 /(s.%)
Valves 𝐾V3 2.8×10−3 m3 /(s.%)
𝜏𝑝 45 s
𝑚 50 %

D the coefficients of the process which are the function of future


sampling periods.
C set M C
GC G
𝑁
Δ𝑚𝑘𝑖 +𝑘 = ∑𝑐𝑗 (𝑘𝑖 ) 𝑙𝑗 (𝑘) (12)
Kalman 𝑗=1
Filter
xp Laguerre functions can be expressed in the state space
form in (13), which reduce computational burden. 𝐴 𝑙 is a
𝑁 × 𝑁 matrix, which is a function of 𝑎.
Figure 4: A general block diagram of the implemented strategy.
𝐿 (𝑘 + 1) = 𝐴 𝑙 𝐿 (𝑘) ,

𝑇 𝐿 (0)𝑇 (13)
variable Δ𝑚𝑘𝑖 +𝑖 = [Δ𝑚𝑘𝑖 Δ𝑚𝑘𝑖 +1 ⋅ ⋅ ⋅ Δ𝑚𝑘𝑖 +𝑁𝑐 −1 ] , where
𝑁𝐶 indicates the control horizon. These functions are known 𝑇
= √1 − 𝑎2 [1 −𝑎 𝑎2 −𝑎3 ⋅ ⋅ ⋅ (−1)𝑁−1 𝑎𝑁−1 ]
as discrete Laguerre functions, and its z-transform is shown
in (11).
Therefore (12) can also be represented as a function of the
Laguerre vector defined at (13) such as
𝑧−1 − 𝑎
Γ𝑘 (𝑧) = Γ (𝑧) ,
1 − 𝑎𝑧−1 𝑘−1 Δ𝑚𝑘𝑖 +𝑘 = 𝐿 (𝑘)𝑇 𝜂, 𝜂 = [𝑐1 𝑐2 ⋅ ⋅ ⋅ 𝑐𝑁]
𝑇
(14)
(11)
√1 − 𝑎2
Γ1 (𝑧) = Thus, the prediction of future states and outputs in an
1 − 𝑎𝑧−1 instant 𝑚 is defined by (15).
The pole of the function 𝑎 determines the velocity at which 𝑚−1
𝑙(𝑘) converges to zero. Then, Δ𝑚 is approximated by 𝑁 𝑥𝑘𝑖 +𝑚|𝑘𝑖 = 𝐴𝑚 𝑥𝑘𝑖 + ∑ 𝐴𝑚−𝑖−1 𝐵𝐿 (𝑖)𝑇 𝜂
Laguerre functions, such as in (12), where 𝑘𝑖 represents the 𝑖=0 (15)
current sampling period, 𝑘 are the future sampling periods,
𝑁 is the number of terms used at the expansion, and 𝑐𝑗 are 𝑦𝑘𝑖 +𝑚|𝑘𝑖 = 𝐶𝑥𝑘𝑖 +𝑚|𝑘𝑖
6 Journal of Control Science and Engineering

ΔM Discrete Time 0 - 100% M


Integrator Saturation

Figure 5: Constraint handling scheme using the antiwindup back-calculation method.

4,6 100

4,4 80

Manipulated Variable (%)


Pressure (MPa)

4,2 60

4 40

3,8 20

3,6 0
0 50 100 150 200 0 50 100 150 200
Time (s) Time (s)

Station 1 (Const.) IAE=181.8 Station 1 (Const.)


Station 2 (Const.) IAE=13.81 Station 2 (Const.)
Station 3 (Const.) IAE=13.59 Station 3 (Const.)
Station 1 (B-Calc.) IAE=177.3 Station 1 (B-Calc.)
Station 2 (B-Calc.) IAE=14.74 Station 2 (B-Calc.)
Station 3 (B-Calc.) IAE=22.96 Station 2 (B-Calc.)

Figure 6: Performance comparison between the Constrain and the Back-Calculation methods.

Then, the cost function to be minimized can be written as 3.1.3. Constraint Handling. To take into account physical
(16), where 𝑄 = 𝐶𝑇 𝐶 and 𝑅𝐿 > 0. It is necessary to note 𝐽 is a actuators limitations, a constraint is imposed on the control
function of 𝜂 instead of Δ𝑀, so minimization must be done signal Δ𝑚𝑘 , which is mathematically defined in
in function of 𝜂.
𝑁𝑝
𝑚min ≤ 𝑚𝑘 ≤ 𝑚max (19)
𝐽= ∑ 𝑥𝑘𝑇𝑖 +𝑚|𝑘𝑖 𝑄𝑥𝑘𝑖 +𝑚|𝑘𝑖 𝑇
+ 𝜂 𝑅𝐿 𝜂 (16)
𝑚=1
By using the Laguerre functions, it is possible to rewrite
expressions in (19) as shown in
Results of the minimization operation are shown in
𝑘−1
𝜂 = −Ω−1 Ψ𝑥 (𝑘𝑖 ) 𝑚min ≤ ∑ 𝐿 (𝑖)𝑇 𝜂 + 𝑚𝑘−1 ≤ 𝑚max (20)
𝑖=0
𝑁𝑝
Ω = ∑ 𝜙 (𝑚) 𝑄𝜙 (𝑚)𝑇 + 𝑅𝐿 Furthermore, it is important to note that constrained con-
𝑚=1 trol strategies require real-time optimization using quadratic
𝑁𝑝 (17) programming [24], where the minimization function would
Ψ = ∑ 𝜙 (𝑚) 𝑄𝐴𝑚 be (21). This restricted optimization must be done at the
𝑚=1 entire prediction horizon, which increases the computational
burden.
𝑚−1
𝜙 (𝑚)𝑇 = ∑ 𝐴𝑚−𝑖−1 𝐵𝐿 (𝑖)𝑇
𝑖=0 𝐽 = 𝜂𝑇 Ω𝜂 + 2𝜂𝑇 Ψ𝑥𝑘𝑖 (21)

Therefore, the control law is written at (18). Thus, at this research, a second option for constraining
handling has been proposed which involves applying a back-
Δ𝑚𝑘 = 𝑘𝐷𝑀𝑃𝐶𝑥̂𝑘 (18) calculation scheme, Figure 5.
Journal of Control Science and Engineering 7

S-R
Flip-Flop
LS
2

Mvi LS
2

T - i-1 T-i
PL i
Mp i Mp i+1
PC PT
1 1

(a)

LC Hi
2

LC
2
Mvi

T - i-1 T- i
PL i
Mpi Mpi+1
PC PT
1 1

(b)

LC
1 Hi

P&LC
1
Mvi
Mp PT
1 PL i

T - i-1 T- i
Mpi+1

(c)

Figure 7: Pipeline Section P&ID for (a) Configuration 1, (b) Configuration 2, and (c) Configuration 3.

Both methods were implemented, and simulations were times faster. Therefore, for this research, the back-calculation
run considering one change in the pressure set point of scheme was used. Some performance indices obtained with
station 1. Results showed that both methods back-calculation back-calculation scheme were overshoot of 0.1526%, the rise
and constraint handling based on quadratic optimization are time of 39.056s, and settling time of 67.805s.
very similar, as can be seen in Figure 6. As it refers to the
IAE value, it is observed that the back-calculation method 4. Results and Discussions
is slightly better than the constrain-handling method for the
setpoint change in station 1. However, even though the effect Three different control configurations (see Figure 7) were
over this change over the other stations is low, the response of implemented: (1) two decoupled control systems, a DMPC
the optimization based constrain-handling method is some- based control system for pressure, and an on-off control
what better than the back-calculation method. So, provided system for level, (2) two decoupled control systems for
both algorithms are equivalent, it was decided to use the pressure and level based on DMPC strategy, and (3) one
method with the best performance from a computational control system for pressure and level, in this configuration,
point of view. In this case, the back-calculation method the design model used is shown in (22). Table 3 shows
is much better than the optimization based constrain- the values of the controller’s parameters used. The setpoint
handling method, having that it is approximately three for level control was fixed in 7.89m for the three tanks.
8 Journal of Control Science and Engineering

4,6 4,5 4,6

Pressure St3 (MPa)


Pressure St1 (MPa)

Pressure St2 (MPa)


4,5 4,4 4,4
4,4 4,3 4,2
4,3 4,2 4,0
4,2 4,1 3,8
4,1 4,0 3,6
0 100 200 300 400 500 600 700 0 100 200 300 400 500 600 700 0 100 200 300 400 500 600 700
Time (s) Time (s) Time (s)

Setpoint Config. 2 Setpoint Config. 2 Setpoint Config. 2


Config. 1 Config. 3 Config. 1 Config. 3 Config. 1 Config. 3

Manipulated Variable (%)

Manipulated Variable (%)


Manipulated Variable (%)

100,0 80,0 100,0


90,0 60,0 80,0
80,0 40,0 60,0
70,0 40,0
20,0
60,0 20,0
50,0 0,0 0,0
0 100 200 300 400 500 600 700 0 100 200 300 400 500 600 700 0 100 200 300 400 500 600 700
Time (s) Time (s) Time (s)

Config. 1 Config. 1 Config. 1


Config. 2 Config. 2 Config. 2
Config. 3 Config. 3 Config. 3

Figure 8: Pressure Response, under setpoint changes, for Configurations 1, 2, and 3.

Operating process conditions evaluated were pressure set but smaller than change seen at PL3 . On the other hand, a
points increments of 10%, 10%, and 20% (at times 5, 200 and change in PL3 also has a low effect on PL2 and almost an
500 seconds) for PL1 , PL2 , and PL3 , respectively, an increment imperceptible effect on PL1 . Thus, even though the system is
of 50% (at 1000 seconds) in the output flow rate in tank 3. The interacting, this interaction seems to be restricted to locally
obtained performances are shown next. near the unit process. In other words, changes at station 1
have a significant effect on station 2 rather than 3, changes at
𝑃𝐿 1 station 2 impact stations 1 and 3 in a similar way and changes
[ ]
[𝑃𝐿 2 ] at station 3 affect mainly over station 2.
[ ]
[ ] In Figure 8 it is seen that control strategies can maintain
[𝑃𝐿 3 ]
[ ] the process at its desired setpoint. The performance of config-
[ 𝐻 ] (𝑠)
[ 1] urations 1 and 2 is similar, as it was expected since the pressure
[ ]
[𝐻 ] controller used in both configurations is the same. Moreover,
[ 2]
the interaction between stations is more prominent as they
[ 𝐻3 ] are closer. In what concerns configuration 3, its performance
(22) is close to that showed by the other configurations; however, it
𝐺11 𝐺12 𝐺13 𝐺14 𝐺15 𝐺16 𝑀𝑝1
[ ] [ ] looks its response velocity is higher. As it refers to tanks levels,
[𝐺21 𝐺22 𝐺23 𝐺24 𝐺25 𝐺26 ] [𝑀𝑝2 ] pressure changes do not have an impact on them; basically
[ ] [ ]
[ ] [ ] level in tanks remained constant under pressure setpoints
[𝐺31 𝐺32 𝐺33 𝐺34 𝐺35 𝐺36 ] [𝑀𝑝3 ]
=[
[𝐺
] (𝑠) [ ] (𝑠) changes.
[ 41 𝐺42 𝐺43 𝐺44 𝐺45 𝐺46 ] [ ]
] [ 𝑀V1 ] The strategies were also tested by producing a disturbance
[ ] [ ]
[𝐺 𝐺52 𝐺53 𝐺54 𝐺55 𝐺56 ] [ ]
[ 51 ] [ 𝑀V2 ] at the outlet flow rate at station 3. Thus, Figure 9 shows how,
for configuration 1, this disturbance impacts the pressure of
[𝐺61 𝐺62 𝐺63 𝐺64 𝐺65 𝐺66 ] [ 𝑀V3 ]
the other stations. As it was expected response at station 3 is
First response to be seen is the performance of the control more intense and, as it is seen, previous stations variations are
strategy implemented under setpoint changes, so, in Figure 8 still evident but lower. For configurations 1 and 2, variations in
one step change to each controlled pressure is shown. Thus, tanks levels due to disturbances cannot be seen, and constant
as it is appreciated that a setpoint change on PL1 , let us call levels are obtained.
it 𝑃𝐿 1 𝑠𝑒𝑡 , has a low impact on controlled pressured PL2 and Table 4 shows the IAE performance index obtained for
PL3 . Referring to a step change at 𝑃𝐿 2 𝑠𝑒𝑡 , it is shown that the each configuration, where it is definitively seen; configuration
effect on PL3 is larger, and its disturbance to PL1 is appreciable 3 gives the best results as it refers to IAE.
Journal of Control Science and Engineering 9

7,910
7,895 7,895
Level Config. 1 (m)

7,900

Level Config. 2 (m)

Level Config. 3 (m)


7,890 7,890
7,890

7,880 7,885 7,885

7,870 7,880 7,880


1000 1500 2000 2500 3000 3500 1000 1500 2000 2500 3000 3500 1000 1500 2000 2500 3000 3500
Time (s) Time (s) Time (s)

Tank 1 Tank 1 Tank 1


Tank 2 Tank 2 Tank 2
Tank 3 Tank 3 Tank 3
Manip. Variable Conf. 1 (%)

Manip. Variable Conf. 2 (%)

Manip. Variable Conf. 3 (%)


50,000 60,000 60,000
40,000 50,000 50,000
30,000 40,000 40,000
20,000 30,000 30,000
10,000
20,000 20,000
0,000
10,000 10,000
1000 1500 2000 2500 3000 3500 1000 1500 2000 2500 3000 3500 1000 1500 2000 2500 3000 3500
Time (s) Time (s) Time (s)

Tank 1 Tank 1 Tank 1


Tank 2 Tank 2 Tank 2
Tank 3 Tank 3 Tank 3
4,7 4,8 5,0
4,8
Pressure St2 (MPa)

Pressure St3 (MPa)


Pressure St1 (MPa)

4,6 4,6
4,5
4,5 4,4
4,2
4,4 4,2
4,0
4,3 4,0 3,8
4,2 3,8 3,5
1000 1500 2000 2500 3000 3500 1000 1500 2000 2500 3000 3500 1000 1500 2000 2500 3000 3500
Time (s) Time (s) Time (s)

Setpoint Config. 2 Setpoint Config. 2 Setpoint Config. 2


Config. 1 Config. 3 Config. 1 Config. 3 Config. 1 Config. 3

100,0 100,0 100,0


Manip. Variable St2 (%)
Manip. Variable St1 (%)

Manip. Variable St2 (%)

90,0 80,0 80,0


80,0 60,0
60,0
70,0 40,0
40,0
60,0 20,0
50,0 20,0
0,0
1000 1500 2000 2500 3000 3500 1000 1500 2000 2500 3000 3500 1000 1500 2000 2500 3000 3500
Time (s) Time (s) Time (s)

Config. 1 Config. 1 Config. 1


Config. 2 Config. 2 Config. 2
Config. 3 Config. 3 Config. 3

Figure 9: Level and Pressure Response, under disturbances, for Configurations 1, 2, and 3.

Table 3: Pressure and level control parameters.

Configuration Pressure Control Parameters Level Control Parameters


A S-R flip-flops were used, and lower and
1 𝑎 = [0.98 0.4 0.8] higher levels were set to 7.88m and 7.9m,
𝑁 = [2 2 9] respectively.
𝑁𝑝 = 70 𝑄 = 𝐶𝑒 𝑇 𝐶𝑒 LQR Control, (Setpoint = 7.89m)
2 𝑄 = 0.01𝐶𝑒 𝑇 𝐶𝑒 𝑅𝐿 = diag (100 100 300)
𝑅𝐿 = diag (0.001 0.1 0.1)
𝑎 = [0.4 0.4 0.4 0.4 0.4 0.98]
3 𝑁 = [25 25 9 15 15 2] 𝑁𝑝 = 600 𝑄 = 𝐶𝑒 𝑇 𝐶𝑒
𝑅𝐿 = diag (0.1 0.1 0.1 1 1 1)
10 Journal of Control Science and Engineering

Table 4: IAE performance index obtained.

Variable Configuration 1 Configuration 2 Configuration 3


PL1 1634 203.1 154.7
PL2 1589 182.9 154.3
PL3 3181 344.3 288.7
H1 5.527 × 105 4.579 41.9
H2 5.528 × 105 10.54 68.2
H3 5.528 × 105 393.6 106.7

5. Conclusions 𝐺𝑃𝐿 : Pipeline pressure model


𝐺𝐿 : Valves position model
Three control configurations were implemented for a liquid 𝐺𝐷: Disturbances model
pipeline transportation system: (1) two decoupled control 𝑄𝑘 : Covariance of the measurement error
systems, an MPC based control system for pressure and an 𝐾𝑘 : Kalman gain
on-off control system for level, (2) two decoupled control 𝑥̂𝑘 : Estimated state
systems for pressure and level based on MPC strategy, and (3) 𝑃𝑘 : Measurement error covariance estimated
one MPC system for pressure and level. A linearized pipeline 𝑁𝑐 : Horizon of control
model was used as a design model; however, the performance Γ𝑖 : Laguerre function
of the control configurations was assessed with a nonlinear 𝑙𝑖 : Inverse transform of Γ𝑖
pipeline model. The addition of back-calculation as the 𝐽𝑆𝐸 : Quadratic cost function
antiwindup method allows reducing the control algorithms 𝐻(𝑘): Prediction using 𝑙𝑖
execution time significantly while maintaining the same Δ𝑚𝑘 : Control output
performance as the achieved with the optimization based 𝐾𝐷𝑀𝑃𝐶: Control law
constraint handling method. In comparison with previous 𝐴 𝑃: Pipe cross-sectional area.
works [7], the strategies implemented show an enhanced
performance. Lower IAE (0.1526% vs. 14.63%) and overshoot
(177.3 vs. 8.4×105 ) were obtained. Higher rise time and settling Data Availability
time was obtained with the proposed control strategies, but it Any additional information would be provided by the corre-
is due to dimension, length (10326m vs. 7m) and diameter sponding author via email.
(0.5m vs. 0.0254m), of the pipeline considered. Among the
three control configurations presented at the current study,
the last one (Centralized Pressure and Level Control) showed Conflicts of Interest
the best performance among the different test carried out
in the face of setpoints changes and disturbances. The IAE The authors declare that they have no conflicts of interest.
performance index confirmed this result.
References
Nomenclature [1] J. A. Jiménez Cabas, M. Sanjuán, and L. Torres, Liquid Transport
𝑎: Velocity of sound Pipeline Monitoring Architecture Based on State Estimators for
𝜆: Friction factor Leak Detection and Location, Universidad del Norte, 2018.
𝛼: Pipeline inclination [2] R. Tubb, “P&GJ’s 2017 worldwide pipeline construction report,”
𝐿 𝑝: Pipeline length Pipeline & Gas Journal, 2017.
𝑃: Pressure [3] V. Thang Pham, D. Georges, G. Besançon et al., “Predictive
𝑉: Velocity control with guaranteed stability for hyperbolic systems of
conservation laws,” in Proceedings of the49th IEEE Conference
𝜌: Density
on Decision and Control (CDC), pp. 6932–6937, 2010.
𝜏𝑥𝑥 : Normal stress respect to 𝑥
𝑘𝑝 : Pump gain [4] T. V. Pham, D. Georges, and G. Besancon, “Predictive control
with guaranteed stability for water hammer equations,” Institute
𝜏𝑝 : Pump time constant of Electrical and Electronics Engineers Transactions on Automatic
𝐿 𝑝𝑖 : Section I pipeline length Control, vol. 59, no. 2, pp. 465–470, 2014.
𝑑: Pipeline diameter [5] V. Yuzhanin, V. Popadko, T. Koturbash, V. Chernova, and
𝛼𝑖 : Section 𝑖 pipeline inclination R. Barashkin, “Predictive control and suppression of pressure
𝐻max : Tank Height surges in main oil pipelines with counter-running pressure
𝐷𝑡 : Tank Diameter waves,” International Journal of Pressure Vessels and Piping, 2019.
𝑃𝐿 𝑖 : Section 𝑖 outlet pressure [6] A. J. Osiadacz and M. Chaczykowski, “Dynamic control for gas
𝑀𝑝𝑖 : Pump 𝑖 pressure drop pipeline systems,” Archives of Mining Sciences, vol. 61, no. 1, pp.
𝑀V𝑖 : Valves position 69–82, 2016.
Journal of Control Science and Engineering 11

[7] E. B. Priyanka, C. Maheswari, and S. Thangavel, “Online [25] M. S. Grewal and A. P. Andrews, Kalman Filtering: Theory and
monitoring and control of flow rate in oil pipelines transporta- Practice Using MATLAB, John Wiley & Sons, 2011.
tion system by using PLC-based Fuzzy-PID Controller,” Flow [26] S. J. Qin and T. A. Badgwell, “A survey of industrial model
Measurement and Instrumentation, vol. 62, pp. 144–151, 2018. predictive control technology,” Control Engineering Practice, vol.
[8] M. Bauer and I. K. Craig, “Economic assessment of advanced 11, no. 7, pp. 733–764, 2003.
process control—a survey and framework,” Journal of Process [27] J. Jiménez, L. Torres, C. Verde, and M. Sanjuán, “Friction esti-
Control, vol. 18, no. 1, pp. 2–18, 2008. mation of pipelines with extractions by using state observers,”
[9] X. Wang, B. Ding, X. Yang, and Z. Ye, “Design and application IFAC-PapersOnLine, vol. 50, no. 1, pp. 5361–5366, 2017.
of offset-free model predictive control disturbance observation
method,” Journal of Control Science and Engineering, vol. 2016,
Article ID 7279430, 8 pages, 2016.
[10] D. G. Vale da Fonseca, A. F. Dantas, C. E. Dórea, and A. L.
Maitelli, “Explicit GPC control applied to an approximated
linearized crane system,” Journal of Control Science and Engi-
neering, vol. 2019, Article ID 3612634, 13 pages, 2019.
[11] J. Duarte, J. Garcia, J. Jiménez, M. E. Sanjuan, A. Bula, and
J. González, “Auto-ignition control in spark-ignition engines
using internal model control structure,” Journal of Energy
Resource Technology, vol. 139, no. 2, p. 22201, 2017.
[12] M. Ławryńczuk, Computationally Efficient Model Predictive
Control Algorithms, Springer, 2014.
[13] G. Lars and P. Jürgen, Nonlinear Model Predictive Control Theory
and Algorithms, Springer, 2011.
[14] Y. G. Xi, D. W. Li, and S. Lin, “Model predictive control — status
and challenges,” Acta Automatica Sinica, vol. 39, no. 3, pp. 222–
236, 2013.
[15] J. Jiménez, L. Torres, I. Rubio, and M. Sanjuan, “Auxiliary signal
design and liénard-type models for identifying pipeline,” in
Modeling and Monitoring of Pipelines and Networks: Advanced
Tools for Automatic Monitoring and Supervision of Pipelines, C.
Verde and L. Torres, Eds., pp. 99–124, Springer, 2017.
[16] J. Jimenez-Cabas, L. Torres, F. R. Lopez-Estrada, and M.
Sanjuan, “Leak diagnosis in pipelines by only using flow mea-
surements,” in Proceedings of the IEEE Colombian Conference on
Automatic Control (CCAC), 2017.
[17] L. Torres, G. Besançon, A. Navarro, O. Begovich, and D.
Georges, “Examples of pipeline monitoring with nonlinear
observers and real-data validation,” in Proceedings of the 8th
IEEE Int. Multi-Conf Signals Syst. Devices, pp. 1–6, 2011.
[18] J. Jiménez-Cabas, E. Romero-Fandiño, L. Torres, M. Sanjuan,
and F. R. López-Estrada, “Localization of leaks in water distri-
bution networks using flow readings,” IFAC-PapersOnLine, vol.
51, no. 24, pp. 922–928, 2018.
[19] D. Matko, G. Geiger, and W. Gregoritza, “Pipeline simulation
techniques,” Mathematics and Computers in Simulation, vol. 52,
no. 3-4, pp. 211–230, 2000.
[20] S. Blažič, D. Matko, and G. Geiger, “Simple model of a multi-
batch driven pipeline,” Mathematics and Computers in Simula-
tion, vol. 64, no. 6, pp. 617–630, 2004.
[21] J. F. Noguera and S. Leirens, “Modelling and simulation of a
multi-commodity pipeline network,” in Proceedings of the 2010
IEEE ANDESCON Conference, ANDESCON ’10, pp. 1–6, 2010.
[22] J. J. Cabas and J. D. R. Ariza, “Modeling and simulation of
a pipeline transportation process,” Journal of Engineering and
Applied Sciences, vol. 13, no. 9, 2018.
[23] L. Torres and C. Verde, “Modeling improvements for leak
detection in pipelines of LPG,” in Proceedings of the 2013
European Control Conference, ECC ’13, pp. 938–942, 2013.
[24] L. Wang, “Discrete model predictive controller design using
Laguerre functions,” Journal of Process Control, vol. 14, no. 2, pp.
131–142, 2004.
International Journal of

Rotating Advances in
Machinery Multimedia

The Scientific
Engineering
Journal of
Journal of

Hindawi
World Journal
Hindawi Publishing Corporation Hindawi
Sensors
Hindawi Hindawi
www.hindawi.com Volume 2018 http://www.hindawi.com
www.hindawi.com Volume 2018
2013 www.hindawi.com Volume 2018 www.hindawi.com Volume 2018 www.hindawi.com Volume 2018

Journal of

Control Science
and Engineering

Advances in
Civil Engineering
Hindawi Hindawi
www.hindawi.com Volume 2018 www.hindawi.com Volume 2018

Submit your manuscripts at


www.hindawi.com

Journal of
Journal of Electrical and Computer
Robotics
Hindawi
Engineering
Hindawi
www.hindawi.com Volume 2018 www.hindawi.com Volume 2018

VLSI Design
Advances in
OptoElectronics
International Journal of

International Journal of
Modelling &
Simulation
Aerospace
Hindawi Volume 2018
Navigation and
Observation
Hindawi
www.hindawi.com Volume 2018
in Engineering
Hindawi
www.hindawi.com Volume 2018
Engineering
Hindawi
www.hindawi.com Volume 2018
Hindawi
www.hindawi.com www.hindawi.com Volume 2018

International Journal of
International Journal of Antennas and Active and Passive Advances in
Chemical Engineering Propagation Electronic Components Shock and Vibration Acoustics and Vibration
Hindawi Hindawi Hindawi Hindawi Hindawi
www.hindawi.com Volume 2018 www.hindawi.com Volume 2018 www.hindawi.com Volume 2018 www.hindawi.com Volume 2018 www.hindawi.com Volume 2018

Вам также может понравиться