You are currently viewing a new version of our website. To view the old version click .
Energies
  • Article
  • Open Access

18 November 2022

Tuning Model Predictive Control for Rigorous Operation of the Dalsfoss Hydropower Plant

and
Department of Electrical Engineering, Information Technology and Cybernetics, University of South-Eastern Norway, N-3918 Porsgrunn, Norway
*
Author to whom correspondence should be addressed.
This article belongs to the Topic Modeling, Optimization, and Control of Energy Systems

Abstract

Model predictive control is considered an attractive control strategy for the operation of hydropower station systems. It is due to the operational constraints or requirements of the hydropower system for safe and eco-friendly operation. However, it is mandatory to tune the model predictive control to achieve its best and most efficient performance. This paper determines the appropriate tunning on the weight parameters and the length of the prediction horizon for implementing model predictive control on the Dalsfoss hydropower system. For that, several test sets of the weight parameter for the optimal control problem and different lengths of the prediction horizon are simulated and compared.

1. Introduction

As global warming has become a severe problem, the world has been trying to reduce the use of fossil fuels. Renewable energy has been spotlighted as the key technology to mitigating the emission of greenhouse gas. Renewable energy has been actively adopted globally for the green shift [1].
Hydropower plays an essential role in the green shift. It is because hydropower is the only renewable technology that can provide energy on demand. Most of the other renewable technologies, e.g., solar and wind, can generate power intermittently depending on the weather conditions. Despite the advantages of hydropower, its operation is challenging owing to strict operational constraints. The operational constraints are to prevent damage to the environment and residents around watercourses and reservoirs. For example, the change of the discharged water flowrate from the hydropower plant must be inhibited as much as possible to keep the fauna and the resident environments safe along the water course [2,3].
The complicated operational requirements make model predictive control (MPC) an appealing control approach for the operation of hydropower. MPC is a control approach that computes control input sequences for the future by solving a finite horizon open-loop optimal control problem (OCP) based on the current state and given information of the system as the initial point. Then, the first control input in the control sequence is applied and this process repeats in every sampling time. In other words, MPC has the capability to deal with a dynamic system with multiple inputs, outputs, and constraints [4,5,6].
There has been a series of studies on the implementation of MPC in the Dalsfoss hydropower plant system. The Dalsfoss hydropower plant is an impoundment type of hydropower plant that is located uppermost in the Kragerø watercourse [7,8]. The operation of the Dalsfoss hydropower plant must comply with the constraints that NVE regulated, e.g., the water level, the change of discharged flowrate, and the minimum flowrate of discharged water [9]. There was an initial attempt to simulate MPC on the Dalsfoss hydropower plant. This work suggested the model of the system and formulated the reference tracking OCP to keep the water level within a specific range. By keeping the buffer space in the reservoir, this MPC obtained the capability to deal with the system uncertainties [10]. A model was updated with new parameters after the severe mismatch between the model and the reality was found during a flood in September 2015 [11]. For better operation under the uncertainty of water inflow forecast, multi-objective optimization(MOO) MPC was implemented with the reference region tracking OCP [12]. Then, the new OCP that maximizes the water level in the reservoir was suggested and compared to the conventional OCP. Although the new OCP gives the advantage of not wasting water at the reservoir, it shows a weakness in the robustness of the constraint satisfaction under the presence of the system uncertainty [13]. This robustness problem was solved by adopting multi-stage MPC [14].
Although there has been a series of research on using MPC for the operation of the hydropower station, parameter tuning for the rigorous operation has not been performed yet. Therefore, this work aims to tune MPC for operating hydropower safely and eco-friendly with minimized computational demand. To determine the appropriate tunning of MPC for the rigorous operation, four test sets (including the conventional setting) and seven different lengths of prediction horizons (including the conventional setting) are used for the simulations. Furthermore, for a more realistic simulation, the historically stored actual data of the water inflow and the power production are applied. By comparing the simulation results, the proper tuning of weight parameters and the appropriate length of prediction horizon are obtained.
This paper is organized as follows: Section 2 explains the system model, operational constraints, and optimal control problem. Section 3 presents simulation settings such as test sets of parameters and simulation conditions. The result is presented in Section 4 and the conclusion is made in Section 5.

