Documente Academic
Documente Profesional
Documente Cultură
475
I . INTRODKCTIOX
[14.
476
Given :
1) a systemdescribed
equation
x(k
+ 1)
bythenonlinear
=
F [ x ( k ) , u(k),k ]
\\.here
x =state vector, n dimensional
u =control vector, m dimensional
k =index for stagevariable
F = n dimensional vector functional;
1968
minimum
costthe that
equation
states
This
for state x
a t stage k is found by choosing the control that minidifference
mizes the sum of the cost to be paid at the present stage
and the minimum costin going to the end from the state
(1) a t stage k + l that results from applying this control.
The optimal control at state x and stage k , denoted as
uo(x, k ) , is directly obtained as the valueof u for which
the minimum in (7) is attained.
Since (7) determines I(x, k ) and u o ( x , k ) in terms of
I(x, k + l ) , i t must be solved backward in k . -As a terminal boundary condition,
I(X,
(8)
U
X
J =
JIlx(k), u ( k ) , k1
(2)
I I I. BASICEQLATIOYS
FOR PIPELINES
X K D COMPRESSORS
k=O
where
J = total cost
I = incremental cost at stage k ;
3) constraints
(3)
= -
at
where
ap?
-=
ax
stage k ;
- C2Q2
(9)
(10)
where
4) an initial state
t =time
x(0) = c.
x =spatial
variable
P = pressure
Q =f l o ~ v
( 3
Find :
The
sequence u(o), . * u ( K ) such
in (2) is minimized subject to the system equation ( l ) ,
theconstraintequations
(3) and (4),andtheinitial
condition (5).
The dynamic programming solution to the preceding
problem is obtainedby using aniterativefunctional
equation that determines the optimal control
foran)
admissible state at any stage. This equationis in terms
of the minimum cost function, n-hich can be defined for
all x E X and all k , k = O , 1, . .
K , as
9
I(x, k) =
aQ
an:
{ 5ZMA,
min
UCj),jl}
(6)
,=I:
U (j!
j=k.k+I,...,K
where
Cl,
c2 =constants
dependent
on
the
x(R) = x.
aP
ITsing Bellmans principle of optimality [1]-[3], the
iterative equation becomes
physical
charac-
-[dc2 I aP?/ar I ]
_.-
at
p 2
l!?
azp?
-.
ax?
(11)
OF N-4TURAL-GAS PIPELINE
SYSTEMS
where
477
the minimization of compressor energy is best accomplished by anticipating the packing prior to an increase
in demand, or by meeting the demand a t each instant
with output pressure a t its minimum acceptable value.
In the following, the optimization problem is described
and results for a typical line are given.
constant.
I n the following optimization studies, the cost function to be minimized is taken to be either compressor
2) control variable is input flow Q l ( t ) ;
energy or compressor horsepower. Under the assumption 3) Q3(t),the output flow, is set equal to demandflow
of adiabatic compression, the compressor horsepower re(assumed known).
quired to pump gas down
apipelineisgiven
by the
14:ith the above designations, the equations of the gas
following equation 161, [7], [ l l ] :
pipeline given in Table I can be transformed into the
following nonlinear vector difference equation :
TABLE I
TWO-CELL
MODELAND BASICEQUATIOXS
where
Q = flow through the compressor
on the
compressor.
IV. DYKAYIC
OPTIMIZATIOX
OF x SIKGLE
COMPRESSOR,
SIKGLE
PIPELTXE
A . Introduction
In this section, the solution to the optimization
of
flow under transient conditions in a single gas pipeline
controlled by asinglecompressor
is obtained by dynamic programming, and results are given for a typical
gaspipeline. T h e problemunderconsiderationisthe
minimization of compressor energy required to deliver
a known time-varying consumer demand for gasat the
output of the pipeline while meeting a minimum contracted output pressure. The transient effects of timevaryingconsumerdemand
for gasaffectmainly
the where
operation of the compressor and pipeline just ahead of
Pl(t)=input pressure (psi)
thedeliverypoint.Forthisreason,thedynamicop@(t)=input flow (mmcfd)
Pn(t),P&) = internal pressures (psi)
timization of a single compressor and single pipeline is
Q z ( f ) =internal flow (mmcfd)
of practical interest.
P4(t)=output pressure (psi)
At = time increment in minutes
The purpose of the dynamic programming optimization studyis to establish general procedures by studying
the optimal control policies for a spectrum of demand
3 The equations given in Table I are the simplest finite difference
whether approximation to (9) and (10).
curves. In particular, it must be established
478
P(1
+ 4t)
f [ P ( t ) ,Q l ( t ) ] ,
5 t 5 T.
.-
(15)
PRESSURE
fn
8:oo
CONTRACT
8 :40
920
1o:oo
1040
Ib20
TIME
Fig. 2. Dynamicprogrammingsolution-step
up.
C. Results
TIME
L1hx-BP A U 5 T E R S
Length
diameter Inside
Molecular weight
factor
Friction
(nominal)
Average temperature
Average pressure
Cl
c2
15.95 miles
1.63 feet
20.30
0.01028
j30.7"R
640.3 psia
113.414
22.631 X
8:40
1o:m
920
10:40
1120
TIME
V. STEADY-STATE
OPTIMIZATION
OF A LONG
TRAKSMISSIOS
PIPELIKE
WITH COMPRESSORS
I N SERIES
A . Introduction
i=l,...,N
In contrast to thecompressors and pipelines near the
T h e problem to beconsidered is the determination of
deliverypoint,alongtransmissionpipelinecangenpreserally be consideredto operate under essentially steady- the optimum steady-state suction and discharge
state conditions. In this section the
problem of mini- sures for each compressor t h a t minimizes the total compressor horsepower. The above optimization is carried
mizing the cost of operatingalonggas-transmission
out subject to the constraints that the steady-state
flow
pipeline in steady state with numerous compressor stations in series is considered.
Alore specifically, an op- Qiis specified along each section of the pipe, the maxierating policy for thecompressors
is desired t h a t mum compression ratio of each compressor is not exceeded,themaximumandminimumpressuresalong
minimizes thetotal compressorhorsepowerexpended
while delivering the specified steady-state flow of gas, each section of the pipe are notexceeded, and the initial
input pressure P i , = P S I is specified. This optimization
meeting constraints in pressure along the pipeline and
following
meeting constraints on the operating characteristics of problemcanbecompactlywritteninthe
manner.
the compressors.
T h e problem is essentially a static optimization prob- Minimize by choice of P D ; and Psi the total comlem. However, i t can be formulated as
a multistaged de- pressor energy5
cision problem and solved using dynamic programming.
The computational requirements of the dynamic-programming solution are modest and can easily be implemented on line in real time.
subject to the following constraints:
PIN
- , AT;
(20)
Fig. 5.
= 1, 2,
constant.
4 The flows may vary in each pipe section since, in many cases,
gas is tapped off the transmission line t o provide fuel for the compressor.
IEEE TRANSACTIONS ON
OCTOBER
CONTROL,
AUTOMATIC
480
Stage variable:
i = 1 , 2 , . . * , -V , X + l
(ordering of the compressor stations).
State variables:
x;A Psi?
= 1,
2,
. . . , -1: :IF + 1
9
(24)
Control variables:
u;&PDi2 - Psi2
1, 2,
. , -J7
'
(25)
State-transition equations:
~ ; + l=
U;
- KiQi2
1, 2,
. . . , :I-.
(26)
1968
D. Illustrative Example
T o illustrate the approach, consider a line with the
characteristics shown in Table 111. I t is noted that extremely large pressure drops occur in sections 3 and 9
(see Ks and K g ) ,the sixth compressor is approximately
tn-o-thirds as efficient as the other compressors (see Ab
and Bs), the maximum pressure constraints in pipesections 5 and 7 are lower than in the other sections (see
P5 and Pi
and
the
maximum
compression
ratios
forcompressors4
and 7 are,respectively,lowerand
higher than the other compressors
(see Slmax
and Simax).
I t is assumed that the initial input
flow into the first
compressor is 600 mmcfd, and approximately 0.5 percent of the total gas flow through the compressoris
tapped off the transmission line to provide fuel for the
compressor.
Fig. 6 shows the operatingpolicy for an initial input
pressure of 500 psi. T h e following is a detailed analysis
of the operating policy for this particular example.
(27)
Z(r;, ?4i, i)
i=l
= f ( x i , uj, i)
1, 2,
. ,N
*
TABLE 111
xi E X ( i ) state constraint
ui E [:(xi, i) control constraint,
(28)
ZC~,
(Z i,
ZC~,
2:) E Qi
i)
x(i>
U(Zi,
i)
X;
Ai
xi:
?I
(xi
Zbi)Ri"
pf-1 m i n
2
I X i I P;-I maxi
= { a i : Pimin- xi
R:
~i
215.8
215.8
215.8
215.8
323.7
215.8
215.8
215.8
215.8
215.8
- Bi]
- K;Qi'
~i
K~
1 0.800 10.217
110.922
10.217
3 ; 1.870
0.217
Z(Z;,
8 1.030
1.950
10 1.040
0.217
0.217
9
0.217
~i
213.9
213.9
213.9
213.9
213.9
320.8
213.9
213.9
213.9
213.9
TRAWSMISSION
LINE
Pirnin
500.0
500.0
500.0
500.0
500.0
500.0
500.0
500.0
500.0
500.0
1000.0 1 . 6 597.0
1000.0 1 . 6 594.0
1000.0 1.5 591.0
1000.0 1.3 588.1
900.0 1.6 582.2
10GO.O 1.6
1582.2
900.0
1.75
579.3
1000.0 1 . 5 576.4
1000.0 1 . 6 573.5
1000.0 1.6 570.7
iI l1
5 2bi 5 P?irnar- si
and 0
5 ui I xi(SfmaX
- l ) }.
I t is to be emphasized that
one-dimensional dynamicprogrammingproblems of thetype described above
are very easy to implement and
offer no problems as far
as computer storage or computation time is concerned.
The inequality constraints can be easily handled and
actually reduce the computational requirements of dynamic programming. In addition, when a solution is obtained for a given steady-state flow, the optimal solution
for all input pressuresPi,is obtained. Thisallows a determination of the sensitivity of the optimal solution
ures
the
al
to
respect
with
Pi,.
4
5
6
7
8
9
COMPRESSOR STATIONS
WONG
mi
SYSTEMS
481