Full Text 01
Full Text 01
THIRD CYCLE
STOCKHOLM, SWEDEN 2022 kth royal institute
of technology
Weekly planning of
Licentiate Thesis in Electric Power and Energy Systems
power generation
Licentiate thesis
Charlotta Ahlfors
Stockholm, Sweden 2022
Weekly planning of hydropower in
systems with large volumes of
varying power generation
CHARLOTTA AHLFORS
Academic Dissertation which, with due permission of the KTH Royal Institute of Technology,
is submitted for public defence for the Degree of Licentiate of Engineering on Tuesday the 11th
October 2022, at 10:00 a.m. in Sten Velander rum 3412, Teknikringen 33, Stockholm.
TRITA-EECS-AVL-2022:56
ISBN: 978-91-8040-345-0
The topic of hydropower planning is well investigated and various research questions
have been studied under many years in different countries. Some of the works
are summarized and discussed in literature reviews, which are presented in this
thesis. First, some reviews are presented, which covers several aspects of hydropower
planning. Literature reviews for long term, mid term and short term planning,
respectively, are described.
iii
stochastic method compared to the deterministic method yields a slightly better result
at the cost of a need for larger computational resources.
Keywords
iv
Sammanfattning
v
deterministiska metoden ger ett något bättre resultat dock till priset av ett behov av
större datorresurser.
Nyckelord
vi
Acknowledgements
Solna 20220508
Charlotta Ahlfors
vii
Acronyms
DP Dynamic programming
MILP Mixed Integer Linear Programming
SDP Stochastic dynamic programming
SDDiP Stochastic dual dynamic integer programming
SDDP Stochastic dual dynamic programming
UC Unit Commitment
viii
Contents
1 Introduction 1
1.1 Background . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 Research question . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.3 Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.4 Contribution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.5 Overview of the thesis . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2 Hydropower planning 6
2.1 Planning methods for power systems . . . . . . . . . . . . . . . . . . . 6
2.2 Mathematical optimization . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.3 The Nordic electricity market . . . . . . . . . . . . . . . . . . . . . . . . 9
2.4 Hydropower production . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.4.1 The Nordic river systems . . . . . . . . . . . . . . . . . . . . . . 10
2.5 Renewable electricity production . . . . . . . . . . . . . . . . . . . . . . 11
3 Literature review 13
3.1 Previous reviews on hydropower planning . . . . . . . . . . . . . . . . . 13
3.2 Long term planning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
3.3 Mid term planning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3.4 Short term planning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3.5 Maintenance scheduling . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
3.5.1 Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
3.6 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
3.7 Conclusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
ix
CONTENTS
5 Stochastic model 50
5.1 Problem formulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
5.2 Results of stochastic computations . . . . . . . . . . . . . . . . . . . . . 55
6 Discussion 58
6.1 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
6.2 Future Work . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
A Tables 61
References 64
x
Chapter 1
Introduction
1.1 Background
Sustainability and environment is a global concern. The global established
sustainability goals [1] aim to ensure access to affordable, reliable, sustainable and
modern energy for all (goal number 7) and to take urgent action to combat climate
change and its impacts (goal number 13).
In 2018 the amount of total world energy production originating from fossil fuel energy
sources (oil, coal and gas) was 81% and only around 14% was from renewable energy
sources [2]. To reach the goal of the Paris agreement of at most 2 degrees increase
in global average temperature from preindustrial levels the CO2 emissions need to be
reduced to netzero emissions by the middle of the 21st century [3]. Many countries
have also introduced legislation to achieve netzero emissions. This puts a strong
incentive to increase the amount of renewable energy sources.
Among the renewable energy sources, hydropower is responsible for around half of
the power production [2]. Hydropower production uses the potential and kinetic
energy of water to produce power using reservoirs and hydropower turbines. Besides
being renewable, hydropower is also a flexible energy source. Other renewable
energy sources are intermittent (mainly solar and wind), which means that their
production fluctuates over short time intervals due to changing weather conditions.
To compensate for the power fluctuations of these other power sources and increasing
fluctuations in consumption the hydropower production can fulfil the important role
to stabilise the power system, as there must always be a balance between power
1
CHAPTER 1. INTRODUCTION
However, there are some drawbacks with hydropower that must be kept in mind
related to sustainability. A hydropower unit has a large local environmental effect
disrupting the fauna and wildlife surrounding the unit and displacing nearby residents
in towns and villages. There is also an effect on the whole ecosystem of the river where
the unit is located as it changes water ways and increases the risks of drying up parts
of the river during the dry season. The hydropower unit blocks fishes from swimming
past the reservoir and diminishes the population of important species. On a global scale
most of the suitable river systems already have hydropower installed and this leaves
small room for increasing the hydropower production in the future. This means that
hydropower must be utilised in an efficient manner and create sustainable planning
methods [4].
An important part when running a hydropower unit is the planning of the power
production. In this planning different time horizons must be considered. In the long
term planning, stochastic seasonal variations in precipitation need to be considered as
well as even variations over longer time periods of multiple years (e.g., changes due to
climate change). These plans concentrates on the utilization of the largest reservoirs
which are usually located at the top of the river system. In the short term planning,
with a time horizon of just a few days, more immediate factors influence the discharge
plans, such as the current electricity price. Somewhere between these perspectives
weekly planning of hydropower is relevant.
The planning period of a few weeks serves as an important bridge between the
long term planning and short term planning. Weekly planning can use more
detailed information about reservoir levels, electricity prices, power consumption and
maintenance of turbines not considered in the long term planning. In contrast to the
short term planning, weekly planning spans over a longer time period and it is therefore
possible to account for changes within the planning that have a duration of a few days,
which is not possible in the short term planning. Moreover, since the forecasts for the
relevant information is more uncertain in 13 weeks horizon than in the next 24 hours
it is important to consider stochastic behaviour in the weekly planning.
2
CHAPTER 1. INTRODUCTION
The research question in this thesis is to study how detailed models can be used for
weekly planning of hydropower. Especially, modeling turbines and keeping a high time
resolution in the model, are parts of the research question.
1.3 Objectives
Earlier research has paid attention to long term planning and short term planning
of hydropower. This project aims at developing efficient methods to plan the
coordination between wind power and hydropower for weekly planning of hydropower.
Weekly planning is needed when planning should be performed for one or two weeks
ahead in order for the power producer to make an early plan before bidding to the day
ahead market or to make specific maintenance plans. This type of planning makes it
possible to reduce loss in income, avoid failure in turbines and unplanned disruptions.
Stochastic behaviors can also be considered, such as inflow to the reservoirs and
electricity prices. The following specific research objectives have been the foundation
for the work:
• Develop efficient planning methods for power systems with a large share of
renewable power sources, such as wind power. The first model is a deterministic
maintenance scheduling model and the second is a stochastic maintenance
scheduling model. This is due to the fact that this has been identified as a research
gap and is relevant for the power producers. Relevant time resolution to be used
3
CHAPTER 1. INTRODUCTION
for these models should be considered. The models should be tested on two case
studies, where two subsets of a cascaded river are used as test systems.
• Study the connection between short term, mid term and long term planning of
hydropower.
1.4 Contribution
This section gives an account of the contributions in this thesis.
• The second contribution is to show that the method can be used to asses the costs
of turbine maintenance.
The contributions are presented in one conference paper to Power Tech 2021 and one
Journal paper.
• Weekly planning of hydropower in systems with large volumes and varying power
generation: A literature review [5],
4
CHAPTER 1. INTRODUCTION
• Chapter 3: Presents a literature review that has been carried out including
previous reviews on hydropower planning in different time perspectives and
maintenance scheduling.
• Chapter 6: Gives a summary of the content and suggestions for future work.
5
Chapter 2
Hydropower planning
For hydropower planning, specifically, the planning is divided in plans for the coming
years or seasons (long term planning), months (mid term planning) and plans for
short time frame of the next few days (short term planning). This can be seen in
figure 2.1.1.
6
CHAPTER 2. HYDROPOWER PLANNING
Short term
Long term planning Mid term planning planning
min f (x),
s.t. x ∈ U.
The variables of the problem are collected in a vector x ∈ Rn and under the constraint
that x ∈ U the objective is to find the minimal value of the function f (x) [7].
Probably the most common type of optimization problem are linear programming
problems (LP) and they can be formulated as
min cT x
s.t. Ax ≥ b,
x ≥ 0,
For every linear programming problem there is a corresponding problem called the
7
CHAPTER 2. HYDROPOWER PLANNING
dual problem. For every variable in the original problem, denoted the primal problem,
there is a constraint in the dual problem and for every constraint in the primal problem
there is a variable in the dual. The dual problem has the form
max bT y
s.t. AT y ≤ c,
y ≥ 0,
min cT x + E (dsT ys )
s.t. Ax ≥ b,
Ts x + W ys = hs
x, ys ≥ 0
One way to handle certain large linear optimization problems is by applying dynamic
programming. For example linear programming problems including integer variables,
so called Mixed Integer Linear Programming problems, can in favourable situations
be solved by dynamic programming. A description of dynamic programming is given
8
CHAPTER 2. HYDROPOWER PLANNING
Usually, in everyday language, the market that is referred to as the electricity market is
the dayahead market. In this market the power producers trade power for a number
of trading periods in advance. The Nordic electricity market Elspot, is a spot market
and dayahed market where hourly contracts for the coming 24 hours are traded.
Bids for the next day can be submitted until 12:00 the day before and at 15:00 prices
and quantities for the different hours in the next 24 hours are released. The market
price is computed as a price cross between demand and supply curves for the different
hours [9].
When the day ahead market has closed, in the hours before the power should be
delivered, adjustments to the trading plan may have to be performed. This trading
is handled in a separate market. The Nordic intraday market is called Elbas and actors
can place or accept bids for a specific hour after the release of prices on Elspot, until
one hour before the delivery hour [9].
The system operator has the responsibility to keep power balance between production
and consumption at all times and this is done at balancing markets. In Europe the
nominal value for the frequency is 50 Hz and a portfolio of frequency reserves are used
to keep this value. The Swedish system operator uses the reserves FFR, FCRN, FCRD
up, FCRD down, aFRR and mFRR [10]. The reserves are called support services and
operate either automatically or manually and at different frequencies. This can be seen
in table 2.3.1.
Hydropower is a carbon emission free energy source that can be used to keep the
balance in the power system when use of intermittent renewable energy sources, e.g.
photo voltaic generation and wind power, is rapidly increasing. In Figure 2.4.1 a
typical hydropower plant is shown. Power is generated using the difference in potential
energy between two water surfaces. Water is released from the reservoir, through the
9
CHAPTER 2. HYDROPOWER PLANNING
Table 2.3.1: Support services for the power system used by the Swedish system
operator [10].
intake into the penstock. After passing the penstock water passes a turbine, which
is connected to a generator, to the outlet and the river. The amount of power that
can be generated depends on discharge, head height and efficiency of the turbine. The
relation between discharge and power production in a power plant is a nonlinear, non
concave function. This causes problems when models are constructed, since a global
maximum cannot be guaranteed when a solution is reached and other assumptions are
required [8]. In section 4.1.7 this nonlinear relation is modeled by a piecewise linear
function.
Sweden has several regulated rivers. Most of the rivers are controlled by
Vattenregleringsföretagen, which has the responsibility to make sure that several
hydropower owners can operate in the same river [12]. Vattenregleringsföretagen
decides how much each hydropower owner can produce each our and keep track of the
production to guarantee a fair system. Typically the Swedish rivers have low heads, i.e.
less than 100m. The rivers are cascaded, which means that water that is released in the
upper reservoirs can be used in hydropower plants downstream. The most commonly
used tubines in Swedish hydropower plants are Kaplan and Francis. A map of the
Swedish hydropower plants can be seen in figure 2.5.1. The Norwegian rivers have
larger head, are less cascaded and Pelton turbines are commonly used.
10
CHAPTER 2. HYDROPOWER PLANNING
The scope in this thesis is the Nordic river system and the case studies in chapter 4 and
5 are performed in one single owned river.
11
CHAPTER 2. HYDROPOWER PLANNING
Figure 2.5.1: Map of the Swedish hydropower plants and their sizes [13].
12
Chapter 3
Literature review
In [17], from 2020, a comprehensive review is performed which spans over different
time frames of hydropower scheduling. The different time spans for planning are
13
CHAPTER 3. LITERATURE REVIEW
defined as follows: short term 214 days, mid term 318 months and long term 15
years. An important conclusion and suggestion for future work is that scheduling of
hydropower systems would be more valuable by considering other sustainable energy
sources, such as wind and solar power, included in the optimization. Some models
take this into account but it can be further developed.
A review of stochastic dual dynamic programming (SDDP) for long term hydropower
planning is presented in [18]. It is concluded that the main strength of the method is to
obtain reliable water values for all reservoirs and part of the computations can be done
using parallel processing, due to the dual formulation of the optimization problem. Its
weakness is the long computational times. In [19], a review is made of the application of
the SDDP method applied to long term planning in the Nordic countries. For example,
head variations and price modelling are discussed.
Several other methods for long term planning is reviewed in [20]. The methods are
categorized in four main classes: Implicit stochastic optimization, explicit stochastic
optimization, realtime control with forecasting and heuristic programming.
A review of short term planning in power systems with a large amount of wind power in
the system is presented in [22]. The paper discusses deterministic model approaches
as well as stochastic models. The conclusion in this paper is mainly that introducing
several types of uncertainties lead to more realistic models but also models that are
more difficult to study and analyse.
Earlier literature reviews have paid attention to the focus areas which have been
mentioned. However, new research related to hydropower planning is of importance
and weekly planning has not been in focus in earlier reviews. The scope of this chapter
is to summarize the reviews until today within hydropower planning, present selected
representative studies within the different time frames of hydropower planning and
present papers focusing in particular on weekly planning.
14
CHAPTER 3. LITERATURE REVIEW
In [23], water value methods that dates back to the 1960’s are used. In water value
methods aggregation of the reservoirs is done to prevent the curse of dimensionality
and make the computations efficient. In this article only one reservoir is considered to
overcome this problem. Stochastic dynamic programming (SDP) is used and compared
to results from deterministic dynamic programming (DP). A conclusion is that the
hydropower plants is operated more efficiently with DP rather than with SDP, since the
DDP method results in higher reservoir levels and higher efficiency. However, more
water spillage can be a consequence. The conclusions are drawn based on a case study
in Brazil.
Another paper where the SDP method is used is [24] where the costs are reduced
compared to when a standard Markovian model is used. Inflows are determined in
a stochastic process as Markovchains.
SDDP was introduced in [25], which allows for modeling of multireservoir systems
without aggregation and leads to more realistic and detailed models.
One major factor affecting the outcome of the SDDP method is a correct statistical
model of the inflow and this is studied in [26] and [27]. In [26] a new level of detail is
presented with respect to the hydro reservoirs. The approach is tested as a large scale
market model. Typical SDDP models tend to consider smaller systems. The case study
is performed on the Norwegian power system. The method is not recommended to
involve individual decision variables for each reservoir.
15
CHAPTER 3. LITERATURE REVIEW
Another example of a significant paper for long term planning is [29], which compares
two models for hydrothermal scheduling. Both models takes into account inter
connected power markets and using detailed hydro modelling. The reference model
is the EMPS model and the other model is the SOVNmodel. The SOVN model uses
formal optimization while the EMPSmodel uses a heuristic approach. The EMPS
model uses the objective to minimize the expected cost in the whole system subject
to all constraints. The simulated system in the EMPS model can be the Nordic system
or Northern Europe. The planning horizon is up to 25 years and the time step is one
week.
16
CHAPTER 3. LITERATURE REVIEW
daily operation. A case study is performed, which shows that the forward trading
contributes to a 20% increase in profit. Its main strength is that the model is both
realistic and tractable. On the other hand, it assumes a linear dependence between
the amount of commodities and market price and is also limited to a horizon of one
year.
In [34], a mid term and long term electricity contract decomposition method is
proposed that considers the cascade water quantity matching constraints. Mid term
and long term power quantity contracts are decomposed by calculating the matching
constraint of cascade water quantity. The method is tested in the Yunnan power spot
market in China. The results show that the model is applicable for the Yunnan power
spot market.
In [35], stochastic linear and non linear programming is used. The objective is to
maximize the expected revenue of a producer, and the decision variables are generation
and forward contracts in each period for each scenario. The parameters are limited by
constraints on reservoir balance of water, upper and lower limits of power generation,
bilateral contract and reservoir spillage.
In [36], a model is suggested of combined SDP and SDDP, where variables and
functional relationships are linear. The main purpose is to fulfil the hydropower
units operators’ demands to get steady operation for the power grid. A case study
is performed in Lysebotn in Norway. The study has resulted in a quantitative
valuation including sales of capacity. However, the results from the paper may be case
specific.
An extended version of the SDDP method is used in [37], stochastic dual dynamic
integer programming (SDDiP). The method is applied to mid term planning. A test
is performed on how to incorporate stagewisedependent stochastic variables on the
righthand side of the objective function. The method has proven convergence in the
nonconvex case. A case study is performed for a Norwegian hydropower producer.
The case study shows that it is possible to solve the midterm hydropower scheduling
problem but time consuming to solve it to the optimal value.
In [38], the SDDiP method is applied in another Norwegian case study. The
paper highlights that the method can be used to include nonconvex environmental
constraints in mid term and long term planning. A case study is performed on a
multireservoir system, with three reservoirs and corresponding hydropower plants. A
17
CHAPTER 3. LITERATURE REVIEW
The short term planning is performed for the nearest future and input parameters
depend on the planning in the longer time horizons. The outcome of the planning is
a production plan, usually with hourly resolution, of the amount of water that should
be used in each power plant of the planning period and submitted to the dayahead
trading. Since the purpose is to find a detailed generation schedule, the models used
for this planning include detailed information of the hydropower plants, turbines, and
the topology in the river. Furthermore, the models include data for efficiency curves,
discharge, inflow, spillage and reservoirs sizes.
In [39], a mixed integer stochastic model is developed that optimizes the bidding in
a dayahead market. The model treats the inflow and market price as stochastic.
Through simulation, the results of the model are compared to results from a
deterministic practicebased model, similar to what is used in the industry. The
conclusion of the simulations is that the stochastic model performs better by 0.7%.
This model has a number of positive features. For example, it is fast, can be used on
a daily basis and is designed for the scheduling hierarchy used by producers today.
The framework can be used to study other approaches to short term planning. The
study is, however, limited to one system and needs further work to reach a reliable
conclusion.
In [40], a stochastic short term planning model is proposed where dayahead electricity
prices and water inflows are modeled as scenarios based parameters on time series
analysis. The model is constructed for a river with two cascaded hydropower plants.
The schedule is determined for 7 days.
18
CHAPTER 3. LITERATURE REVIEW
the model have been compared to results from a nonlinear programming model in 15
different daily cases. An increase in revenue is found with the dynamic programming
model, ranging from 0.9% to 3.3%.
In [42], the nonlinearity effects of head and efficiency curves are included in a
stochastic model, where inflow and market price are considered uncertain. The non
linearity is handled using successive linear programming. The model is tested in
three fictitious case studies and performs well. The paper investigates which factors
influence the result the most but reaches no general conclusion.
The novelty of [44] involves to develop a method for integration of renewable energy
sources, planned maintenance scheduling, influence of unit commitment, multi
energy markets, full year hourly results, annual storage scheduling, several years of
scenarios and a large scale system. The optimisations and simulations, except for
variable renewable energy, are performed with the energy system model Balmorel
(an open source, energy system tool, deterministic with bottomup approach). The
variable renewable energy hourly resolution time series data is simulated in CorRES
and used as input to Balmorel. Data is aggregated into the regions that are used in
Balmorel. A case study of the North Sea offshore Grid Denmark project was performed.
Countries involved are Germany, Great Britain, Norway, Denmark, Belgium and
Netherlands. The outcome of the tested scenario of electricity and heat show an
19
CHAPTER 3. LITERATURE REVIEW
increase in CO2 price: 6.06, 76.70 and 130.38 €/ton in 2020, 2030 and 2050,
respectively. The aggregated planned energy content along the year of hydro reservoirs
with seasonal inflow of the Norwegian hydro storage reservoirs is investigated. Results
from scenarios for 2020, 2030 and 2050 strengthen the importance of performing full
year optimisation towards 2050. A conclusion from the study is that the case study is
valid to other regions than the North Sea region, where high penetration of variable
renewable energy is expected. The penetration of wind and solar is likely to challenge
the need for balance in the system and the profitability of thermal units.
In [45], the integration of wind power into a power system with limits on transmission
capacity is studied. Stochastic linear programming is used and includes trading on
the spot and regulating market. It is concluded from the study that coordination of
hydropower production with wind power is beneficial for the utility of both power
sources, great reduction in wind power curtailment and a more efficient usage of the
transmission lines. Some model limitations are mentioned, such that the outcome of
stochastic variables are assumed to be known in planning for the next day. Future
work is suggested, for example, that a longer case study needs to be performed
and the impact of coordination of startups for hydropower plants needs to be
investigated.
In [46], a short term model, formulated as a mixed integer linear programming (MILP)
problem, is presented. Power output and the number of units committed at each
hydropower plant and hour of the day or week ahead are modeled. The aim of the
planning is to maximise the hydropower efficiency while reducing start up or shut down
costs and produce sufficient power to cover the load in the system. The method is to
relax the hydraulic constraints, simulate the solution and reintroduce constraints that
are violated in an iterative way. This leads to a computational efficient method that
can be used in a large hydropower system.
20
CHAPTER 3. LITERATURE REVIEW
A stochastic mixed integer model is developed in [49], that includes bidding to the day
ahead and balancing market and with start/stop decisions. Three implementations
of the start/stop decisions (using none, real and binary variables) are tested. The
conclusion is that there is only a small additional value in participating in the balancing
market and there is a weak dependence of start/stop costs. The case study is performed
on a small hydropower system in Norway and the power prices do not include the effect
of a larger amount of intermittent power sources.
There are many other notable works on short term planning and a few are mentioned
in this paragraph. The commitment problem in power systems with intermittent and
fluctuating characteristics is studied in [50]. In [51], an overview is presented of
formulations and optimization methods for unitbased short term hydro scheduling. A
short term planning method is presented in [52] where Benders decomposition is used
to solve a hydropower maintenance scheduling problem. Moreover in [53] a stochastic
shortterm hydropower optimization method which emphasizes inflow scenario tree is
presented. Results show that there is a gain in using a stochastic model for the short
term hydropower optimization model with multiple scenarios compared to a median
scenario since it offers a more robust solution.
Many studies have been carried out on maintenance scheduling in different areas of
electrical applications. A literature review is done in [54], of maintenance scheduling
in regulated and deregulated electricity markets, and MILP models are discussed as
possible solution methods. For example, [55] is mentioned where outage planning
for thermal power plants is studied. The model presented is a stochastic MILP model
21
CHAPTER 3. LITERATURE REVIEW
and the maintenance scheduling is based on hourly price based unit commitment. The
random variables are modeled with scenarios and the problem is solved with the Monte
Carlo method. The maintenance is fixed within a time window for each thermal unit
and the duration of the maintenance is also specified. The objective function is the
best cost effective solution of the maintenance, thus the maintenance is a decision
variable. Furthermore, there are several constraints on the maintenance. A case study
is performed with 29 units for one year, time steps of one hour and the maintenance
duration for each unit is one day.
A model of maintenance for long term hydropower planning is presented in [56]. The
objective function is quadratic, i.e. the model is nonlinear. The duration of each
maintenance is fixed but the start time of the maintenance are decision variables. The
model is deterministic and the time steps are days. The objective is to decide the
most cost effective way to schedule the maintenance for each turbine in the power
plants.
In [57], a linear stochastic model is developed for long term planning of 1 year for
different types of power plants. Benders’ decomposition technique is used to solve the
resulting model. The maintenance periods for the hydropower plants are variable. The
objective of the planning is to minimize startup costs of generators, production costs of
generators and maintenance cost to put a generator into maintenance. The conclusion
is that the method has interesting convergence characteristics. Several turbines in each
power plant are not considered nor the hydrological balance is not considered.
In [58], two models are developed. The first model is deterministic and formulated
as a MILP problem. The second model extends this approach to include the effect of
uncertain water inflows by formulating a two stage stochastic linear problem. This
problem is solved by using Benders decomposition in combination with acceleration
techniques. The conclusion is that the second model is superior to the first model.
The aim of the planning is to maximize the value of electricity production minus
maintenance costs under a number of constraints. The planning period is 30 days with
18 maintenance tasks. Maintenance is a decision variable. A case study is performed
on both models where four hydropower plants of Rio Tinto in Canada are used as test
system. Turbines are not modeled separately.
22
CHAPTER 3. LITERATURE REVIEW
Figure 3.5.1: World map showing countries (indicated by grey dots) where case studies
from papers in this chapter are performed.
3.5.1 Tables
Three tables summarizing the review papers are presented in appendix A; Table A.0.1,
Table A.0.2 and Table A.0.3.
Figure 3.5.1 shows countries (indicated by grey dots) where case studies from papers
in this chapter are performed. Several studies are performed in Europe, but also in
Canada, Brazil, New Zealand and China.
23
CHAPTER 3. LITERATURE REVIEW
3.6 Summary
Different reviews have paid attention to, for example, review of reservoir based as well
as run of river hydropower plants, hydropower plants model and control, different
algorithms for different time frames, methods for longterm planning models and short
term planning models. Moreover, some reviews have paid attention to SDDP for long
term hydropower planning and its application in the Nordic countries.
Models for long term planning are performed in e.g. the Nordic countries, Brazil, New
Zealand and China. Mid term planning models have been developed in e.g. Spain,
Switzerland, China and Norway. Models for short term planning has been performed
in the Nordic countries, Spain, Brazil and Canada.
The long term planning models are aimed for planning for years or several months.
They cover both deterministic and stochastic models. The SDDP method is commonly
used in different models.
Mid term planning models do not consider multiyear horizons but limit their attention
to months. The models for mid term planning include more details and output such as
values of stored water. Earlier studies have paid attention to decomposition, stochastic
linear and nonlinear programming, combined SDP and SDDP and stochastic dual
dynamic programming. Short term planning is aimed for a week or days. Many studies
have been performed within this time frame and they include methods such as mixed
integer stochastic model, stochastic model handling nonlinearities with time series
data, successive linear programming, nonlinear Mixed Integer optimisation model,
unit commitment model and mixed integer linear programming model.
3.7 Conclusion
Power systems are rapidly changing into a large share of renewable power sources.
This requires development of hydropower models, which are efficient and suitable
for these power systems. The planning models used until today are denoted as
long term planning, mid term planning and short term planning. From this study
it can be concluded that the definitions of the different planning time frames are
ambiguous and vary. Moreover, within the studied works on maintenance scheduling
no work was found which focuses on weekly planning, where turbines are modeled
24
CHAPTER 3. LITERATURE REVIEW
25
Chapter 4
Preventive maintenance is used to keep hydropower plants in good condition and avoid
failures. The preventive maintenance usually lasts for one hour up to several days
and is performed on the hydropower turbines to prevent water spill, loss in electricity
production and wear on the turbines. Plans that take disruptions into account are
required to control the maintenance. These plans can be utilized by the power producer
in order to schedule the maintenance of turbines for a few hours up to the next fourteen
days. The net result of a successful maintenance planning can be a substantial financial
gain for the power producer.
In Sweden, there are rivers with several cascade connected power plants and the exact
configuration of the power plants varies between the different rivers. Each power
plant usually have several turbines and commonly a few turbines are disconnected
at the same time during the maintenance. A power plant is seldom shut down for
maintenance of all turbines at the same time. Therefore, the maintenance plans
require that the possible combinations to switch the turbines on and off during a
planning period are considered. However, the complexity of the problem is to avoid
a combinatorial explosion, i.e. a rapid growth of the complexity of a problem. The
combinatorial explosion may occur due to how the combinatorics of the problem is
affected by the input, constraints and bounds of the problem. A method that avoids
the combinatorial explosion is required to solve a maintenance scheduling problem.
Standard techniques, such as Mixed Integer Linear Planning (MILP), are not adequate
due to the size of the problem.
This chapter consists of the following parts. First the problem is formulated as a MILP
26
CHAPTER 4. PREVENTIVE MAINTENANCE SCHEDULING
problem. Then a relaxation of the problem using value of stored water is performed.
The relaxed problem is solved by dynamic programming. The MILP problem is
solved by using the relaxed solution. To test the planning method a case study is
performed where a Swedish river with cascade coupled power plants has been used.
Finally, a stochastic method is presented, with three different setups for electricity
price scenarios, which is compared to the deterministic method.
The model has some limitations. It is assumed that the power producer knows when
maintenance should be performed and on which turbine. The model is aimed to
compute the loss in income if the planned maintenance is executed. Moreover, the
model is constructed to be utilized by a single owner of the river system. Nonlinear
dependence of the power production in turbines is modeled as concave piecewise linear
functions. The value of stored water assumes discrete values and delay time of water
is not modeled.
27
CHAPTER 4. PREVENTIVE MAINTENANCE SCHEDULING
4.1.2 Indices
i = unit,
j = reservoir,
k = segment,
t = time.
4.1.3 Parameters
28
CHAPTER 4. PREVENTIVE MAINTENANCE SCHEDULING
4.1.4 Variables
The full maintenance scheduling problem is formulated as a MILP problem and solved
with a dynamic programming strategy.
∑
N −1
min ϕ(xN ) + f0 (k, xk , uk )
uk
k=0
29
CHAPTER 4. PREVENTIVE MAINTENANCE SCHEDULING
An important aspect of mid term planning is the value of stored water. The value of
stored water represents the total energy of the water stored in the reservoirs of the
river system. Water in a reservoir upstream has a higher energy value than water in
a downstream reservoir since the water can be used in several turbines downstream.
The value of stored water at time t can be written as
∑
αt = bj vj,t
j
where the coefficients bj are constants that are determined by how the reservoirs are
connected. The variables vj,t are the volumes of the reservoirs at time t.
Since the reservoirs have a known volume at the start of the planning period the value
of stored water is known in the beginning of the planning period.
30
CHAPTER 4. PREVENTIVE MAINTENANCE SCHEDULING
v1,t
v2,t
v3,t
The power production has highly nonlinear dependence between discharge and
electricity production. In this chapter the power production in each unit is modeled as a
piecewise linear concave function with two segments as illustrated in Figure 4.1.2.
∑
pi,t = ϱi,k qi,t,k + θi ui,t (4.1)
k
where ϱi,k is the slope of each linear part and θi is a constant term. The discharge is
∑
written as a sum of parts k qi,t,k , where each term is the amount of discharge in the
corresponding segment of the piecewise linear curve.
Q
Figure 4.1.2: Example of a piecewise linear function of the power production. The
horizontal axis shows the discharge through the turbine and the vertical axis shows the
power output. Note that in this example there is a small amount of discharge through
the turbine before any power is produced.
31
CHAPTER 4. PREVENTIVE MAINTENANCE SCHEDULING
∑( )
max pricet pi,t − costi yi,t . (4.2)
i,t
∑
vj,t+1 = vj,t + wj,t+1 + Auniti,j qi,t+1,k
i,k
∑
+ Aspillȷ′ ,j sȷ′ ,t+1 . (4.3)
ȷ′
At the start of the planning period the reservoirs are assumed to contain a known
volume of water,
vj,0 = V0j (4.4)
and at the end of the planning period the total value of the reservoir water should have
a predetermined percentage β of its value at the start of the planning period,
∑ ∑
bj vj,T = β bj vj,0 . (4.5)
j j
The reservoir levels are only allowed to vary between prescribed fixed values,
32
CHAPTER 4. PREVENTIVE MAINTENANCE SCHEDULING
The discharge from a unit i in segment k is limited by Qmini,k and Qmaxi,k unless the
unit is switched off,
Qmini,k ui,t ≤ qi,t,k ≤ Qmaxi,k ui,t . (4.7)
Note that Qmini,k = 0 if k > 1 since the discharge in segment k is equal to 0 as long as
segment k −1 is not fully utilised. As already discussed the dependence between power
production and discharge is formulated as
∑
pi,t = ϱi,k qi,t,k + θi ui,t . (4.8)
k
Limits for minimal and maximal power production are formulated as,
If unit i is on during hour t then ui,t = 1 and if it is off then ui,t = 0. If unit i is switched
on hour t, i.e. it is off hour t − 1 and on hour t, then yi,t = 1, otherwise yi,t = 0. The
connection between ui,t and yi,t is
The full problem has been formulated in the previous subsection as an optimization
problem. This MILP problem cannot be solved for any longer periods of time than just
a few hours for a large system (such as for example in the test of a full river system
described in section 4.3). As the number of binary variables increase, it leads to an
exponential increase in time to solve the problem. To counter act this phenomena
a relaxation of the problem is performed before the problem is solved by dynamic
programming.
To start, the volumes of the reservoirs can be plotted over time as shown in Figure 4.1.3.
The planning period [0, T ] is divided into n intervals [0, ∆t], [∆t, 2∆t], …, [(n − 1)∆t, T ],
where ∆t = T /n. Now, the volumes of the reservoirs are studied at the end points
33
CHAPTER 4. PREVENTIVE MAINTENANCE SCHEDULING
v1
v2
v3
of these intervals, t = 0, t = ∆t, t = 2∆t and so on, as done in Figure 4.1.4. In the
Figure 4.1.4 two value of stored water scale bars are shown for each of these times.
The left scale bar at time t = ∆t corresponds to the time t = ∆t− , i.e. the instant
before t = ∆t, and the right corresponds to the time t = ∆t+ , i.e. the instant after
t = ∆t. The values of stored water are obviously equal at those two times. The full
v1,∆t− v1,∆t+
v1,0
problem is now relaxed by allowing the volumes of the reservoirs instantly before and
after each of the times t = ∆t, t = 2∆t, …, t = (n − 1)∆t to be unequal as shown
in Figure 4.1.5. However, the values of stored water αt of the system are required
to be equal at the times instantly before and after. Also the variables ui,t and yi,t are
decoupled at the times t = ∆t, t = 2∆t, …, t = (n − 1)∆t. This relaxation splits the full
problem into subproblems over the time intervals [0, ∆t], [∆t, 2∆t], …, [(n − 1)∆t, T ].
Each subproblem is connected to the next by the fact that the value of stored water at
the end of the subproblem is equal to the value of stored water at the start of the next.
This is illustrated with an example in Figure 4.1.6.
34
CHAPTER 4. PREVENTIVE MAINTENANCE SCHEDULING
v2,∆t− v2,∆t+
v2,0
v3,∆t+
v3,0 v3,∆t−
35
CHAPTER 4. PREVENTIVE MAINTENANCE SCHEDULING
[ ]
F (k, α, α′ ) = max
′′
∆F (k, α, α′′ ) + F (k + 1, α′′ , α) (4.12)
α
00 ) F (k + 1,
,α α00 α 00, α 0)
∆F (k , α
α0
F (k, α, α )
0
α
F (n − 1, α, α′ ) = ∆F (n − 1, α, α′ ),
[
F (n − 2, α, α′ ) = max
′′
∆F (n − 2, α, α′′ )
α
]
+ F (n − 1, α′′ , α′ ) , (4.13)
..
.
[ ]
F (1, α, α′ ) = max
′′
∆F (1, α, α′′ ) + F (2, α′′ , α′ ) .
α
To make it feasible to solve this recurrence relations it is also assumed that all values
of stored water assume a discrete set of values and values of ∆F are calculated for all
transitions between these levels as illustrated in figure 4.1.8. The value of F (1, α0 , αT ),
where α0 is the value of stored water at the start of the planning period t = 0 and αT
is the value of stored water at the end of the planning period, is then the optimal value
36
CHAPTER 4. PREVENTIVE MAINTENANCE SCHEDULING
αT
α0
of the relaxed full planning problem. This value is calculated using the recurrence
relations (4.13) and can be seen as finding the optimal path from the start value of
stored water α0 to the final value of stored water αT in the graph of transitions as
illustrated in Figure 4.1.9.
αT
α0
The solution derived for the relaxed problem determines the values of stored water at
the intermediate times ∆t, 2∆t, …, (n − 1)∆t. These values of stored water are used
in order to find a solution close to the optimal solution to the nonrelaxed problem by
solving the full MILP problem stepwise:
• From t = 0 to t = ∆t with the constraint that the value of stored water is α∆t
at t = ∆t.
• From t = ∆t to t = 2∆t with the constraint that the value of stored water is α2∆t
at t = 2∆t.
37
CHAPTER 4. PREVENTIVE MAINTENANCE SCHEDULING
• …
• From t = (n − 1)∆t to t = T with the constraint that the value of stored water
is αT at t = T .
The time interval length ∆t is short enough to make each of the subproblem in the list
above computationally tractable.
The two solution methods, using a MILPsolver and using dynamic programming, are
studied in this section. This is done in a case study that uses the river A subset of
the full river system. This subset of the river consists of 3 reservoirs and 4 turbines.
The objective of this case study is to evaluate how the dynamic programming method
performs by comparing the results with the optimal solution obtained by solving the
MILP problem.
In table 4.2.1 results from the case study is presented when the planning problem is
solved in Gurobi for one day with the two methods. The number of intermediate steps
in the dynamic programming were 4 and each step was 6 hours. The optimal values
for different target of the value of stored water at the end of the planning period is
presented as well as the running time.
When using the dynamic programming method the optimal values are slightly smaller
compared to solve the problem directly. This originates from the fact that in the
dynamic programming method first a relaxed problem is solved and then a constrained
problem is finally solved. However, since the difference is fairly small this shows that
this relaxation does not affect the original problem in any major way.
38
CHAPTER 4. PREVENTIVE MAINTENANCE SCHEDULING
What is perhaps not readable from table 4.2.1 is that the DP method is sensitive to
how fine grained the value of stored water levels are chosen. A too coarse choice of
levels will lead to a solution that deviates from the true optimal solution and an optimal
values that is significantly worse. On the other hand, a too fine grained set of value of
stored water levels will increase the runtime. In this case study 10 levels are used. This
means that 10 × 10 = 100 subproblems need to be solved in each step of the dynamic
programming. By increasing this to 20 levels a total of 20×20 = 400 subproblems need
to be solved for each DP step. To find a suitable number of levels an iterative approach
needs to be considered.
Table 4.2.1: Optimal values from empirical study subset of a river A. The first column
shows percentage of the final value of stored water compared to the initial value of
stored water. The second and fourth columns are the profits during the planning
period.
In figure 4.2.1 the different values of stored water that are assumed during the planning
period are shown both when solving the MILP problem directly and by using dynamic
39
CHAPTER 4. PREVENTIVE MAINTENANCE SCHEDULING
programming. It can be seen that the values of stored water are similar for the two
methods.
∆ [%]
dynamic programming
0.4 MILP problem
−0.4
Time [h]
4 8 12 16 20 24
Figure 4.2.1: The values of stored water of the system during the planning period when
the problem is solved with and without dynamic programming, and no maintenance.
The black curve is with dynamic programming and the blue curve is the MILPproblem.
A conclusion from this is that the dynamic programming method performs well
compared to solving the MILP problem directly since the optimal values only differ
1–2%. The intermediate values of stored water are comparable in the two solution
methods.
The case study is repeated when maintenance of turbine 1 is required and it is forced
out of commission during 5 hours. In table 4.2.2 the corresponding results are
reported. The objective in this part of the case study is to evaluate how the introduction
of maintenance affects the dynamic programming method compared to the optimal
solution.
In figure 4.2.2 the discharge from a turbine with and without maintenance is plotted
when the dynamic programming method is applied. It can be seen from the figure that
when the maintenance period (hour 4 to 7) has stopped the two curves follow almost
the same pattern.
In figure 4.2.3 the discharge from a turbine when the dynamic programming method
is applied and the electricity prices is plotted. As expected the discharge is high when
the electricity prices are high during the planning period.
Both graphs in figure 4.2.2 and 4.2.3 show patterns which are expected compared to the
40
CHAPTER 4. PREVENTIVE MAINTENANCE SCHEDULING
Table 4.2.2: Optimal values from empirical study subset of a river A when a turbine
is under maintenance. The first column shows percentage of the final value of stored
water compared to the initial value of stored water. The second and fourth columns
are the profits during the planning period.
50
Time [h]
4 8 12 16 20 24
Figure 4.2.2: The discharge from a turbine in case study river A with and without
maintenance. Blue curve shows no maintenance and black curve with maintenance.
discharge and electricity prices during the planning period. When the electricity prices
are higher the values of stored water are decreasing compared to when the electricity
prices are lower.
Figure 4.2.4 corresponds to figure 4.2.1 but with maintenance. The figure shows the
values of stored water during the planning period.
41
CHAPTER 4. PREVENTIVE MAINTENANCE SCHEDULING
Price [EUR/MWh]
50
Time [h]
4 8 12 16 20 24
Figure 4.2.3: The discharge from a turbine in case study river A with maintenance and
the electricity prices. Blue curve shows electricity prices and black curve discharge with
maintenance.
∆ [%]
dynamic programming
0.4 MILP problem
−0.4
Time [h]
4 8 12 16 20 24
Figure 4.2.4: The values of stored water of the system during the planning period when
the problem is solved with and without dynamic programming and maintenance. The
black curve is with dynamic programming and the blue curve is the MILPproblem.
In this section a second case study is performed and a different subset of the full river
system is studied. This subset, river B, consists of three cascaded reservoirs and three
units. The objective this time is to make sure that the conclusions from studying river A
can be applied to a similar but different case.
In table 4.2.3 the optimal values from this case study is shown. The data that has been
used in this case study is the same as for the first case study. The planning period is
one day. The planning problem is solved as a MILP problem and with the dynamic
programming method. In the dynamic programming method a time step of 6 hours is
used.
The results in table 4.2.3 can be compared to the results obtained in table 4.2.4 where
42
CHAPTER 4. PREVENTIVE MAINTENANCE SCHEDULING
Table 4.2.3: Optimal values from empirical study subset of a river B. No maintenance
is scheduled. The first column shows percentage of the final value of stored water
compared to the initial value of stored water. The second and fourth columns are the
profits during the planning period.
the problem is solved with maintenance scheduled for one unit during six hours. A
comparison shows that the optimal values are somewhat smaller in the DP case which
is explained by the fact that the dynamic programming approach can be seen as solving
a more restricted problem.
Table 4.2.4: Optimal values from empirical study subset of a river B. Maintenance of
turbine 2 is scheduled for hours 12 to 17. The first column shows percentage of the
final value of stored water compared to the initial value of stored water. The second
and fourth columns are the profits during the planning period.
In figure 4.2.5 the discharge from one turbine is plotted for the cases when
maintenance is not required and when it is required and the dynamic programming
method is applied. The maintenance period is between hour 12 to 17. There is a
43
CHAPTER 4. PREVENTIVE MAINTENANCE SCHEDULING
50
Time [h]
4 8 12 16 20 24
Figure 4.2.5: The discharge from a turbine in case study river B with and without
maintenance. Blue curve shows no maintenance and black curve with maintenance.
In figure 4.2.6 the electricity price is plotted together with the discharge when the
dynamic programming method is applied. The discharge is high during peak electricity
prices.
Price [EUR/MWh]
50
Time [h]
4 8 12 16 20 24
Figure 4.2.6: The discharge from a turbine in case study river B with maintenance and
the electricity prices. Blue curve shows electricity prices and black curve discharge with
maintenance.
To conclude the comparison, the values of stored water of the system are plotted in
figure 4.2.7 and 4.2.8. As can be seen the difference between solving the problem with
and without dynamic programming is rather small in the no maintenance case. When
maintenance is performed on the second turbine there is no discharge during hours 12
17 and this prevents the values of stored water to decrease as rapidly as in the optimal
solution when there is no maintenance.
The conclusion that can be drawn from this second case study is that the dynamic
programming method still performed in line with what was obtained from the first
case study.
44
CHAPTER 4. PREVENTIVE MAINTENANCE SCHEDULING
∆ [%]
dynamic programming
0.4 MILP problem
−0.4
Time [h]
4 8 12 16 20 24
Figure 4.2.7: The values of stored water of the system during the planning period when
the problem is solved with and without dynamic programming, and no maintenance.
The black curve is with dynamic programming and the blue curve is without dynamic
programming.
∆ [%]
dynamic programming
0.4 MILP problem
−0.4
Time [h]
4 8 12 16 20 24
Figure 4.2.8: The values of stored water of the system during the planning period when
the problem is solved with and without dynamic programming, and maintenance.
The black curve is with dynamic programming and the blue curve is without dynamic
programming.
The model has been implemented in Python and tested on a Swedish cascaded river
system consisting of 15 hydropower plants, 34 turbines and 16 reservoirs. The objective
of the study is to show that the model works for a full river of more than 10 power
plants. The river consists of two branches with power plants and reservoirs which
merge into the same river downstream. The reservoirs located in the north part of the
river system are larger and can store water for long time periods while the reservoirs
located downstream are smaller and can store water for short time periods of a few
hours. The planning period is 11 days and based on historical data from public and
nonpublic sources. The number of maintenance are 8 and ranging from 2 to 160 hours,
45
CHAPTER 4. PREVENTIVE MAINTENANCE SCHEDULING
see Figure 4.3.1. In the case study the index sets of the indices i, j, k and t are I =
{1, 2, . . . , 34}, J = {1, 2 . . . , 16}, K = {1, 2} and T = {1, 2, . . . , 264}, respectively.
Day 1 Day 2 Day 3 Day 4 Day 5 Day 6 Day 7 Day 8 Day 9 Day 10 Day 11
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Figure 4.3.1: Diagram showing the planned maintenance (red color) of the 34
generators (vertical axis) during the planing period (horizontal axis).
The electricity prices during the planning period are spot prices from Nord Pool and
shown in Figure 4.3.2.
Price [EUR/MWh]
50
Time [h]
24 48 72 96 120 144 168 192 216 240 264
Figure 4.3.2: Electricity spot price during the planning period in the case study.
The local inflows are nonpublic data but are mostly constant for each reservoir during
the planning period.
46
CHAPTER 4. PREVENTIVE MAINTENANCE SCHEDULING
The final values of stored water are chosen to deviate very little from the start
value of stored water since the planning period is during a part of the year
(November/December) when the water inflow to the reservoirs are low.
Optimal value
Final v.w. Without m. [MEUR] With m. [MEUR]
99.996% 16.528756 16.248609
99.997% 16.528752 16.248604
99.998% 16.528747 16.248600
99.999% 16.528742 16.248595
100.000% 16.528737 16.248590
100.001% 16.528732 16.248585
100.002% 16.528728 16.248580
100.003% 16.528723 16.248575
100.004% 16.528718 16.248571
100.005% 16.528713 16.248565
The discharge in one particular turbine is plotted in Figure 4.4.1 under two situations.
In the first situation (plotted in blue) there is no scheduled maintenance and in the
second situation (plotted in black) the turbine is out of commission during the first
63 hours.
By combining Figure 4.3.2 and Figure 4.4.1 as done in Figure 4.4.2 it is observed that
the times the turbine is switched on corresponds strongly to the times the electricity
price is high.
The computational time of running the model in Python with and without
maintenance, respectively, is 67 hours. The solver used in Python is Gurobi. The
computer used an Intel Core i510400T CPU with a clock frequency of 2.00 GHz and
47
CHAPTER 4. PREVENTIVE MAINTENANCE SCHEDULING
103.36
Time [h]
24 48 72 96 120 144 168 192 216 240 264
Figure 4.4.1: The discharge from one turbine during the planning period with and
without maintenance scheduled.
Price [EUR/MWh]
50
Time [h]
24 48 72 96 120 144 168 192 216 240 264
Figure 4.4.2: The discharge (black curve) from one turbine during maintenance and
the electricity price (blue curve).
In table 4.4.2 results are presented from a study were the final value of stored water
is chosen to differ up to two percent from the start value of stored water. The purpose
with this study is to show that the method works for larger differences in start and final
value of stored water than what has been presented earlier. This time the intermediate
values of stored water were chosen to be five. This change decreased the computational
time but the optimal values are different from if ten values would have been chosen.
It can be seen in 4.4.2 that the optimal values for 100% of the value of stored water
are higher compared to the optimal values at that level in 4.4.1. The reason to this is
that there is a larger span of possible values of stored water in 4.4.2. However, this
illustrates that the method also works for larger variations in start and final value of
stored water.
48
CHAPTER 4. PREVENTIVE MAINTENANCE SCHEDULING
Table 4.4.2: Optimal values from empirical study full river 2% difference in start and
final value of stored water.
Optimal value
Final v.w Without m. [MEUR] With m. [MEUR]
98% 16.750615 16.463418
98.5% 16.748299 16.461100
99.0% 16.743493 16.456244
99.5% 16.741017 16.453755
100.0% 16.738329 16.451115
4.5 Conclusion
A model for fixed preventive maintenance scheduling has been developed in this
chapter, which can be used by the industry. The case studies, river A and B, show
that the model works well. The computational time for the case studies is similar
when using dynamic programming compared to solving the MILP problem except in
one case. This case is when the MILP problem is solved for river B and there is no
maintenance. A possible explanation to the longer computational time compared to
when the problem is solved for river B with maintenance can be seen in figure 4.2.5.
From the figure it is clear that the optimal solutions for the two cases differ significantly
and this could explain why it might take different time to reach the solution even
though the only difference between the cases is the applied maintenance. However,
the solution strategy gives a solution close to the optimal one. This is established
by comparing the value of the objective function and values of stored water for the
obtained solution with and without using dynamic programming.
49
Chapter 5
Stochastic model
In the stochastic model the electricity price is viewed as a stochastic variable. Scenarios
for the electricity price are used to investigate a comparison of the stochastic model
with a deterministic model. These scenarios are not necessarily realistic real scenarios
but test scenarios. The prices from the last eight years (2013–2020) are used as the
foundation to create scenarios in the following manner:
1. Let priceR
y,t be the electricity price year 2012 + y hour t.
2. First, for a given year (fixed y), the time series {priceR
y,t } is normalized by defining
series {priceR
y,t } and s is the standard deviation.
z is the mean value and σ ′ is the standard deviation of the electricity price. The
50
CHAPTER 5. STOCHASTIC MODEL
electricity price times series priceω,t used in the stochastic model are plotted.
Price [EUR/MWh]
50
Time [h]
24 48 72 96 120 144 168 192 216 240 264
Figure 5.1.1: Electricity price during the eleven days following the first Monday of the
years from 2013 to 2020.
Normalized price
−6
Time [h]
24 48 72 96 120 144 168 192 216 240 264
Figure 5.1.2: Electricity price time series normalized to have mean 0 and standard
deviation 1.
Another method is also used to construct the electricity price scenarios. These
scenarios are priceR
y,t + cy where suitable constants cy are added to the historical
electricity price to give the scenario a desirable mean value. The resulting scenarios are
51
CHAPTER 5. STOCHASTIC MODEL
Price [EUR/MWh]
50
Time [h]
24 48 72 96 120 144 168 192 216 240 264
Figure 5.1.3: Electricity price time series in the stochastic model (σ ′ = 40).
plotted in Figure 5.1.4. The difference from earlier constructed price scenarios is that
the variance of the scenario is the same as in the corresponding historical year.
Price [EUR/MWh]
50
Time [h]
24 48 72 96 120 144 168 192 216 240 264
Figure 5.1.4: Electricity price time series in the stochastic model, variance is
unchanged.
If we were to plan for each scenario then we would solve eight independent
deterministic optimization problems as described in section 4.1.8, one for each
scenario. In order to help to formulate the stochastic model these independent
optimization problems can be combined into one large joint optimization problem with
objective function
∑ (∑ )
max πω priceω,t pi,t,ω − costi yi,t,ω . (5.1)
ω i,t
52
CHAPTER 5. STOCHASTIC MODEL
The parameter πω is introduced as the weight for the scenarios and the index ω is used to
keep track of the scenarios. The constraints and variable limits from the deterministic
model are kept.
This can be concluded from the fact that in (5.1) the sum over ω is made up of terms
that are maximized independent of each other.
The stochastic model is a recourse problem where decisions are made in two stages.
The first stage decision is made at the start of the whole planning period when one
scheduling is done taking all eight scenarios into account. This planning is used during
a first time period 0 ≤ t ≤ T . At time t = T a schedule is made for the rest of the
planning period taking only one scenario into account, i.e. at time t = T it is revealed
which scenario occurs.
The stochastic planning model uses the large joint optimization problem with objective
function (5.1) by adding the following constraints
This makes the optimization variables equal during stage 1 irrespective of the scenario.
(During stage 2 they can have different values depending on the scenario.) The
stochastic model is solved with a similar dynamic programming approach used for the
deterministic model and will be described now.
During stage 2, from time t = T to the end of the planning period t = Tend , the
scenarios are treated separately in the dynamic programming. If the following notation
53
CHAPTER 5. STOCHASTIC MODEL
is introduced
ω
Ft→T end
(α, αend ) = The optimal objective function value for the
optimization problem from time t to time Tend in
scenario ω with start value of stored water α and final
value of stored water αend ,
ω
∆Ft→t+∆t (α, α′ ) = The optimal objective function value for the
subproblem from time t to time t + ∆t in scenario ω
with start value of stored water α and end value of
stored water α′ .
[ ]
ω
Ft→T end
(α, αend ) = max
′
ω
∆Ft→t+∆t (α, α′ ) + Ft+∆t→T
ω
end
(α′ , αend ) (5.3)
α
and this recurrence relation can be used to calculate the optimal objective function
value for stage 2, i.e. from time T and onward for each scenario ω.
The dynamic programming steps in stage 1 starts by introducing the following quantity
∑
FT →Tend (α, αend ) = πω FTω→Tend (α, αend ) (5.4)
ω
which is the optimal expected value of the objective function over all scenarios from
time T to time Tend as expressed in (5.1). The calculation done in (5.4) is illustrated
in figure 5.1.5. The optimal expected value of the objective function Ft→Tend (α, αend ) is
calculated by using the following version of Bellman’s equation
[ ]
Ft→Tend (α, αend ) = max
′
∆Ft→t+∆t (α, α′ ) + Ft+∆t→Tend (α′ , αend ) (5.5)
α
54
CHAPTER 5. STOCHASTIC MODEL
αend
ω=1
T +∆t T end
α
αend
ω=2
T
T +∆t T end
Figure 5.1.5: The optimal expected value of the objective function FT →Tend (α, αend ) is
calculated by averaging the optimal values for each of the scenarios. The figure only
includes two scenarios, but the full model contains eight scenarios.
be performed optimally, i.e. we know beforehand which scenario will occur and
can plan accordingly. From this the expected value of perfect information can be
computed
EVPI = WS − RP,
where WS is the expectation value of the optimal values when planning for each
scenario and RP is the optimal value of the stochastic problem.
VSS = RP − DS,
where DS is the optimal value of the stochastic problem when the firststage variables
are fixed to values provided by a deterministic problem using the average value for
electricity price during the stage 1 and scenario dependent electricity prices during
stage 2.
55
CHAPTER 5. STOCHASTIC MODEL
step results in hitting the memory limit of the computer after about 12 hours and the
computation is aborted. The electricity price scenarios used are those outlines above
by using the price at the start of each 7 hour time step for the whole 7 hours.
The results from the computations are reported in table 5.2.1 and the values of EVPI
and VSS are
σ ′ = 40: EVPI = 11.726 − 11.545 = 0.181,
VSS = 11.545 − 11.539 = 0.006,
′
σ = 80: EVPI = 11.913 − 11.366 = 0.548,
VSS = 11.366 − 11.339 = 0.026,
Shifted: EVPI = 11.712 − 11.365 = 0.347,
VSS = 11.365 − 11.337 = 0.028,
where the three different electricity price scenarios, as described at the start of this
section, have been used. The standard deviation of the shifted scenarios ranges from
30 to 120 with a mean of 63.
56
CHAPTER 5. STOCHASTIC MODEL
expected values of the electricity price is used. In this comparison the difference
increases with increasing standard deviation (σ ′ ). With the introduction of a larger
share of intermittent power sources in the power systems the standard deviation is
expected to increase and the result in this study indicates that stochastic models will
perform better for planning purposes. Comparing EVPI and VSS show that the gap
between the stochastic method and solving the problem with perfect information is at
least an order of magnitude greater than the difference between the stochastic method
and the deterministic method.
The runtime of the calculations of EVPI and VSS are 10.6 minutes for the scenarios
with σ ′ = 40, 70.7 minutes for the scenarios with σ ′ = 80 and 27.8 minutes for the
scenarios that are only shifted (and not rescaled). In these calculations the optimality
gap was set to 0.5% instead of 0.01% in order have reasonable runtimes and memory
consumption, yet sufficient accuracy, when solving the subproblems in the dynamic
programming method. With the smaller optimality gap (0.01%) the runtime could
be up to 10–12 hours and in many cases the computation was aborted due to lack
of memory. In cases when the computation was completed with a smaller optimality
gap the results were not different from the results reported with the larger optimality
gap in table 5.2.1. The runtimes also increase significantly with increasing time period
(1 week) or shorter time resolution (7 hours).
All results in this study are affected by the model setup and data used. A conclusion
from the study is that adequate electricity price forecasts are important but the
runtimes of the stochastic models tend to be long and difficult to use. A general
conclusion is that building a stochastic model is time consuming and requires large
computer resources. The increase in the optimal value if fairly small when using the
stochastic model compared to the deterministic model. However, this can translate
to substantial increase in revenue over time. Some form of stochastic planning
might therefore be useful in practise, but it is needed to always keep computational
tractability in mind by, for example, using long time steps and sufficiently large
optimality gap.
57
Chapter 6
Discussion
6.1 Summary
One goal of the project was to study the connection between short term, mid term and
long term planning of hydropower. This is achieved in a literature review that has been
carried out with the focus of weekly planning of hydropower. Some earlier reviews
are presented followed by a presentation of works describing long term planning,
mid term planning and short term planning. The long term planning models cover
both deterministic and stochastic models. It could be seen that the SDDP method
is commonly used. The mid term planning models cover decomposition, stochastic
linear and nonlinear programming, combined SDP and SDDP and stochastic dual
dynamic programming. The short term models pay attention to methods such as mixed
integer stochastic model, stochastic model handling nonlinearities with time series
data, successive linear programming, nonlinear Mixed Integer optimisation model,
unit commitment model and mixed integer linear programming model.
Another goal of the project was to develop efficient planning methods for a power
system with a large share of renewable power sources. This goal has been fulfilled since
a model has been developed for weekly planning of hydropower where a relaxation is
performed before the optimization problem is solved by dynamic programming. The
model has been applied in an empirical study of a Swedish cascaded river system
consisting of 15 hydropower plants, 34 turbines and 16 reservoirs. To test the
model two case studies are performed where two subsets of the full river are used.
The test models have been developed since the size of the problem makes it hard
58
CHAPTER 6. DISCUSSION
To conclude, this project has shown that it is possible to solve a detailed hydropower
planning problem with hourly resolution and a planning horizon of 23 weeks. The
deterministic method can be used to solve large hydropower planning problems.
• One suggestion is to combine the planning between different markets (such as the
spot market, intraday trading and real time trading) and integrate maintenance
scheduling, i.e. detailed models for mid term planning.
59
CHAPTER 6. DISCUSSION
• Further studies of electricity price forecasts and stochastic models which are
adapted to planning periods of several weeks are needed.
• Use other structures and methods for stochastic planning where decision and
information arrive at different times.
60
Appendix A
Tables
Literature reviews
Ref. Title Characteristics
[14] Planning and Review that spans over many fields of
Scheduling under Uncertainty: A review science and the different techniques used
Across Multiple Sectors to model uncertainties.
[15] Operation of hydro power plantsa review Review of operation of reservoir based as
well as run of river hydropower plants.
[16] Review on hydropower plant models and Review of hydropower plant models and
control control.
[17] A Review of Optimization Algorithms Review of optimization algorithms for
in Solving Hydro Generation Scheduling different time frames.
Problems
[18] Handbook of Power Systems Review of the SDDP method for long term
hydropower planning.
[19] Longand Review
mediumterm operations planning and of stochastic dual dynamic programming
stochastic modelling in hydrodominated applied to hydropower scheduling in the
power systems based on stochastic dual Nordic countries.
dynamic programming
[20] Optimal Operation of Multireservoir Review of long term planning methods
Systems: StateoftheArtReview other than SDDP.
[21] Optimization of Review of methods useful for longterm
the hydropower energy generation using planning models.
MetaHeuristic approaches: A review
[22] The StateoftheArt of the Short Term Review of short term planning works,
Hydro Power Planning with large Amount deterministic and stochastic.
of Wind Power in the System
61
APPENDIX A. TABLES
Table A.0.2: This table summarizes the papers on long and mid term planning.
Table A.0.3: This table summarizes the papers on short term planning.
[6] Söder, Lennart and Amelin, Mikael. “Efficient operation and planning of power
systems”. In: (2011).
[7] Griva Igor Nash Stephen, Sofer Ariela. Linear and Nonlinear Optimzation.
2009.
64
BIBLIOGRAPHY
[14] Verderame, Peter M, Elia, Josephine A, Li, Jie, and Floudas, Christodoulos A.
“Planning and scheduling under uncertainty: a review across multiple sectors”.
In: Industrial & engineering chemistry research 49.9 (2010), pp. 3993–4017.
[15] Singh, Vineet Kumar and Singal, SK. “Operation of hydro power plantsa
review”. In: Renewable and Sustainable Energy Reviews 69 (2017), pp. 610–
619.
[16] Kishor, Nand, Saini, RP, and Singh, SP. “A review on hydropower plant models
and control”. In: Renewable and Sustainable Energy Reviews 11.5 (2007),
pp. 776–796.
[17] Thaeer Hammid, Ali, Awad, Omar I, Sulaiman, Mohd Herwan, Gunasekaran,
Saraswathy Shamini, Mostafa, Salama A, Manoj Kumar, Nallapaneni, Khalaf,
Bashar Ahmad, AlJawhar, Yasir Amer, and Abdulhasan, Raed Abdulkareem.
“A Review of Optimization Algorithms in Solving Hydro Generation Scheduling
Problems”. In: Energies 13.11 (2020), p. 2787.
[19] Gjelsvik, Anders, Mo, Birger, and Haugstad, Arne. “Longand mediumterm
operations planning and stochastic modelling in hydrodominated power
systems based on stochastic dual dynamic programming”. In: Handbook of
power systems I. Springer, 2010, pp. 33–55.
65
BIBLIOGRAPHY
[21] Azad, Abdus Samad, Rahaman, Md Shokor A, Watada, Junzo, Vasant, Pandian,
and Vintaned, Jose Antonio Gamez. “Optimization of the hydropower energy
generation using MetaHeuristic approaches: A review”. In: Energy Reports 6
(2020), pp. 2230–2248.
[22] Vardanyan, Yelena and Amelin, Mikael. “The stateoftheart of the short term
hydro power planning with large amount of wind power in the system”. In: 2011
8th International Conference on the European Energy Market (EEM). IEEE.
2011, pp. 448–454.
[23] Zambelli, Monica S, Soares, Secundino, and Silva, Donato da. “Deterministic
versus stochastic dynamic programming for long term hydropower scheduling”.
In: 2011 IEEE Trondheim PowerTech. IEEE. 2011, pp. 1–7.
[24] Scarcelli, ROC, Zambelli, MS, Soares, S, and Carneiro, AAFM. “Ensemble of
Markovian stochastic dynamic programming models in different time scales for
long term hydropower scheduling”. In: Electric Power Systems Research 150
(2017), pp. 129–136.
[26] Gjerden,
Knut Skogstrand, Helseth, Arild, Mo, Birger, and Warland, Geir. “Hydrothermal
scheduling in Norway using stochastic dual dynamic programming; a largescale
case study”. In: 2015 IEEE Eindhoven PowerTech. IEEE. 2015, pp. 1–6.
[28] Helseth, Arild, Fodstad, Marte, and Mo, Birger. “Optimal mediumterm
hydropower scheduling considering energy and reserve capacity markets”. In:
IEEE Transactions on Sustainable Energy 7.3 (2016), pp. 934–942.
[29] Warland, Geir and Mo, Birger. “Stochastic optimization model for detailed long
term hydro thermal scheduling using scenariotree simulation”. In: Energy
Procedia 87 (2016), pp. 165–172.
66
BIBLIOGRAPHY
[30] Xu, Huijun and Rao, Wei. “Long Term Generation Optimization Using
Stochastic Dynamic Programming”. In: Computer and Management (CAMAN),
2011 International Conference on. IEEE. 2011, pp. 1–4.
[31] Peng, Chunhua, Xie, Peng, Pan, Lei, and Yu, Rong. “Flexible robust optimization
dispatch for hybrid wind/photovoltaic/hydro/thermal power system”. In: IEEE
Transactions on Smart Grid 7.2 (2015), pp. 751–762.
[33] Abgottspon, Hubert and Andersson, Göran. “Stochastic scheduling for a price
maker hydro producer considering forward trading”. In: 2013 IEEE Grenoble
Conference. IEEE. 2013, pp. 1–6.
[34] Yuhui, XING, ZHANG, Maolin, Bangcan, WANG, Wenjiao, DING, Siyu, GONG,
and ZHANG, Wenjing. “Midium and Long Term Contract Decomposition
Method Considering Cascade Water Quantity Matching Constraint”. In: 2019
IEEE Sustainable Power and Energy Conference (iSPEC). IEEE. 2019, pp. 176–
186.
[35] Shrestha, GB, Pokharel, Bikal Kumar, Lie, Tek Tjing, and Fleten, SE. “Medium
term power planning with bilateral contracts”. In: IEEE Transactions on Power
Systems 20.2 (2005), pp. 627–633.
[36] Hjelmeland, Martin N, Helseth, Arild, and Korpås, Magnus. “A case study on
mediumterm hydropower scheduling with sales of capacity”. In: (2016).
[37] Hjelmeland, M. N., Zou, J., Helseth, A., and Ahmed, S. “Nonconvex
MediumTerm Hydropower Scheduling by Stochastic Dual Dynamic Integer
Programming”. In: IEEE Transactions on Sustainable Energy 10.1 (2019),
pp. 481–490. DOI: 10.1109/TSTE.2018.2805164.
67
BIBLIOGRAPHY
[41] PérezDíaz, Juan I, Wilhelmi, José R, and Arévalo, Luis A. “Optimal shortterm
operation schedule of a hydropower plant in a competitive electricity market”.
In: Energy Conversion and Management 51.12 (2010), pp. 2955–2966.
[42] Belsnes, Michael Martin, Wolfgang, Ove, Follestad, Turid, and Aasgård, Ellen
Krohn. “Applying successive linear programming for stochastic shortterm
hydropower optimization”. In: Electric Power Systems Research 130 (2016),
pp. 167–180.
[43] Takigawa, Fabrício YK, Finardi, Erlon C, and Silva, Edson L da. “A
decomposition strategy to solve the shortterm hydrothermal scheduling based
on lagrangian relaxation”. In: 2010 IEEE/PES Transmission and Distribution
Conference and Exposition: Latin America (T&DLA). IEEE. 2010, pp. 681–
688.
[44] GeaBermúdez, Juan, Das, Kaushik, Koduvere, Hardi, and Koivisto, Matti
Juhani. “Dayahead market modelling of largescale highlyrenewable multi
energy systems: analysis of the North Sea region towards 2050”. In: Energies
14.1 (2021), p. 88.
[46] Kadowaki, Makoto, Ohishi, Takaaki, Martins, Leonardo SA, and Soares,
Secundino. “Shortterm hydropower scheduling via an optimizationsimulation
decomposition approach”. In: 2009 IEEE Bucharest PowerTech. IEEE. 2009,
pp. 1–7.
68
BIBLIOGRAPHY
[48] Guedes, Lucas SM, Mendonça Maia, Pedro de, Lisboa, Adriano Chaves,
Vieira, Douglas Alexandre Gomes, and Saldanha, Rodney Rezende. “A unit
commitment algorithm and a compact MILP model for shortterm hydropower
generation scheduling”. In: IEEE Transactions on Power Systems 32.5 (2017),
pp. 3381–3390.
[49] Fodstad, Marte, Helseth, Arild, and Henden, Arild Lote. “Modeling start/stop in
shortterm multimarket hydropower scheduling”. In: 2016 13th International
Conference on the European Energy Market (EEM). IEEE. 2016, pp. 1–5.
[50] Chen, Yue, Liu, Feng, Wei, Wei, Mei, Shengwei, and Chang, Naichao.
“Robust unit commitment for largescale wind generation and runoffriver
hydropower”. In: CSEE journal of power and energy systems 2.4 (2016),
pp. 66–75.
[51] Kong, Jiehong, Skjelbred, Hans Ivar, and Fosso, Olav Bjarte. “An overview
on formulations and optimization methods for the unitbased shortterm
hydro scheduling problem”. In: Electric Power Systems Research 178 (2020),
p. 106027.
[52] Rodríguez, Jesús A, Anjos, Miguel F, Côté, Pascal, and Desaulniers, Guy.
“Accelerating Benders decomposition for shortterm hydropower maintenance
scheduling”. In: European Journal of Operational Research 289.1 (2021),
pp. 240–253.
[53] Séguin, Sara, Fleten, SteinErik, Côté, Pascal, Pichler, Alois, and Audet, Charles.
“Stochastic shortterm hydropower planning with inflow scenario trees”. In:
European Journal of Operational Research 259.3 (2017), pp. 1156–1168.
[54] Froger, Aurélien, Gendreau, Michel, Mendoza, Jorge E, Pinson, Eric, and
Rousseau, LouisMartin. “Maintenance scheduling in the electricity industry: A
literature review”. In: European Journal of Operational Research 251.3 (2016),
pp. 695–706.
69
BIBLIOGRAPHY
[55] Wu, Lei, Shahidehpour, Mohammad, and Li, Tao. “GENCO’s riskbased
maintenance outage scheduling”. In: IEEE Transactions on Power Systems 23.1
(2008), pp. 127–136.
[56] Foong, Wai Kuan, Simpson, Angus R, Maier, Holger R, and Stolp, Stephen. “Ant
colony optimization for power plant maintenance scheduling optimization—
a fivestation hydropower system”. In: Annals of Operations Research 159.1
(2008), pp. 433–450.
[59] Helseth, Arild, Fodstad, Marte, and Mo, Birger. “Optimal hydropower
maintenance scheduling in liberalized markets”. In: IEEE Transactions on
Power Systems 33.6 (2018), pp. 6989–6998.
[60] Jönsson, Ulf. Optimal Control. SE100 44 Stockholm Sweden: Royal Institute
of technology, 2010.
[61] Helseth, A, Mo, B, Henden, AL, and Warland, G. “Detailed longterm hydro
thermal scheduling for expansion planning in the Nordic power system”.
English. In: Iet Generation Transmission & Distribution 12.2 (2018), pp. 441–
447. ISSN: 17518687.
70