Download as pdf or txt
Download as pdf or txt
You are on page 1of 14

European Journal of Operational Research 171 (2006) 1113–1126

www.elsevier.com/locate/ejor

Non-convex power plant modelling in energy optimisation


a,* b
Simo Makkonen , Risto Lahdelma
a
Process Vision Ltd, Melkonkatu 18, FIN-00210 Helsinki, Finland
b
University of Turku, Department of Information Technology, Lemminkäisenkatu 14 A, FIN-20520 Turku, Finland

Available online 10 March 2005

Abstract

The European electricity market has been deregulated recently. This means that energy companies must optimise
power generation considering the rapidly fluctuating price on the spot market. Optimisation has also become more dif-
ficult. New production technologies, such as gas turbines (GT), combined heat and power generation (CHP), and com-
bined steam and gas cycles (CSG) require non-convex models. Risk analysis through stochastic simulation requires
solving a large number of models rapidly. These factors have created a need for more versatile and efficient deci-
sion-support tools for energy companies.
We formulate the decision-problem of a power company as a large mixed integer programming (MIP) model. To
make the model manageable we compose the model hierarchically from modular components. To speed up the optimi-
sation procedure, we decompose the problem into hourly sub-problems, and develop a customised Branch-and-Bound
algorithm for solving the sub-problems efficiently. We demonstrate the use of the model with a real-life application.
 2005 Elsevier B.V. All rights reserved.

Keywords: Energy management; Deregulation; Energy market; Optimisation; Mixed integer programming

1. Introduction ration of monopolistic network operations from


the other (competitive) businesses is particularly
The recent deregulation of the European elec- important, because this prevents unfair competi-
tricity market has involved the unbundling of the tion through cross-subsidisation. These changes
power generation, transmission, trade and retail have created a highly volatile power market, where
businesses, and in some cases splitting very large competition is intense. Consequently, several new
utilities into smaller competing companies. Sepa- instruments for trading and risk hedging have ap-
peared on the market. In particular, the traditional
*
physical long-term contracts have been replaced
Corresponding author. Tel.: +358 9 25320 300; fax: +358 9
25320 360.
by contract portfolios consisting of a large number
E-mail addresses: simo.makkonen@processvision.fi (S. of short-term contracts. This means that the pro-
Makkonen), risto.lahdelma@cs.utu.fi (R. Lahdelma). duction and trade must be optimised accurately

0377-2217/$ - see front matter  2005 Elsevier B.V. All rights reserved.
doi:10.1016/j.ejor.2005.01.020
1114 S. Makkonen, R. Lahdelma / European Journal of Operational Research 171 (2006) 1113–1126

enough to meet the spot market variations, and it competition on the volatile power market. To
is also necessary to repeat the optimisation daily, adapt to the new business environment, energy
hourly or ever more frequently in order to react companies need financial and human resources
to the rapidly changing situations. and new kinds of decision support tools. Electric-
The growing emphasis on environmental as- ity traders need tools for quantifying the risks
pects is also changing the face of the energy indus- and determining the use of different risk hedging
try. For example the European energy industry instruments. The retailers must manage customer
must consider the already launched green certifi- portfolios and dynamic pricing of contracts on
cates and be prepared to manage emissions trading the market. The producers must optimise their
by year 2005. In some cases emissions trading will operations subject to volatile prices for electricity
influence energy production and production plan- and fuel (especially gas), and they must manage
ning dramatically. There is a pressure to move into the new challenges associated with CO2 allowances
more advanced and environmentally friendly and emission trading. This means that on a dereg-
power generation technologies, and also to switch ulated market, optimisation of the power genera-
to less harmful primary energy sources. tion should consider both the spot and forward
A similar deregulation development is taking price of electricity and the CO2 allowances given
place on the gas market. Gas is an increasingly the physical, technical and power reserve con-
popular alternative fuel at power plants due to straints of power generation today.
its environmental friendliness in relation to other The new decision-support tools must be more
fossil fuels. Gas is also, for some end-users, a di- versatile, accurate, and efficient than the present
rect substitute for electricity. Thus, variations in generation. Versatility is needed in that it must
the availability and price of gas affect both the pro- be easy to maintain the model and keep the model
duction of, and demand for, electricity. parameters up to date. Accurate modelling of
Fig. 1 illustrates the new business environment new production technologies, such as gas tur-
in energy planning. Due to the recent changes, en- bines (GT), combined heat and power genera-
ergy companies must boost their production and tion (CHP), and combined steam and gas cycles
retail businesses to survive under the stronger (CSG) may require non-convex models, which

Technical Variable
constraints fuel price

Production
plan Fuel
mixture
Power
Plants

Electricity Heat /
Steam
Variable
electricity price
Variable load
Emission

Variable CO2 allowance price

Fig. 1. The business environment in energy planning.


S. Makkonen, R. Lahdelma / European Journal of Operational Research 171 (2006) 1113–1126 1115

