Outage and maintenance planning in EOPS
The purpose of EOPS (“Vansimtap”) is to control energy production for each individiual water plant within a single price area given certain time series (price prognoses, inflows etc.) in order to maximize profits. While a standard run of EOPS assumes a constant plant efficiency as a function of time, it may be of interest to plan for downtime of one or more plants during a pre-determined period of time – this is what is referred to as maintenance planning (“revisjonsplanlegging”).
Another closely related functionality of EOPS is the so called outage analysis (“havari-analyse”). This is a feature intended to model unforeseen downtimes of one or more plants. The difference between maintenance and outage lies in how water values for the aggregate model are computed: In maintenance planning, the downtimes are known beforehand, and one can therefore re-compute the water values in the aggregate model. Since outage models unforeseen downtimes, the water values are not recomputed.
The new functionality presents the user with increases/losses in profits for each outage or maintenance time interval. We also present additional data not included in the previous versions of the files. Most importantly, a resolution of all of these data in terms of simulation scenarios is presented for outage/maintenance.
For the purpose of keeping this note self-contained, we will briefly present how to run EOPS with the outage/maintenance functionality. Although more advanced options such as the simultaneous outage/maintenance of multiple modules during the planning period is possible within EOPS, we will focus on one module/plant.
How to run outage analyses¶
We will in the following specify some examples of input files that can be found in the user manual. As detailed in the user manual, outage analyses are run by specifying a file “HAVARI.STAS”. This file is formatted as shown below
Structure of the file “HAVARI.STAS”¶
<Module number>, '<Comment I>'
'<Comment II>'
<Number of breakdowns>
<start week>, <end week>, <MW out>Below is a concrete example for outage in two time intervals
99903, 'M3' * Module number, comment I (module name)
'Aggregat 1' * Comment II
2 * Number of breakdown periods
10, 18, 250.0 * Start week, end week, MW out (I)
39, 44, 250.0 * Start week, end week, MW out (II)
-1, 'End' * Stopp code, commentHow to run maintenance analyses¶
The input file for maintenance, “REVISJON.STAS”, has a very similar format. As this too is detailed in the user manual, we again refer to it for details. Below, we show a simple example
1, * Version number of file
1, * Number of intervals for starting week
20,21 * Interval for starting week
1, * Number of modules undergoing maintenance
41709,'Module name', * Module number for maintenance 1, comment
1, * Number of maintenance periods
20,24,40, * start week , final week, 80 MW out
2, * Number of points on the PQ-curve
0.0, 0.0, * 1 - Break points on PQ-curve (MW, m3/s)
45.0, 6.10, * 2 - Break points on PQ-curve (MW, m3/s)
0, * Number of modules moduler with "maks rest"
-1, * Stop codeResult files¶
The example result files are not included here.
Versions 10.6 and earlier have provided functionalities for both types of analyses. However, around the time of 10.5, users have requested more detailed output data concerning expected profits.
In R10.7.2, the following new result files are added or modified:
havari.res¶
The file “havari.res” displays results for outage analysis. Although this file also existed in previous releases, we will briefly explain its contents as the same type of data is present in other files as well. In the leftmost column, the first set of entries are station names while the remaining columns show results for simulations with different outage time-intervals. The leftmost of these is without any outage.
The contents of the result data are as follows:
“Gj. sn. sluttmagasin” shows the end reservoir filling, “Gj.sn.flom” shows the flooding of the reservoir, and “Gj. mer flom” displays the increased overflow with respect to the reference level.
The row containing “Inntekt” shows the total income for the outage scenario described. Specifically, the income equals the product of the spot-price series with the production.
“Verdi av ekstra vann” is the difference in end reservoir storage between the outage scenario and the reference case valued by the the water value and is an average of all simulation scenarios.
As flooding can be thought of as a loss of profits, it must be accounted for in the net cost of outage. This is indicated in “Gj.sn.kost mer-flom”.
“Kost flytting prod.”: By defining a function representing the economical cost of flood and where is the index for the revision, it is defined as where represents the reference case without outage.
The last row, “Nto. kostnad av havari”, is the net cost of outage as obtained from the simulation and is the sum of the two rows above it.
havari_aar.res¶
The file “havari_aar.res” is also generated in v10.5 of EOPS, but has undergone some change in R10.7.2: In the new version, we also present values of production on a hydro module level (as in havari.res). With this addition, “havari_aar.res” presents the same data as “havari.res” but resolved in terms of simulation scenarios.
The top row shows the simulation scenario (year) with the total income (production multiplied by the price series) without outage presented in the row below. The horizontal delimiters separate different outage time intervals where the data below the first delimiter displays the total income calculated from the first outage interval and so on. The results below are obtained from a simulation comprised of 30 scenarios and the number of columns have been truncated for clarity.
revisjon.res¶
The file “revisjon.res” also existed in previous releases, and it describes the same results as in “havari.res” but for maintenance planning. In R10.7.2 it is reformatted in order to conform to the format in “havari.res”.
revisjon_aar.res¶
The file “revisjon_aar.res” is similar to “havari_aar.res”, but the results are for maintenance planning.
H5 files¶
For the case of maintenance planning, the need for updated water value calculations on the aggregate level makes the calculations slightly more complicated as compared to outage analysis. In particular, it necessitates the temporary storage of simulation data (which were previously stored in the internal file “rev_mag.tmp”). From R10.7.2, we will store this data on a new h5-format instead. The new file, rev_mag.h5, serves as a temporary file and contains all the data needed to construct the files “revisjon.res” and “revisjon_aar.res” listed above. In this regard, the user might be more inclined to create h5 interfaces through a programming language with h5 support in order to interact with the data.
Conclusions and outlook¶
By testing the new functionality on datasets, we observe that some arrays stored in “rev_mag.h5” are quite sparse. This means that we may obtain a performance gain by storing the data in different ways. We have added extra numerical precision on many internal arrays at the expense of an increased runtime for large datasets (Usually 10%).
Outage and maintenance analyses can, as explained above, be studied in terms of similar data. Therefore, it might make sense to generate a corresponding .h5 file for outage analysis. We welcome user feedback on whether such an additional h5 file is desired.