Power Generation Scheduling in Markets
Power Generation Scheduling in Markets
Academic advisers:
Professor Hans H. Faanes (NTNU)
Professor Arne Johannesen (NTNU)
3UHIDFH
This thesis is submitted in partial fulfillment of the requirements for the degree of Doktor
Ingeniør at the Department of Electrical Power Engineering at the Norwegian University
of Science and Technology (NTNU).
The work was initiated in 1995, and is funded by the Research Council of Norway.
I would like to thank my supervisors Professor Hans H. Faanes and Professor Arne
Johannesen. Professor Hans H. Faanes has been my principal supervisor.
I would also like to thank colleagues at SINTEF Energy Research for useful discussions
about the topic.
6XPPDU\
This thesis deals with the short-term scheduling of electric power generation in a com-
petitive market. This involves determination of start-ups and shut-downs, and produc-
tion levels of all units in all hours of the optimization period, considering unit
characteristics and system restrictions. The unit characteristics and restrictions that are
handled are: Minimum and maximum production levels, fuel cost function, start-up
costs, minimum up time and minimum down time. The system restrictions handled are
power balance (supply equal to demand in all hours) and spinning reserve requirement.
1. A new organization of an hourly electric power market, that simultaneously sets the
price of both energy and reserve power is proposed. A power exchange is used as a
trading place for electricity. The responsibilities of the power exchange is to balance
supply and demand bids, and to secure enough spinning reserve. Routines for bid-
ding and market clearing are developed.
2. A computer program that simulates the proposed electricity market has been imple-
mented. This program can also be used as a new method for solving the single owner
generation scheduling problem. Simulations show excellent performance; both low
computation time and good production schedules (i.e. low production cost).
With the proposed market, all optimization is done locally, by each generator. This
means that each optimization problem is small and can easily be solved. The tasks of the
power exchange are well defined, and involves no optimization. It is just the simple
matching of supply and demand bids.
A computer program simulating this market is developed, and used on several test cases.
This program, called SimCom (6LPulated &RPpetition), can also be used to solve the
single owner scheduling problem. and the solutions by this program are very good (i.e.
iv
low schedule cost). Results from three different test cases are reported. The cases vary
in number of units (9 to 110 units) and optimization period (24 and 168 hours). SimCom
has shown excellent performance, schedule cost has been near-optimal, and very good
compared to other optimization techniques. Computation time is at the same level as
Lagrangian Relaxation.
Simulations show that it is possible to reach efficient schedules through the proposed
electricity market.
v
&RQWHQWV
3UHIDFHL
6XPPDU\LLL
&RQWHQWV Y
1RWDWLRQL[
&KDSWHU
,QWURGXFWLRQ
1.1 Background . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1
1.2 Objectives and scope of work . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1
1.3 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2
1.4 Organization of the thesis. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2
&KDSWHU
3UREOHPGHILQLWLRQVKRUWWHUPVFKHGXOLQJ
2.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5
2.2 Goal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6
2.3 Global constraints. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6
2.3.1 Power balance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6
2.3.2 Spinning reserve requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6
2.3.3 Transmission/distribution network influences . . . . . . . . . . . . . . . . . . .6
2.4 Unit constraints and cost functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7
2.5 Mathematical formulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7
2.5.1 Cost functions used in this thesis . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8
&KDSWHU
0DUNHWVROXWLRQV
3.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11
3.1.1 The centralized scheduling model . . . . . . . . . . . . . . . . . . . . . . . . . . .11
3.1.2 The Bilateral model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12
3.1.3 The Coordinated Multilateral Trade model . . . . . . . . . . . . . . . . . . . .12
vi
&KDSWHU
'HFHQWUDOL]HGRSWLPL]DWLRQ
4.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29
4.1.1 Perfect competition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29
4.2 Shortcomings of the Nordic electricity market . . . . . . . . . . . . . . . . . . . . . .30
4.3 Proposal of a new electricity market . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .31
4.3.1 Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .31
4.3.2 Network regime . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .32
4.3.3 The Power Exchange . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
4.3.4 Optimization by the single firm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
4.3.5 Quantity determination with price on energy and reserve power. . . .41
4.3.6 Market clearing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .42
4.3.7 Payments for deviation from preferred production, p*. . . . . . . . . . . .46
4.4 Bilateral trade . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .46
4.5 Bid calculation for hydro units. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
4.6 Practical implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .48
4.6.1 Alternative solutions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
&KDSWHU
6LPXODWHG&RPSHWLWLRQ
5.1 Simulated competition (SimCom) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
5.1.1 Dual value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
5.2 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
vii
&KDSWHU
7HVWVLPXODWLRQV
6.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .57
6.2 SimCom . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .58
6.2.1 Test system 1 (10 units, 24 hours) . . . . . . . . . . . . . . . . . . . . . . . . . . .58
6.2.2 Test system 2 (110 units, 24 hours) . . . . . . . . . . . . . . . . . . . . . . . . . .59
6.2.3 Test system 3 (9 units, 168 hours) . . . . . . . . . . . . . . . . . . . . . . . . . . .60
6.3 Quality of the proposed market . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .62
6.3.1 Test with different initial price forecasts . . . . . . . . . . . . . . . . . . . . . .63
6.3.2 Do the units earn any profits? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .64
&KDSWHU
'LVFXVVLRQDQGIXUWKHUZRUN
7.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .67
7.1.1 SimCom as an optimization tool for the central scheduling problem.67
7.1.2 The quality of the proposed market . . . . . . . . . . . . . . . . . . . . . . . . . .68
7.2 Suggestion for future work. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
&KDSWHU
&RQFOXVLRQV
5HIHUHQFHV
$SSHQGL[$
'\QDPLF3URJUDPPLQJ'3
A.1 Backward Dynamic Programming applied to single unit optimization . . .77
$SSHQGL[%
/DJUDQJLDQ5HOD[DWLRQ
B.1 Lagrangian Relaxation (LR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .83
$SSHQGL[&
&DVHGDWD
C.1 Test case 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .87
C.2 Test case 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .89
C.3 Test case 3 (9 units, 168 hours) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .92
viii
$SSHQGL['
([DPSOHV
D.1 Example of calculation of a units production quantity . . . . . . . . . . . . . . . .93
D.2 Example of Bid Calculation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .94
$SSHQGL[(
0RUHUHVXOWVIURPVLPXODWLRQV
ix
1RWDWLRQ
Abbreviations
DP Dynamic Programming
LR Lagrangian Relaxation
MDT Minimum down time
MUT Minimum up time
NOK Norwegian Kroner (monetary unit)
PX Power Exchange
SAC Short-run Average Cost
SAVC Short-run Average Variable Cost
SMC Short-run Marginal Cost
Symbols
λ Price of energy (NOK/MWh or $/MWh)
µ Price of reserve power (NOK/MW or $/MW)
p Production level (in MW)
In equations, upper case letters is used for constants and lower case for variables.
Nomenclature
Ancillary services Services that the System Operator may develop, in cooperation
with market participants, to ensure reliability and to support the
transmission of energy from generation sites to customer loads.
Such services may include: regulation, spinning reserve, non-spin-
ning reserve, replacement reserve, voltage support, and black start
Deregulation The elimination of regulation from a previously regulated industry
or sector of an industry. In the electricity industry the production
and supply can be deregulated (prices no longer regulated),
x
Unit commitment The decision of which units to operate during a certain time period
Water value Water value or incremental worth of water is the expected future
worth of water stored in the reservoir
References
(x.y) Reference to equation y in chapter x
[x] Literature reference
xii
1
Chapter 1
Introduction
7KLVFKDSWHUGHVFULEHVWKHEDFNJURXQGDQGWKHREMHFWLYHVIRUWKLVZRUN,WDOVR
SRLQWVRXWWKHOLPLWDWLRQVVLPSOLILFDWLRQVWKDWDUHDSSOLHG)LQDOO\LWGHVFULEHVWKH
RUJDQL]DWLRQRIWKLVWKHVLV
1.1 Background
Deregulation and market competition is the new paradigm in the electricity sector. In
Norway the electricity sector was deregulated in 1991, but a spot market for power
exchange between generation companies had existed since 1971. Similar systems are
implemented or discussed in several countries around the world. Market systems (i.e.
bidding and market clearing procedures) that ensure efficient utilization of resources are
therefore of interest.
Concepts and solutions for coordinating production and extension of electric power sys-
tems exists today for hydro dominated systems, for thermal dominated systems and to a
certain extent also for the mixed hydro-thermal system in a monopolistic environment
(the single-owner-problem with central planning).
For the general hydro-thermal power system in a competitive market there is no “com-
plete solution”.
The goal is to create a system for hydro-thermal scheduling in a free market framework,
where all optimization is done locally. At present a simple supply-demand clearing pro-
cedure is used in the common electricity market of Norway and Sweden [9], and spin-
ning reserve requirements are not handled within the market clearing process.
2 1.3 Limitations
One of the main guidelines when designing the suggested electricity market has been
simplicity. The reason for simplicity is that the participants have to understand the mar-
ket rules for the market to function properly. The more complex the market rules are, the
more likely it is that it will not operate as intended.
1.3 Limitations
The work is limited to the short term scheduling of power plants, i.e. a planning horizon
of 24 to 168 hours. The object of short term planning is to create schedules for when to
commit and decommit units, and their production levels. Inflows to hydro reservoirs and
loads are assumed known in this time frame.
This work is restricted to the case when all power stations are feeding into a concentrated
network represented by a single bus bar. Transmission losses and transmission limits are
neglected.
Since the combined Nordic market can be seen as a well functioning electricity market
for a hydro dominated electricity production system, emphasis has been set on the ther-
mal problem. Another reason for focusing on thermal units is that the spinning reserve
requirement and the unit commitment problem (due to high start-up costs) are more
important in a thermal system. Bidding procedures for hydro units are only briefly dis-
cussed.
Results from simulations of the proposed market are shown in chapter 6. The results are
discussed in chapter 7, and topics for future research are identified. Chapter 8 contains
the final conclusions of the thesis.
Chapters 4 and 5 contains the original contribution of this thesis. Chapters 4 presents the
Chapter 1 Introduction 3
proposed electricity market, and chapter 5 presents a computer program which simulates
the proposed market. This computer program can also be used to solve the traditional
single owner scheduling problem.
4 1.4 Organization of the thesis
5
Chapter 2
7KLVFKDSWHUFRQWDLQVDGHVFULSWLRQRIWKHVKRUWWHUPJHQHUDWLRQVFKHGXOLQJ
SUREOHP,WVWDUWVZLWKDJHQHUDORYHUYLHZDQGHQGVZLWKWKHVSHFLILFFRVWIXQFWLRQV
XVHGODWHULQWKLVWKHVLV
2.1 Introduction
The goal of this work is to design an short-term electricity market where all optimization
is done locally by each generating company (and each consumer). The work is limited
to the short term scheduling of the electricity production with time horizon from a day
to a week (24 to 168 hours). Long term impacts are not considered.
Power transmission and distribution clearly exhibit economies of scale, and is therefore
considered as natural monopolies. As monopolies, transmission and distribution must be
regulated by a regulatory authority. Network restrictions, tariffs, etc. is not considered in
this thesis.
Power production and supply has considerably smaller economies of scale, and is an area
where competition is possible.
6 2.2 Goal
2.2 Goal
The goal is to design an electricity market that ensures efficient utilization of the elec-
tricity system. This means maximization of social surplus (which is the sum of consumer
and producer surplus), while taking care of the unit and system constraints.
The work is limited to the short-term scheduling of power plants. The unit schedules
shall be found through market mechanisms (by matching supply and demand bids). All
optimization should be done locally by each unit (in the bid calculation).
In a power system, power balance must be maintained, i.e. load demand must be bal-
anced by generation supply at all times.
The load forecast for a few days ahead is an important basis of the short term scheduling.
In order not to increase the complexity of the problem, most scheduling algorithms rep-
resent the forecasted load in the form of stepped curves; the load within a time step is
assumed to be constant.
In power system operation, in addition to the requirement that power must be balanced
for the present situation, power balance must be maintained to guarantee continuity of
supply even after a disturbance in the system such as the failure of a generator or the out-
age of a transmission line. To ensure reliability, prudent measures must be taken from
both the generation side and the transmission side. More generation capacity than nec-
essary for the forecasted load is scheduled. This gives a readily available reserve to cover
unforeseen events if generation failure or sudden demand surge. [37]
In this work, a one bus bar model is used, i.e. all units (both load and generation) are con-
Chapter 2 Problem definition, short-term scheduling 7
nected to a single bus bar through a line with no losses. Power transfer capacity limits
and network losses are ignored. Network tariffing is also ignored.
Each generator has a set of constraints that must not be violated. The constraints consid-
ered in this work are:
• Unit rated minimum and maximum production levels
• Unit minimum up/down time
• Initial condition (whether the unit is running or not, and for how long)
The generation scheduling problem involves the determination of the start-up and shut-
down times as well as the power output levels of all the generating units at each time
step, over a specified scheduling period T.
The fuel cost for unit i, FCi, in any given time interval is a function of the generator
power output.
Hydro units is in short term planning normally represented either by water values1 or by
weekly drawdown quantities set by the long term planning. With a predetermined water
value, hydro units can be described by a fuel cost function.
The generator start-up cost, SCi, depends on the time the unit has been off prior to start
up. Shut-down costs can be included in the start-up cost.
The total production cost, FT for the scheduling period is the sum of the running costs
and start up costs for all units:
1. The water value (or incremental worth of water) is the expected profit from an amount of
water not currently used for power production, but left in storage. If the storage is full, the incre-
mental worth of water is zero, since the water will be lost if it is not used for power production.
8 2.5 Mathematical formulation
T N
t = 1i = 1
Constraints:
• System hourly power balance. Total power generation must equal the load
demand, PD, in all hours
∑ ( P i, t
max
u i, t – p i, t ) ⋅ u i, t ≥ R t t = 1, 2, …T (2.3)
i=1
• Unit rated minimum and maximum capacities must not be violated
min
Pi
max
u i, t ≤ p i, t ≤ P i u i, t i = 1, 2, …N, t = 1, 2, …T (2.4)
• The initial unit states at the start of the scheduling period must be taken into
account
• Minimum up/down time limits of units (MUT/MDT) must not be violated
In this work, a quadratic function is used to represent the fuel costs (this is a frequently
Chapter 2 Problem definition, short-term scheduling 9
2
FC i = a i + b i p i + c i p i (2.5)
ai, bi, cirepresent unit cost coefficients, while pi is the unit power output.
The start up cost in any given time interval is represented by an exponential cost curve:
– T off, i
SC i = σ i + δ i 1 – exp ------------------ (2.6)
τi
σ i is the hot start-up cost, δ i the cold start-up cost, τ i the unit cooling time constant and
T off, i is the time the unit has been off.
With these cost functions and firm load, the problem definition is the same as in [24],
except that shut-down costs are added to the start-up costs.
Modeling of the generation scheduling problem are described in [1] and [6].
10 2.5 Mathematical formulation
11
Chapter 3
Market solutions
7KLVFKDSWHUFRQWDLQVDVKRUWGHVFULSWLRQRIH[LVWLQJIUHHPDUNHWVROXWLRQVLQWKHHOHFWULF
LW\LQGXVWU\7KLVLQFOXGHVWKH1RUGLFHOHFWULFLW\PDUNHWDQGWKHPDUNHWVLQ8.$UJHQ
WLQDDQG&DOLIRUQLD
3.1 Introduction
Several countries in the world have deregulated, or are in the process of deregulating
their electricity supply industry. In each of these countries, the spot markets are based on
one out two models: The centralized scheduling model or the bilateral trade model. The
UK electricity market is based on the first, and the Nordic market is based on the latter.
These two models are briefly described here. In addition, an extension of the bilateral
model proposed in [37] called the Coordinated Multilateral Trade model is described.
In this model, all utilities combine to form a "super-utility" (a centralized pool), and the
market structure is altered to suit this super-utility. The centralized pool keeps the tradi-
tional responsibilities, such as ensuring instant power balance, maintaining network reli-
ability and security, and coordinating transmission access and services. Every trade is
now essentially required to be with the pool. The pool determines which trades to accept
and execute and which trades to reject so that the system is safe, and sets the price at
which trades are settled so as to promote economic efficiency (marginal cost pricing).
With its dictatorial power, the pool can, in principle, enforce any of a large number of
operating points. Advocates refer to this obvious point when they assert that the pool can
operate efficiently. However, the pool has no incentive to operate efficiently, and need
to be regulated.
Reference: [37]
12 3.1 Introduction
The bilateral model is based on the principle that free market competition is a route to
economic efficiency. In this model suppliers and consumers independently arrange
trades, setting by themselves the amount of generation and consumption and the corre-
sponding financial terms, with ideally no involvement or interference by the power sys-
tem operator. Economic incentives will lead generators to find the best-paying customers
and consumers to find the cheapest generators. So long as consumers or generators do
not have significant market power, these trades will lead to short term economic effi-
ciency.
A voluntary power exchange (as in the Nordic power market) does not conflict with the
bilateral model, as it is just another opportunity for the market participants to meet and
trade electricity.
The bilateral model faces a fundamental problem which detract from its ability to pro-
mote free market competition. The lack of coordination among the independent trades
can lead to a violation of transmission network constraints. The network constraints arise
from loading limits on transmission equipment and from the requirement that the net-
work must be operated in a secure state.
Reference: [37]
A broker arranges trades and bears responsibility for arranging generation to compensate
1. The load vector is used to calculate the net influence of a trade on a congested line. If the net
influence is that the load on that line is reduced, the trade is feasible. The loss vector is used to
calculate the trade’s share of the network losses.
Chapter 3 Market solutions 13
for losses and to insure that the trading is feasible. The broker can be any of the contract-
ing parties, or an independent third party. All trading is by bilateral or multilateral con-
tracts. The authors proves that with network restrictions included, multilateral contracts
are needed to reach the optimal solution. Situations can occur where there are no more
profitable bilateral trades, but where profitable multilateral trades (with three or more
participants in the trade) exist.
The power system operator evaluates if a trade is feasible or not. Unfeasible trades are
curtailed. The power system operator has no information about the economic aspects of
the trades. The responsibility of the power system operator is to curtail unfeasible trades,
and to calculate and distribute the load and loss vectors.
Trading model:
• Initial trading until a line becomes congested. Then the power system operator
curtails trades to reduce flow on the congested line to its transfer limit.
• The power system operator calculates the Loading vector and broadcast this set of
numbers to everyone (Data required for calculating the Loading vector is basically
what is required for a load flow study, i.e. transmission network data and power
generation and consumption data for the trades).
• Based on the loading vector, the participants can arrange new trades that does not
increase the loading on the congested line. It is possible that a profitable trade
between participants can result in overload of another transmission limit besides
the original congestion. Then the power system operator must curtail this trade to
ensure that the transfer limit is not exceeded, and then broadcast the Loading
vector corresponding to the additional congestion. In general, if several of
transmission transfers are congested, the power system operator can produce
Loading vectors, one for each transfer limit and participants can use these vectors
to ensure that their trade does not overload any of them.
• The sequence of coordinated multilateral trades continues until there is no more
profit to be made and an optimal solution is reached.
For a detailed description of the Coordinated Multilateral Trade model, see [37].
2. Adam Smith’s invisible hand hypothesis: In a competitive market, a powerful "invisible hand"
assures that resources will find their way to where it is most valued, thereby enhancing the
"wealth" of a nation
14 3.2 Norway, Sweden and Finland
In Sweden most of the electricity comes from hydro and nuclear units. In 1997, 46.17%
was from nuclear plants, 47.11% hydro, 6.58% from thermal other than nuclear and
0.14% from wind power. Total production was 145 TWh.
In Finland most of the electricity is generated by thermal units. In 1997, 30.41% was
from nuclear plants, 51.57% other thermal, 18.00% hydro and 0.03% wind power. Total
production was 66 TWh.
The Norwegian and Swedish electricity systems are interconnected by several AC con-
nections with a total capacity of ca. 3,500 MW. The exchange capacity between Sweden
and Finland is ca. 1,300 MW, and between Finland and Norway 70 MW (all AC-connec-
tions).
Chapter 3 Market solutions 15
There are 230 distribution companies in Norway, 270 in Sweden and 75 in Finland.
Some of these distribution companies also owns generation.
Deregulation and market competition was introduced in Norway with the Energy Act of
June 1990 which was effective from January 1, 1991. Sweden joined the existing Nor-
wegian market structure January 1, 1996. Finland introduced competition with its Elec-
tricity Market Act of June 1 1995, and joined the Nordic spot market June 15 1998.
In contrast to deregulated systems in England and elsewhere, the Nordic system does not
include a central scheduling/dispatching entity. Scheduling is the responsibility of the
individual generating companies with a power exchange (Nord Pool) and system opera-
tor (Statnett in Norway, Svenska Kraftnät in Sweden and Suomen Kantaverkko in Fin-
land) being responsible for market clearing and system coordination respectively. [9]
Regulatory authorities for the transmission systems are NVE in Norway, Energimyn-
digheten in Sweden and Sähkömarkkinakeskus in Finland. Entities owning both gener-
ation and distribution are required to account for them separately in Norway and Finland,
and to separate operations organizationally in Sweden.
Nord Pool operates two markets, a futures market and a spot market. The national system
operators each operate their own regulating market for real-time operation (called the
balance service in Sweden). The futures market permits purchase of weekly base or peak
load contracts for up to three years in advance to manage price risk.
Nord Pool is a neutral and independent exchange for electric power where all partici-
16 3.2 Norway, Sweden and Finland
pants who wants to, can buy and sell electric power in a flexible and simple way. It is
optional to participate in the power exchange.
The spot market accept bids for all 24 hours of each day until noon (12.00) of the pre-
ceding day. Bids are in the form of linear segment price versus quantity curves for both
generators and loads. Bids are accepted by FAX, or electronically using a communica-
tions package called EDIEL based on UN/EDIFACT, and X.400 e-mail. The market is
settled for each day by 15.00 on the preceding day. The bids are aggregated into separate
price versus quantity curves for supply and demand. These curves are crossed to obtain
a system price. Spot market participation is not mandatory. About 16 percent of energy
in the Nord Pool market area is traded on the spot market.
The futures market is a contract market for hedging or trading. Main features:
• Trading in week contracts, blocks (4 weeks) and seasons
• Hedging on future buying or selling
• Trading on price expectations between the participants
• Risk levelling between the participants
• Continuous trading every week day between 12.30 PM and 15.00 PM
• Daily calculation of profit and loss against daily price changes, and calculation of
margin
• Daily clearing against the system price in the delivery week (financial clearing)
• Turnover in Nord Pools futures market in 1997: 53.6 TWh
Chapter 3 Market solutions 17
The regulating market accepts bids from participants to raise or lower energy generation
from scheduled values. Bids are accepted for each day between 15.00 and 19.30 on the
preceding day. Participants must be able to respond within 15 minutes in Norway, and
within 10 minutes in Sweden. When the system operator decides that regulation is nec-
essary, it buys the cheapest block of regulating power. Dispatch is by telephone. At the
end of the hour, the system operator decides the price for purchased regulation at the
price of the most expensive purchased block. All network users are charged for regula-
tion based on deviation from scheduled hourly energy values.
Each generator and load pays point tariffs to the network to which it is connected. There
are three network levels, national, regional and local. Each network pays a point tariff to
the higher level network to which it is connected. User point tariffs give the user access
to all network levels for buying or selling energy. Thus, a load attached to a local net-
work, paying the local network point tariff, can purchase energy from a generator
attached to the national grid.
The point tariff has three components. The investment charge is a one time charge
imposed for major new connections. The energy charge, per MWh, is based on incre-
mental loss coefficients (calculated in advance, bimonthly). The capacity charge, based
on peak MW consumed or generation capacity (physical ability in Norway, declared
capacity limit in Sweden), compensates the networks for their remaining expenses.
Congestion management
Sweden and Norway have different philosophies of congestion management. The exist-
ing system permits these philosophies to coexist without conflict. Norway seeks to effec-
tively prevent congestion by using the spot market settlement process. When congestion
is predicted, the system operator declares that the system is split into price areas at pre-
18 3.2 Norway, Sweden and Finland
dicted congestion bottlenecks. Spot market bidders must submit separate bids for each
price area in which they have generation or load. If no congestion occurs during market
settlement, the market will settle at one price, which will be the same as if no price areas
existed. If congestion does occur, price areas are separately settled at prices that satisfy
transmission constraints. Areas with excess generation will have lower prices, and areas
with excess load will have higher prices. Market income from price difference goes to
the system operator, and is used to reduce the capacity fee. Bilateral contracts that span
price areas must purchase the load’s energy inn its price area, in order to account for the
contribution to congestion, and to expose the contract to the financial consequences of
congestion. It is the only instance of mandatory spot market participation.
Sweden’s philosophy is that the transmission system should not affect the market solu-
tion. Consequently, Sweden is always one price area. However, Sweden varies the
capacity charge portion of its point tariff based on geography. Power flow in Sweden is
always from north to south, so generation is charged more, and load less, in the northern
part of the country. This affects generation costs, and thus the bids made to the market,
deterring some congestion. Congestion in post-market schedules or appearing in real
time is corrected by purchase of generation raise and lower energy blocks from the sys-
tem operator regulating markets. This is known as buyback.
Retail sales
All loads in Norway, Finland and Sweden, including individual residential loads, are
legally entitled to a free choice of energy supplier. Hourly energy consumption (MWh)
values are necessary for accounting among energy suppliers. In Sweden, consumers
choosing a supplier other than their directly connected distribution network must install
hourly energy metering to provide settlement values. In Norway and Finland, each net-
work is responsible for supplying hourly MWh values for loads connected to it, to the
suppliers of those loads. Loads without hourly metering are assigned a load profile based
on the load profile of all unmetered loads within their connected network, and have the
option to purchase hourly energy meters. No fee is charged by the network for changing
energy suppliers.
SINTEF Energy Research has made a report about the implementation and experiences
of the Nordic power market [20].
Chapter 3 Market solutions 19
The statistics are available at the web pages of the Electricity Association1.
From an organizational viewpoint, there are three separate electricity systems in the
United Kingdom: England and Wales, Scotland, and Northern Ireland. The approximate
size of each market can be seen from the respective peak demands in 1995/96: England
and Wales 48,811 MW, Scotland 5,849 MW and Northern Ireland 1,515 MW. The
English and Scottish systems are interconnected with 1600 MW transmission capacity,
and there is also a 2,000 MW direct current link between England and France.
The distribution system is divided into twelve regional electricity supply companies
(RECs), which are regulated monopolies.
The National Grid Company (NGC) provides transmission services from generators to
the RECs, coordinates transmission and dispatch of electricity generators and runs the
electricity spot market.
19.3 %
Nuclear stations
51.2 % CCGTs
The Electricity Act of 1989 introduced a competitive structure (effective from April 1,
1990), the completion of which is due to occur in 1998, when the entire supply market
is opened for competition. This market does not include Northern Ireland where a sepa-
rate regulatory regime exists. Scotland and France operates in this market as External
Pool Members (EPM).
In 1990 and 1991, the electricity companies in Great Britain were privatized, except for
the nuclear plants which are now owned by Nuclear Electric, a publicly owned company.
The competitive market was opened to customers of 1 MW and above. In April 1994 the
market opened to customers in the 100 kW-1 MW market. During 1998 the supply of
electricity to homes and small businesses is planned to be opened to full competition.
The restructuring has transformed the electricity supply industry into four separate sub-
industries:
Both transmission and distribution are identified as natural monopolies and prices are
thus regulated. Incentive regulation for these monopoly elements of the system is based
on the "RPI-X" formula used in utilities, including gas and telecoms, privatized previ-
ously. Under this formula, prices of the monopoly elements of the consumer price are
allowed to increase by the general rate of inflation as measured by the Retail Price Index
(RPI) minus a term, "X", which the utility must recover by increasing its internal effi-
ciency. The level of "X" is set for 3-5 years forward to allow a stable and predictable
financial framework for the utility and its customers.
Competition is introduced in generation and retail sales. RECs are required to allow
competitors to transfer electricity over their distribution systems at the same price they
charge to themselves to provide this service to their retail customers located in their own
service area. All RECs have an obligation to provide electricity to every customer in
their area. All competing supply companies have an obligation to publish their terms and
supply a customer on request.
NGC runs both the financial and physical side of the UK electricity market. NGC deter-
mines both half-hourly market clearing prices and it runs the physical national electricity
grid, making generator dispatch decisions in real-time to manage congestion on the grid
and provide the ancillary services necessary to guarantee reliable power to all final cus-
tomers.
The spot market is mandatory, and does not allow physical bilateral trades between gen-
erators and their customers. Unless a generating facility is dispatched by NGC as part of
the day-ahead spot market clearing process, that plant cannot produce electricity. A plant
that is dispatched by NGC will receive the market clearing price for all MWhs it produce
during that half-hour.
No later than 10:00 a.m. each day, all operators of generating stations subject to central
22 3.3 United Kingdom
Based on the bids and the forecasted demand, NGC sets the production schedule and
determines the settlement prices.
3. In "Table A"2 periods, SMP (System Marginal Price) will be defined as the highest
Generator Price of plant required to operate in each half hour according to the uncon-
strained schedule, as long as the plant does not receive a "marginal plant adjust-
ment". In "Table B" periods, SMP will be the highest incremental price of a plant
that is not labelled "inflexible".
4. The capacity element is LOLP(VOLL-SMP)
where:
1. Declared Net Capability (DNC): The maximum power available for export on a continuous
basis minus any power imported by the station from the network to run its own plant.
2. There will be times, usually of low demand, when the aggregate offered capacity of the sched-
uled sets exceeds demand by a predetermined margin. These times are known as Table B peri-
ods; all other periods are Table A periods.
Chapter 3 Market solutions 23
LOLP is the "Loss of Load Probability". This is the probability of capacity being
inadequate to supply demand in the particular half hour because of a sudden unex-
pected increase in demand or a sudden failure of plant such as a generating station. It
will be calculated by NGC; and
VOLL is the "Value of Lost Load". It is a measure of the price that pool customers
are willing to pay to avoid a loss of supply. It will be set at a level to ensure that the
quality of supply will be maintained (see [32], page 25)
5. The prices paid every half hour to generators for each kWh produced, the "pool input
price", SLS, will be:
pip = SMP + capacity element = SMP + LOLP(VOLL-SMP)
6. Generators will also be paid for reserve, marginal plant operation, and for any ancil-
lary services. In addition, they will receive payments to recompense them for trans-
mission constraints and for forecasting errors and for having the plant available to
operate. Generators will be penalized if they do not follow NGC’s instructions.
7. The costs associated with 6. and the transmission constraints will be spread over the
units of electricity purchased through the pool during "Table A" periods. This results
in an "uplift" being added to SLS to arrive at "pool output price" (SRS). The difference
between SLS and SRS covers the costs of:
reserve
availability of plant
forecasting errors
transmission constraints
ancillary services
marginal plant adjustment
The total consumption of electricity in California is ca. 250 TWh. Electricity is gener-
ated from natural gas, oil, nuclear, hydro, and geothermal resources. Electricity is also
imported into the state from neighboring states, Canada and Mexico.
The deregulation process of the US electricity industry was initiated by the 1978 passage
of the Public Utility Reform Policy Act (PURPA). The Energy Policy Act of 1992 was
a further step towards federal deregulation. Many states have initiated their own dereg-
ulatory efforts parallel to the federal initiatives. The 1996 signing of Assembly Bill AB
1890 put forth deregulation in California, establishing an Independent System Operator
and a Power Exchange, to start operations on January 1 1998. Market operations started
March 31 1998, after a delay of three months. The new deregulated market structure is
to be fully implemented by March 31 2002, after a transition period of 4 years.
Day-Ahead Market
For each hour of the 24-hour scheduling day (starts and ends at midnight):
1. Sellers bid a schedule of supply at various prices (price-quantity bid). Buyers bid a
schedule of demand at various prices
2. The price is determined by matching supply and demand bids
3. Then sellers specify the resources that will produce the power sold, and buyers spec-
ify the delivery points for the power purchased
4. PX schedules supply and demand with the ISO for delivery
5. Supply and demand are adjusted to account for congestion and ancillary services
6. The PX finalizes schedules
Hour-Ahead Market
The Hour-Ahead market provides a means for participants to buy and sell so as to adjust
their day-ahead commitments based on information closer to the transaction hour. It is
similar to Day-Ahead, except:
• Trades are for 1 hour (bid 2 hours ahead).
• Available transmission capacity is reduced by Day-Ahead trades.
In addition to these organized markets for wholesale power trade, competition is also
introduced in retail sales. Retail customers are free to choose their electricity provider.
The distribution companies are not allowed to charge switching fee from customers
choosing a supplier other than the local one.
The ‘Argentine Electricity Act’ of January 1992 divides the electricity industry into
three sectors: generation, transmission and distribution. These sectors are vertically dis-
integrated, and the controlling stake of a generation company, distribution company or a
large user can not control a transmission company. Generation companies are restricted
from holding any more than 10% of the market. Transmission companies and distribu-
tion companies require licences to operate. Hydroelectric plants require a licence for
exploitation of natural resources, thermal plants do not require a licence.
Distribution involves the transfer of electricity from the supply points of transmitters to
consumers. Distribution companies operate as geographic monopolies, providing ser-
vice to almost all consumers within their specific region. Accordingly, distribution com-
panies are regulated as to rates and are subject to service specifications. Distribution
companies may acquire the electricity needed to meet consumer demand on the WEM
(by seasonal contracts) or from contracts with generation companies.
Large users (consumers of more than 1 MW of capacity) are free to choose eligible sup-
Chapter 3 Market solutions 27
plier, and are also allowed to buy at the WEM spot prices.
Reference: [26]
Common features:
• Distribution and transmission are identified as natural monopolies, which implies
the need of regulations of these services
• Competition in supply
• All countries has free third party access to the transmission network, as they has
identified this as a necessary condition for competition
Differences:
• In Norway separate accounting is required for vertically integrated companies. In
1. Compania Administradora del Mercado Mayorista Electrico S.A. The web-pages of CAM-
MESA is found at [Link]
28 3.6 Differences and similarities of the market solutions
For a comparative analysis of the reforms in Norway and the UK see [8] or [22].
Chapter 4
Decentralized optimization
7KLVFKDSWHUSUHVHQWVDQHZHOHFWULFLW\ZKROHVDOHPDUNHWWKDWPDWFKHVVXSSO\DQG
GHPDQGELGVDQGVLPXOWDQHRXVO\VHFXUHHQRXJKVSLQQLQJUHVHUYH7KLVPDUNHW
LQYROYHVQRFHQWUDORSWLPL]DWLRQDOORSWLPL]DWLRQLVGRQHORFDOO\E\HDFKXQLW$
SRZHUH[FKDQJHLVXVHGDVDQRUJDQL]HGPDUNHWSODFH
4.1 Introduction
In this work, it is chosen to study a model with decentralized optimization, i.e. each unit
will optimize its production against the prices in the market. The prices will be set by
matching supply and demand bids.
Real-time operation is not considered here, the spot market of the power exchange is.
The work presented here is based on the theory of perfect competition, and the condi-
tions for perfect competition in the short run is stated in the following section.
The model of price determination under perfect competition was originally developed
by Alfred Marshall in the late nineteenth century.
30 4.2 Shortcomings of the Nordic electricity market
In short-run analysis the number of firms in an industry is fixed. However, firms are able
to adjust the quantity they are producing in response to changing conditions.
Once price is determined in the market, each firm and each individual treat this price as
a fixed parameter in their decisions. Although individual firms and persons are impotent
in determining price, their interaction as a whole is the sole determinant of price.
A market with perfect competition will result in an allocation of resources that maxi-
mizes the sum of supplier profit and demander surplus; i.e. maximizes social surplus.
future as Norway get closer connected to the rest of Europe which is dominated by
thermal units. In a system with more thermal production, spinning reserve is a
scarce resource.
The market model suggested here is based on the theory of perfect competition:
• All participants are assumed to behave rationally, i.e. seeks maximum utility/profit
• Each buyer and seller assumes that their decisions have no influence on the prices
(price-takers)
The commodities are electric energy and reserve power within the hour (the chosen time
interval). A price of energy (the $/MWh rate) and a price of reserve power ($/MW) will
be set for each hour.
The reason for simplicity (first guideline) is that the participants have to understand the
market rules for the market to function properly. The more complex the market rules are,
the more likely it is that it will not operate as intended. The second guideline is a direct
consequence of the chosen path to follow (decentralized optimization), and the last
guideline should be obvious.
Financial instruments such as future contracts and options contracts are considered
purely as tools for risk management (and speculation), and are not treated here. Futures
and options contracts can be traded decoupled from the physical operation of electricity
supply system.
4.3.1 Information
One of the conditions for perfect competition is perfect knowledge; prices should be
32 4.3 Proposal of a new electricity market
Information private to each unit (or more correctly, the company that owns it):
• Bids
• Unit fuel cost function and other plant characteristics (start-up costs, minimum up/
down time etc.)
• Resulting quantities for each unit
Public information:
• Clearing prices of energy and reserve power
• Market clearing procedure
• Total scheduled supply/demand in each hour
With the clearing prices known, each buyer and seller can check if their quantity of con-
sumption/production is correct according to their bid.
Network tariffing and handling of network restrictions are important elements of an elec-
tricity system. However, due to the limited time frame of this work, some sacrifices has
to be done, and it is chosen to neglect network restrictions and network tariffing.
A one bus bar model of the electricity system is used. All generation units and all load
points are assumed to be connected to the same bus bar by lossless connections (see fig.
4.1). Network tariffing and handling of network restrictions are identified as topics for
future research.
Chapter 4 Decentralized optimization 33
Bus bar
Load 1 Load 2 Load M
Due to constraints like minimum up time (MUT), minimum down time (MDT), start-up
costs as a function of down time, and volume constraints one cannot treat each hour inde-
pendently of the others. Therefore, the proposed model is based on an hour by hour bid-
ding and clearing process, i.e. hour t is cleared before bids for hour t+1 are collected.
This way, the market participants know their commitment in hour t before they submit
their bids for hour t+1; the history is known. The units use a price forecast to account for
the future. All intertemporal constraints can then be treated locally, by each unit.
The market clearing process handles the spinning reserve requirement and the power
balance simultaneously. The system operator sets the required level of spinning reserve
as to ensure the security of the system. Reserve power can be considered a public good
(see definition below), and the costs of providing it should be shared by all beneficiaries
(i.e. all loads).
34 4.3 Proposal of a new electricity market
3XEOLF*RRG A good is a (pure) SXEOLFJRRG if, once produced, no one can be excluded
from benefiting from its availability. [23]
Power producers are paid for the energy they produce within the hour (MWh) and the
amount of reserve power they provide, at the market clearing prices for that hour. The
price of energy in hour t is called λt, the price of reserve power in hour t is called µt. All
production is paid the same prices; the market clearing prices of energy and power (λc,t
and µc,t). Income for a unit i that is up and running in hour t is then:
Max
Income i = λ c, t ⋅ p i + µ c, t ⋅ ( P i – pi ) (4.1)
Each unit (i.e. each generator) provides a bid, which is a monotonically increasing price-
quantity curve (all supply bids must be monotonically increasing to guarantee a single
equilibrium point). The bid describes the minimum energy price (λ) the unit requires for
producing, with the price of spinning reserve (µ) equalling zero. Figure 4.2 shows an
example of a bid submitted by a single generator. For prices below λ1 production will be
zero, for prices between λ1 and λ2 the production will be Pimin, for prices between λ2
and λ3 production is given by the line AB, and for prices above λ3 the production will
be Pimax. For a price equalling λ1, production will be either 0 or Pimin. Both production
levels will yield the same profit; zero. λ1 is the indifference price, the price for which it
is indifferent of running vs. not running.
B
λ3
3ULFH
A
λ2
λ1
Pi
min
4XDQWLW\ Pi
max
To provide spinning reserve, each generating unit must deliver a bid. With two products
(energy and spinning reserve) a three-dimensional bid is necessary to declare production
levels for all possible levels of λ and µ. This three dimensional bid can be calculated with
the supply curve for µ = 0 and the marginal cost function known. The marginal cost func-
tion is used for minor adjustments later, and it is therefore chosen that the generators sub-
mit their marginal cost function in addition to the bid for µ = 0. The marginal cost
function, MCi(pi), is the derivative of (2.5):
d min max
MC i ( p i ) = -------- ( FC i ) = b i + 2c i p i for Pi ≤ pi ≤ Pi (4.2)
dp i
To summarize, each generator will submit the following information to the PX:
• The bid, a monotonically increasing price-quantity curve, which states the
production level for the unit for all possible values of λ with µ = 0
• Marginal cost function (includes information about minimum and maximum
production levels of the unit)
The PX collects all supply and demand bids. The demand bids are vertical if demand is
assumed to be independent of price. For a given hour the PX calculates the prices of
energy and power that clears the market (power balance and enough reserve power).
Prices and quantities are then set, and bidding on the next hour starts.
According to the theory of perfect competition, the following assumptions are made
[23]:
• Each firm is a price taker; i.e. it assumes that its actions have no effect on market
price.
The first assumption is a fairly good assumption we can make about the behavior of the
firms. The price taker assumption is rational when the number of firms is high.
To be able to account for minimum production of units and system reserve, it is chosen
that each generator unit calculates its own bid. A firm that owns several generators
should submit one bid for each generator to the power exchange.
For deciding production levels for different prices, each unit must have a description of
its costs. In short-run planning only the variable costs are of interest, since the firm has
no influence on fixed costs.
In the short run a price-taking firm will produce the level of output for which the mar-
ginal cost (MC) equals the price. For prices below average variable cost (AVC), how-
ever, the firm will choose to produce no output. If the income is lower than the variable
costs, it will be more profitable to stop production. See [23], p.380-383, (or another text-
book in microeconomic theory) for details. A supply curve for a price-taking firm is
shown in fig. 4.3.
Supply curve
AVC
3ULFH
MC
4XDQWLW\
P min P max
For a typical thermal plant with AVC higher than MC at all production levels, the supply
curve is given by the heavy lines in fig. 4.4. For prices lower than AVC the quantity
offered will be 0, and for higher prices the quantity offered will be Pmax.
A VC
HF
LU
3
MC
Supply curve
Fig. 4.4 Supply curve for a typical thermal plant with variable cost
described by a second order polynomial
38 4.3 Proposal of a new electricity market
Bid calculation
It is assumed here that the unit production costs can be described by a second order poly-
nomial. This is the most common way to describe thermal units. Hydro units with
enough reservoir capacity to assume a constant water value within the planning horizon
(24 to 168 hours) can also be described this way.
It is easily understood that a bid only based on average variable costs and marginal costs
will not give the optimal solution for the unit since it has start-up costs, minimum up time
and minimum down time, etc.
The history is known, so the unit knows if it is in a “cannot run” or “must run” situation
(due to minimum up/down time constraints or maintenance or some other reason). If the
unit cannot run, it does not give any bid. If the unit must run, it will offer Pimin as long
as the price is below the marginal cost at Pimin (= bi+2ciPimin). For higher prices, the
quantity offered is given by the marginal cost function (4.2).
If the unit is not in a “cannot run” or “must run” situation, the minimum price that the
unit demands to run must be calculated.
Since the market clearing process is decoupled in time, the units must take the time-cou-
pling into account when making the bids. This is dealt with using a price forecast. As a
first approach, the prices are assumed known for future hours.
With the prices for future hours known, the impact on future profits from running vs. not
running (in the hour the bid is to be calculated for) can be calculated, Idiff,i. This is done
by running a backwards dynamic programming (DP) routine (see appendix A for
details).
Idiff,i = future profits if running - future profits if not running (4.3)
A unit which is running but can be shut down, will then correct its bid for the next hour
based on the impact on future profits from running vs. not running in this hour. A unit
which can be started will do the same, and will also include start up costs. The argument
for this is that the difference in future income caused by a decision of production level
in a specific hour should be accounted for in that hour, and not in the future (at the time
of payment).
Example: A unit is running in hour t-1, and will make $500 more in all future hours
Chapter 4 Decentralized optimization 39
(hours t+1 and beyond) if it runs in hour t than if it does not run in hour t. It can suffer a
loss of up to $500 in hour t and still be running. For greater losses it will shut down.
Thus, the total costs which must be covered in hour t is the sum of fuel costs and start-
up costs, minus the difference in future income of running vs. not running in hour t
(Idiff,i):
2
TC i = a i + b i p i + c i p i + SC i – I diff, i (4.4)
With a price of reserve power equalling zero, the income for the unit i is: pi λ . The price
which is to be calculated, is the minimum energy price the unit requires in order to pro-
duce in the given hour, and is called MinPrice. The unit is not willing to lose money, so
the income must be higher than the total costs to cover (4.4):
2
λp i ≥ a i + b i p i + c i p i + SC i – I diff, i (4.5)
MinPrice is the minimum system energy price for which the unit does not loose money
(break-even). Unit i will thus produce if the energy price is above (or equal) to:
2
( a i + b i p i + c i p i + SC i – I diff, i )
MinPrice i = M in ---------------------------------------------------------------------------
pi
- (4.6)
min max
Pi ≤ p i ≤ P i
For prices below MinPrice, the quantity offered will be zero. If MinPrice is lower than
marginal cost at Pimin, Pimin will be offered for prices between MinPrice and marginal
cost at Pimin. For quantities where marginal cost exceeds MinPrice, the quantity offered
is given by the marginal cost function.
Fig.4.5 shows the resulting bid when the calculated MinPrice is lower than the marginal
cost at Pimin. Fig. 4.6 shows the resulting bid when the calculated MinPrice is higher than
the marginal cost at Pimin. Fig. 4.7 shows the bid when MinPrice is between marginal
cost at Pimin and marginal cost at Pimax. Note that the bids are not continuous. The dashed
lines indicate quantities that can be produced if paid extra, which will happen when a
price of reserve power is set. See the next section too see how the bid is interpreted with
a price for energy and reserve power.
40 4.3 Proposal of a new electricity market
3ULFH
max
bi+2ciPi
min
bi+2ciPi
MinPricei
Pi
min
4XDQWLW\ Pi
max
Fig. 4.5 Bid when MinPrice is lower than marginal cost at Pimin
3ULFH
MinPricei
max
bi+2ciPi
MC
min
bi+2ciPi
Pi
min
4XDQWLW\ Pi
max
Fig. 4.6 Bid when MinPrice is higher than marginal cost. The marginal cost
function is also shown (MC).
Chapter 4 Decentralized optimization 41
3ULFH
max
bi+2ciPi
MinPricei
MC
min
bi+2ciPi
Pi
min 4XDQWLW\ max
Pi
Fig. 4.7 Bid when MinPrice is between marginal cost at Pimin and marginal cost
at Pimax. The marginal cost function is also shown (MC).
Maximizing income (given by (4.1)) minus fuel costs will maximize profits for a unit
that is set to run:
With a price on both energy and reserve power, the marginal cost function gives the
information of the production quantity of the unit if it is set to run. With the bid it can be
decided whether it will produce this quantity or not.
A two-step procedure is used to calculate the production of a unit, given the market
clearing prices (λc and µc) and its bid and marginal cost function:
42 4.3 Proposal of a new electricity market
1. Given λc and µc, find the production (pr,i) given by the marginal costs (4.2) with the
unit set to run:
• If MCi(Pimin) > (λc - µc), pr,i = Pmin
• If (λc - µc) > MCi(Pimax), pr,i = Pmax
• Otherwise production is given by MCi(pr,i) = λc - µc
2. Check if prices λc and µc are high enough for the unit to run:
• Income = λcpr,i +(Pimax-pr,i)µc
• For the calculated pr, find the corresponding bid-price. If this is on a flat segment
of the bid (dotted lines in fig. 4.6 and fig. 4.7), the right hand side quantity of this
segment is used (pb,i) with its corresponding price (λb,i). Income requirement
(Ireq,i) for the unit to run at pr,i is pb,iλb,i minus saved production cost of running
at pr,i instead of pb,i (= integral of marginal cost (4.2)):
MC i ( p r, i ) + MC i ( p b, i )
I req, i = p b, i λ b, i – -------------------------------------------------------- ⋅ ( p b, i – p r, i ) (4.8)
2
• If income > Ireq,i, the production quantity of the unit is set to SU. Preferred
production p* = SU
• If income < Ireq,i, the production quantity of the unit is set to zero. Preferred
production p* = 0
• If income = Ireq,i, the unit is indifferent of running vs. not running (with the given
prices), and it is defined as an indifferent unit. Preferred production p* = SU
Market clearing involves the process of finding the clearing prices of energy and reserve
power. There can be a infinite number of (λ, µ) pairs that clears the market (i.e. supply
equals demand, and spinning reserve requirement satisfied). The market clearing prices
are defined as the minimum µ that satisfies the spinning reserve requirement and the cor-
Chapter 4 Decentralized optimization 43
responding price of energy λ. The clearing prices are called λc and µc.
Since the bids are not continuous, exact matching of supply and demand is not always
possible. The clearing price of energy is defined to be found if P1 ≤ PD ≤ P2.
An iterative procedure is used to calculate these clearing prices. This procedure is shown
in fig. 4.8 and fig. 4.9.
With the clearing prices and the according preliminary schedule found, an adjustment
has to be made to make the schedule feasible. Sum production of the preliminary sched-
ule will be equal or higher than demand (due to discontinuous bids). If sum production
is higher than demand, production of the most expensive (highest marginal cost) units
are reduced to make supply equal to demand. The resulting schedule is final.
The units will be paid according to this final schedule. However, if the final schedule is
different from the preliminary one, extra payments are necessary. See section 4.3.7 for
how these extra payments are calculated.
44 4.3 Proposal of a new electricity market
µ=0
∆ = start-increment
foundMax = FALSE
precision = small value
Yes
µ = 0 and P3 ≥ PD + R
No
Yes Yes
P3 ≥ PD + R ∆ ≤ precision
No No
If foundMax, set ∆ = ∆ / 2 ∆ =∆ /2
If ∆ < precision, set ∆ = precision µ=µ-∆
µ=µ+∆ foundMax = TRUE
µ fixed
∆ = start-increment
λ =∆
foundMax = FALSE
Yes
P1 ≤ PD ≤ P2
No
Yes
P2 ≥ PD
No No
If foundMax, set ∆ = ∆ / 2 ∆ =∆ /2
λ =λ +∆ λ =λ -∆
foundMax = TRUE
Fig. 4.9 Flowchart for calculation of clearing price of energy for a fixed price of reserve
power
46 4.4 Bilateral trade
Those units that are set to produce a quantity other than p* must be paid to do this, so
that their net profits are unchanged from the preliminary schedule (the units should not
be made worse off by the adjustments of the schedule).
MC ( p f ) + MC ( p* )
C 1 = ----------------------------------------------- ( p*- p f ) (4.11)
2
Extra payment is equal to the reduction in income minus the reduction in costs:
Extra = I 1 – I 2 – C 1 (4.12)
This extra payment will be paid for all units with final schedule different from initial
schedule.
It is assumed that the costs associated with these extra payments will be very small com-
pared to total costs.
In this system with decentralized optimization, trading on the power exchange is not
mandatory. Since the production companies can be paid for making production available
(with a non-zero price of reserve power, µ), producers will profit on making bids to the
PX.
Example 1:
Chapter 4 Decentralized optimization 47
A 100 MW unit has a bilateral contract of 60 MW in all hours. This does not prevent it
from participating in the power pool by declaring the remaining 40 MW of production
capacity available at marginal cost. By bidding on the PX, the unit has potential for addi-
tional income.
Example 2:
A unit which have sold all it’s production by bilateral contracts need not bid to the PX
at all.
Whereas fuel cost is a fairly well known parameter in thermal systems, there is no pre-
assigned value associated with a marginal amount of stored water. Due to this fact, the
short-term hydro scheduling is a problem of how to use the available water volume for
generation. [11]
Long-term reservoirs are meant to take advantage of variations in prices due to seasonal
and yearly variations of load and inflow. The optimization of hydro units is therefore
usually divided into a long-term problem and a short-term problem, since optimization
with a horizon of up to several years with a time step of one hour would be an enormous
task taking the stochastic nature of inflow into account. In the long term problem a week
is a normal time step.
The coupling between the long-term and short-term problem is normally either through
water values (expected value or incremental worth of water) or by water discharge quan-
tities for the week.
For long-term reservoirs, the water values can be treated as fixed in the short-term sched-
uling. When assigning water values to hydro units, the problem is equivalent to the ther-
mal problem, and bid calculation can be done according to section 4.3.4.
In river systems, discharge from one power station can be inflow to the next. This
hydraulic coupling means that the production scheduling of one unit cannot be done
independently from the other units in the same river system.
A full treatment of hydro units is not possible within the limited time of this project.
48 4.6 Practical implementation
The bidding and clearing process of the proposed market is summarized in fig. 4.10. It
t = t +1
is an infinite loop, as it should work for an indefinite number of future hours. Each iter-
ation in this flowchart must be completed in one hour (if the planning of one hour take
longer than one hour, time will run out). If each iteration takes one hour, this process
would require 24 hour a day operation. To finish the planning of 24 hours in a working
day (8 hours (even saturdays and sundays)), the time in one iteration should be no more
than 20 minutes. With automated routines for bidding, and good routines for information
exchange (between the bidders and the PX), this should be possible. The calculations
needed in the bid calculation (carried out by each unit) and the market clearing (carried
out by the PXO) will not take more than seconds on a modern computer, so information
exchange will probably be the most time consuming task. In addition, each unit has to
Chapter 4 Decentralized optimization 49
generate a price forecast (used in the bid calculation) for a number of hours ahead. How
many hours the price forecast must be for depends on the unit characteristics. E.g., a unit
with high start-up costs may have to consider a longer period than a unit with no or small
start-up costs.
The lead time should be as low as possible, to reduce uncertainties in load, plant avail-
ability etc.
A market that clears one hour per hour has the advantage that planning can be done close
to operation, thus reducing uncertainties. The disadvantage is the need for 24 hour man-
ning (if the bidding process is not automated). With all planning done within the working
day, the minimum lead time for the last hour planned will be 16 hours.
The simplest version of the market, and thereby appealing, is the one already described;
A one iteration only procedure, with moving horizon.
An alternative is to do this process for one day (24 hours), use the resulting prices to
update the price forecast and start over again. The number of iterations is limited by the
available time (24 hours to schedule the next 24 hours), but a few iterations (two or three)
should be possible.
Another possibility is to for the PX to publish a price forecast (which the units can
choose to use or not), and if the resulting clearing prices deviate more than some pre-
defined level, a new iteration is run. This way, the units can not speculate by giving
50 4.6 Practical implementation
incorrect bids in the first iteration, knowing that the bids for the first iterations in no way
are binding.
51
Chapter 5
Simulated Competition
7RHYDOXDWHWKHTXDOLW\RIWKHSURSRVHGPDUNHWDFRPSXWHUVLPXODWLRQSURJUDPKDV
EHHQGHYHORSHG7KLVSURJUDPVLPXODWHVWKHSURSRVHGPDUNHWDFFRUGLQJWRWKH
ELGGLQJDQGFOHDULQJUXOHVGHVFULEHGLQWKHSUHYLRXVFKDSWHU
A computer program based on the proposed market is developed. The program is called
Simulated Competition (or SimCom for short). SimCom is written in the Fortran 90 pro-
gramming language.
The critical factor in the proposed market is the price forecast. The price forecast consists
of the expected price of energy and the expected price of reserve power for all hours of
the optimizing horizon. A computer simulation program allows us to run several itera-
tions, where the price forecast is updated in each iteration. An initial price forecast must
be set, but it is not critical that it is a good one, as it will converge to a better price fore-
cast. The old price forecast together with the clearing prices (resulting from that old price
forecast) is used to calculate the new price forecast (one price of energy and one price of
reserve power for each hour of the optimization period):
new price forecast = old price forecast · (1-α) + resulting clearing price · α(5.1)
α is an update factor, and is usually set to 0.5, giving the new price forecast as the mean
of the old price forecast and the clearing prices resulting from that price forecast. All
units use the same price forecast.
SimCom can be used to solve the scheduling problem with minimum up/down times,
time varying start-up costs, minimum and maximum production levels and spinning
reserve requirement taken into account.
52 5.1 Simulated competition (SimCom)
t=t+1
Yes
Yes
Write results
KRUL]RQ is the number of hours to simulate (usually between 24 and 168 hours)
λc,t is the clearing price of energy in hour t (in $/MWh)
µc,t is the clearing price of reserve power in hour t (in $/MW)
Bid calculation is described in section 4.3.4, market clearing (price and quantity deter-
mination) is described in section 4.3.6. The dual value is described in section 5.1.1.
In the bid calculation, the hours considered when calculating Idiff,i is from t+1 to the last
hour of the optimizing horizon. Recall that the difference in future income for running
vs. not running hour t has to be found (Idiff,i in (4.6)) to calculate the bid for hour t. See
the following example:
Example:
Optimizing horizon is 24 hours. For hour 1, the price forecast for hours 2-24 is used
when calculating the bids for all units for that hour. For hour 2, the price forecast for
hours 3-24 is used. In hour 23, the future is hour 24. In hour 24 there is no future to con-
sider, since hours beyond the optimizing horizon is not considered, and thus Idiff,i = 0.
There is no explicit convergence criterion in SimCom. When running the program, the
simulation is usually stopped after 20 iterations.
A paper about this method, called ’7KHUPDO 3RZHU *HQHUDWLRQ 6FKHGXOLQJ E\ 6LPXODWHG
&RPSHWLWLRQ¶, is accepted for publication in an IEEE Transactions, [14].
Due to similarities with the Lagrangian Relaxation method (LR), the clearing prices in
SimCom can be used as the multipliers in LR to calculate the Lagrangian dual value. The
dual solution is not a feasible solution to the problem, but the dual value represents a
lower limit of total costs. The difference between the calculated cost and the dual value
represents an upper limit for the distance to the optimal solution.
With the problem definition from section 2.5, the dual function becomes (see appendix
B for details):
N T
D = ∑ Min { K i ( u, p ) } + ∑ ( λt ⋅ P D, t + µt ⋅ Rt ) (5.2)
u i, p i
i=1 t=1
54 5.2 Summary
where
T T T
∑ FC ( pi, t ) + ∑ SC i, t – ∑ ( λt ⋅ p i, t + µt ⋅ ui, t ⋅ ( P i
max
K i ( u, p ) = – p i, t ) ) (5.3)
t=1 t=1 t=1
The value of the dual function is calculated in each iteration of SimCom using the clear-
ing prices as multipliers.
5.2 Summary
Input to SimCom:
• Unit data for all units (minimum production, maximum production, minimum up
time, minimum down time, fuel costs described by a second order polynomial,
linear or exponential start-up costs, and initial condition (on/off and for how long))
• Optimization horizon (number of hours to simulate)
• Load and reserve requirement for each hour of the optimization period (only firm
load is implemented in SimCom so far)
• Initial price forecast
• Update factor α (determines how the price forecast for the next iteration is set, see
equation (5.1))
With the input data given, SimCom runs for a given number of iterations (usually 20).
For each new iteration, the price forecast is updated.
Chapter 6
Test simulations
6LP&RPWKHFRPSXWHUSURJUDPWKDWVLPXODWHVWKHSURSRVHGPDUNHWKDVEHHQ
WHVWHGRQVHYHUDOFDVHVZKLFKUHVXOWVDUHVKRZQKHUH7KHUHVXOWVSURYLGH
LQIRUPDWLRQDERXWWKHTXDOLW\RI6LP&RPDVDSURJUDPIRUVROYLQJWKHVLQJOH
RZQHUVFKHGXOLQJSUREOHPDQGDERXWWKHTXDOLW\RIWKHSURSRVHGPDUNHW7KH
UHVXOWVZLOOEHGLVFXVVHGLQWKHQH[WFKDSWHU
6.1 Introduction
To be able to evaluate the quality of the proposed market and of SimCom, simulations
with SimCom has been done. Simulations will provide information about convergence
properties, and the sensitivity of the assumption of known future prices can be examined.
The simulations are done to study the quality of the two different contributions of this
thesis:
1. SimCom as an optimization tool for the single owner scheduling problem/central
scheduling problem
2. The quality of the proposed scheduling market
Test results from 3 different cases is reported here: A 10 unit case and a 110 unit case,
both with data from [24], and a 9 unit case with known optimal solution. Optimization
horizon is 24 hours for the first two cases, and 168 hours for the third. Complete data for
all cases can be found in appendix C.
A lagrangian relaxation based program has also been available; SHARP. SHARP is
described in [17].
The schedule costs reported for solution methods other than SimCom, SHARP and Unit
Decommitment are from [24]. These are marked by a star (*) in the tables.
The initial forecast for price of reserve power is set to zero in all simulations.
The SimCom method is programmed in Fortran 90 and run on a PC with a Pentium 133
MHz processor.
The SimCom method and the economic results of test systems 1 and 2 is presented in a
paper that has been accepted for publication in IEEE Transaction on Power Systems
[14].
6.2 SimCom
Table 6.1 shows a comparison of SimCom best solution with the best solutions found by
other optimizing techniques. The Lagrangian dual value (see previous chapter) is also
reported. Table 6.2 shows the best unit commitment plan generated by SimCom and the
best generated by SHARP.
Table 6.2. Unit commitment plan for the best schedule generated by
SimCom for test system 1 (Underlined where the solution differs from
SHARP’s solution)
For this system the reserve requirement is set to 700 MW in all hours (Pmax of largest
unit).
Units 101-110 are specified with shut-down costs in [24] (ranging from $15 to $75). In
the calculations with SimCom, SHARP and Unit Decommitment the shut-down costs
are added to the start-up costs. The maximum error caused by this is $163 (Shut-down
of those units which are initially running).
3840
3815
3810
1 2 3 4 5 6 7 8 9 10
,WHUDWLRQ
Fig. 6.1 Production cost in each iteration of the SimCom for different initial
price forecasts
Table 6.3 shows a comparison of SimCom best solution with the best solutions found by
other optimizing techniques. Figure 6.1 shows the results in each iteration of simulations
with different initial energy price forecasts (these results are also shown in tabular form
in table E.1. The initial price forecast is equal for all hours.
This is a test case with 9 units, 7 thermal units and 2 hydro units. The hydro units are
assigned a water value (incremental worth of water) from the long term planning, and
can therefore be treated the same way as the thermal units.
The unit data and load data can be found in section C.3. Reserve requirement is 10% of
the load in all hours.
In this case the units have no minimum up or down time, and the start-up costs are con-
stant (not dependent on downtime). The problem can then be formulated as a shortest
path problem, and for a problem of this small size the optimal solution can be found. The
optimal solution is found by Dijkstra’s method1, and is provided by Professor Arne
1. Refer to a textbook in Operations Research for a description of Dijkstra’s method, for example
[10], pages 191-194
Chapter 6 Test simulations 61
Johannesen of SINTEF Energy Research. Shortest Path applied on the generation sched-
uling problem is described in [16].
Table 6.4. SimCom best solution vs. optimal solution for test system 3
(9 units, 168 hours)
The best solution found by SimCom has the following commitment plan:
• Units 1,2 and 3 are committed in all hours
• Unit 4 is committed in hours 6-119 (all weekdays)
• Unit 8 is committed in hours 8-23, 32-47, 56-71, 80-95, 104-119, 126-142 and
150-166 (once per day)
• Unit 9 is committed in hours 11-13, 35-37, 59-61, 83-85, 107-109, 128-133 and
152-157 (once per day)
This is illustrated in fig. 6.2 (since only 3 units are switched on and off, it is possible to
identify each start and stop in the figure). The only difference from the optimal solution
is that in the optimal solution, the smallest of the two hydro units (unit 9) is used instead
of the largest hydro unit (unit 8) in hours 17-18, 23, 41-42, 47, 65-66, 71, 89-90, 95, 113-
114, 119, 126, 142, 150, 166.
62 6.3 Quality of the proposed market
900
800
3URGXFWLRQDQGUHVHUYH0:
700
600
500
400
300
Excess reserve
200 Reserve demand
Hydro
100
Thermal
0
1 13 25 37 49 61 73 85 97 109 121 133 145 157
+RXU
Fig. 6.2 Best solution found by Simulated Competition. The figure shows hydro
and thermal production and reserve in each hour of the week
The simplest version of the market is the one-iteration-only procedure. Because of its
simplicity, it is attractive. A question is then; how good must the price forecast be to
reach near-optimal solutions in the first iteration? And, are there significant improve-
ments by running more than one iteration which justifies the increased complexity of the
market?
Another question is whether the units have an operating profit or not. If a unit does not
make any profits, it has no reason to participate in the market. The only reason for par-
ticipating in the market is that the unit believes in opportunities to make profits.
An electricity market should be able to reach a good solution in one or just a few itera-
tions, and results from simulation with different initial price forecast are thus shown
here. See the next chapter for the discussion of the results.
Figure 6.3 shows the schedule cost in each of the three first iterations of SimCom for
different initial price forecasts. The price forecast that gives the best solution in one iter-
ation is used as a basis, and is multiplied by a scaling factor. Prices for reserve power are
also forecasted, but setting the price forecast of reserve to zero makes little difference.
The difference between the best and the worst solution in fig. 6.3 is 0.38%.
λ ( t ) = c s ⋅ λ best ( t )
(6.1)
µ ( t ) = c s ⋅ µ best ( t )
Where cs is the scaling factor, λbest(t) is the price of energy in hour t in the price forecast
that gives the best solution and µbest(t) is the price of power in hour t in the price forecast
that gives the best solution (this "best" forecast is shown in fig. 6.4). The values of λ(t)
and µ(t) are then used as the initial price forecast.
3828
3826 1st iteration
6ROXWLRQYDOXH
3820
3818
3816
3814
3812
3810
0.75 0.80 0.85 0.90 0.95 1.00 1.05 1.10 1.15 1.20 1.25
6FDOLQJIDFWRU
Fig. 6.3 Schedule cost in the first iterations of SimCom for different initial
price forecasts for test case 2. The price forecast that gives the best
solution (in one iteration) is scaled by the "Scaling factor"
64 6.3 Quality of the proposed market
For the units to participate in the market, they must have opportunity to make profits.
The question is then: Do the units make any profits?
If the price forecast is correct (equals the resulting prices), all units will make profits
since their bids are optimized for the price forecast. However, since the price forecast is
uncertain, the units risk both loosing money and earning more than expected.
One iteration of SimCom is run, with the price forecast that gives the best schedule. This
price forecast and the resulting prices is shown is fig. 6.4 (all units use the same forecast).
The price forecast and resulting prices is shown in tabular form in table E.3.
30
Forecasted energy price
25 Resulting energy price
Forecasted reserve price
Resulting reserve price
20
3ULFH
15
10
0
1
11
13
15
17
19
21
23
+RXU
Fig. 6.4 Price forecast and resulting prices (best iteration of test case 2)
The payment for delivered energy is $5,208,525 and the payment for reserve power are
$12,605 (0.24% of total payments). The extra payment for the difference between the
final schedule and the preliminary one totals to $233 (0.0045% of total payments), which
confirms that the assumption that these costs are small is valid (at least for this case).
The payments to the generators total $5,221,363 whereas the generation costs are
$3,810,851. This gives an operating profit of $1,410,512. However, profits are not
Chapter 6 Test simulations 65
equally distributed among the units, and the profit for each unit has to be checked.
Four units lose money in this case, the units are no. 14, 15, 103 and 109. Table 6.5 shows
the net income in each hour for these units. Start-up (and shut-down) costs are accounted
for in the hour of start-up.
Table 6.5. Income in each hour for selected units
Hour(s) 1 2 3 4-17 18 19 20 21 22 23 24 Total
Unit 14 -407 1 490 -255 -170
Unit 15 -143 481 -257 -285 -205
Unit 103 85 -155 -240 -350 -176 79 262 -496
Unit 109 -787 260 610 -447 -523 -888
These units lose money since the resulting prices are lower than they forecasted. Their
behavior is optimal according to the price forecast and the resulting price in the hour of
start-up, but since prices are lower than expected, they lose money.
Units 14, 15 and 103 have minimum up time of four hours, and unit 109 has minimum
up time of 5 hours. This explains why they are up in hours 22 and 23. The reason for unit
103 not shutting down in hours 2 and 3 is that it initially has been up for one hour only,
and therefore has to be up for three more hours (hours 1, 2 and 3).
66 6.3 Quality of the proposed market
67
Chapter 7
7.1 Introduction
1. A new method for decentralized scheduling and market clearing based on competitive
bidding. The market clearing handles power balance and spinning reserve require-
ment simultaneously
2. A new algorithm for central scheduling based on simulation of the above mentioned
process
This chapter discusses the quality of these two, and also identifies topics for future
research.
SimCom can be used to solve the single owner scheduling problem (as stated in section
2.5), and the simulations show excellent results. For test case 1, the SimCom solution is
only 0.02% inferior to the solution provided by SHARP. For test cases 2 & 3, the simu-
lated competition method (SimCom) gives better schedules than the other methods
(0.06% better than the second best for test case 2, and 0.25% for test case 3). For test
case 3, the optimal solution is available, and the best solution provided by SimCom is
only 0.08% from the optimal solution.
Other cases differing in number of units, length of study time and system demand profile
has also been tested. All these cases have shown that SimCom provides excellent perfor-
mance: fast computation, fast convergence and low schedule costs.
Simulations have shown that the initial price forecast has little influence on the best solu-
tion found. Near optimal solutions are found regardless of what the initial price forecast
is.
68 7.1 Introduction
SimCom has great resemblances with the Lagrangian Relaxation (LR) method but also
some differences.
The simulations show that the proposed market can lead to near-optimal performance,
when the units behave according to the perfect competition conditions (each firm has no
influence on the market clearing price).
The critical factor is the price forecast. If the price forecast is correct, each unit will have
its optimal schedule.
Optimal behavior in any given time interval is dependent on both past and future due to
start-up costs and minimum up/down time. The past is always known, and the future is
dealt with through the price forecast.
Chapter 7 Discussion and further work 69
Simulations have shown that good schedules can be reached in just one iteration if the
price forecast is not too far off. Figure 6.3 shows that for test case 2, the production cost
in the first iteration are less than 0.4% higher than for the best schedule even with the
price forecast 25% off. Since the gain in running more than one iteration is small, the one
iteration only procedure is the most appealing due to its simpleness.
However, the units are more sensitive to the difference between the price forecast and
the resulting prices. If a unit believes in high future prices, and the clearing prices are
lower than expected the unit risk losing money. If the price forecast is lower than the
clearing prices, the unit can lose the opportunity to make money.
In the simulations in chapter 6, all units use the same price forecast. In a real market it
can be discussed whether the PX should publish price forecasts or not. The arguments
against this is that the PX should be independent and neutral, and the PX will influence
the bids by setting the price forecast. The arguments for a public price forecast is that it
is efficient (instead of many units doing the same work one central agency makes the
price forecast), and the units can independently correct the public forecast according to
own beliefs. A conclusion is not drawn here, and this question is open for further discus-
sion.
In the proposed market, discontinuous bids are allowed. The discontinuities comes from
minimum production levels of units, and best operating points at higher levels of pro-
duction (see figs. 4.5, 4.6 and 4.7). Due to the discontinuities in the bids, exact matching
of supply and demand is not always achieved in the preliminary schedule. Adjustments
are then made to this preliminary schedule to reach the final schedule where supply
equals demand. With a large number of units, these adjustments will be small compared
to total production, and thus the economic effect will be small.
Because spinning reserve is included in the market clearing process, a bid must be
included for each unit. The market clearing then gives the resulting quantities for each
unit. A production company that owns several units need not use these quantities as a
final production schedule, since only the sum production and sum reserve for the units
it owns are binding for the company. The company can reschedule the production any
way it pleases.
70 7.2 Suggestion for future work
Network restrictions (transfer limits and reliability) is not treated in this work. This is
another topic for future research.
Chapter 8
Conclusions
A new electricity spot market is proposed. This market balances power production with
demand and simultaneously ensures enough spinning reserve. Routines for bidding and
market clearing are developed. The unit characteristics and restrictions that are handled
are: Minimum and maximum production levels, fuel cost function, start-up costs, mini-
mum up time and minimum down time.
A computer program that simulates the proposed market has been developed. The sim-
ulations show that it is possible to reach economically efficient (i.e. near-optimal) gen-
eration plans through the proposed market. The critical factor is the quality of the price
forecast which is used in the bid calculations. With a reasonably good price forecast
good solutions are reached already in the first iteration of SimCom. If implemented in a
real market, a one iteration procedure would be preferable due to its simpleness.
A new method for solving the single owner short term scheduling problem is presented.
Simulation results show that it produces near optimal production schedules, and compu-
tation time is low (1 minute for scheduling 110 units for 24 hours on a Pentium 133 PC).
72
73
5HIHUHQFHV
[33] White, Anthony et al. 7KH1HZ(OHFWULFLW\&RPSDQLHV. James Capel & Co. Ltd.,
London, 1990.
[34] White, Anthony et al. 7KH1HZ(OHFWULFLW\,QGXVWU\ James Capel & Co. Ltd., Lon-
don, 1990.
[35] Wolak, Frank A. and Patrick, Robert H. 7KH,PSDFWRI0DUNHW5XOHVDQG0DUNHW
6WUXFWXUHRQWKH3ULFH'HWHUPLQDWLRQ3URFHVVLQWKH(QJODQGDQG:DOHV(OHFWULFLW\
0DUNHW. POWER Working Paper, PWP-047, University of California, Berkeley,
1997
[36] Wolak, Frank A. 0DUNHW'HVLJQ DQG 3ULFH %HKDYLRU LQ 5HVWUXFWXUHG (OHFWULFLW\
0DUNHWV$Q,QWHUQDWLRQDO&RPSDULVRQ. POWER Working Paper, PWP-051, Uni-
versity of California, Berkeley, 1997
[37] Wu, Felix and Varaiya, Pravin. &RRUGLQDWHG0XOWLODWHUDO7UDGHVIRU(OHFWULF3RZHU
1HWZRUNV7KHRU\DQG,PSOHPHQWDWLRQ. Power (Program on workable energy reg-
ulation), June 1995.
76
A77
Appendix A
Dynamic programming is here used to find the difference in future income for the unit
resulting from the decision of running vs. not running in the hour the bid is to be calcu-
lated for (i.e. the optimal profit for two different initial states must be calculated). To use
DP, the problem has to be divided into stages, and a return function and transition func-
tion must be set.
With a given set of prices, each unit can find its optimal production plan. The unit wants
to maximize total profits for the planning horizon (income (4.1) minus fuel costs and
start-up costs):
Meaning of symbols:
The states in the DP is whether the unit is running or not, and for how long. The number
of up states is given by MUT, and the number of down states is the maximum of MDT
and the cooltime of the unit. The cooltime of the unit is when the start-up costs no longer
are increasing. With exponential start-up costs, see (2.6), cooltime is set equal to 4 times
the time constant τ i in the exponential expression (e-4 = 0.018 which gives reasonable
accuracy).
The return function, NI(t), is the net income in a given hour t (stage). NI = 0 if the unit
is not running, and if running:
The maximization of (A.2) is trivial when fuel costs are given by (2.5). First optimal pro-
duction without regard of min. and max. production, Pi,t*, is found:
∂NI t
----------- = λ t – µ t – b i – 2a i p i, t = 0 (A.3)
∂p i, t
* λt – µt – bi
P i, t = -------------------------- (A.4)
2a i
With regard to min. and max. production the optimal production, Pi,t**, is found
Appendix A Dynamic Programming (DP) A79
* min ** min
P i, t < P i ⇒ P i, t = P i
* max ** max
P i, t > P i ⇒ P i, t = P i (A.5)
min * max ** *
Pi ≤ P i, t ≤ P i ⇒ P i, t = P i, t
The transition cost is equal to the start-up cost when start-up occurs, and zero if no start-
up occurs.
Figure A.1 shows the decision tree for a unit with MDT = MUT = 2 hours and start-up
cost dependent on downtime (start-up cost = C1 if tdown = 2 hours and start-up cost = C2
if tdown > 2). If the unit has been down for MDT or more, it has to decide whether to start
up or not, and if it has been up for MUT or more it can continue running or shut down.
+2 +2 +2 +2
...
Up +1 +1 +1 +1
-3 -3 -3 -3
Down
-2 -2 -2 ... -2
-1 -1 -1 -1
The rectangles show the state of the unit, and the numbers has the following meaning:
Recursive relationship:
Meaning of symbols:
Example:
The unit in fig. A.1 has been running for more than MUT, and is calculating its bid for
hour 0. In hour 0 it has two options: Either continue running (which is represented by
{+2} in hour 0 (t = 0) in fig. A.1), or shut down ({-1} in hour 0 in fig. A.1). The differ-
ence in future profit between these two options can then be calculated:
Appendix B
Lagrangian Relaxation
The optimization problem is stated in section 2.5. The first step of the Lagrangian Relax-
ation method is to include the global restrictions (2.2) and (2.3) in the object function
(2.1):
T N T N T N
Min L = ∑ ∑ ( FC i, t + SC i, t ) + ∑ λ t ⋅ P D, t – ∑ p i, t + ∑ µ t ⋅ R t – ∑ ( P i, t u i, t – p i, t ) (B.1)
max
u, p
t = 1i = 1 t=1 i=1 t=1 i=1
Since (2.2) is an equality constraint, each λt is a free variable, and since (2.3) is an ine-
quality constraint each µt must be non-negative. λ and µ are called the lagrangian mul-
tipliers (λ is the set of all λt, and µ is the set of all µt).
Since (B.1) is a relaxation of the original problem, the solution of (B.1) for any given set
B84 B.1 Lagrangian Relaxation (LR)
Equation (B.1) is separable, and can be divided into a subproblem for each unit:
N T
D = Min L = ∑ Ki ( u, p ) + ∑ ( λt ⋅ P D, t + µt ⋅ R t ) (B.2)
u, p i=1 t=1
rewritten to:
N T
D = ∑ Min { K i ( u, p ) } + ∑ ( λ t ⋅ P D, t + µ t ⋅ R t ) (B.3)
u i, p i
i=1 t=1
where
T T T
∑ FC ( pi, t ) + ∑ SC i, t – ∑ ( λt ⋅ p i, t + µt ⋅ ui, t ⋅ ( P i
max
K i ( u, p ) = – p i, t ) ) (B.4)
t=1 t=1 t=1
(B.3) is called the dual function, since maximizing this function over λ and µ subject to
the local constraints gives a lower limit to the original problem.
Each subproblem is small, and can easily be solved by Dynamic Programming. The
value of the dual function can therefore easily be calculated when λ and µ are fixed.
In LR, the commitment plan ( u ) generated from the solution of each subproblem is used
to generate a primal feasible solution. If the commitment plan cannot be used directly,
some heuristic rules are used to generate a feasible solution.
The multipliers are updated in each iteration of the LR. Several methods exists for updat-
Appendix B Lagrangian Relaxation B85
The value of the primal function is always greater than or equal to the dual value (weak
duality). The difference between the two functions yields the duality gap. The duality
gap provides a measure of the near-optimality of the solution.
Examples of the Lagrangian Relaxation method to solve the short term scheduling prob-
lem are shown in [18] and [21].
For an overview of optimization algorithms for the scheduling problem see [28] and
[29].
B86 B.1 Lagrangian Relaxation (LR)
C87
Appendix C
Case data
Test cases 1 & 2 are both from [23]. Test case 3 is provided by Professor Arne
Johannesen of SINTEF Energy Research.
Reserve (MW)
Hours 1-6 350 329 329 300 300 300
Hours 7-12 300 300 300 300 280 280
Hours 13-18 280 270 270 260 260 250
Hours 19-24 240 240 240 240 260 350
Appendix C Case data C89
Load (MW)
Hours 1-6 11600 10900 9500 9300 10500 11200
Hours 7-12 12500 12900 13500 14500 14600 14000
Hours 13-18 13200 13000 14500 14600 14000 14700
Hours 19-24 15600 16200 16500 15000 14300 13500
C92 C.3 Test case 3 (9 units, 168 hours)
Table C.7 Unit data for test case 3. The units have no minimum up-time
or minimum down-time, and start-up cost is constant. (IC = initial condition)
max min
Unit P P IC a b c Startcost
1 200 50 Up 720 78.42384 0.008486244 58605
2 170 60 Up 918 83.48580 0.006554664 53550
3 120 40 Up 864 80.19468 0.082522440 46703
4 150 50 Down 3780 47.78172 0.240727320 65455
5 100 30 Down 900 93.42864 0.175714200 54000
6 60 30 Down 576 111.30944 0.118170240 4608
7 50 10 Down 640 180.46080 0.134787840 1000
8 150 50 Down 9000 -23.44830 0.522605000 500
9 70 20 Down 4200 -22.26240 1.477692000 200
D93
Appendix D
Examples
Consider a unit which has bid the price 20 for all production-quantities from Pmin to
Pmax. Its marginal cost function is MC(p) = 5 + 0.5p. Pmin = 10 and Pmax = 20. Market
clearing prices are λc = 19.6, µc = 7.6.
First, the quantity to produce if the unit is set to run (pr) is found from the marginal cost
curve: λc - µc = 5 + 0.5pr ⇒ pr = (19.6 - 7.6 - 5) / 0.5 = 14.0
Then it is checked whether the unit will run with the given prices. For the quantity of
14.0, the bid-price is 20, but since this is on a flat segment of the bid, pb is set to the end
of that segment; pb = Pmax = 20 and the price asked is λb = 20. The required income is
given by (4.8):
MC i ( p r, i ) + MC i ( p b, i )
I req, i = p b, i λ b, i – -------------------------------------------------------- ⋅ ( p b, i – p r, i ) (D.1)
2
The unit in question shall calculate its bid for hour 1. Its price forecast is given by table
D.1 (λ and µ). The unit has minimum up time of 6 hours, minimum down time of 6
hours, start-up cost of $1800. Fuel cost function: FC(p) = 450+19.7p+0.004p², minimum
production of 25 MW and maximum production of 162 MW. The unit has been down for
more than 6 hours
Table D.1. Price forecast, production and net income in each hour with the unit
set to run
Hour λ µ Prod Income Prod. cost Net income
2 17.4 0.0 25.0 435.0 945.0 -510.0
3 22.8 5.3 25.0 1296.1 945.0 351.1
4 20.0 0.0 37.7 753.8 1198.1 -444.3
5 22.0 1.6 87.9 2053.2 2213.2 -160.0
6 29.2 9.0 62.8 2726.8 1703.1 1023.7
7 17.5 0.0 25.0 437.5 945.0 -507.5
8 19.9 0.0 25.1 500.0 947.5 -447.5
9 28.3 7.8 100.5 3323.9 2470.1 853.8
10 35.4 12.6 162.0 5734.8 3745.9 1988.9
11 38.3 12.3 162.0 6204.6 3745.9 2458.7
12 39.9 13.5 162.0 6463.8 3745.9 2717.9
13 35.4 12.6 162.0 5734.8 3745.9 1988.9
14 28.3 7.8 100.5 3323.9 2470.1 853.8
15 22.2 1.3 150.8 3361.4 3510.3 -148.9
16 17.5 0.0 25.0 437.5 945.0 -507.5
17 17.4 0.0 25.0 435.0 945.0 -510.0
18 17.5 0.0 25.0 437.5 945.0 -507.5
19 19.9 0.0 25.1 500.0 947.5 -447.5
20 37.1 14.2 162.0 6010.2 3745.9 2264.3
21 33.5 13.0 100.5 4166.3 2470.1 1696.2
22 22.2 0.0 162.0 3596.4 3745.9 -149.5
23 20.7 3.1 25.0 942.2 945.0 -2.8
24 19.5 0.0 25.0 487.5 945.0 -457.5
Appendix D Examples D95
Table D.1 shows what the unit will produce in each hour if it is set to run. The production
level is given by the marginal cost function and the energy and power prices. The table
shows the net income in each hour at the calculated production levels.
,QFRPHLQHDFKKRXU
3000.0
2500.0
2000.0
1HWLQFRPH
1500.0
1000.0
500.0
0.0
-500.0
-1000.0
2 4 6 8 10 12 14 16 18 20 22 24
+RXU
Fig. D.1. Net income in each hour with the given price forecast
If the unit is set to run in hour 1, the optimal commitment plan for the unit will be to run
also in hours 2-21 (with the prices in table D.1). This gives an income of $12,006.6
It the unit is set to be down in hour 1, the optimal commitment plan is to run in the hours
from 6 to 21, and not run in hours 2-5 and 22-24. This gives an income of $10,969.8
Both optimal commitment plans are found by running a backwards Dynamic Program-
ming (DP) routine once (see appendix A).
Then the impact on future income from running vs. not running in hour 1 can be calcu-
lated:
Then the minimum energy price required (for µ = 0) can be calculated from (4.6):
D96 D.2 Example of Bid Calculation
2
( a i + b i p i + c i p i + SC i – I diff, i )
MinPricei = min ---------------------------------------------------------------------------
pi
- (D.2)
min max
Pi ≤ p i ≤ Pi
2
( 450 + 19.7p i + 0.004p i + 1800 – 1036.8 )
MinPricei = min -----------------------------------------------------------------------------------------------------
pi
- (D.3)
25 ≤ p i ≤ 162
Appendix E
This appendix contains the some of the same results that are shown as figures
in chapter 6, but here they are shown in tabular form.
Table E.1. Schedule cost (in $1000) in each iteration of SimCom for different
initial price forecasts (same price in all hours), for test case 2.
Table E.2. Schedule cost in the first iterations of SimCom for different initial price
forecast. The price forecast equals the price forecast giving the best solution
multiplied by the scaling factor
Table E.3. Price forecast and resulting prices for test case 2 in the
iteration that gives the best solution