makes the optimisation problems much more diffi- European countries. The non-convex optimisation
cult than before. Optimisation must be faster than model introduced in this paper has been installed
before for two reasons. Firstly, rapid re-optimisa- at one medium size power company in Finland.
tion is required when the situation on the market This paper is organized as follows. In Section 2,
changes. Secondly, advanced computations, such we present the GENERIS energy information sys-
as risk analysis through stochastic simulation, re- tem. In Section 3, we present how convex power
quires the solving of a large number of models rap- plant models are treated in EHTO. In Section 4,
idly (Makkonen and Lahdelma, 1998; Spinney and we extend the EHTO model to handle non-convex
Watkins, 1996). power plant models and show how the model is
In this paper, we focus on the production and solved by using an efficient tailored Branch-and-
trade planning problem of a power company with Bound algorithm. In Section 5, we demonstrate
plants that require non-convex modelling. We for- the use of the model in a real-life case and analyse
mulate the problem as a large mixed integer pro- the system performance.
gramming (MIP) model. To make the model
manageable we compose the model hierarchically
from modular components. We present a generic 2. The GENERIS energy information system
method of encoding different kinds of non-convex
power plants in the model. To speed up the optimi- 2.1. Overall system architecture
sation procedure, we decompose the problem into
hourly sub-problems and develop a customised GENERIS is a commercial energy information
Branch-and-Bound algorithm for solving the sub- and decision support system for different kinds of
problems efficiently. We demonstrate the use of participants in the deregulated electricity market:
the model with a real-life application. grid operators, electricity traders, retailers, net-
The non-convex energy optimisation model work operators and producers. The system in-
introduced in this paper is an extension of the cludes a configurable set of tools for the different
Electricity and Heat Trade Optimisation (EHTO) participants. In the case of a producer or trader,
system first introduced by Lahdelma and Makko- the application set contains an on-line measure-
nen (1996). EHTO is embedded in the commercial ment data management system, a trade support
GENERIS energy information and decision sup- application, a contract and portfolio management
port system, where the overall energy model is application, a forecasting model for energy de-
composed and configured hierarchically from mand, monitoring and reporting applications,
graphical model components. The basic function- business-to-business and in-house communication
ality of EHTO is to optimise the combined heat modules (EDIEL, ETSO ESS, etc.) and the EHTO
and power acquisition for a given time horizon optimisation application.
based on forecasts for sales volumes and spot A difficult practical problem in a real-life deci-
market prices. The embedded Power Simplex opti- sion support system is to guarantee the integrity
misation code is used to solve the models and availability of reliable data. In GENERIS,
(Lahdelma and Hakonen, 2003). EHTO has been this problem is solved through an overall energy
used for analysing the risks of electricity trade on data model that connects the different tools to-
the liberated market through stochastic simulation gether and provides centralised data validation
(Makkonen and Lahdelma, 1998), for analysing and management services. This means that the dif-
how various old and new types of electricity con- ferent applications, such as the EHTO Optimiser,
tracts can be used in cooperation (Makkonen can concentrate on their specific tasks.
and Lahdelma, 2001), and for multicriteria deci-
sion support on the deregulated energy market 2.2. The EHTO optimiser
(Makkonen et al., 2003). GENERIS has been
developed by Process Vision Ltd, and it is cur- The EHTO Optimiser is suitable for a wide
rently in use at more than 50 utilities in seven range of different optimisation and planning tasks
1116 S. Makkonen, R. Lahdelma / European Journal of Operational Research 171 (2006) 1113–1126

starting from operative short-term optimisation plants and combined district heat production
in real-time and extending to strategic long-term plants are supported. The power plants can also
planning and risk analysis models based on sce- have multi-fuel options, including fuels whose
nario techniques and stochastic simulation. The price varies hourly.
EHTO Optimiser can be used for planning the The overall energy optimisation model is con-
optimal energy acquisitions and sales for a given figured graphically from predefined model compo-
planning horizon from 1 hour up to several years. nents (Fig. 2). The system can contain three kinds
The basic functionality of EHTO is to optimise of supply and demand components: power compo-
the combined heat and power acquisition for a nents, heat components and CHP components.
given time horizon based on forecasts for sales According to its type, each supply or demand com-
volumes and spot market prices. The model ponent is connected through a contract to a power
provides the optimal production and trading plan balance component, a heat balance component, or
for electricity and heat. The objective function is to both. The supply side components include different
maximize the difference between sales income and kinds of short and long-term purchase contracts,
energy procurement costs. EHTO can handle both and various production facilities, such as hydro
fixed sales based on heat and electricity load fore- power plants, condensing power plants, district
casts and open sales to the market based on price heating stations, and different types of CHP
forecasts. The procurement costs include purchase plants. The demand side components include var-
costs and production costs. The production costs ious kinds of open and fixed sales contracts with
may depend on fuel prices, electricity spot market different types of customers or customer groups.
price, outdoor temperature, and many other There is also a model component for the spot mar-
parameters. Several generation technologies ket, which acts simultaneously as a supply and
including industrial power plants, co-generation demand component.

Fig. 2. Graphical configuration of the GENERIS EHTO energy management model. Power components are dark, heat components
are light, and CHP components are two-coloured. The model contains five production plants (squares), a heat and a power balance
(rectangles), contract nodes (circles) and demand nodes (triangles).
S. Makkonen, R. Lahdelma / European Journal of Operational Research 171 (2006) 1113–1126 1117
X
3. The energy management model min C tu ðxtu Þ
u2U
 
