Professional Documents
Culture Documents
Your use of the JSTOR archive indicates your acceptance of JSTOR's Terms and Conditions of Use, available at .
http://www.jstor.org/page/info/about/policies/terms.jsp. JSTOR's Terms and Conditions of Use provides, in part, that unless
you have obtained prior permission, you may not download an entire issue of a journal or multiple copies of articles, and you
may use content in the JSTOR archive only for your personal, non-commercial use.
Please contact the publisher regarding any further use of this work. Publisher contact information may be obtained at .
http://www.jstor.org/action/showPublisher?publisherCode=informs. .
Each copy of any part of a JSTOR transmission must contain the same copyright notice that appears on the screen or printed
page of such transmission.
JSTOR is a not-for-profit service that helps scholars, researchers, and students discover, use, and build upon a wide range of
content in a trusted digital archive. We use information technology and tools to increase productivity and facilitate new forms
of scholarship. For more information about JSTOR, please contact support@jstor.org.
INFORMS is collaborating with JSTOR to digitize, preserve and extend access to Operations Research.
http://www.jstor.org
Model Building Techniques for the Correction of
End Effects in Multistage Convex Programs
RICHARDC. GRINOLD
University of California, Berkeley, California
(Received July 1979; accepted October 1982)
This paper considers model building procedures that can be used to reduce
end effects in multistage planning models. In particular, it emphasizes some
problems that are peculiar to energy planning applications. The paper pre-
sents and compares four methods for mitigating end effects. It concludes that
one of these four methods, the dual equilibrium procedure, is best. The major
drawback of the dual equilibrium procedure is its lack of simplicity. If it is to
be widely used, then it must be widely understood.
the initial phase to the secondary phase, then we might decrease T to T'
= (3/4)T. This would reduce the computation burden by 1 - (3/4)2/5 = 51%,
or it would allow us to enrich other aspects of the model and increase M
to M' = 4/3Mand still retain the same degree of difficulty. Thus the
smaller one can make T without causing undue distortions, the more one
can save on computations or enrich other aspects of the model.
The paper is organized as follows: Section 1 describes the multistage
planning model as a multistage linear program in which the initial
transient phase is followed by a stationary phase that consists of an
indefinite sequence of equal periods. The idea is to simplify that station-
ary phase problem in order to make the entire problem easier to solve.
Section 2 presents four ways of simplifying the problem. The four
methods are truncation (ignore the stationary phase), salvage (place an
ad hoc value on resources carried over from the transient to the stationary
phase), and primal and dual equilibrium (impose an equilibrium condition
on either the primal or dual variables in the stationary phase). Section 2
describes these methods and makes some comments of how they relate
to each other and Section 3 gives an example to illustrate the use of the
procedures. Sections 4 and 5 show how to extend the framework described
in Section 1 to fit more general models and, in particular, to accommodate
some of the special features found in energy planning models. Section 4
considers the case of nonrenewable resources; constraints on resource
availability are introduced into the model and we show how the four
methods (truncation, salvage, and primal and dual equilibrium) fare with
a model that contains constraints on exhaustible resources. Section 5
considers the problem of phasing-in new technologies during the station-
ary-phase. The phasing-in would normally lead to nonstationary coeffi-
cients in the constraint matrix during a period in which we have assumed
they are stationary. In Section 5, we present an alternative way of
modeling the phase-in restrictions by moving the nonstationarity to the
right hand side. Section 6 evaluates the four techniques qualitatively,
comparing them along dimensions of generality, simplicity, flexibility,
and computational difficulty. This section is qualitative and, in large part,
reflects the author's informed opinion. This evaluation in Section 6
concludes that dual equilibrium procedure is the best way to reduce the
length of the planning horizon and to provide a smooth transition from
the initial to the secondary phase. However, the dual equilibrium proce-
dure is more difficult to understand and should be mastered before one
embarks on its use. For this reason, we recommend the use of the dual
equilibrium procedure for initiating projects. For ongoing models, the re-
engineering of the model to fit with the dual equilibrium technique may
cause more difficulty than the eventual benefit; in this case an educated
use of the salvage technique seems advisable.
The paper is closely related to four other papers. Grinold [1977, 1983]
410 Grinold
(1.1)
2. APPROXIMATIONPROCEDURES
This section describes four ways of approximating (1.1) with a smaller
problem.
Primal Equilibrium
The primal equilibrium procedure assumes a constant rate of growth
(or decline) in the primal variables; that is xt+l = ytxl. This procedure is
applicable in problems that have bt+1= ytbi, and in which there is an
index I such that Hj = 0 and Kj = 0 for j > 1.
The primal equilibrium condition is enforced by adding extra con-
straints; there is a block of constraints for each time period that the
decisions xo and xi carry over into the equilibrium period. For example,
if Kj = 0 and Hj = 0 for j > I = 3, then substituting xt+i = ytxi and
bt+i = ytbi for t = 1, 2, 3, 4 yields
Correction of End Effects in Multistage Programs 413
Aoxo bo
H1xo + Ax1 = bi
H2xo + (yA + Kj)xi = yb1 (2.1)
H3xo + (y2A + yKi + K2)xl = -y2b
(y3A + y2KI + yK2 + K3)xl = y3b1, xo > 0, xl > 0.
On this example the constraints for t ? 5 are
4
yt4(y3A + y2Ki + yK2 + K3)x = yt4(y3bi)
However, this is simply yt-4 times the final constraint block in (2.1), and
is thus redundant.
The objective function can be written as
Truncation
The second procedureis called truncation. As the name implies, one
ignoresthe connectionbetween decisionsat times 0 and time 1 with those
in the later time periods. This leads to the problem
minimize fo[xo] + af[xi]
subject to (2.4)
Aoxo= b
Hixo + Ax, = b1, xo _ O, xi > O.
Notice that (2.4) is independent of the matrices (K1,K2, ... ) and (H2,
H3, * ). These matrices link times t = 2, 3, * with the decisions xo
and x1.
Truncating the problem disconnects the first two periods from the
remainderof the problem.This form of disconnectionassumes that any
fixed assets created up to time 1 will have no value after time 1. This, of
course, will induce a bias against building assets that are expensive and
long lived in periods 0 and 1. In addition, any liabilities incurredbefore
time 1 will not be paid back.If, for example,the model allowsfor financing
by intertemporalborrowing,then, in a naive application,there will be no
obligation to repay the loan. In extreme cases, the ability to incur
unlimited liabilities can cause the truncated problem to be unbounded.
In any case, the cost incurredin periods 0 and 1 is a lower bound on the
cost incurred by an optimal solution. This follows since whenever
Correction of End Effects in Multistage Programs 415
(xo, xi, *..) is any solution feasible for the infinite problem, (xo, x1) is
feasible for (2.4). However, we cannot, in general, obtain any bound on
the optimal value of (1.1) from the truncated problem (2.4).
Salvage
The salvage technique extends the truncation technique by placing a
value on the resources carried over from time 1 into later periods. The
time 0 decision, XO,creates a stream of goods (H2xo,H3xo, *.. ) available
at times 2, 3, ... respectively. It is possible to choose a vector doand say
that doxois the time 0 value of all the future goods (assets and liabilities)
created by decisions in time 0. For example, if xo creates physical capital,
then doxo could be the undepreciated value of that capital; i.e. we build
a new plant in period 0 and then sell the plant for its undepreciated value
at the end of the planning horizon. Similarly, the decision, x1, at time 1
creates a stream of goods (Klxl, K2x1, *.. ) available at times (2, 3, . . . ).
If we let ad1x1 be the time 0 value of these resources, then the salvage
value problem becomes:
minimize {tf[xo] - doxo} + a{tf[xi] - dixi}
subject to (2.5)
Aoxo= bo
H1xo + Ax, = b1, xo 2 O, xl > O.
We will discuss the salvage technique in more detail later in this
section.
Dual Equilibrium
The fourth technique, dual equilibrium, can be motivated from either
a primal or dual perspective. We will give the primal motivation here and
use the dual motivation later in the section to obtain a more unified view
of the truncation, salvage, and dual equilibrium approaches.
The primal approach aggregates the constraints and variables from
time t = 1 onward by placing a weight at-l(1 - a) on the time t constraint
and summing. Hence in place of constraints for t = 1, 2, * , one obtains
Lagrange Multipliers
This section describes another way to motivate the truncation, salvage,
and dual equilibrium procedures. The basic idea is to use Lagrange
multipliers to relax the constraints beyond the planning horizon. Then
we find that different assumptions about the values or form of the
Lagrange multipliers lead us to the three procedures (truncation, salvage,
and dual equilibrium).
Let us view bt as an external demand for goods and at time t: bt - Htxo
- Et>-51Kt-jxi is the net demand for goods at time t; i.e. the external
demand bt minus any demand satisfied or created by the earlier decision
(xo, xi, xt--,X_). The amount of goods supplied at time t is Axt. The
constraints of (1.1) say that this must equal the demand. If we relax that
constraint then we can define the unsatisfied demand as
Correction of End Effects in Multistage Programs 417
[excess [net
demand] demand] [supply] (2.8)
gt = [bt - Htxo - Eti-1 Kt-,x,] - [Axt].
If an element of gt is positive, then demand for that good has not been
met. If an element of gt is negative, then there is excess supply.
Now suppose we know, or can guess, values for the goods at each point
in time. Let ut be the time t value of goods at time t. Then utgt would be
the value of the excess demand at time t. If we viewed ut as a vector of
prices, then we would sell items in excess supply and buy the items in
order to satisfy the excess demand. These transactions would cost utgt at
time t. The time 0 value of this cost is atutgt (not really, since period 0 is
not of the same length as subsequent periods; however, the argument can
be modified slightly to compensate for that difficulty).
If we relax the constraints from period t = 2 onward, and to compensate
we make the supplier pay utgt at time t in order to satisfy the demand,
then the cost of any production plan (xO, xI, X2, ***) will be
fo[xo] + af[XI] + Xt=2 atf[xt] (2.9)
+ Xt=2 atut[bt - Htxo - tI-= Kt_-xj - Axt].
d= U2[Er?=i ajKj]
3. AN EXAMPLE
This section presents a small example that illustrates the four proce-
dures described above. The example is simple, yet it captures the essen-
tials.
This model considers an economy in which there are two types of
resources: exhaustible and inexhaustible. Each period an amount yt of an
intermediate good y is produced from the exhaustible resources and an
amount Zt of an intermediate good z is produced from the inexhaustible
resources. Total output is then a concave function g[yt, Zt] of the inter-
mediate goods yt and Zt.
Production of yt is limited in two ways. First by the exhaustible resource
limitation and second by a capacity restriction. If rt-i is the resource
inventory at the end of period t - 1, then the equation
-rt-, + yt + rt = O (3.1)
422 Grinold
keeps track of the resource inventory. In addition, capital is needed to
extract the resource. Let ht be the capacity for resource extraction in
period t. Let vt be unused capacity. Then
Yt + Vt = ht. (3.2)
Of course, the building and maintenance of productive capacity requires
some inputs. Thus let jt-l be the amount of period t - 1 output invested
in capital for extracting the nonrenewable resource; jt-l units of output in
period t - 1 will produce ajati, units of capacity in period t. Moreover, an
amount qht-, of period t - 1 capacity will survive to period t: i.e., this
capacity deteriorates at rate 1 - q. Thus the capacity ht is given by
ht= ajt-i + qht-i. (3.3)
There is a similar restriction for producing zt with it-, being the invest-
ment, kt the capacity, eit-i the capacity produced in period t by it-,, and
pkt-, the carry over in capacity from period t - 1 to period t. Thus if wt
is unused capacity,
Zt + Wt = kt
(3.4)
kt = eit-, + pkt-1.
Total consumption, ct, in period t is output minus investment. Thus
Ct = g[yt, Zt] - it -it, (3.5)
the utility of this consumption is U [ct], where U is an increasing concave
function and future utility is discounted at rate (1 - a). Thus the objective
is to maximize
t=1 atU [ct ] = f.-l a U[g(yt,
U zt ) it j t].
To put this model in the framework of Section 1, let
(i) x = (y, z,j, i, h, k, v, w, r),
y z j i h k v w r
(ii) [1 0 0 0 0 0 0 0 11
1 0 0 0 -1 0 1 0 0
A= 0 0 0 1 0 0 0 0
0 1 0 0 0 -1 0 1 0
? O O O 0 1 0 0 0
(3.6)
(iii) -O O O O O O O O -1-
O) K= K = -a O -q O O0 0
'O O O -e O -p O O O
(iv) Kt = O for t ' 2, and
(v) bt = 0 for t_ 1.
Correction of End Effects in Multistage Programs 423
In (3.6) the five constraints are simply those in (3.1) to (3.4).
For the purpose of illustration, suppose the transient period (0, D] is
divided into five subperiods of length equal to the periods in the equilib-
rium phase. Thus we are going to wait five periods before we terminate
the problem. These five periods are aggregated into period 0. Let XTbe
the decision taken in subperiod T of the transient phase (a 9-element
vector). Then the 45-element vector
XO = (xo, Xl, X2, X3, X4)
is the decision variable in the first phase. Since the objective in (1.1) is to
minimize, the objective for the transient phase in this example becomes
fo[xo] -- =o aTU[c,] where cT is the consumption in subperiod T; c, is
computed as in (3.5).
The matrices Ao and H1 are given by
K A
Ao= K A ]
K A
K A_
H1=[O 0 0 0 K],
and Ht = 0 for t ' 2.
The vector bo has 25 elements. The first element of bois the amount of
the exhaustible resource available at time 0, the third is the amount of
capacity for process y available at time 0 and the fifth is the amount of
process z capacity available at time 0. The remaining 23 elements of bo
are equal to zero.
The objective term in later periods is given by f[xt] =--a4U [ct]. Notice
how the length of the transient phase changes Ao, fo, f, and bo.
The primal equilibrium technique, with y = 1, would have the con-
straints.
Aoxo= bo
Hlxo + Ax1 = 0
(A+K)xi=0, xo'O, x1iO.
The objective is minimize fo[xo] + af[xll/(l - a). The matrix A + K
becomes
y z j i h k v w r
1 0 0 0 0 0 0 0 0
1 0 0 0 -1 0 1 0 0
[0 0 -a 0 1-q 0 0 0 Ol
0 1 0 0 .0 -1 0 1 0
0 0 0 -e O 1-p O O O .
424 Grinold
Notice that as long as -y' 1 the exhaustible resource will not be extracted
in the stationary phase.
Application of the truncation technique is straightforward.
For salvage value, one selects a vector U2 = (, 0, A, ?, A) to associate
with the carryover Kxl from period 1 into the later period. The salvage
values are
do=O and (37)
d= (0, 0, -aa42, -aeX, -aq4, -apA, 0, 0, -a').
The variables -A and -X are the marginal value of additional capacity
for y and z at time 2, and -X is the marginal value of the exhaustible
resource at time 2. Thus to apply the salvage technique one guesses the
value of additional resources and additional capacity at time 2, calculates
d1 (3.7), and then solves
minimize fo[xo] + a[f[xi] - dixi]
subject to
Aoxo= bo
H1xo + Ax, = O, xo -0, xi-' 0.
For the dual equilibrium technique one has the constraints
Aoxo = bo
(1 -a)Hixo + (A + aK)x(a) =O, xo-' 0 x(a) 0O
with the objective
fo[xo] + af[x(a)]/(1 - a)
where
af[x(a)]/(l - a) = -a5Utg[y(a), z(a)] - i(a) -j(a)}/(l - a)
and
y z j i h k v w r
10 00 0 0 0 0 1-al
1 0 0 0 -1 0 1 0 0
0 1 0-a 0 1 -1 0 1 0
O-0 O O -ae 0 1-ap 0 0 0 .
Since a < 1, this treatment will always allow for use of the exhaustible
resource; i.e., it is possible to have y(a) > 0.
This model could be simplified a great deal. In fact, by eliminating ht,
and kt and rt one can reduce the number of equations from 30 to 13 and
Correction of End Effects in Multistage Programs 425
the number of variables from 54 to 37 for the truncation, salvage and
dual equilibrium techniques.
For the primal equilibrium, since y must be zero in the equilibrium
phase, one can reduce to 14 equations and 33 variables.
4. EXHAUSTIBLE RESOURCES
Many dynamic planning models have inputs to the production process
that are in limited supply. This of course applies to mineral resources
such as oil, coal, natural gas, and uranium. Such as resource limitation
appears to conflict with the concept of stationarity, but as is demonstrated
below, there is no conflict. The model can include exhaustible resources.
To see this, let yt be the vector of resources consumed in period t, st a
stock of vectors to be carried over from period t to period t + 1, and let
us allow the resources to be discarded. This rather artificial device of
discarding the resource is included to allow us to avoid a technical bind
caused by the equilibrium condition. The initial supply, s-1, is known,
and the accounting relationship is st + yt ' st_- for all t.
In a primal equilibrium problem (with Ht = 0 and Kt = 0 for t _ 2),
there are three sets of resource constraints
so + yo s-, for period 0
When (4.6) is combined with the time 0 constraint one obtains a single
equivalent constraint:
yo + y(a)/(l -a) S<s-. (4.6)
To summarize, the truncation and salvage value add the constraint
(4.4) and in addition (4.5) is added to the objective in the salvage
technique. For primal equilibrium,one adds (4e2)if y > 1, and (4.3) if y
< 1. Finally, the dual equilibriumtechnique adds (4.7).
E=, yt'-jy.In equilibrium, this must equal demand, i.e. ytd. From this one
can solve for y/d, the fraction of total capacity that is new: y/d =
ym(y - 1)/(ym+l - 1). When y = (1.025)5 = 1.1314, and m = 5, then y/d
= 0.2219; i.e., 22%of all plants will be of the most recent vintage. Now let
us use information to model introductory rates.
Let d, be the demand in period t, then substitute 0.2219dt for the sum
Ei=1yit in Equation 5.1. This yields Yit ' kjt(0.2219)dt. This form of the
rate of expansion constraint is slightly more ad hoc than (5.1), however,
it appears (see Grinold [1980]) to serve the same purpose.
When a constraint of this sort is used in a problem approximated by
the dual equilibrium procedure, one obtains a constraint yj(a) '
at-lkjtdt](1 - a) where yj(a) = [E=-1 at`yjt](1
LZWt=i - a).
6. QUALITATIVECONCLUSIONS
This section contrasts and ranks the four methods for treating end
effects according to four criteria: simplicity, ease of computation, gener-
TABLE I
METHOD-QUALITY SCORECARD
Truncation 3 3 1 3
Primal equilibrium 1 1 2 2
Salvage 2 3 2 1
Dual equilibrium 1 3 3 3
ality, and flexibility. Table I summarizes the results. The rankings are
relative; three reflect the best, one the worst, and two a median. Some of
the judgments expressed in Table I can be defended formally. Others,
however, are based on intuition and are more subjective. Table I should
not be considered the last word; it is merely an organization of the
author's judgments.
Simplicity
It is obvious that the truncation procedure is the simplest both in
interpretation and ease of use. The data need not be altered and the
truncation procedure can be interpreted as ignoring the periods after the
planning horizon. The other three procedures require some modification
to the problem structure; the primal equilibrium approach adds additional
constraints; the salvage value approach modifies the objective function;
and the dual equilibrium approach modifies the last set of constraints.
The salvage value technique is easier to interpret than either of the
equilibrium techniques; it takes time and experience to understand the
equilibrium methods.
428 Grinold
Computation
The primal equilibrium approach requires additional constraints and
therefore entails more difficult computations. In addition, computational
experience with manpower planning problems (Grinold et al.) revealed
some numerical difficulties with the primal equilibrium approach. In
those calculations the primal solutions did not move toward the true
optimal solution in a smooth way; there were abrupt changes in the
primal solutions toward the end of the planning horizon. Since an end
effect correction is intended to make a smooth transition between the
planning period and the period after the planning horizon, the primal
equilibrium technique appeared to be working in the wrong direction.
Generality
The truncation procedure is a special case of the salvage value tech-
nique in which one sets U2= 0, i.e., there is no value to resources available
in period 2.
In one way, the dual equilibrium approach is more general than the
salvage technique. In the dual equilibrium procedure, the variable U2is
calculated rather than specified. In other words, the dual equilibrium
procedure is more general than the salvage value technique since it
requires a specific relationship between ut and ut+i, i.e., ut+1- ut = 0. The
generality of calculating ul rather than specifying it in an ad hoc manner
is considered more important, so the dual equilibrium procedure is ranked
as more general.
A theoretical study (Grinold et al.) shows that in general, when the
desired planning horizon is infinite, a T period approximation using dual
equilibrium will give improving approximations of the true optimal solu-
tion as T increases, and perfect approximations in the limit. None of the
other techniques will do this in the general case. This is significant, since
the actual objective of the model may be (as was pointed out in the
introduction) to determine the values of some critical primal and dual
variables. In fact, in some cases (see de Ghellinck and Eppen, Grinold et
al., Grinold and Hopkins [1973] and Hopkins [1971]), the dual equilibrium
technique can be shown to give the optimal solution.
Flexibility
In judging the methods, we considered two aspects of flexibility: first,
the ability to adapt to changes in the problem data, i.e., in sensitivity
analysis, and second the ability to handle variations of the basic model.
In the salvage technique, part of an optimal solution must be specified,
i.e., u2. If the data of the problem are changed, then the guess at these
solutions should change also. In practice, this will either make sensitivity
Correction of End Effects in Multistage Programs 429
APPENDIX
This technical appendix provides the theoretical support for the La-
grange multiplier arguments made in Section 2. It is based on two Grinold
[1977, 1983] papers. Let us assume that the matrix A has m rows and n
columns. The norm notation refers to the 11norm and the three-
line equality means "is defined to be." Now define
(i) b (b1, b2, ** ), a sequence of vectors in IRm
(ii) Hxo (H1xo,H2xo, *.. ), a sequence of vectors in IRm
(iii) X x3
(X1, X2, *X3, a sequence of vectors in IRn
REFERENCES
BERGENTHAL, G. 1974.A LinearProgrammingStudy of the Marketfor Electric-
ity, WorkingPaper 74-7,EuropeanInstitute of AppliedManagement,Brussels.
CONNOLLY, T. J., G. B. DANTZIG AND S. C. PARIKH. 1977. The Stanford PILOT
Energy-EconomicModel. In Advances in the Economics of Energy and Re-
sources, R. S. Pindyck (ed.). JAI Press, Greenwich,Conn.
DEGHELLINCK, G. R., AND G. EPPEN. 1967. Linear Programming Solutions for
SeparableMarkovianDecision Programs.Mgmt. Sci. 16, 371-393.
GRINOLD, R. 1977. Finite Horizon Approximationsof Infmite Horizon Linear
Programs.Math. Program. 72, 1-17.
GRINOLD, R. 1980.Time Horizonsin Energy PlanningModels. In Energy Policy
Modeling, S. Schwartzand W. T. Ziemba (eds.). Nijhoff, Boston.
GRINOLD, R. 1983.ConvexInfiniteHorizonPrograms.Math. Program.25, 64-82.
GRINOLD, R., AND D. S. P. HOPKINS. 1973. Computing Optimal Solutions for
Infinite-HorizonMathematical Programswith a Transient Stat e. Opns. Res.
21, 179-187.
GRINOLD, R., R. M. OLIVER AND K. T. MARSHALL. 1976. Longitudinal Manpower
Planning Models. Naval Res. Logist. Quart. 23, 245-260.
HOPKINS, D. S. P. 1971.InfiniteHorizonOptimallyin an EquipmentReplacement
and CapacityExpansionModel.Mgmt. Sci. 18, 145-156.
MANNE, A. S. 1970. Sufficient Conditionsfor Optimalityin an Infinite Horizon
Development Plan. Econometrica 38, 18-38.
MANNE,A. S. 1976. ETA: A Model for Energy Technology Assessment. Bell J.
Econ. 7, 379-406.
MARCUSE, W., L. BODIN, E. CHERNIAVSKYAND Y. SANDBORN. 1975. A Dynamic-
Time Dependent Model for the Analysis of Alternative Energy Policy, Brook-
haven National Laboratory, BNL-19406 (July).
NORDHAUS, W. 1973. Allocation of Energy Resources, Brookings Papers on
Economic Activity, No. 3.