2. System Description

2.1. System Model

The Dalsfoss hydropower plant is operated by using water from its reservoir, lake Toke. For the effective and efficient operation of the hydropower plant, it is important to control the level of the reservoir. Figure 1 shows the simplified layout of the reservoir. The reservoir, lake Toke, is divided into two parts. The left side of Figure 1 depicts the upper part of the reservoir, called Merkebekk, and the right side describes the lower part of the reservoir, called Dalsfoss, which is near the dam and the plant. The water inflows into the reservoir, V ˙ i [m 3 /s] come from various sources such as precipitation and ice-melting. A certain proportion, β , of the water inflow, goes into Dalsfoss and the rest goes into Merkebekk. The water is discharged through floodgate, V ˙ g [m 3 /s], and turbine, V ˙ t [m 3 /s]. The system model of lake Toke is derived in [10] as follows:
Figure 1. Schematic of lake Toke [10].
There are two states in the system. One is the water level at Merkebekk and the other is the water level at Dalsfoss, denoted as h 1 [m] and h 2 [m] respectively. Both states are measurable and observable. x M [m MSL] and x D [m MSL] mean the water level above the sea level (m MSL) at Merkebekk and Dalsfoss. They are calculated as:
x M = h 1 + x LRV min
x D = h 2 + x LRV min
where x LRV min [m MSL] means the low regulated value of the water level.
Due to the curvature shape of the lake, the area of the lake surface changes depending on the water level at lake Toke. The minimum area of the lake surface is specified as 28 × 10 6 m 2 . Therefore, the area of the lake according to the water level, A ( h i ) [m 2 ], is computed as:
A ( h i ) = max ( 28 × 10 6 · 1.1 · h i 1 10 , 10 3 )
The area of lake toke can be divided into the areas of Dalsfoss and Merkebekk based on the proportion, α .
The flow from Merkebekk to Dalsfoss denoted as V ˙ 12 [m 3 /s], is calculated based on the height difference of the water levels at both places as follows:
V ˙ 12 = K 12 · ( h 1 h 2 ) | h 1 h 2 |
where K 12 is the flow coefficient in lake Toke.
Two control inputs in the system are the opening heights of two floodgates at the reservoir. The structure of the floodgate is shown in Figure 2. The floodgate opens upwards. Therefore, the minimum value of water level at Dalsfoss, h 2 , or the opening height of the floodgate, h g i is used to calculate the flowrate through the floodgate. The floodgate is located above the low regulated value of the water level, x LRV min . When the water level at Dalsfoss, h 2 is lower than the low regulated value of the water level, x LRV min , the water does not flow out through floodgate. The opening heights on floodgates are denoted as h g 1 and h g 2 . The openings of floodgates and the level of the water at Dalsfoss determine the amount of water thrown out through floodgates, V ˙ g [m 3 /s], as:
V ˙ g = C d · w · min ( h g , h 2 ) 2 g · max ( h 2 , 0 )
where C d is the discharge coefficient and g is the acceleration of gravity. The width of the floodgate is denoted as w. The maximum opening height of floodgates is limited by 5.6 m.
Figure 2. Structure of floodgate [10].
The power production plan is denoted as W ˙ e [MW] and it is decided by optimization based on many factors such as water level, price, demand, etc by Skagerak. The water flowrate through a turbine, V ˙ t [m 3 /s], is determined by how much power must be generated according to the power production plan as:
V ˙ t = a W ˙ e x D x q + b
In Equation (6), x q [m] means the water level at the quay where the water is discharged. a and b indicate parameters obtained from the data fitting method. The water level at the quay is calculated by solving the following cubic equation:
0 = c 1 x q 3 + ( c 2 c 1 x D ) x q 2 + ( c 3 c 2 x D + c 4 V ˙ g ) x q + W ˙ e c 3 x D c 4 V ˙ g x D c 5
where c 1 , c 2 , c 3 , c 4 , and c 5 are coefficients that are obtained by the polynomial data fitting method. For this method, the historically stored data in the Dalsfoss hydropower plant are used.
The total flowrate at downstream from the Dalsfoss power station, V ˙ o [m 3 /s], is computed as:
V ˙ o = V ˙ t + V ˙ g
The dynamic model is described by the following equations:
d h 1 d t = 1 ( 1 α ) A ( h 1 ) ( ( 1 β ) V ˙ i V ˙ 12 )
d h 2 d t = 1 α A ( h 2 ) ( β V ˙ i + V ˙ 12 V ˙ o )
Parameters for the system model are specified in Table 1.
Table 1. Parameters for Lake Toke model.