3.1. The overall energy management model Pt ð2Þ
s:t: Hxt ¼ ;
Qt
The EHTO system generates the overall energy
xtu 2 X tu ; u 2 U:
management model automatically based on the
graphical configuration (Fig. 2) and compo- Here, the subsystem-specific objective functions
nent-specific settings. The model is composed of terms have been decomposed into hourly terms
subsystems u 2 U, which correspond to the vari- C tu ðxtu Þ and the subsystem-specific constraints have
able supply and demand side components. The been decomposed into hourly constraints repre-
model is specified for a sequence of hours t 2 T sented by the sets X tu .
that form the planning horizon. The resulting The applicable decomposition techniques de-
model is formulated as pend on what kind of dynamic dependencies are
X present in the model. In the simplest case with
min C u ðxu Þ
u2U
no dynamic dependencies, each hourly model is
  solved once in sequence. When dynamic dependen-
t
Pt ð1Þ
s:t: Hx ¼ t
; t 2 T; cies are present, the decomposition algorithm may
Q require solving the hourly models repetitively with
xu 2 X u ; u 2 U : different parameters. Suitable techniques include
e.g. dynamic programming, Lagrangian decompo-
Here, x is the vector of all decision variables, xu is
sition, Dantzig-Wolfe decomposition, BendersÕ
the vector of variables related to component u, and
decomposition, and various heuristic techniques.
xt is the vector of variables related to hour t. The
The interested reader could refer, for example to
objective function is formulated as minimisation
Baldick (1995), Dantzig (1963), Guan and Luh
the sum of subsystem-specific net cost functions
(1992), Guan et al. (1995), Lahdelma and Makko-
Cu(xu). In this representation possible demand-side
nen (1996, 2001), Lahdelma and Ruuth (1989,
(sales) components will contribute to the objective
1993), Lautala et al. (1992), and Wang et al.
function with a negative cost. The supply and de-
(1995).
mand components are connected to common
The hourly model (2) consists of submodels min
power and heat balances through hourly balance
C tu ðxtu Þ subject to xtu 2 X tu that are combined to-
constraints t 2 T. The balance constraints are rep-
gether by linear constraints. The standard EHTO
resented by a time-invariant technology and trans-
optimiser assumes that the hourly submodels are
mission matrix H and forecasts Pt,Qt for the net
convex for each component. Convexity of a sub-
demand of power and heat. The subsystem-specific
model means that X tu is a convex set and C tu ðxtu Þ
constraints are represented by the sets Xu. Both the
is a convex function of xtu 2 X tu . The convexity
constraints Xu and objective function terms Cu(xu)
assumption is used in EHTO to speed up the opti-
may contain dynamic dependencies. Examples of
misation of the hourly models dramatically.
dynamic constraints are the storage constraints
Firstly, because the submodels are convex, then
for a hydro power and the energy package con-
the hourly model (2) is also convex. This means
straints in long-term power contracts. Examples
that it is possible to use efficient convex optimisa-
of dynamic cost function terms are the start-up
tion techniques for solving (2) instead of much
and shut-down costs for thermal power plants.
slower non-convex techniques. Secondly, if all
the submodels are linear programming (LP) prob-
3.2. Decomposition into hourly models lems, then (2) is also an LP problem. Solving LP
problems is, in general, much more efficient than
Using various decomposition and co-ordination solving general convex problems of roughly the
techniques, the overall energy management model same size. As we will show next, it is possible to
can be decomposed into hourly models represent convex power plant and trade contract
1118 S. Makkonen, R. Lahdelma / European Journal of Operational Research 171 (2006) 1113–1126