2.2. Operational Constraints

Several operational constraints ensure operational safety, securing ecological fauna and avoiding damages to properties around the water course and hydropower plant. The main constraints are listed below:
  • The sudden change in the flowrate at downstream, V ˙ o , can endanger the properties and ecosystem along the watercourse. Therefore, the flowrate at downstream must be kept as constant as possible. The change of the flowrate at downstream is desired to keep less than 50 m 3 / s on every time step.
  • The flowrate at downstream, V ˙ o , must be more than 4 m 3 / s . This constraint is to ensure that fishes in downstream can move freely along the water course.
  • The water level at Merkebekk, x M , must be maintained within a certain range as:
    x M [ x LRV , x HRV ]
    where x LRV and x HRV mean the low and the high regulated value for the water level, respectively. The range changes seasonally as shown in Table 2.
    Table 2. Seasonal level requirement.
  • The maximum flowrate through the turbine, V t , is limited up to 36 m 3 / s .

2.3. Optimal Control Problem

During the operation of a hydropower plant, it is desired to minimize the use of the floodgates unnecessarily and maximize the water level at the reservoir while considering operational constraints. Otherwise, it would result in loss of water which otherwise could be used to produce electricity. Therefore, to achieve the desired operation while satisfying the operational constraints, the objective function in the OCP is suggested in [13] as:
min u i = 1 N p ω R R new 2 ( x t + i ) + ω u u c , t + i 1 2 + ω Δ u Δ u c , t + i 1 2 + p 2 ω p
The first term in Equation (11) is designed to increase the water level at Merkebekk til the value of HRV and is expressed as:
R new ( x t + 1 ) = x M , t + 1 x HRV
The second and third terms in Equation (11) are to minimize the use of the floodgate openings and to minimize the change of floodgate openings, respectively. u c indicates the control action taken in open-loop optimization through the prediction horizon. Δ u c , t + i 1 2 in the third term in Equation (11) ex expressed as ( u c , t + i 1 u c , t + i 2 ) 2 . The last term, p 2 ω p , is the penalty for violation of level constraints. The variable, p, is the slack variable that is automatically decided by the optimizer. It is necessary to allow the violation on x LRV to meet the minimum flowrate constraints. ω R , ω u , ω Δ u , and ω p are the weight parameters for the objective function on the OCP. If the higher value is set on a certain weight parameter, the term with the weight parameter is treated more importantly when solving the OCP. Therefore, the desired operation can be achieved.

3. Simulation Setting

This section introduces the test sets of parameters and simulation conditions to run deterministic NMPC in the Dalsfoss hydropower plant.

3.1. Test Sets of Parameters