models as compact LP models with good accuracy. set of characteristic points, the above formulation
Thirdly, the resulting LP model has a special struc- approximates any convex cost function with arbi-
ture which can be utilized for solving the problem trarily good precision. In practice, the characteris-
much more efficiently than by using any generic tic points can either be determined empirically
LP algorithms. (based on test runs) or calculated based on an ana-
lytical model. In either case, the number of points
will be reasonably small.
3.3. Convex power plant modelling
This formulation allows the shape of the char-
acteristic to change hourly, but assumes that the
As illustrated in Fig. 3, the hourly power pro-
same number of points jJuj are used for each hour.
duction P tu and heat production Qtu of a CHP plant
If a plant needs fewer points at some hours, extra
must be in the characteristic operation area X tu ,
points can be effectively disabled by fixing those xtj
ðP tu ; Qtu Þ 2 X tu : ð3Þ to zero. It is typical that the number of character-
istic points and their (p, q)-coordinates remain
Assuming that the area is convex and that the fixed from hour to hour, but due variable fuel
operating costs C tu ¼ C tu ðP tu ; Qtu Þ are a convex func- prices, the c-coordinate varies from hour to hour.
tion of power and heat production, we can repre- In such cases it is most convenient to represent
sent the characteristic operating area of the CHP the characteristics of the power plant as (r, p, q)
plant as a convex combination of extreme charac- coordinates, where r is the fuel consumption. The
teristic points ðctj ; ptj ; qtj Þ through c-coordinate is computed from r based on the
X hourly fuel price Ct according to
C tu ¼ ctj xtj ;
j2J u ctj ¼ C t rtj : ð5Þ
X
P tu ¼ ptj xtj ; In addition to CHP plants, the energy model
j2J u
X may contain separate power and heat components.
Qtu ¼ qtj xtj ; ð4Þ Such components include condensing power plants,
X
j2J u hydropower, heat plants, and various purchase and
xtj ¼ 1; sales contracts for heat and power. All these can be
j2J u modelled as special cases of the convex CHP plant
xtj P 0; j 2 J u; model (4) with either qtj ¼ 0 (in power components)
or ptj ¼ 0 (in heat components).
where Ju is the index set of variables associated Substituting convex models (4) for each compo-
with plant u. The minimum cost function of the nent into (2) gives an LP model with a special
plant is then the lower envelope of the convex structure. The EHTO optimiser contains an imp-
polytope defined by (4). With a sufficiently dense lementation of the specialised Power Simplex
algorithm for solving such models efficiently.
According to Lahdelma and Hakonen (2003)
Q (c3,p 3,q 3) Power Simplex solves real-life problems 20–190
times faster than the tabular simplex code by Flan-
nery et al. (1988) and 20–100 times faster than the
(c4,p 4,q 4) efficient sparse simplex code by Lahdelma et al.
(1986). The Power Simplex algorithm can only
(c2,p 2,q 2)
(c5,p 5,q 5) solve problems that contain one heat and one
power balance as in (1) and (2). Since heat cannot
(c6,p 6,q 6) be transported over long distances, Power Simplex
(c1,p 1,q 1) P applies only for local CHP planning. Problems
with multiple heat balances can be solved with
Fig. 3. Feasible operating area of a CHP plant. comparable efficiency using the Extended Power
S. Makkonen, R. Lahdelma / European Journal of Operational Research 171 (2006) 1113–1126 1119

Simplex algorithm by Rong et al. (2005) and tri- We next show how to extend the convex energy
generation problems using the Tri-Commodity system model to incorporate non-convex power
Simplex algorithm by Rong and Lahdelma (2005). plant models and how to solve the non-convex
model efficiently.

4. Non-convex power plant modelling 4.1. Defining non-convex CHP plants


There are situations where the convexity of a A well-known technique to handle non-convex
power plant cannot be assumed. If the marginal models is to divide the model into convex submod-
efficiency of the power plant is an increasing func- els and to encode these submodels as alternative
tion of p or q, this results in a non-convex charac- model components. Fig. 4 illustrates the character-
teristic. It is also possible that the operating area in istic operating area of a CHP plant consisting of
the (p, q) plane is non-convex. These situations are one boiler and a backpressure turbine with op-
common with advanced production techniques, tional reduction bypass, condensing operation
such as in backpressure plants with condensing and auxiliary cooling. The characteristic consists
and auxiliary cooling options, in gas turbines, of 9 points. The fuel consumption at each (p, q)
and in combined gas and steam cycles. Non-con- point is specified through two consumption rates,
vexity can also result e.g. from a fuel constraint rp for electricity and rq for heat as
that requires a more expensive fuel to be used be-
fore a cheaper one. A complex power plant can r j ¼ r p p j þ r q qj : ð6Þ
also have a number of alternative operating modes
that shift some or all of the characteristic points. A single combined consumption ratio would of
This makes the characteristic non-continuous course be sufficient for specifying the fuel con-
(and thus non-convex). sumption. Separate ratios for power and heat are

Fig. 4. Non-convex characteristic of a backpressure plant.


1120 S. Makkonen, R. Lahdelma / European Journal of Operational Research 171 (2006) 1113–1126

Table 1 Index sets


Allocation of characteristic points to convex sub-areas U set of components (cogeneration plants,
Area P1 P2 P3 P4 P5 P6 P7 P8 P9 trade contracts, demand side management
A1 1 1 1 1 1 components)
A2 1 1 1 1 1 U* set of non-convex plants (i.e., plants with
A3 1 1 1 1 more than one area)
A characteristic areas of all components
given in order to determine how the production Au characteristic areas of component u
costs should be allocated for power and heat after Aj characteristic areas that contain point j
the optimisation. J index set of characteristic points in all
The characteristic area consists of different sub- components
areas. The line between points 1 and 2 is the back- Ju index set of characteristic points of com-
pressure line where the consumption rates are ponent u
rather good. If more heat is needed, it is possible
to open a reduction valve and let some of the high Parameters
pressure steam bypass the turbine. This brings the cj production cost at characteristic point
operation towards points 8 and 9 with good effi- j2J
ciency. More power can be extracted from the tur- cp± penalty for slack or surplus power
bine by moving into the condensing area, towards cq± penalty for slack or surplus heat
point 3 with a much higher consumption ratio and pj power generation at characteristic point
consequently lower marginal efficiency. Finally, if j2J
even more power is needed, it is possible to start qj heat generation at characteristic point
the auxiliary cooling, which means moving to- j2J
wards points 4, 5, 6, and 7.
The characteristic surface for the CHP plant is
Decision variables
not convex. This can be detected easily by comput-
xj variable associated to characteristic point
ing the angles between adjacent triangular facets.
j2J
Concave angles appear along line segments 1–3
xp± slack or surplus variable for power
and 2–3. Therefore it is necessary to divide the area
xq± slack or surplus variable for heat
into convex sub-areas. The first convex sub-area
ya zero-one variable determining if area a is
A1 is formed by the combined backpressure, con-
in use (a 2 Au, u 2 U*)
densing and reduction area (1,8,9,2,3). The border
line of the remaining auxiliary cooling area is non-
convex at point 3. Thus it must be split into two
4.3. The non-convex hourly model
sub-areas, A2 = (1, 3, 6, 5, 4) and A3 = (2, 7, 6, 3).
A compact way to represent this subdivision is to
The non-convex hourly model is summarised in
indicate for each characteristic point to which con-
Eqs. (7)–(15).
vex sub-areas it belongs as shown in Table 1. An X
advantage with this representation is that it min cj xj þ cp xp þ cpþ xpþ
is not necessary to repeat common border points j2J
between two or more sub-areas. þ cq xq þ cqþ xqþ ð7Þ
X
4.2. Notation s:t: pj xj þ xp  xpþ ¼ P ; ð8Þ
j2J
X
Next, we formalize the hourly non-convex qj xj þ xq  xqþ ¼ Q; ð9Þ
j2J
power plant model. To make the notation simpler, X
we omit the superscript t from all future formulas. xj ¼ 1; u 2 U; ð10Þ
We use the following notation: j2J u
S. Makkonen, R. Lahdelma / European Journal of Operational Research 171 (2006) 1113–1126 1121