The ideal operation of the hydropower plant is not to waste water inside of the reservoir by minimizing the use of the floodgates and keeping the water level at the reservoir as high as possible. Yet, it is important to keep the flowrate at downstream as constant as possible which is related to the change of the floodgate openings for the sake of safe and eco-friendly operation. Although the goals to achieve from the operation are known, it is impossible to obtain a set of parameters without simulations and tests. Tuning weight parameters for the implementation of MPC is often done by the trial and error method. Four test sets of weight parameters are suggested in Table 3 to run the simulation. Testset1 is the same set of the weight parameters in the conventional setting.
Table 3. Parameters of test sets for the simulations.
Due to the importance of maximizing the water level, ω R is set as 10 equally. ω p is set equally high as 10,000 to encourage the satisfaction of the operational constraints. ω u is chosen as 1 on all the test sets. Therefore, the only variable on the test sets is ω Δ u . It inhibits the change of the floodgate openings more when ω Δ u has a higher value. To show the differences in the simulations, the parameters for tests are set as 1, 10, 100, and 1000.
Various lengths of prediction horizon, N [day], are tested as:
N = [ 1 , 3 , 5 , 7 , 9 , 11 , 13 ]
Conventionally, the test set 1 and 13 days of prediction horizon are used for implementing MPC on the Dalsfoss hydropower plant. In this paper, each test set of weight parameters, shown in Table 3, is tested together with seven different lengths of prediction horizon as shown in Equation (13). Therefore, one conventional simulation and 27 other simulations are run and compared to each other to find a set of parameters for the rigorous operation of the Dalsfoss hydropower plant.

3.2. Simulation Condition

To obtain a realistic simulation result, the historically stored data of the water inflow and the power production plan are used. Figure 3 shows the historical power generation of the Dalsfoss hydropower station from 15 April 2020 to 15 May 2020. In the simulation, the perfect prediction is assumed in power production.
Figure 3. Historical power production plan during the simulation period.
The water inflow forecast is updated every 24 h. It contains how much water may flow into the reservoir for the next 13 days. The historical data from 2020 are used for simulation. Figure 4 is a water inflow forecast updated on 15 April 2020. Then, one of the ensembles is picked to run the deterministic MPC and the first value of the picked ensemble is realized in the next time step of simulation.
Figure 4. 50 ensembles of the water inflow prediction to lake Toke on 15 April 2020.
The simulation follows the order of the block diagram shown in Figure 5. The MPC optimizes the optimal control sequence based on given information of measured states x ^ , water inflow forecast data V ˙ i , and power production plan W ˙ e . The first input of the optimal control sequence, u * , is applied to the system with the first value of the water inflow forecast. In this simulation, the perfect model is assumed that there is no mismatch between the model and the system.
Figure 5. A block diagram of the closed of MPC.
The simulation period is set from 15 April to 15 May because this period contains a big change in the water level requirements. The IPOPT solver in CasADi is used to solve OCP [15].

4. Simulation Result