xj P 0; j 2 J; ð11Þ may belong to several areas. For this reason an


xj-variable is forced to zero only if all correspond-
xp ; xq ; xpþ ; xqþ P 0; ð12Þ
X ing ya variables are zeroes (i.e. their sum is zero).
xj 6 ya; j 2 J u; u 2 U ; ð13Þ
a2Aj 4.4. Solving hourly non-convex model
X

y a ¼ 1; u2U ; ð14Þ
a2Au The non-convex model (7)–(15) can be solved as
a general mixed integer programming (MIP) prob-
y a 2 f0; 1g; a 2 Au ; u 2 U : ð15Þ
lem. The most common technique to solve MIP
The objective (7) minimises the net acquisition problems is to apply the Branch-and-Bound (B &
costs for power and heat. The net acquisition costs B) algorithm. The B & B algorithm is based on a
include production costs for physical plant com- best-first tree search. Each node in the search tree
ponents, purchase costs for trade components, consists of an LP problem that is formed as a lin-
income (negative costs) from possible demand- ear relaxation of a corresponding MIP problem.
side-management components, and penalties for The initial (root) node is the LP relaxation of the
slack and surplus energy. Eqs. (8) and (9) are the original MIP problem and it is formed simply by
hourly balance constraints for power and heat, ignoring the non-convex constraints (15). The
correspondingly. Non-negative slack and surplus main loop of the B & B algorithm manages the
variables (12) are included in the balance con- search tree, keeps track of the so far best MIP
straints to allow the supply to differ from the solution and chooses, in turn, the most promising
demand at given (penalty) cost. For each compo- unexplored leaf node to solve. Solving an LP prob-
nent u the net cost and the power and heat produc- lem in a node has three possible outcomes:
tion is expressed as a convex combination of the
cost at characteristic points (cj, pj, qj), j 2 Ju. The 1. The node is LP-infeasible. This implies that
convex combination is encoded for each compo- also the corresponding non-convex problem is
nent by a set of xj variables, whose sum is one infeasible.
(10) and that are non-negative (11). The xj vari- 2. The node is LP-optimal, but MIP-infeasible.
ables act as interpolation coefficients in the objec- This means that some of the non-convex con-
tive function and the balance constraints. straints (15) are not satisfied, i.e., at least some
The Eqs. (7)–(12) form the convex Power Sim- 0/1 variable ya has a fractional value.
plex formulation of the model (Lahdelma and 3. The node is LP-optimal and MIP-feasible. This
Hakonen, 2003). This model is sufficient when all means that the non-convex constraints (15) are
model components are convex. However, it allows (coincidentally) also satisfied.
running non-convex components in the area be-
tween the convex sub-areas, which is physically Case 1 means a dead-end in the search tree. No
impossible. additional search from this node is needed. In par-
To handle non-convex components correctly, ticular, if the root node is LP-infeasible, then the
the model is augmented with constraints that disal- original MIP problem is infeasible.
low plants to operate between two or more areas. Case 2 leads into the branch step of the algo-
This is implemented through zero-one variables ya rithm. If the solution of the current node is better
for each area a 2 Au in each non-convex compo- than the best MIP solution so far, it is necessary to
nent u 2 U*. The ya variable equals one when continue the search from this node. In generic B &
the corresponding area is used and zero otherwise. B implementations two child nodes are created
Constraints (14) force exactly one area per compo- and inserted to the search tree; one with the addi-
nent into use. Constraints (13) disallow operation tional LP constraint ya = 0 and another one with
in other areas or between areas by forcing xj-vari- ya = 1. Thus, a binary search tree is formed, and
ables belonging to disallowed areas to zero. It the maximum depth of the tree equals the number
should be observed that each characteristic point of 0/1 variables.
1122 S. Makkonen, R. Lahdelma / European Journal of Operational Research 171 (2006) 1113–1126