In this section, the summary of 28 simulations, the combination of four weight parameter test sets and seven lengths of prediction horizon, are presented.
Figure 6 shows the change of the water level at Merkebekk, x M , and the water level bound, x HRV , during the simulation with different lengths of the prediction horizon. In labels of Figure 6, Np:i means that the length of the prediction horizon is set as i days. The upper figure describes how the water level at Merkebekk changes depending on the length of the prediction horizon when the weight parameters are set as the test set 1 (conventional setting) shown in Table 3. The lower figure displays the comparison of the water level changes with different lengths of the prediction horizon when the weight parameters are set as the test set 4 ( ω Δ u = 1000 ) in Table 3.
Figure 6. Change of the water level at Merkebekk during the simulations with parameter test set 1 and test set 4.
In the upper figure of Figure 6, as ω Δ u is set as 1 and ω R is set as 10, the operation aims to maximize the water level at the reservoir. Except for when the horizon length is set as 1 day, labeled as Np:1, most of the simulations show similar results which maximize the water according to the water inflow forecast, power production plan, and the level requirement change. However, when the horizon length is set as 1 day, labeled as Np:1, the prediction horizon is so short that the water level requirement change could not be foreseen sufficiently. Therefore, a drastic water level drop is observed.
In the lower figure of Figure 6, as ω Δ u is set as 1000 and ω R is set as 10, it aims to minimize the changes of the floodgate openings. As result, it was not prioritized to maximize the water level at the reservoir. The most of simulation results with various lengths of the prediction horizon display similar water level performance. However, when the prediction horizon length is set as 1 day, labeled as Np:1, the water level is significantly dropped at approximately 400 h where the maximum water level requirement changes.
Both figures in Figure 6 demonstrate that when the prediction horizon length is set too short as 1 day (24 h) MPC controls the system in undesirable manners. However, when the prediction horizon length is set longer than 3 days, the water level changes throughout the simulation time are quite identical.
The average water level at Merkebekk, x M , from simulations with different lengths of prediction horizon, N p , and different parameter test sets are described in Table 4. The average water levels become identical on each test set of weight parameters when the prediction horizon length is longer than 7 days. Then, the average water level deviates as the prediction horizon is getting shorter. The deviation becomes bigger when the value of ω Δ u is higher and the prediction horizon is set as 1 day. When the length of the prediction horizon is 3 or 5 days, no big differences are found.
Table 4. Average value of water level ( h 1 ) throughout simulations [m].
Figure 7 displays the total discharged flowrate, V ˙ O , from the hydropower plant depending on the test sets of the weight parameters when the prediction horizon is set as 3 days. The flowrate changes more delicately when the value of ω Δ u increases. It is because when ω Δ u is high, the optimizer compensates the high value for the change of the floodgate openings and aims to minimize it. It is beneficial to set the value of ω Δ u high to maintain the flowrate at downstream as constant as possible. Therefore, test set 4 shows the smoothest change of flowrate at downstream as shown in Figure 7.
Figure 7. Flowrate of water at downstream, V O , with different sets of parameters when the length of prediction horizon, N p , is set as 3 days.
The maximum change of the flowrate at downstream of each simulation is stated in Table 5. This table gives a guideline of which set of parameter sets must be desired or avoided. The red area displays the combinations of parameter sets and prediction horizon lengths that must be avoided. It is because the maximum change of flowrate exceeds 50 m 3 / s . It violates the operational constraints. The yellow color is the combination of parameters and prediction horizon set which can be used. However, these yellow combinations exceed 60% of the constraint, 30 m 3 / s . Therefore, these combinations must be applied with caution. The green area shows the recommendable combinations of parameters and prediction horizon sets since it shows the reasonable amount of maximum changes in flowrate at downstream.
Table 5. Maximum change of water amount discharged from the plant throughout simulations [ m 3 ].
Figure 8 shows the average computation time taken for each loop time. The computational demand increases as the length of the prediction horizon is longer. It is because the size of OCP becomes smaller when the prediction horizon is shorter. Therefore, it is beneficial to set the prediction horizon shorter yet, long enough to foresee the future and to generate a proper control sequence because then it is possible to keep the size of OCP compact.
Figure 8. Average computational time taken depending on the length of the prediction horizon when the test set 3 is used.

5. Conclusions

In this work, 28 simulation results were compared to each other to find a proper set of parameters to achieve rigorous operation at the Dalsfoss hydropower station. The conventional MPC tunning, which is the test set 1, and 13 days of the prediction horizon is found not only computationally inefficient but also does not satisfy the constraint of the constant flowrate on downstream. When looking into the other 27 simulation results alternatively, regardless of the prediction horizon length, test set 1 and test set 2, are considered bad choices due to the operational constraints on the change of the flowrate at downstream. When the prediction horizon is too short as 1 day (24 h), the performance of MPC becomes very bad in terms of water level control. It is because the prediction horizon is not long enough to foresee the change in the water level requirement.
Therefore, the proper combinations of parameters are test set 3 and test set 4 with the prediction horizon set longer than 3 days. However, as discussed in Section 4, the longer length of the prediction horizon increases computational demand without benefiting the operation. In conclusion, it is right to use the test set 3 if the shorter length of the prediction horizon, 3 or 5 days, may lead to faster convergence of OCP. It is appropriate to use test set 4 with a prediction horizon longer than 7 days if more smooth changes of the flowrate at downstream are desired.

Author Contributions

Conceptualization, C.J.; methodology, C.J.; software, C.J.; validation, C.J. and R.S.; formal analysis, C.J.; investigation, C.J.; resources, C.J.; data curation, C.J.; writing—original draft preparation, C.J.; writing—review and editing, C.J. and R.S.; visualization, C.J.; supervision, R.S.; project administration, C.J.; funding acquisition, R.S. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by Univeristy of South-Eastern Norway.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

Readers can ask for all the related data from the first author.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Ahmed, T.; Muttaqi, K.; Agalgaonkar, A. Climate change impacts on electricity demand in the State of New South Wales, Australia. Appl. Energy 2012, 98, 376–383. [Google Scholar] [CrossRef]
  2. Torabi Haghighi, A.; Ashraf, F.B.; Riml, J.; Koskela, J.; Kløve, B.; Marttila, H. A power market-based operation support model for sub-daily hydropower regulation practices. Appl. Energy 2019, 255, 113905. [Google Scholar] [CrossRef]
  3. IEA. Hydropower Special Market Report—Analysis and Forecast to 2030; IEA: Paris, France, 2021. [Google Scholar]
  4. Morari, M.; Lee, J.H. Model predictive control: Past, present and future. Comput. Chem. Eng. 1999, 23, 667–682. [Google Scholar] [CrossRef]
  5. Mayne, D.; Rawlings, J.; Rao, C.; Scokaert, P. Constrained model predictive control: Stability and optimality. Automatica 2000, 36, 789–814. [Google Scholar] [CrossRef]
  6. Lee, J.H. Model predictive control: Review of the three decades of development. Int. J. Control. Autom. Syst. 2011, 9, 415–424. [Google Scholar] [CrossRef]
  7. SkagerakKraft. Dalsfos. 2021. Available online: https://www.skagerakkraft.no/dalsfos/category1277.html (accessed on 24 May 2021).
  8. SkagerakKraft. Kragerø Watercourse System. 2021. Available online: https://www.skagerakkraft.no/kragero-watercourse/category2391.html (accessed on 24 May 2021).
  9. NVE. Supervision of Dams. 2021. Available online: https://www.nve.no/supervision-of-dams/?ref=mainmenu (accessed on 24 May 2021).
  10. Lie, B. Final Report: KONTRAKT NR INAN-140122 Optimal Control of Dalsfos Flood Gates—Control Algorithm; Telemark University College: Porsgrunn, Norway, 2014. [Google Scholar]
  11. Kvam, K.D.; Furenes, B.; Hasaa, Å.; Gjerseth, A.Z.; Skeie, N.O.; Lie, B. Flood Control of Lake Toke: Model Development and Model Fitting. In Proceedings of the 58th Conference on Simulation and Modelling (SIMS 58), Reykjavik, Iceland, 25–27 September 2017. [Google Scholar]
  12. Menchacatorre, I.; Sharma, R.; Furenes, B.; Lie, B. Flood Management of Lake Toke: MPC Operation under Uncertainty. In Proceedings of the 60th SIMS Conference on Simulation and Modelling SIMS 2019, Västerås, Sweden, 12–16 August 2019; pp. 9–16. [Google Scholar] [CrossRef]
  13. Jeong, C.; Furenes, B.; Sharma, R. MPC Operation with Improved Optimal Control Problem at Dalsfoss Power Plant. In Proceedings of the First SIMS EUROSIM Conference on Modelling and Simulation, SIMS EUROSIM 2021, and 62nd International Conference of Scandinavian Simulation Society, SIMS 2021, Virtual Conference, Finland, 21–23 September 2021; Volume 11, pp. 226–233. [Google Scholar] [CrossRef]
  14. Jeong, C.; Sharma, R. Stochastic MPC For Optimal Operation of Hydropower Station under Uncertainty. IFAC-PapersOnLine 2022, 55, 155–160. [Google Scholar] [CrossRef]
  15. Andersson, J.A.E.; Gillis, J.; Horn, G.; Rawlings, J.B.; Diehl, M. CasADi—A software framework for nonlinear optimization and optimal control. Math. Program. Comput. 2019, 11, 1–36. [Google Scholar] [CrossRef]
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.