In case 3, if the new solution is better than the is caused by plants that are operating
currently best MIP solution, it replaces the best between two or more areas. Therefore the
MIP solution. Then the search tree is also pruned, LP relaxation contains only the constraints
i.e., nodes whose solutions are not better than the (7)–(12) and the additional constraints in
new solution are removed. The solution of a child the branch step are handled by fixing a sel-
node cannot be better than the solution of the par- ection of the xj variables to zero based on
ent node, because more and more constraints are (13).
added deeper in the tree. Thus, it is not worth • The branch step is not implemented based on a
looking for better solutions from nodes where single infeasible 0/1 variable, but based on an
the LP solution is not better than the currently best entire plant u. Instead of forming two child
MIP solution. nodes, multiple child nodes are formed, one
After the tree has been fully explored, the for each convex area a 2 Au.
best found MIP solution is the optimum to • In generic implementations of B & B, the
the original MIP problem. If no MIP solution solution of LP models is normally delayed,
has been found, the original MIP problem is because solving LP models is computation-
infeasible. ally quite expensive. However, the Power
To utilize the special structure of the problem, Simplex algorithm can solve the child
we have implemented a customised B & B algo- nodes extremely efficiently by reusing the old
rithm. The algorithm differs from the generic B basic solution of the parent node. Therefore,
& B algorithm in three aspects: we can solve the LP models associated with
new nodes immediately when the nodes are
• The 0/1 variables and associated constraints created.
(13)–(15) are treated implicitly. This means
that MIP-infeasibility is determined directly The customised B & B algorithm is summarized
based on the xj variables. MIP-infeasibility in the following pseudo-code.

BBOptimise(r) // r is root node


best_node:= NULL; // so far best MIP solution
node_heap:= NULL; // leaf nodes of tree to be explored
LP_Optimise(r); // optimise LP problem
if LP_Optimal(r)
if MIP_Feasible(r)
return r; // LP relaxation solves MIP problem
else
node_heap.Insert(r); // insert r into heap
end if
end if
while not node_heap.Empty() do
node:= node_heap.GetFirst(); // remove and return first from heap
u:= InfeasiblePlant(node); // u is an infeasible plant
for a in u.Areas do // make a child for each area
MakeChild(node,u,a); // create & solve child, test case 1,2,3
end for
end while
return best_node; // optimal MIP solution or NULL
end BBOptimise
S. Makkonen, R. Lahdelma / European Journal of Operational Research 171 (2006) 1113–1126 1123

Node 0
Plant 1 is
MIP-infeasible

Branch on plant 1

area 1 enabled area k1 enabled


area 2 enabled

Node 1 Node 2 Node k1


Plant 2 is
MIP-infeasible LP-Infeasible
... Plant 3 is
MIP-infeasible

Branch on plant 2 Branch on plant 3

area 1 enabled area k2 enabled area 1 enabled area k3 enabled


area 2 enabled area 2 enabled

Node k1+1 Node k1+2 ... Node k1+k2 Node k1+k2+1 Node k1+k2+2 ... Node k1+k2+k3
Plant 3 is Plant 2 is
LP-infeasible MIP-feasible MIP-infeasible LP-infeasible MIP-feasible MIP-infeasible

Branch on plant 3 Branch on plant 2

Fig. 5. Sample search tree created by the customised B & B algorithm.

The MakeChild-routine creates a new LP prob- cogeneration plants consist of one backpressure
lem by adding the constraints xj = 0 for each (BP) plant (A) and two combined steam and gas
j 2 JunJa. This means that only the variables corre- cycle (CSG) plants (B, C). Reserve heating plants
sponding to area a of plant u are enabled. Make- also exist, but these are excluded from the optimi-
Child then solves the LP model starting from the sation model. TEB has also some hydro power
old basis of the parent node. Finally, MakeChild plants, which are similarly excluded from the
tests for the three cases listed above and acts model. The hydro power plants are not adjustable
accordingly. In case 2, if the objective function and therefore they do not affect the optimisation.
value is better than the so far best MIP solution, The overall model is illustrated in Fig. 2.
the new node is inserted into the heap ordered by The characteristic operating region of each
its objective function value. In case 3, if a better cogeneration plant is non-convex. Each non-con-
MIP solution is found, the best MIP solution is vex characteristic is modelled, as described in the
updated and the search tree is pruned. Fig. 5 illus- previous section, as a union of multiple convex
trates the search tree created by the customised B operating regions. Fig. 4 illustrates the non-linear
& B algorithm. The maximum depth of the tree characteristic for the backpressure plant A. The
equals the number of plants with non-convex characteristic of plant A contains 3 areas that are
characteristics. defined by 9 characteristic points (p, q, c). Table
2 summarizes the properties of the three cogenera-
tion plants (A, B, C).
5. Real-life example To demonstrate the performance of non-convex
power plant optimisation, we solved different vari-
In the following, we demonstrate non-convex ants of the model using a 730-hour (one month)
power plant modelling and optimisation with a
real-life application. The example is based on the
energy management model of the Tampere Elec- Table 2
tricity Board (TEB), which is the municipal power Properties of the cogeneration plants
company of the city of Tampere, Finland. TEB Plant Type Areas Characteristic points
produces both electricity for the national network A BP 3 9
and district heat for the city of Tampere. District B CSG 8 24
heat is produced at three regional cogeneration C CSG 14 30
Total 25 63
plants and two major district heating plants. The
1124 S. Makkonen, R. Lahdelma / European Journal of Operational Research 171 (2006) 1113–1126

planning horizon. The basic variant of the model models have the same number of constraints and
includes all three cogeneration plants (ABC), two variables as their non-convex variants.
district heating plants, and the possibility to trade We solved the eight test models using the
electricity on the spot market. We formed three GENERIS EHTO system in a 600 MHz Pentium
smaller models (BC, AC, AB) by shutting down III PC under the Windows 2000 operating system.
each of the cogeneration plants in turn. Shutting To reduce the effect of random variations in CPU
down a plant means that the optimisation system time measurements, we solved each model five
eliminates the corresponding convexity constraint times and computed the average CPU time. Table
and variables from the optimisation model. Table 4 shows the results on the test runs. For each
3 summarises the dimensions of the four non-con- model, we have listed the number of Power Sim-
vex test models. The table shows for each hourly plex iterations and the CPU time in seconds. For
model the number of linear constraints (m), the the non-convex models, we also listed the number
number of continuous variables (n), the number of Branch-and-Bound nodes where an LP problem
of areas in the plant characteristics, and the num- has been solved. The number of nodes excludes
ber of different combinations of areas from differ- nodes that have been eliminated in the bound
ent plants. The number of areas would equal the phase without calling Power Simplex to solve
number of required zero-one variables if the model them. The last column shows the ratios between
were encoded as a regular MIP model. The num- the CPU times for solving the non-convex and
ber of combinations reflects better the complexity convex models.
of the model. In the worst case, the Branch-and- The results show that the non-convex models
Bound algorithm may have to enumerate through take much more time to solve than their convex
all combinations and solve the corresponding LP variants. The largest model (ABC) takes 69 times
problems at the leaf nodes of the search tree, plus more CPU time to solve than the corresponding
those at the inner nodes. convex model. With the smaller models the differ-
To compare the complexity of non-convex ence decreases, but is still significant. This is con-
power plant modelling with convex modelling, sistent with the theoretically exponential time
we also formed convex variants of the four test complexity of the non-convex models with respect
models. This was done simply by merging the to the number of non-convex power plants and
areas in each characteristic. The convex test areas.
However, the solution times are still very rea-
sonable even with the largest non-convex model
Table 3 where finding a solution took 10.5 seconds. Based
Dimensions of the test models on the number of nodes per hour, we observed that
Model m n Areas Combinations the Branch-and-Bound prunes the search tree very
ABC 5 77 25 (3+8+14) 336 well. In the ABC model with 336 potential combi-
BC 4 67 22 (0+8+14) 112 nations, only 46 nodes need to be solved on aver-
AC 4 52 17 (3+0+14) 42 age. In the BC model with 112 combinations, only
AB 4 46 11 (3+8+0) 24
three nodes were solved on average. In the AC

Table 4
Results on solving the four 730-hour non-convex models and their convex variants
Model Non-convex Convex Comparison
Nodes Nodes/hour Iters Iters/node CPU(s) Iters CPU(s) CPU Ratio
ABC 33,215 45.5 49,896 1.50 10.5 42 0.152 69
BC 2046 2.8 3121 1.53 0.667 30 0.098 6.8
AC 730 1 66 0.09 0.128 66 0.080 1.6
AB 762 1.04 128 0.17 0.098 3 0.048 2.0
S. Makkonen, R. Lahdelma / European Journal of Operational Research 171 (2006) 1113–1126 1125

model all hourly problems and in AB, almost all times based on different scenarios. In such appli-
hourly problems were solved directly by their ini- cations, the solution time may be several hours,
tial LP relaxation! which is still feasible.
The solution time depends ultimately on the The exponential time complexity with respect to
number of simplex iterations that are required. the number of plants and areas sets practical limi-
The number of iterations per solved LP model is tations on the proposed method. More sophisti-
very small as indicated by the Iters/node column cated search and pruning techniques in the
in Table 3. A large share of the LP problems is Branch-and-Bound algorithm would probably
solved immediately by a restored and adjusted allow solving somewhat larger problems with suf-
old basis without any iteration. ficient speed. In much larger problems, it may be
necessary to apply heuristic and/or near-optimal
solution methods.
6. Conclusions Future studies could consider modelling and
overall optimisation of fuel mixtures with con-
Changes on the energy market, increasing envi- straints, e.g. annual maximum usage. The tech-
ronmental awareness, and new energy production niques could also be used for modelling emission
technologies create a need for new kinds of deci- limits and extended to consider the trade of emis-
sion-support tools for energy companies. Energy sion certificates. Additionally, further research
companies need to be able to solve in real-time could explore how the model can be better adapted
more detailed and realistic models that are based for evaluating different strategies in terms of multi-
on reliable on-line information. In this paper, we ple uncertain criteria (Lahdelma et al., 2005; Mak-
have presented a technique to model different konen et al., 2003).
kinds of combined heat and power production
plants more accurately using non-convex optimi-
sation models. We have also demonstrated with a
Acknowledgements
real-life application, that non-convex optimisation
can be implemented very efficiently using suitable
We thank Ilhan Or, Kevin Doyle, Ender Gur-
decomposition techniques and customised embed-
gen and an anonymous referee for valuable com-
ded optimisation algorithms.
ments that have helped us to improve the paper.
The performance of the modelling and solution
technique is applicable to real-life needs. The
solution time of the optimisation method is linear
with respect to the length of the time horizon but References
exponential with respect to the number of plants
and areas within plant characteristics. In real- Baldick, R., 1995. The Generalized Unit Commitment
Problem. IEEE Transactions on Power Systems 10 (1),
time operative use, the time horizon can be any- 465–475.
thing from a few hours to several weeks. With Dantzig, G., 1963. Linear Programming and Extensions.
current PC-hardware, the presented concept was Princeton University Press, Princeton, NJ.
proven fast enough for real-time operative use Flannery, B.P., Teukolsky, S.A., Vetterling, W.T., Press, W.H.,
in a real-life case with three non-convex cogenera- 1988. Numerical Recipes in C, The Art of Scientific
Computing. Cambridge University Press.
tion plants containing a total of 25 areas. The Guan, X., Luh, P., 1992. An optimization-based method for
solution time for a 730-hour model with three unit commitment. Electrical Power and Energy Systems 14
non-convex power plants was only 10.5 seconds (1), 9–17.
on a 600 MHz Pentium III. The system is also Guan, X., Luh, P., Zhang, L., 1995. Nonlinear Approximation
suitable for long-term planning as a full year- Method in Lagrangian Relaxation-Based Algorithms for
Hydrothermal Scheduling. IEEE Transaction on Power
model can be solved in about two minutes. If Systems 10 (2), 772–778.
the model is applied in long-term risk analysis, Lahdelma, R., Hakonen, H., 2003. An efficient linear program-
the annual model needs to be solved multiple ming algorithm for combined heat and power production.
1126 S. Makkonen, R. Lahdelma / European Journal of Operational Research 171 (2006) 1113–1126

European Journal of Operational Research 148 (1), 141– Makkonen, S., Lahdelma, R., 1998. Stochastic simulation in
151. risk analysis of energy trade. In: Stewart, T.J., van den
Lahdelma, R., Makkonen, S., 1996. Interactive graphical Honert, R.C. (Eds.), Trends in Multicriteria Decision
object-oriented energy modelling and optimization. In: Making: Proc. 13th International Conference on Multiple
Proc. of the International Symposium of ECOSÕ96, effi- Criteria Decision Making. Cape Town, South Africa,
ciency, cost, optimization, simulation and environmental Lecture Notes in Economics and Mathematical Systems.
aspects of energy systems, June 25–27, Stockholm, Sweden, Springer, pp. 146–156.
pp. 425–431. Makkonen, S., Lahdelma, R., 2001. Analysis of Power Pools in
Lahdelma, R., Ruuth, S., 1989. Solving multiperiod unit the Deregulated Energy Market through Simulation. Deci-
commitment problems in energy management. Proc. Intern. sion Support Systems 30 (3), 289–301.
AMSE Conference ‘‘Signals and Systems’’; Brighton (UK), Makkonen, S., Lahdelma, R., Asell, A.-M., Jokinen, A., 2003.
July 12–14, Vol. 9. AMSE Press, pp. 115–125. Multi-criteria decision support in the liberated energy mar-
Lahdelma, R., Ruuth, S., 1993. A modified benders decompo- ket. Journal of Multi-Criteria Decision Analysis 12 (1), 27–
sition algorithm for solving large scale unit commitment 42.
problems. In: Henry, J., Yvon, J.-P. (Eds.), Lecture Notes in Rong, A., Hakonen, H., Lahdelma, R., 2005. An efficient linear
Control and Information Sciences, Vol. 1. Springer-Verlag, model and optimization algorithm for multi-site combined
pp. 185–188. heat and power production. European Journal of Opera-
Lahdelma, R., Makkonen, S., Salminen, P., 2005. Multivariate tional Research, in press.
Gaussian criteria in SMAA. European Journal of Opera- Rong, A., Lahdelma, R., 2005. An efficient linear programming
tional Research, in press. model and optimization algorithm for trigeneration.
Lahdelma, R., Nurminen, J., Ruuth, S., 1986. Implementations Applied Energy, in press.
of LP- and MIP Systems. EURO VIII; Lisbon 1986; also in Spinney, P.J., Watkins, G.C., 1996. Monte Carlo simulation
Helsinki University of Technology, Systems Analysis Lab- technique and electric utility resource decisions. Energy
oratory Research Reports A18. Policy 24 (2), 155–164.
Lautala, P., Antila, H., Ruuth, S., Lahdelma, R., 1992. Wang, S.J., Shahidehpour, S.M., Kirschen, D.S., Mokhtari, S.,
Decomposition technique and coordination of optimal Irisarri, G.D., 1995. Short-term generation scheduling with
energy production. In: Kall, P. (Ed.), Lecture Notes in transmission and environmental constraints using an aug-
Control and Information Sciences, Vol. 180. Springer- mented Lagrangian relaxation. IEEE Transaction on Power
Verlag, pp. 418–419. Systems 10 (3), 1294–1301.

You might also like