Full text
PhD THESIS Medium-term power planning in electricity markets with renewable generation sources Laura Marí i Tomàs Director: Dr. Narcís Nabona Tutor: Dr. F. Javier Heredia Barcelona, July 2015
The work in this thesis was carried out in the research group GNOM (Group on Numerical Optimization and Modeling) in the Department of Statistics and Operations Research, Universitat Politècnica de Catalunya, Barcelona, under project DPI2008-02153 of Ministerio de Ciencia e Innovación, Spain. Laura Marí was awarded the scholarship BES-2009-023692 for the Formation of Research Personnel by Ministerio de Ciencia e Innovación, Spain, during the period September 2009 to August 2013. A stay abroad was conducted at Humboldt-Universität zu Berlin under the tutelage of Prof. W. Römisch with an extra scholarship EEBB-2011-43849 by Ministerio de Ciencia e Innovación, during the period May 2011 to August 2011. iii
ACKNOWLEDGEMENTS Primer de tot, vull agrair al grup d’investigació GNOM per tot el recolzament, tècnic i econòmic, rebut durant els anys de tesi que m’han dut a poder participar de congressos internacionals i a desenvolupar la meva vessant d’investigadora. To the external referees, I really appreciate and thank you for your constructive comments and suggestions for improvement of my work. Una vegada em van dir que fer una tesi és com fer una cursa de fons, on s’ha de seguir un ritme constant tot i les dificultats que et vas trobant, i on també et vas creuant amb moltes persones que et van acompanyant, ja sigui en un tros d’aquesta cursa o en la seva totalitat. No vull deixar escapar l’ocasió d’agrair-te, Narcís, tot el que has fet per mi. Malgrat hem passat per moments amb més o menys llum sempre has estat disposat a donar-me un cop de mà i a guiar-me per arribar a on sóc ara mateix. Gràcies de tot cor. Vull donar les gràcies a tota la gent que he pogut conèixer aquí al departament i amb qui he pogut compartir la majoria de les hores que ha durat la tesi: companys, professors, etc. Gràcies també als grans amics que tinc, una inacabable llista... Anna, Ana, Maria, Sara, Marta, Efrain, etc... sempre heu estat al meu costat i m’heu ajudat, tant a tirar endavant quan les cames em feien figa com a celebrar tot el que hem anat aconseguint. Gracias también a ti Eli y a ti Miguel por ser el gran descubrimiento de estos añitos. Por esas horas de juego, por esos cambios de contraseñas para evitar tentaciones, pero sobretodo por ser como sois y por esas interminables charlas, consejos, risas y por vuestro apoyo en todo momento. Sin vosotros esto habría sido mucho más duro. Vull també tenir un especial agraïment a tu Manel, ens coneixem des de fa gairebé 25 anys i tinc la gran sort de tenir-te al meu costat, de poder fer camí juntament amb tu i estic convençuda que així seguirà sent durant anys i anys. Gràcies per saber sempre com animar-me, com reconduir moments, com fer-me riure quan tinc situacions de desesperació i calmar-me amb una mirada o frase. Gràcies per totes les quedades d’última hora, per les innumerables cervesetes terapèutiques... en definitiva, gràcies per ser-hi sempre. Finalment, i no menys important, vull agrair als meus pares i germà el seu suport incondicional. Sense vosaltres no hagués arribat a on sóc ara ni seria qui sóc. Gràcies per recolzar-me, per suportar-me en els pitjors moments i per compartir els bons. Us estimo. v
ABSTRACT The problem addressed in this thesis is the medium-term generation planning over a yearly horizon of a generation company participating in a liberalized electricity market with pool auction of generation and consumption and with bilateral contracts between generation companies and distributions companies or big consumers. It is assumed that the generation portfolio of several generation companies includes a significant proportion of dispatchable renewables (hydro generation with storage reservoirs and pumping schemes) and non-dispatchable renewables as wind power and solar photovoltaic generation. It is also assumed than more than one generation company are able to influence market-price levels through their bidding in the auction so that the market could be oligopolistic. The results obtained are of interest to price-maker generation companies, but also to price-taker generators, and to the market operator to check whether the participants in the market behave as a cartel or seeking an equilibrium. The stochasticity of parameters in the medium-term planning is modeled in two ways. Regarding consumers load and generation unit outages, through the use of the probabilistic method of load matching: by representing the load through predicted load-duration curves of each period into which the yearly horizon is subdivided, by considering the capacity and an outage probability of each generation unit and by using the existing convolution techniques and the linear-inequality load-matching constraints. Regarding renewable energy sources, stochastic programming is used. Hydro-generation scenarios of inflows are developed for each period. As for non-dispatchable renewables (wind power and solar photo-voltaic generation), a novel model of representing them through two pseudo-units: one base unit with small outage probability and a crest unit with large outage probability is proposed, and scenarios are developed for the relevant parameters of the pseudo-units. The solar photo-voltaic generation model requires splitting each period into three subperiods with the dark hours, with the medium-light hours and with the bright hours. Quasi-Monte Carlo techniques have been employed to create a large scenario fan later reduced to a scenario tree with a reduced number of scenarios. Market prices are taken into account through an endogenous linear market-price function of load duration whose intercept depends on total hydro generation level and on wind power and solar photovoltaic level in each node of the scenario tree. With such market price function, the endogenous cartel solution and the equilibrium solutions to the medium-term planning can be obtained. To avoid having to consider the total exponential vii
number of load-matching constraints, a load matching heuristic has been employed where small batches of new load matching constraints are generated after successive optimizations considering only the generated load matching constraints. For equilibrium solutions, the Nikaido-Isoda relaxation algorithm of successive solutions is employed using the successive optimizations of the load-matching heuristic. In mixed-market systems with auction and bilateral contracts, a time-share hypothesis is formulated and the profits function for generation companies with the generation left after honoring their bilateral contracts is formulated. The profit function obtained is non-convex, and a direct global optimization solver was tried, but proved not to be practical for the size of problem to be solved. A non-linear interior-point constrained optimization solver, also employed for problems in pure pool markets, was tried with several special techniques to circumvent the troubles caused by the non-convexity of the objective function and satisfactory results were obtained. A novel model of multi-period medium-term pumping was presented and employed. Results for several realistic test cases having different generation settings have been presented and analyzed. viii
CONTENTS Glossary of Symbols and Acronyms xiii List of Figures xxi List of Tables xxiii 1introduction 1 1.1Definitionandmotivation ............................. 1 1.2Initialobjectives ................................... 2 1.3Summaryofcontributions ............................. 3 1.4Thesiscontents.................................... 4 2conceptual backgrounds 7 2.1The load-survival function and the load duration curve . . . . . . . . . . . . 7 2.1.1Loadingorder................................ 8 2.1.2The modification through convolution of the load survival function when loading generation units . . . . . . . . . . . . . . . . . . . . . . 9 2.1.3Externalenergy............................... 11 2.2The generation duration curve . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 2.2.1The Probabilistic Matching . . . . . . . . . . . . . . . . . . . . . . . . 12 2.3The linear minimum-cost medium-term planning . . . . . . . . . . . . . . . 13 2.3.1NestedLMCs ................................ 15 2.4Time hierarchy in medium-term planning . . . . . . . . . . . . . . . . . . . . 17 2.4.1Horizon, periods and subperiods employed in the test cases solved inthisthesis................................. 17 2.4.2Bloom & Gallant formulation extended to niperiods . . . . . . . . . 18 2.5Liberalized electricity markets of different types . . . . . . . . . . . . . . . . 18 2.5.1Electricity market types . . . . . . . . . . . . . . . . . . . . . . . . . . 19 2.5.2TheMIBELmarket............................. 20 2.5.3Types of agent and of behavior in liberalized electricity markets . . 21 2.6Market-price function of load duration and the cartel medium-term planning 22 2.7The endogenous market-price function and the endogenous cartel model . 25 2.8The equilibrium behavior and the NIRA algorithm to obtain it . . . . . . . . 26 2.9Stochastic parameters in medium-term planning and stochastic programming 29 2.9.1Scenario Tree: characteristics and notation . . . . . . . . . . . . . . . 30 2.9.2The Vector Auto-Regressive model . . . . . . . . . . . . . . . . . . . . 30 2.9.3The Quasi-Monte Carlo technique for creating a scenario tree . . . . 31 2.9.4The reduction to a scenario tree of a given size . . . . . . . . . . . . . 33 ix
nuNumber of generation units TNumber of time periods Functions (FUN) F(z)Distribution function Lk,λProfit losses function of participant kover scenario λ p(z)Density function of a load pν(t,xh)Market-price function rν j(xν j,e xν j)Generation profit of unit jin node ν(47) S(z)Load survival function (1) S∅(z)Load survival function when no unit has been loaded Sω(z)Load survival function of still-unsupplied load after having loaded units in ω s(ω)Expected unsupplied energy after loading units in set ω Υ(˚u, x)A decision-dependent integrand φk(x)Utility function of player k φk(xk|b x)Utility function of participant kgenerating xkwhile RoP generate b x Ψ(b x,x)Nikaido-Isoda function Indices (IND) 0Subscript that is related to the external energy brSPV Subscript that is related to the single SPV unit in bright-hours brSPVbs Subscript that is related to the bright-hours SPV base unit brSPVcr Subscript that is related to the bright-hours SPV crest unit ee Subscript that is related to the energy equivalent unit (4.2.2) gSubscript that indicates the load type(g∈Lt) (4.2.4) hSubscript that indicates a hydro unit iSuperscript that indicates the period i(ν)Superscript that indicates the period associated to a node ν jSubscript that indicates the generation unit kSubscript that indicates the generation company llSPV Subscript that is related to the low-light hours SPV unit PSubscript that represents the pumped-storage unit xvi
WSubscript that is related to the single WP unit equivalent to crest plus base WP units Wbs Subscript that is related to the WP base unit Wcr Subscript that is related to the WP crest unit νSuperscript that indicates the node of the scenario tree −Superscript that represents the predecessor of a node Parameters (PAR) AMatrix of coefficients of the non-load-matching constraints bi,bνPrice-intercept of the market-price function in period i, node ν(e/MWh) C,Ci,CλLeft-hand side of non-load-matching constraints cj,ci jCapacity of unit j(MW) DλLeft-hand side of non-load-matching constraints dCorrelation of the market-price with the hydro generation per time unit dϑVector of 0or 1coefficients of the left-hand side of the LMC built with the set of units ϑ b eiTotal energy in the LDC of period i eff Efficiency coefficient of pumping generation fj,e fjLinear Generation Cost of unit j(e/MWh) LLower triangular matrix of Cholesky’s decomposition li,li(ν)Slope of the market-price function in period i e PExpected profit piPeak Load Power in period i piBase Load Power in period i Psp90 Profit spread qj,qi jOutage probability of unit j r,rλRight-hand side (rhs) of non-load-matching constraints ti,Ti,Ti(ν)Period duration (h) v0 hEnergy stored in the reservoir system hbefore the start of the first period vi hExpected energy stored in the reservoir system hat the end of period i wi hWater inflows in hydro basin hover period i wi hExpected water inflows in hydro basin hover period i vPEnergy capacity of the pumping-station upper reservoir XiHistorical mean of the stochastic process at period i xvii
x Initial point or the solution to a former problem xkLower bound of expected generation xk xkUpper bound of expected generation xk γPredetermined fraction of the energy of the natural inflows over period i(ν) δPEfficiency coefficient of the pumping generation ηVector of QMC points κDiagonal matrix of mean reverting coefficients λNode that represents the leaf of the scenario tree νNode of a scenario tree ν−Predecessor of node ν ξNormal vector πνProbability of node ν ρParameter that changes the non-convexity of the objective function (see §6.4.1) ΣVariance matrix ζRealization of an independent N(0,1) variable Sets (SET) A(λ)Path from the root to the leaf λ BSet of participants in the market (B={SGC,RoP}) HSet of hydro units (H⊂Ω) HkSet of hydro generations associated to company k KSet of generation companies LSet of leafs LtSet of load type NSet of nodes XSet of decision vectors ΩSet of generation units ΩkSet of generation units of GenCo k ωSubset of generation units (ω⊂Ω) e ΩSet of generation units that match the bilateral LDC xviii
Variables to be optimized (VAR) xi jExpected energy generated by unit jover the period i ˜xi jExpected energy devoted to match BCs by unit jover the period i xν g j Expected energy generated by unit jover the period corresponding to node ν of a stochastic scenario tree for matching load type g(MWh) xkDecision vector with the expected generated energies of units of GenCo k yi hExpected energy generated by regulation hydro system hover period i(MWh) Variables not to be optimized (NOP) tLoad duration of LDC (h) uν hRepresentation of the generation of an equivalent regulation reservoir (34) vRC Extra variable used in RCC formulation (51) zLDC power (MW) αkValue-at-Risk of market participant k τk,λNon-negative variables used in CVaR constraints (see (54)) xix
LIST OF FIGURES Figure 1Probability density function of load p(z)(above), and load survival function S(z)(below) ............................ 8 Figure 2Load Duration Curve over a week . . . . . . . . . . . . . . . . . . . . 9 Figure 3Real load-survival function after loading three units and contributionofthefourthunit............................ 10 Figure 4Load duration curve (dotted line) and generation duration curve for a week in a real case with 32 units .................... 13 Figure 5Example of Probabilistic Matching for a three unit case . . . . . . . . . 14 Figure 6Hourly loads (continuous curve) and market prices (dashed) in a weeklyperiod ................................ 22 Figure 7Market prices ordered by decreasing load power (thin continuous curve) in weekly period, market price linear function with respect to the load duration (thick line) and LDC (dashed) . . . . . . . . . . . 23 Figure 8Medium-term price function for a time period and contribution of unit j..................................... 24 Figure 9Weekly moving average of the market price (orange) and of hydro generation (blue area) during 2007 in the Spanish power pool . . . . 25 Figure 10 Profit distribution of case 18r21 (see §5.5.1) ............... 35 Figure 11 One-dimensional example of RCC formulation . . . . . . . . . . . . . 37 Figure 12 Simplification of reservoir systems . . . . . . . . . . . . . . . . . . . . 52 Figure 13 Representation of the LDC without pumping storage for one period (left), the LDC extended with the extra pumping load (right) and the linear market-price (dotted line) . . . . . . . . . . . . . . . . . . . . . . 54 Figure 14 Available Monthly Hydro Generation (GWh) in Spain between 1920 and 2012 ................................... 60 Figure 15 Hourly WP generation in Spain split into 6successive periods of different length from October 2012 to October 2013 .......... 61 Figure 16 Hourly WP generation during March 2012 in Spain (left) and capacity and failure probability of equivalent units (right) . . . . . . . . . . 62 Figure 17 MIBEL’s March 2012 LDC –dotted– and thick blue polynomially approximated LDC minus WP (left), and LDCs after having loaded base and crest WP units –continuous–, or the single equivalent WP unit –dashed–, together with LDC minus WP polynomial (right) . . 63 Figure 18 Simple load-survival function after loading of normal energy-equivalent unit (left) and after loading of crest WP unit (right) . . . . . . . . . . 64 Figure 19 Overlaid daily SPV generations in Spain for 2009 and 2010 ...... 65 xxi
Figure 20 Overlaid daily SPV generations in Spain during March 2012, showing the subdivision of daily hours into dark, low-light, and bright subperiods .................................. 65 Figure 21 Representation of the WP GDC (black line) for 2years (2009 and 2010) split into 6periods of different length, the capacity of crest unit (light area) and the capacity of base unit (dark area) . . . . . . . 68 Figure 22 (a) FAN scenario tree with 499 scenarios for 3stochastic variables. (b-d) Reduction of the scenario tree into 21,59 and 75 scenarios . . . 71 Figure 23 Scenario Reduction: in the first column the hydro inflows are presented, in the second the WP generation and in the third the bright subperiod SPV generation. In the rows are represented different reductions: from top to bottom 75,59 and 21 scenarios . . . . . . . . . . 72 Figure 24 Profit distribution of cases 24C59 (left) with an equivalent dispatchable unit and 24R59 (right) with N-DRs. . . . . . . . . . . . . . . . . . 82 Figure 25 Generation by technologies: thermal, hydro, pumped hydro, WP and SPV, and negative pumping load in dark, low-light and bright hours of periods (above), and energy stored vν Pin pumping-scheme upper reservoir at end of each period in each scenario (below), of case 18RP21. .................................... 83 Figure 26 Energy stored vν Pin pumping-scheme upper reservoir at end of each period in each scenario, of case 18RP21 ................. 84 Figure 27 Energy stored vν Pin pumping-scheme upper reservoir at end of each period in each scenario, of case 24RP75 ................. 84 Figure 28 Profit distribution of cases 24R75 (left) with N-DRs and 24RP75 (right) with N-DRs and pumped storage. . . . . . . . . . . . . . . . . 85 Figure 29 Profit distribution of cases 18RP21 (top), 18RP59 (middle) and 18RP75 (bottom).................................... 86 Figure 30 Series of the system demand and power traded through BCs (thin line) during June 2007 in GW (left); LDC, bilateral data ordered by decreasing load and non-increasing fitted polynomial (right). . . . . 88 Figure 31 LDC of the system and part corresponding to the bilateral contracts LDC (shaded part, left); optimal load matching with production for bilateral contracts (right). . . . . . . . . . . . . . . . . . . . . . . . . . . 90 Figure 32 Solution to test case 24P21 showing the evolution over the periods of the energy stored in the pumped storage reservoir for the different scenarios (top), evolution of expected power productions of different technologies: “thr” thermal, “hyd” hydro, “phy” generation from pumped hydro, “wp” WP, and “pmp” pumping, in negative (middle), and evolution of market prices (bottom). Abscissae: time indays. ....................................108 xxii
Figure 33 Yearly expected power of pumping “pmp”, in negative, for each scenario in solution to equilibrium case 24P21, with system load (1st column), and generation mix by technologies “thr” thermal, “hyd” hydro, “phy” pumped hydro generation and WP, in market (2nd column) and in BCs (3rdcolumn). ....................109 Figure 34 Endogenous solution (above) and equilibrium solution (below) to test case 24P21 showing the evolution over the periods of the energy stored in the pumped storage reservoir for the different scenarios. . 110 Figure 35 Endogenous solution (above) and equilibrium solution (below) to test case 24P59 showing the evolution over the periods of the energy stored in the pumped storage reservoir for the different scenarios. . 110 Figure 36 Profit evolution of case 24P21 with N-DRs and pumping . . . . . . . 140 LIST OF TABLES Table 2Fixed Dimensions of Test Cases . . . . . . . . . . . . . . . . . . . . . . 78 Table 3Endogenous Cartel Solutions for different Generation Settings . . . . 79 Table 4Equilibrium Solutions for different Generation Settings . . . . . . . . 80 Table 5Comparison of Hydro Generation in Cases 24r21 and 24R21 ..... 81 Table 6Fixed Dimensions of Test Cases . . . . . . . . . . . . . . . . . . . . . . 98 Table 7Endogenous Cartel Solutions using First Strategy . . . . . . . . . . . 101 Table 8Equilibrium Solutions using First Strategy . . . . . . . . . . . . . . . . 101 Table 9Endogenous Solutions using Second Strategy . . . . . . . . . . . . . . 103 Table 10 Equilibrium Solutions using Second Strategy . . . . . . . . . . . . . . 103 Table 11 Endogenous Solutions using Third Strategy . . . . . . . . . . . . . . . 105 Table 12 Equilibrium Solutions using Third Strategy . . . . . . . . . . . . . . . 105 Table 13 Endogenous Solutions using Fourth Strategy . . . . . . . . . . . . . . 106 Table 14 Equilibrium Solutions using Fourth Strategy . . . . . . . . . . . . . . 106 Table 15 Range and expected values of xCMP in periods for equilibrium case 24P21 .....................................109 xxiii
1INTRODUCTION 1.1 definition and motivation Given a temporary horizon including or coinciding with a yearly period, the medium-term generation planning for a generation company (GenCo) is the study of how to organize the generation of each of the GenCos’ units over the horizon so that the profits (revenue minus costs) are maximized. This planning, formerly applied to a company with generation and distribution to its own consumers, is addressed in this thesis to a GenCo participating in a liberalized electricity market, which is a problem more complicated than that applied to the case of a company with generation and its own consumers. The problem addressed in this thesis is the medium-term generation planning of a GenCo participating in a market with pool auction of generation and consumption and with bilateral contracts between GenCos and Distributions Companies (DistCos) or big consumers. It is assumed that the generation portfolio of several GenCos includes a significant proportion of dispatchable renewables (hydro generation with storage reservoirs and pumping schemes) and non-dispatchable renewables as wind power and solar photovoltaic generation. The research group GNOM [65], within which this thesis has been developed, has been working on the optimization of electricity generation planning since well before the change in Spain from a regulated electrical system to a liberalized electrical market, and has continued its research on this subject in the frame of liberalized markets. One of the main paths of research in this area has been medium-term planning [67,81], that this thesis is pursuing with new challenges. One main challenge has been singling out the model of nondispatchable energy sources —wind power (WP) and solar photovoltaic (SPV) power— in order to accurately appraising the effects on market price and on the use of other technologies due to the penetration of WP and SPV in the generation portfolios. Another challenge is the medium-term planning solution in mixed markets, where participation of GenCos in the market auction is combined with bilateral contracts (BCs) between GenCos and DistCos, which leads to a non-convex problem. Using Stochastic Programming [9] is necessary for taking into account the medium-term stochasticity of many parameters. There are many sub models and computational procedures to be employed in the computational implementation, which are described in this thesis, and, in what regards the size of problem solved and the number of scenarios considered, this thesis presents the computational requirements to solve in reasonable time the medium-term planning using the models and 1
p p p S (z) pz power(MW) power(MW) 0 0 1 p( )z z Figure 1: Probability density function of load p(z)(above), and load survival function S(z)(below) For a given time period, the LDC is the curve that gives, in the abscissa axis, the duration of the load bigger or equal to a given power in the ordinate (see Figure 2, right). The LDC corresponds to the chronological load of the given period, a certain week in Figure 2(left), ordered in descending load power in the LDC. For a future period, the LDC must be predicted. One of the most important constraints in a generation planning model is the matching of the LDC at each period. The LDC retains all the variability for each load and it is characterized by •b ei: the total energy over period i •ti: the duration of period i •pi: the base load •pi: the peak load •the shape The load-survival function and the LDC are equivalent since by exchanging the LDC axis and scaling the total duration Tito probability 1, the load-survival function results. 2.1.1 Loading order When the generation units have a linear generation cost, and unit generations have no constraint to satisfy other than matching the LDC, there is no point to start loading a given unit until all units with a lower cost have been fully loaded. The loading order from less 8
Figure 2: Load Duration Curve over a week to more expensive units is called merit order. See Nabona and Díez [57] for a proof that the merit order is optimal under the conditions exposed. Should unit generations have to satisfy constraints other than LDC matching, or should unit generations have to maximize some utility function other than a linear function (as the summation of linear costs), there may be an optimal loading pattern called constrained loading order in which there may be subsets of units loaded at the same time: where a unit is loaded up to less than its full capacity when one or several units start its or their loading. This lump of units interleaving their loading are said to split their loading. 2.1.2 The modification through convolution of the load survival function when loading generation units The exact matching of the LDC by generation units having each an outage probability was proposed in 1967 by Balériaux et al. [3]. Let •cj, the power capacity of unit j(in MW) •qj, outage probability, and 1−qjin service probability of loaded unit j •fj, linear cost of unit j(in e/MWh) •Ω, set of all available units having nu=|Ω|units •ω, subset ω∈Ωof generation units such that j6∈ ω •Sω(z), the load survival function of still-unsupplied load after having loaded units in ω. 9
•S∅(z), load survival function when no unit has been loaded The modification of the load survival function through convolution proposed by Balériaux et al. [3] expresses the change to the load-survival function caused by loading unit jand it is computed as: Sω∪j(z) = qjSω(z) + (1−qj)Sω(z+cj). (2) The unit energies obtained using the convolution procedures are true expected values. Let ωbe the subset of units loaded before unit j. The expected generation of unit jordered after units in ωis xj|ω=T(1−qj)Zcj 0 Sω(z)dz , (3) where Sω(z)is the load-survival function of still-unsupplied load after loading units in ω. Figure 3: Real load-survival function after loading three units and contribution of the fourth unit In Figure 3, there is an example of the modification through convolution of a load survival function after having loaded three units and the contribution of another unit. The yellow area in Figure 3corresponds to the integral in (3), and must be multiplied by T(1−qj)to produce xj. Let xjbe the expected energy generated by unit jover a period of length t. An alternative deduction of 3is xj=t(1−qj)Zcj 0 zp(z)dz =t(1−qj)Zcj 0 (1−F(z))dz =t(1−qj)Zcj 0 S(z)dz , (4) where p(z)is the density function of the demand (see Figure 1) and F(z)is the distribution function of p(z). Furthermore, the last equality holds because zis continuous and nonnegative (for z<0,p(z) = 0). 10
The load-survival function corresponding to the LDC (without having loaded any unit) is denoted by S∅(z). If the convolution (2) is applied successively, the unsupplied load in terms of S∅(z)is: Sω(z) = S∅(z)Y m∈ω qm+X φ⊆ωS∅(z+X j∈φ cj)Y j∈φ (1−qj)Y j∈ω\φ qj, (5) where φrepresents any subset of ω. It is possible to say from (5) that the survival function Sω(z)of the unsupplied load is the same regardless of the order in which the units in ω have been loaded. However, the expected generation of each unit depends on its position in the loading order. It can be seen from (2) that Sω∪j(z)⩽Sω(z),∀z. And then it is easy to verify from (3) that loading a unit jafter loading unit kwill yield a lower expected generation xjthan if unit j was loaded just before unit k. The upper and the lower bound, xkand xk, to the expected generation of unit kcorrespond to its loading in the first and in the last position of the loading order: xk=(1−qk)tZck 0 S∅(z)dz , (6a) xk=(1−qk)tZck 0 SΩ\k(z)dz . (6b) The expected unsupplied energy, s(ω), after loading units in ωcan be computed as s(ω) = tZp 0 Sω(z)dz . (7) 2.1.3 External energy The probability that there may be time lapses where a number of units are unavailable due to random outages, such that the load in these time lapses cannot be met, is not null. In this case, external units connected to the load to be satisfied would supply the part of the load that is not satisfied. The external energy is represented by the index 0. The load balance equation relates the unit generations with the external x0: nu X j=0 xj=b e. (8) 11
It is assumed that external energy is always available and that its costs are higher than the most expensive unit of the load to be satisfied. So using (8) the external energy can be calculated as x0=b e− nu X j=1 xj. (9) 2.2 the generation duration curve The generation duration curve (GDC) is the ensemble of the expected generations of the units over the time period to which the LDC refers. The energy generated by each unit j is the slice of area under the generation-duration curve, which corresponds to the capacity of the thermal unit cj. Figure 4shows an optimal loading order in a real test case solved in [58] (unit U13 is loaded first, unit F03 is the second, etc.) and it also shows an example of splitting: here unit D11 is split by units G11 and G02. Although the LDC and the GDC do not have the same shape due to the outage probabilities, the area under the LDC and the area under the GDC must coincide. The GDC goes further up than the peak load p, and what is beyond P j∈Ω cjcorresponds to the external energy. The total vertical length of the GDC is p+P j∈Ω cj. The irregular shape of the right side of the GDC comes from the fact that the generation duration may not be uniform for all generated power. 2.2.1 The Probabilistic Matching In Figure 5, there is an example of the probabilistic matching. This method uses the convolutions (2) successively, and it is a way to combine exactly the load survival function and the outage probability of the units. In this example, there is the load survival function S∅(z) and there are three units with capacities C1,C2and C3and with outage probabilities 10%, 20% and 5%, respectively. At first step, unit 1is loaded and the convolution is made obtaining the load survival function after loading the first unit, S1(z). The same has been done for the other two units, thus obtaining the corresponding load survival functions, S1,2and S1,2,3. At the bottom of the figure it can be seen the GDC and the load survival function S1,2,3, which it corresponds to the external energy. 12
MW 000 000 000 111 111 111 000 000 111 111 000111 000 000 111 111 00 00 11 11 0000 0000 1111 1111 000 000 000 111 111 111 0000 0000 1111 1111 00 00 11 11 000 000 111 111 000111 00 00 11 11 000111 000 000 111 111 000 000 111 111 000 000 111 111 000 000 111 111 00001111 000 000 000 111 111 111 000 000 000 111 111 111 000 000 111 111 000111 000 000 111 111 00 00 11 11 0000 0000 1111 1111 000 000 000 111 111 111 0000 0000 1111 1111 00 00 11 11 000 000 111 111 000111 00 00 11 11 000111 000 000 111 111 000 000 111 111 000 000 111 111 000 000 111 111 00001111 000 000 000 111 111 111 G11 _U1 _U3 _U5 _U2 _U4 E01 D01 B01 A01 H01 G01 F01 U12 E02 D02 B02 A02 _U9 D11 H02 G02 F02 E03 D03 B03 A03 U10 G03 H03 F03 U13 G11 _U1 _U3 _U5 _U2 _U4 E01 D01 B01 A01 H01 G01 F01 U12 E02 D02 B02 A02 _U9 D11 H02 G02 F02 E03 D03 B03 A03 U10 H03 G03 F03 U13 0000000000000000000 0000000000000000000 0000000000000000000 0000000000000000000 0000000000000000000 0000000000000000000 0000000000000000000 0000000000000000000 0000000000000000000 0000000000000000000 0000000000000000000 0000000000000000000 0000000000000000000 0000000000000000000 1111111111111111111 1111111111111111111 1111111111111111111 1111111111111111111 1111111111111111111 1111111111111111111 1111111111111111111 1111111111111111111 1111111111111111111 1111111111111111111 1111111111111111111 1111111111111111111 1111111111111111111 1111111111111111111 000000000000000000000000000000000000111111111111111111111111111111111111 000000000000000000111111111111111111 0000000000000000000 0000000000000000000 0000000000000000000 0000000000000000000 0000000000000000000 0000000000000000000 1111111111111111111 1111111111111111111 1111111111111111111 1111111111111111111 1111111111111111111 1111111111111111111 000000000000000000111111111111111111 000000000000000000111111111111111111 0000000000 0000000000 1111111111 1111111111 000000000000111111111111 000000000000000000000000000000000000 000000000000000000000000000000000000 111111111111111111111111111111111111 111111111111111111111111111111111111 00000000000000000000000000000000000 00000000000000000000000000000000000 00000000000000000000000000000000000 11111111111111111111111111111111111 11111111111111111111111111111111111 11111111111111111111111111111111111 000000000000000000111111111111111111 000000000000000000 000000000000000000 000000000000000000 111111111111111111 111111111111111111 111111111111111111 0000000000000 0000000000000 1111111111111 1111111111111 0000000000000 0000000000000 0000000000000 1111111111111 1111111111111 1111111111111 000000000111111111 000000000111111111 0 0 0 0 0 0 0 1 1 1 1 1 1 1 0 0 0 0 0 0 1 1 1 1 1 1 01 0 50 100 150 200 h 0 5000 10000 15000 20000 25000 30000 Figure 4: Load duration curve (dotted line) and generation duration curve for a week in a real case with 32 units 2.3 the linear minimum-cost medium-term planning Bloom and Gallant [11] presented the matching of a given LDC for a single period using the expected energies xjgenerated by the units and the expected unsupplied energy s(ω) defined in (7) while satisfying other constraints and minimizing a linear cost function. They established that the load-matching constraints (LMCs) given by X j∈ω xj⩽b e−s(ω)∀ω⊂Ω, (10) must be satisfied. There are an exponential number of LMCs because there are 2nu−1 subsets ωof the set Ωof available units, with nu=|Ω|. The overall Bloom and Gallant planning model that minimizes production cost is the linear optimization problem: 13
C3 C1 C2 C3 2 E 3 E 1 E2 E3 EE4 C1 P P P 1 q = 0.1 2 q = 0.2 3 q = 0.05 1 1−q = 0.9 2 1−q = 0.8 3 1−q = 0.95 Cj Σ P E1 + E+ E 234 1 E = E + E S0 S1 S1,2 S1,2,3 E 0 0 0 0 0 0 0 0 0 0 0 MW 1 MW service 2 MW outage 2 MW MW service 1 90% 80% 95% outage 3 service 3 MW MW MW MW MW MW C2 : external energy outage 1 Figure 5: Example of Probabilistic Matching for a three unit case min xj nu X j=0e fjxj(11a) s.t.: X j∈ω xj⩽b e−s(ω)∀ω⊂Ω(11b) Ax ⩾r(11c) nu X j=0 xj=b e(11d) xj⩾0 j =0,1, ..., nu(11e) where (11b) are the exponential number of LMCs, Aand rare the coefficients matrix and the right-hand side (rhs) of the non-load-matching constraints (non-LMCs) (11c). Expression 14
(11d) is the load-balance equation from which external energy can be calculated. The Bloom and Gallant model for cost minimization was used in Leppitsch and Hobbs [45] for a study on NOxregulation effects, and was extended to multi-period problems in Pérez-Ruiz and Conejo [71] and Nabona et al. [58] using different techniques. Examples of non-LMCs are: •Maximum hydro generation: water availability is limited and the use of stored water is sometimes restricted by demands for irrigation. •Bonus-scheme coal: some generation units that burn national coal benefit up to a certain limit, of a reduction on the coal cost according to a government act. •Minimum generation time: generation units in the Spanish system are paid for their availability. •Specific Generation Company (SGC) market-share: in medium-term planning it is reasonable to consider the SGC market-share. •Take-or-pay constraints: the model should include constraints for any agreement settled by the company such as fuel supply contracts. •Other constraints, such as CO2emission limits. 2.3.1 Nested LMCs When no non-LMC of Ax ⩾ris active at the optimizer of the linear problem (11), the solution to the problem corresponds to loading units in the order of ascending costs, which is called the merit order. Then the active LMCs are the following triangular system, where there are as many active LMCs as units there are: x1=b e−s(1) x1+x2=b e−s(1,2) x1+x2+x3=b e−s(1,2,3) ... x1+x2+x3+...+xnu=b e−s(1,2,...,nu), (12) where it is assumed that the unit indices jand kand the unit costs fjand fkare such that, for j < k we have fj⩽fk. It is to be noted that the energy x1of the first unit loaded appears in all active LMCs (12); the energy of the 2nd unit to be loaded x2appears in the active LMCs from the second 15
to the last; and the energy of the last unit to be loaded xnuonly appears in the last active LMC of (12). The coefficients in the left-hand side of the constraints is a vector formed by ones and zeros, depending on which units there are in the subset that the LMC refers to. The coefficient will be 1if the unit is in the constraint and it will be 0otherwise. Regarding these zeros and ones of the active constraints, it is possible to see that the ones must be nested at the solution point. The merit order loading corresponds to the pure staircase shape of their one coefficients. For non-linear objective functions or whenever there are active non-LMCs, the active LMCs may not correspond to the merit order and may be less than nuin number. Nevertheless, the active LMCs at the optimizer will always correspond to a loading order and the active LMCs will be nested. Let dϑrepresent the row vector of coefficients of the left-hand side of the LMC built with the set of units ϑ. Then dϑis nested into dζ(being ϑand ζany subset of units) if ϑ⊂ζ. For example, if ϑ={2,4}and ζ={1,2,4,5,6}, then dϑis nested into dζbecause ϑ⊂ζ. In general, a set of constraints is nested if it is possible to order the constraints in the set in such a way that every constraint is nested in the next. For example, u1u2u3u4u5u6 dη. . . 1. . η=4 dϑ.1.1. . ϑ=2,4 dζ1 1 .1 1 1 ζ=1,2,4,5,6 dΩ1 1 1 1 1 1 Ω=1,2,3,4,5,6 where dηis nested into dϑ,dζand dΩ;dϑis nested into dζand dΩand, finally, dζis only nested into dΩ. If units are reordered in loading order, one can observe u4u2u1u5u6u3 dη1..... dϑ1 1 . . . . dζ11111. dΩ1 1 1 1 1 1 It can be seen that this example has a flight-of-stairs structure with a landing and that the load order of these units must be 4,2, (1,5,6) and 3. 16
(1,5,6) is a group of units that are loaded at the same time. This means that the loading of one of these units is initiated before the loading of any of these units is finished. These three units form a landing in the flight-of-stairs structure of the ones in the active LMCs, which is called a splitting in loading order (see §2.1.1) and the relative order in which they have to start loading depends on the values of x1,x5and x6at the solution. 2.4 time hierarchy in medium-term planning For planning and optimization purposes in power systems there are several hierarchic time scales, each having a different function. In long-term power planning the horizon is between 2and 10 years. The purpose is to decide which capacity will have the new generation units and when to start operation in order to match future loads. In the shortterm power planning the scope is from 1day to 1week. The aim of this planning is decide when to start-up and shutdown generation units and the amount of power to generate at each hour by each unit while meeting several constraints. 2.4.1 Horizon, periods and subperiods employed in the test cases solved in this thesis The horizon in medium-term power planning is normally one year, but in some cases, it could be 2years. Usually the horizon that is chosen is annual because within a year there is a weather cycle, there is also a demand cycle and a water inflows cycle. Normally the medium-term horizon is split into several shorter periods with different length, which increases as the time moves away from the initial period (which usually corresponds to the current week). This division is made because some constraints may apply to periods shorter than the whole horizon and because some of the parameters change over time. The uneven six periods employed in this thesis span a full year, and they are shorter close to the start and three-month long the last three. The load data employed in the test cases of this thesis correspond to the consumptions in the MIBEL during a year from October 2010 to October 2011. The lengths of the successive periods are of 7,24,60,92,92 and 90 days; the initial date being October 4. When solving weekly the yearly medium-term planning from next week, the first period provides target values for the generations that can be used for coordinating the medium and the weekly short-term planning. The first plus the second, which span one month, and the third: two-month long, will provide the expected generations for the first and for the first three months (and their corresponding expected fuel consumptions, profits, etc.). This is also obtained for the six-, nine-, and twelve-month horizons. 17
b + l t Cj Cj MWh 60 40 20 b Ej td t l T C 200 h 150 100 10000 15000 20000 0 0 50 5000 MW Figure 8: Medium-term price function for a time period and contribution of unit j a certain period of time (normally a week or a month) must match the LDC of that period for the whole market. As all GenCos pursue their maximum profit, it is natural to attempt to maximize the profit of all GenCos combined, which could be called the generators’ surplus (or cartel) maximization. A SGC solving this problem may introduce its own operational constraints, such as fuel and emission limits or contracts, and may introduce a market-share constraint for its units in one or several periods. The cartel medium-term generation planning model can be formulated as follows 24
max xi j ni X i=1X j∈Ωbi−e fjxi j+li 2cjxi j2−e f0xi 0(15a) s.t.: X j∈ω xi j⩽ei−si(ω)∀ω⊂Ω∀i(15b) X j∈Ω xi j+xi 0=ei∀i(15c) ni X i=1 Aixi⩾r(15d) xi j⩾0 j ∈Ω∀i(15e) where constraints (15d) makes (15) non-separable by periods. 2.7 the endogenous market-price function and the endogenous cartel model The most obvious endogenous modification of the market-price function is that due to hydro generation. It can be clearly observed from historical records as that in Figure 9that when the hydro generation level increases, market prices tend to decrease. 0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000 1 673 1345 2017 2689 3361 4033 4705 5377 6049 6721 7393 8065 8737 Hydrogeneration (MWh) 0 10 20 30 40 50 60 70 80 Market price (€/MWh) Figure 9: Weekly moving average of the market price (orange) and of hydro generation (blue area) during 2007 in the Spanish power pool Given that both the peak-power and the base-power demand prices appear to be equally affected by the hydro generation level, a linear change in the basic coefficient biwas introduced in [67] bi=bi 0+d TiX k∈H xi k, (16) 25
where His the set of all hydro units in the pool and dthe (negative) correlation coefficient of the market price with the hydro generation per time unit. Substituting biof (16) in (14), integrating and simplifying, the profit maximization function obtained is ni X ihnu X j {(bi 0−˜ fj)xi j+d TiX k∈H xi kxi j+li 2cj xi 2 j}−˜ f0xi 0i, (17) which is still quadratic, but its matrix is no longer diagonal and it may be indefinite for values liand dfound in practice. Taking e fj−e f0as fjand removing the constants terms from the objective function the generators’ surplus problem with endogenous influence of hydro is presented as follows min xi j ni X i nu X jfj−bixi j−d TiX k∈H xi kxi j−li 2cj xi j2(18a) subject to: X j∈ω xi j⩽b ei−si(ω)∀ω⊂Ωi,i=1,...,ni(18b) Ai ⩾xi⩾ri ⩾i=1,...,ni(18c) X i A0i ⩾xi⩾r0 ⩾(18d) Ai =xi=ri =i=1,...,ni(18e) X i A0i =xi=r0 =(18f) xi j⩾0 j =1,...,nu,i=1,...,ni(18g) 2.8 the equilibrium behavior and the nira algorithm to obtain it A behavioral principle different from the generators’ surplus maximization, which is monopolistic on the part of the generation companies, is the oligopolistic Nash equilibrium in a game with Cournot competition type, which means a higher degree of competition than the generators’ surplus maximization. In a Nash-Cournot equilibrium it is possible to assume either two (the SGC and the RoP), or more players (Kgeneration companies, whose units are Ωk|Ω:= {Ω1,Ω2,...,ΩK}). Furthermore, in the Cournot model of competition it is assumed that the decision (generation) of one player is conditioned by the 26
decisions (generations) of the rest of the players and that the market price is a function of the overall decisions (total expected generation). In a Nash equilibrium, no player can increase its revenue by unilaterally changing its decision (generation). It is not sure that a given pool behaves more like a Nash-Cournot equilibrium than like a monopolistic generators’ surplus maximization. For the medium-term planning to have Cournot competition (and an equilibrium solution) it is necessary to consider that the players mutually condition each other generations. This is so in case we consider the endogenous model explained, where the hydro generation of each player influences the market price. Let us assume a game with Kplayers. Let x= (x1,x2,...,xK)∈Xbe a decision vector of the set Xof decision vectors. The utility surplus function of player kis denoted by φk(x) and can be defined as φk(x) = X iX j∈Ωi k(fj−bi)xi j−li 2cj (xi j)2−d Ti X l∈Hk xi lxi j+X l∈Hm|m6=k xi lxi j , (19) where Hkis the set of hydro generators associated to player kand Hm|m6=kis the set of hydro generators associated to players mother than player k. Given the joint decision vectors x= (x1,x2,...,xK)∈Xand b x= (b x1,b x2,...,b xK)∈X, a new decision vector where all the agents s6=kplay b x, while the agent kplays xis defined as follows: (xk|b x)=(b x1,...,xk,...,b xK)∈X Using the definition (19), the utility function of player k, which is playing x, while other players play b xis determined by φk(xk|b x) = X iX j∈Ωi k(fj−bi)xi j−li 2cj (xi j)2−d Ti X l∈Hk xi lxi j+X l∈Hm|m6=kb xi lxi j . (20) A point x∗is a Nash equilibrium point if the following holds: φk(x∗) = max (xk|x∗)∈Xφk(xk|x∗)∀k∈{1,...,K}. (21) The Nikaido-Isoda relaxation algorithm (NIRA) [63,90] is a successive-optimization-based procedure to obtain a Nash-Cournot equilibrium point in a constrained game. In [18], there is an application of the NIRA algorithm to a short-term market equilibrium problem. Gen- Cos in oligopolistic markets should behave as players in equilibrium, each being unable to unilaterally increase its profits. The endogenous cartel model is also the basic kernel for the market equilibrium model when the equilibrium is obtained through the NIRA procedure and the utility function is the profit calculated with an endogenous price function 27
that changes with the amount of generation of different technologies, as done in [84,56] for a medium-term pure-pool generation planning problem. The Nikaido-Isoda function is: Ψ(b x,x) := K X k=1φk(xk|b x) − φk(b x). (22) An equivalent formulation of a Nash equilibrium is that x∗is an equilibrium point if: max x∈XΨ(x∗,x) = 0. The optimal response function Zis defined as: Z(b x) := arg max x∈XΨ(b x,x), (23) and the NIRA algorithm-updating rule is: xnew ←(1−u)b x+uZ(b x)u∈IR , 0<u⩽1 In order for the NIRA procedure to converge to an equilibrium point, Ψ(b x,x)should be weakly convex w.r.t. b xand weakly concave w.r.t. x, and function Z(·)should be single valued. The structure of the NIRA procedure is: •b x←x0,0<u⩽1,(e.g.u←0.4) •repeat until Ψ∗⩽ obtain Z(b x) = x∗by solving max x∈XΨ(b x,x) compute Ψ∗=Ψ(b x,Z(b x)) = K X k=1φk(x∗ k|b x) − φk(b x) b x←uZ(b x) + (1−u)b x Note that, given b x,φk(b x)is a constant that need not be optimized, the maximization of Ψ(b x,x)is equivalent to solving max xj,y K X k=1 φk(xk|b x)φk(xk|b x)as in (20) s.t.: LMCs (15b), nonLMCs (15d) balance (15c)and bounds (15e) (24) 28
and using (20) the problem could be recast as max xi j ni X i=1 K X k=1X j∈Ωi k(bi−fj)xi j+li 2cj (xi j)2+d Ti[X l∈Hk xi lxi j−X l∈Hm|m6=kb xi lxi j] s.t.: LMCs (15b), nonLMCs (15d) balance (15c)and bounds (15e) (25) It should be noted that the NIRA objective φk(xk|b x)is better conditioned than the endogenous cartel one because many of the cross products xi jxi l(jbeing a unit of a certain GenCo and lbeing a hydro unit of a different GenCo), which may bring about non convexity, now become linear terms xi jb xi lwhere b xi ltakes a constant value. The medium-term planning is a constrained game because there are constraints that link the generation of several players. Many of the LMCs and the load balance equation, which includes the external energy, link the generations of different players, e.g., the load balance equations (15c), which could be recast as: K X k=1X j∈Ωi k xi k+xi 0=b ei As the mLMH (see §3.2.2and §3.6) is a successive optimization procedure adding more LMCs, one may as well change its objective function as required by the NIRA procedure in order to find the equilibrium solution. This can be done by introducing some changes in the mLMH procedure as described in [56]. 2.9 stochastic parameters in medium-term planning and stochastic programming Some of the parameters used in the medium-term model are stochastic. As an example, we have the water inflows wi hin hydro basin h, for which as a first approximation one can use its expected value. However, the stochastic programming [9] recommends the use of a scenario tree where every uncertainty at each period is represented and has an associated probability. The optimization over the scenario tree provides a solution for every scenario taking into account the non-anticipativity principle (one variable in a node cannot use information of nodes that correspond to future periods). Regarding the uncertainty of the load and the stochasticity of the unit outages, there is no need to create scenarios for the unit failures and for the load variation, whenever the probabilistic matching (see §2.2.1) is used. 29
2.9.1 Scenario Tree: characteristics and notation A scenario tree is a discrete representation of the possible states that our random parameters could take at each period iover the time horizon. Therefore, a tree is a subset of nodes Nthat are linked together in a hierarchical way. The main characteristics of a node νare •Random parameters take predetermined values at each node, which results in specific values of the variables xν jthat correspond to that node. •It belongs to a certain time period, i(ν). •It has a specific probability, πν. •It has a single predecessor (or father) node, ν−. Summarizing, one scenario tree consists of a set of nodes Nconnected to each other. Each node ν∈Nhas an associated time period i(ν), one predecessor node ν−and represents the probability of realization of that period. Each node also has a probability πνand it holds that: X ∀ν|i(ν)=ei πν=1ei=1,2, ..., ni We define L:= {ν∈N|i(ν) = ni}as the set of leaves (nodes at final period) and A(⩾) := {1, ..., λ−,λ}as the path from the root node to the node λwhich is the scenario λwith the same probability as the node λ,πλ. For more information, see [36]. In our study, the root node represents the present (normally it will be of a length of one week). At each period, we will have optimistic realizations, normal realizations and pessimistic ones, thus all possibilities will be taken into account. The scenario tree will be created using a mixture of a multidimensional vector auto regressive model and Quasi- Monte Carlo methods. 2.9.2 The Vector Auto-Regressive model Vector Auto-Regressive (VAR) models are usually used for multivariate time series. Its essence is a system of equations, with as many equations as series to analyze or predict. But in which there is no distinction between endogenous and exogenous variables. Thus, each variable is explained by past lags of itself (like an Auto-Regressive model) and past 30
lags of other variables. We assume that renewable generations follow a nDdimensional modified VAR model of type: Xi+1=κi+1(Xi+1−Xi) + Xi+ξ, (26) where Xi+1is the stochastic variable vector at period i+1,κi+1is the diagonal matrix of the mean reverting coefficients, Xi+1is the vector of the historical mean series and ξis a normal vector with zero mean and covariance matrix Σ, i.e., ξ∼N(0,Σ). 2.9.3 The Quasi-Monte Carlo technique for creating a scenario tree There are many options that could be used for the scenario generation such as Monte Carlo (MC) sampling, optimal quantization of probability distributions, quadrature rules based on sparse grids or Quasi-Monte Carlo (QMC) methods. MC methods are normally used for generating uniformly distributed random variables and for transforming these variables to other distributions. Apseudorandom number generator produces a finite sequence of numbers u1,u2, ..., usin the [0,1]interval. A linear congruential generator is a recurrence of the following form: gs+1=agsmod q(27a) us+1=gs+1/q . (27b) Here, the multiplier aand the modulus qare integer constants that determine the values generated, given an initial value g0. This initial value, called seed, normally is defined by the user and must be an integer between 1and m−1. Due to its simplicity, this type of generator is the most used in practice. Quasi-Monte Carlo or low-discrepancy methods are alternatives to MC methods (see [61,78]). They seek to increase accuracy specifically by generating points that are too evenly distributed to be random. These methods have the potential to accelerate convergence from the O(1/√n)rate associated with MC to nearly O(1/n)convergence. Niederreiter [62] provides a thorough treatment of the theory. The problem now is to approximate the integral of a function fas the average of the function evaluated at a set t1, ..., tNof points. Z[0,1]nD f(u)du ≃1 nD nD X i=1 f(ti). (28) 31
In a MC method, the set t1, ..., tnDis a subsequence of pseudorandom numbers obtained as in (27). In a QMC method, the set is a subsequence of a low-discrepancy sequence (or quasi-random sequences). These sequences are used to generate representative samples from the probability distributions simulated in these problems. Alow-discrepancy sequence is one with the property that for all values of nD, its subsequence t1, ..., tnDhas a low discrepancy. The discrepancy will be low if the proportion of points in the subsequence falling into an arbitrary set is close to proportional to the measure (intuitively interpreted as its size) of that set. An example of a low-discrepancy sequence is the following one: Qn,nD(f) = 1 n n−1 X k=0 f{kτ n+∆}, (29) where τ∈ZnD,{τ}means component-wise the fractional part of y, and the ’shift’ ∆is a uniformly distributed random variable in [0,1)nD. This sequence is a quadrature rule invented for the integration of periodic functions over the nD-dimensional cube. A quadrature rule is an approximation of the definite integral of a function, usually stated as a weighted sum of function values at specified points within the domain. (see [44,77]) Let’s now consider a stochastic program of the following form min{ZΞ Υ(ξ,x)P(dξ) : x∈X}, (30) where X⊆IRmis a constraint set, Pa probability distribution on Ξ⊆IRnD, and f=Υ(˚u, x) is a decision-dependent integrand. The idea of QMC methods is to replace those random samples in MC methods by deterministic points that are uniformly distributed in [0,1]nD. Having nitime periods and m stochastic variables, which are the natural water inflows, and WP and SPV generations, the total dimension will be nD=m×ni. The main steps of the QMC procedure in order to generate nscenarios are: •Determine QMC points by a component-by-component algorithm (see Nuyens and Cools [64] and Kuo [43]): ηj∈[0,1]nD,j=1,...,nwith probability 1 n, where {ηj}n j=1 approximates the uniform distribution. In order to determine the QMC points, an algorithm is used that in each step minimizes the worst-case error for increasing dimensions while keeping all previous zjfixed. In order to obtain these QMC points in this thesis, it has been used the implementation of the CBC algorithm, CBCpoly, made by Neder [60]. 32
Algorithm 1Component-by-component (CBC) for s=1→smax do for all zs∈Zndo e2 s(zs)=−1+1 n n−1 P k=0 s Q j=11+γjωkzj n end for zs=arg min z∈Zn e2 s(z) end for •Most simulation entails sampling random variables from distributions other than the uniform. A typical simulation uses methods for transforming samples from the uniform distribution to samples from other distributions. The method employed in this thesis is the Inverse Transform Method (see Marsaglia [52]). Generate nrealizations ζj i,i=1, .., n,j=1, .., nDof nDindependent N(0,1) random variables using the inverse transform method with the QMC points ηjobtained before. This transform method computes the random number ζjsuch that F(ζj) = ηj. •Compute the Cholesky decomposition of the covariance matrix Σ=LLT(LTbeing the transposed Lmatrix and La lower triangular matrix of dimension nD×nD •Compute the nrealizations ξj=Lζj+r,j=1, .., nof the original N(r,Σ)random vector. Since in this model the value of the mean is r=0, the formula to use is ξj=Lζj,j=1, .., n. Finally, the stages to generate a scenario tree are: 1. Generate nscenarios ξj,j=1,...,nby quasi-Monte Carlo techniques with probability 1 n, without tree structure, where nis taken to be a prime number that will represent the number of scenarios prior to reduction. 2. Generation of a scenario tree out of the nscenarios: a fan of data scenarios is created using the nrealizations obtained with quasi-Monte Carlo procedures and using the stochastic model described before in §2.9.2 Xi+1(ν) = κi+1(Xi+1−Xi) + Xi+ξ(ν),∀ν∈N 2.9.4 The reduction to a scenario tree of a given size The generated scenario tree must be reduced because it is a dense tree and may be too big to be used in stochastic programming formulations. The software Scenred (Heitsch and W. Römisch [32]), which uses an algorithm that deletes some of the nodes and redistributes their probability among the remaining ones using the Fortet-Mourier probability metric (see Dupa˘cová et al. [22] and Heitsch and Römisch [31]) has been employed in this work. 33
Possible outcomes from the optimization of an indefinite problem are: •Optimal solution (the normal solution within tolerances) •Acceptable solution (a solution within slightly relaxed tolerances) •Restoration phase failure (a solution with acceptable primal and dual feasibilities that does not satisfy optimality conditions due to near singularity of the objective function Hessian) •Iteration limit exceeded (no convergence within iteration limit; default limit 3000 iterations) •Infeasibility or other anomalous solution (no feasible point reached). 40
3T H E STAT E O F T H E A R T I N MEDIUM-TERM GENERATION PLANNING In this chapter the most relevant treatments that have been proposed for solving mediumterm generation planning problems are discussed. 3.1 features of the medium-term generation planning of a genco in a liberalized market The main features of the medium-term generation planning of a GenCo in a liberalized electricity market are: •The stochasticity in the load, in the outages of generation units of different types, in the availability of the dispatchable and of the non-dispatchable energy sources, such as hydro generation, WP and SPV, and in the market price. •The matching of the system load by all participants in the market. •The satisfaction of other medium-term constraints such as emission caps over time, fuel availabilities. •The consideration of pumping schemes. •The influence on market price of the generation by different GenCos and the consideration of different market behaviors. •The profit distribution and the measures of the risk of profit loss. The available papers on medium-term generation planning will be appraised regarding the features mentioned. 3.1.1 Consideration of Load Matching Taking into account the matching of the load, Balériaux et al. [3] proposed a method for computing the expected generation of each unit given a loading order and taking into account the capacity and the outage probability of the units for matching an LDC using 41
convolutions. Note that in [3] the uncertainty in the load is considered by using the LDC to represent it, and the stochastic unit outages are considered through the outage probability of each unit; and the exact probabilistic match of the expected unit generation and the expected load is obtained. Bloom and Gallant [11] proposed a linear programming model of the probabilistic LDC matching of [3], satisfying other linear operational constraints, while a linear cost function was optimized. The variables employed were the expected unit energies xj,j=1,...,nu generated, where nuis the number of units. The LDC matching is expressed through linear inequality constraints (11b), their number being the exponential 2nu−1. Using the Bloom and Gallant formulation there are a number of procedures to consider, for example, column generation methods and the active set method. Examples of Column Generation Methods are the Ford-Fulkerson [27] and Dazing-Wolfe methods [19]. In Pérez-Ruiz and Conejo [71] it can be found an example of using a column-generation method in medium-term planning with the Bloom and Gallant formulation [11]. These methods work by splitting the problem into two problems: the master problem and the subproblem. The subproblem is solved to obtain a new variable (a vertex of the polyhedron of feasible points) and then it is necessary to solve the master problem to obtain the best convex combination of the generated vertices. Algorithms that implement the active set method consider a subset of the set of all constraints. As the optimization proceeds, these methods remove constraints from this set and add new ones. The method also requires an initial feasible point satisfying all constraints, a procedure to find this initial feasible point is given in Nabona et al. [58]. The Bloom and Gallant formulation has been extended to multi-period planning problems in liberalized electricity markets by [59] using either the Dantzig-Wolfe [19,71], the Ford-Fulkerson [27] column generation method or the active set method (see Nabona et al. [58]). They use an exogenous price function of load duration. In [67,68,81,84,51,50], the LDC is exactly matched through the Bloom and Gallant’s formulation and a heuristic is employed to avoid having to generate an exponential number of LMCs. There is an alternative way to represent the LDC that will be called here the multi-block model of load matching. It consists in approximating the LDC with a number of rectangular blocks (normally two to five blocks) of constant power and a given duration as it can be shown in Reneses et al. [72], in which case the number of variables is increased but the numbers of constraints that is needed to represent the matching of the LMC is considerably reduced. In the literature it can be found under different names, see Cabero et al. [12] and Escudero et al. [24]. Generation satisfies load merely by using a load balance equation with slack energy that is penalized in the objective function, and no LDC-matching constraints are taken into account. Uncertainties in load and unit outages are simulated through the 42
use of a number of scenarios. In [7,21] load is also considered through blocks. In [56] a six-block representation with a decreasing height (as is the load in the LDC) is employed. A new variable is needed in order to match the block loads of a period LDC. It is the power produced by each unit for matching each specific block in each period. In addition, a set of constraints to prevent the expected unit energies from exceeding its maximum value is needed. In that study there was a comparison between using the multi-block model, the load-matching heuristic (see §3.2) and the modified load-matching heuristic (§3.2.2). Computational cases showed that although using multi-block the problem was much easier to implement, the method lost accuracy in the results. In Park et al. [70] annual loads are known, the authors use peak load and base load and a simple energy balance constraint for successive years. In [53] there is an hourly load matching and in [75] the load is forecasted and load scenarios are developed. In [4,5] the load is matched for periods and subperiods. In [91] the load-survival function after loading units in merit order is computed using the approximation of cumulants method. 3.1.2 Consideration of a market-price function, of price elasticity, of a conjectural supply function and of market behavior Regarding on how to model the electricity market-price in liberalized electricity markets, it is possible to consider, on the one hand, that market-prices can be predicted for every single period, in which case the optimization of the profits of a GenCo can be made without taking into account the rest of GenCos (this is the case of price-takers) and on the other hand, market-prices cannot be predetermined and all GenCos must be taken into account. Eichhorn et al. [23] is an example of the first case, where authors formulate a stochastic programming model that takes into account the fact that the uncertainty factors (modeled as multivariate ARMA) and the decision variables have different time scales. In Liu and Wu [47], the authors address the analysis of the market by formulating it as an optimal control problem, which simulates the operation of the market. In there, electricity demand, which has some price elasticity, can be modeled by some convex function of electricity price. The authors propose a procedure for finding short-term bidding strategies that are based on an analysis of the market in the long-term. Its main result is a prediction of the market-price. In Centeno et al. [14] a stochastic approach when modeling a medium-term planning model is presented with inelastic demand and system’s marginal clearing price for each period and branch is obtained from the Lagrange multiplier of the constraint. Here, both the electricity market and a number of important decisions that companies must make (such as hydro resources allocation, fuel purchases, emissions allowance, and bilateral contracts) are included. In [4] marginal price is directly obtained from the results of the optimization 43
problem. Both [75,76] use a prediction of market prices at each considered period. Authors in [95] obtain an estimate of the hourly market-clearing price by cutting the total strategic supply-bid function with the power of the corresponding block. [91] presents a procedure for determining the price-duration curve for a sample day in a future period in an oligopolistic energy market under the Bertrand model of perfect competition and under a supply function equilibrium model where the competing firms are identical and the load has zero elasticity. They determine the electricity-price duration curve for a future period in the same way as is determined the LDC. In [37,15] the hourly market price of the entire medium-term horizon are previously determined by a forecast. While in [12,10] the authors consider the price as an uncertain parameter and it is taken into account via a scenario tree. In [55] Markov chains are used considering the set of scenarios modeled as a Markov model. In this case historical data is available and some statistical techniques are used in order to model, estimate or forecast market prices. There are procedures based on the simulation of a market-clearing algorithm, but most of them are for describing systems in the short-term. As an example, there is Villar and Rudnick [93] and Otero-Novas et al. [66] where these methodologies are applied to many successive hourly bids with the consideration of generation and demand uncertainty. The demand model covers a day, divided into chronological hourly blocks. It is an inelastic demand (it does not respond to price). In [7] a supply-bid function is employed for an hourly interval for an SGC in an oligopolistic market. A total strategic supply-bid function is obtained by aggregating each supply-bid function of each GenCo participating in the market. An estimate of the hourly market-clearing price is obtained and the estimates of the market-prices of the successive blocks of the LDC produce a market-price duration curve for each period. In the case of sufficient information on the GenCos forming the pool and on the market auction (as there is in the MIBEL [89]), it is possible to set up price models using estimated market price functions that express the change in price level with the generation duration, as in the abscissas of the LDC of each period, see [59,68]. In [68] the authors present a heuristic which defines a small subset of the LMCs likely to contain all the active LMCs at the optimizer. In addition, in [51,56,67,50] is presented a pure pool model where the price function employed is linear and endogenous, as it depends on the hydro generation level. In [84] two market-price functions are used: the first is endogenous with respect to the hydro generation and with respect to other generation technologies; the second market-price function is endogenous with respect to the generation level of different GenCos, as it also is in [14]. If we take into account the oligopoly-based models, where market price is an endogenous variable, so many equilibrium models have been proposed for modeling medium-term 44
planning. The most popular equilibrium model is the Nash-Cournot equilibrium. The Cournot oligopoly model assumes that the participants compete in quantities. Another model is the Bertrand one. It is a pure competition because this model assumes that the participants compete in price. In [92] the Cournot model for predicting price duration functions is presented. They have developed analytical models and procedures based on generation system and load data for probabilistically representing two different market competition models, one that is based on perfect competition and another one is based on asymmetric oligopoly. In [39] the market price is defined through an inverse demand function. In Day et al. [20] an extensive survey on possible participant strategies and the resulting equilibrium of the models are proposed. As pure Cournot equilibrium models tend to provide higher prices than those observed in reality, the authors introduced the concept of conjectured variations, which aims to represent the fact that rivals do react to high prices by producing more. In [4] and in [72] the market equilibrium is presented by means of a conjectural variation that relies on the modeling of the companies’ strategic variables adjustment. They first formulate the equations of an equilibrium point and then use a minimization problem as an equivalent formulation. The market equilibrium is solved with stochastic programming techniques. In [4] under some assumptions, the solution of the market equilibrium conditions is equivalent to the solution of a minimization problem with a structure that strongly resembles classical optimization of hydro-thermal coordination. In [5,14] there is the extension of these models taking into account the uncertainties about the inflows and the demand. In [5] the market equilibrium is represented by means of a conjectural variation, where each GenCo bids are a linear function of the price and it is solved with stochastic programming techniques. The uncertainties considered are hydro inflows, fuel prices, system demand, generating units’ failures and competence behavior. Pumped-hydro units are included in the model. In [14] the results are analyzed based on a conjectured-price-response market equilibrium representation in the Spanish electricity market. A pumped-hydro unit is considered. In [29,41] there are supply function equilibrium methods that have been applied in shortterm. Authors in [73] presented a decomposition approach where a dual stochastic program mixed with a Cournot model is proposed for medium-term hydro generation policies. [73] is one of the first works on modeling hydro operation in deregulated markets using Dynamic Programming. The equilibria in power planning can be calculated with so many algorithms: the explicit use of complementary conditions, some simulation methods and, as in the Nikaido-Isoda Relaxation Algorithm (NIRA, [63]), the numerical derivation of the agents’ response function. As an example of the first algorithm, there is the direct exploitation of complemen- 45
tary conditions presented in Hobbs [33] which leads to mixed complementary problems. In these models most functions are linear or quadratic and constraints are linear. They simulate bilateral markets. This method depends on the existence of a solution to a system of equations and inequalities, which result from mixed complementarity conditions. Contreras et al. [18] were the first to apply the NIRA algorithm into the short-term electricity market modeling. In [56] the NIRA algorithm is used in order to find the equilibrium solution. In Tesser et al. [84] a heuristic to avoid having to use an exponential number of LMCs is used and the consideration of exogenous stochastic factors is included. An endogenous price function of load duration is used as input of an oligopoly problem solved using NIRA. Finally, in [40,24] there is no market, the authors only consider the minimum cost problem. 3.1.3 The consideration of non-LMCs Regarding the existence of non-LMCs in the optimization problem, [4,5] include constraints related to hydro generation, where the final level for each hydro unit is taken into account and there is an energy balance constraint for each period considered and for each hydro unit, they also include the performance of pumping for hydro unit. In [10] there are single-unit constraints for thermal plants and balance equations for reservoirs. In [70] is presented a pumped storage hydro plant and a reservoir capacity of pumpedstorage generators constraint is introduced. They also consider emission limit constraints for CO2,SOxand NOx. The authors in [12] use take-or-pay contracts constraints for each gas unit and for each time period and, as they employ hydro generation, there is a constraint regarding the water reservoir management that limits the amount of water that is stored in the reservoir. Hydro systems constraints over different time periods and environmental constraints intra-periods are considered in [71]. Although in [24] there is no market consideration, authors have fuel procurement, fuel consumption and fuel stock restrictions, and some constraints related to water flow balancing and hydro generation. In [76] it is also considered the water balance reservoir. In [84,81] the authors use other constraints such as those that include the minimum annual generation time for capacity payments in the MIBEL, time-dependent upper bounds on the generation of "special regime" pseudo-units (e.g. renewable sources) based on historical records, and the possibility of considering take-or-pay gas contracts for fuel-gas units. In [59,56,67,68,51,50] the expected hydro generation in several basins is included, a limit on the availability of some fuel types is considered, and there is a constraint on the minimum generation time over a period by certain units and special-regime minimum generation limits. Furthermore, in [51,50] pumping balance constraints are also considered. 46
3.1.4 Consideration of stochasticity, of risk, of Bilateral Contracts and of Renewable energies There are different methodologies related to the scenario tree generation for multi-period processes. As an example, there is the bootstrapping where resampling and statistical estimation are used to predict the behavior of systems or processes and, thus, to represent scenarios. In the literature, there are several examples using this methodology, however, most of them are dedicated to economics, for example see [1,54]. In addition, in [79] the authors propose a model to generate natural inflow energy scenarios in long-term operation planning using Periodic Autoregressive Models estimated via Bootstrap. Another technique is the use of some sophisticated statistical models plus the use of discretization methods. Given the statistical model of the uncertainties, a scenario tree can be generated by different approaches: random sampling, adjusted random sampling, moment matching, etc. Høyland and Wallace [35] is an example of deterministic moment matching. They solve a non-linear optimization model where the decision variables are the returns and the probabilities of the event tree while the constraints and the objective function enforce the desired statistical properties: the distance between the moments of the stochastic process to be approximated and the moments of the approximating event tree are minimized, and the scenario tree is directly generated with the desired number of nodes. As an example of random sampling we have Kouwenberg [42] where a method is suggested to simplify the tree fitting problem by applying it recursively at each stage. The author also compares moment matching, random sampling and adjusted sampling. Li-Yong et al. [46] present a survey of each method. Heitsch and Römisch [30] and Dupa˘cová et al. [22] proposed other methodologies based on a scenario reduction heuristic that generate decision-stable event trees. They start from a dense event tree and they present a backward and a forward algorithm that produces a reduced event tree characterized by a probability space close to the original one (under a given probability metric). In Tesser [81] it is developed a technique to generate event trees: starting from a VAR model, a dense event tree is generated by a mixture of random sampling and tree fitting. Then this tree is reduced to the desired size by using the scenario reduction proposed in [30]. Monte Carlo discretization (see Glasserman [28]) is used in order to generate the realizations of the random variables. Regarding the risk of profit losses, many studies have been published. In [12] a three-step procedure is presented for solving a formulation of the risk-management problem. Some scenarios are defined for fuel prices, water inflows and demand. The risk is measured with the CVaR. The basic formulation through the CVaR of limiting the risk of profit losses of the market participants can be found in [83], where an application to a realistic MTGP equilibrium problem is also presented. Further developments to contemplate multi-period risk measures (in order to adopt decisions in each period as new information arrives) is 47
described and demonstrated in [81]. Forward contracts and Bilateral Contracts become a tool to hedge against price volatility in the medium term, due to uncertain hydro inflows and market prices. A medium-term energy procurement model for a consumer with self-production and access to BCs can be found in [15] where the authors propose a mixed-integer linear programming model, and for a large consumer with access to several types of BCs with known tariffs and bounds in [13]. The authors minimize the expected value of the procurement cost while limiting its risk by including risk aversion through the CVaR methodology. In [39] it is assumed that a Nash-Cournot equilibrium with an inelastic demand is reached in hydrothermal systems by the players. Bilateral Contracts are used for reducing market power. In [38,95] risk-benefit functions are defined and an iterative negotiation is proposed before the agreement on a BC is sealed. They propose a practical process in which the bargainers take both benefits and risks into account. The authors claim that their process will lead to agreement on a mutually beneficial and risk-tolerable forward bilateral contract. In [49] a multi-agent negotiation scheme is proposed to analyze the behavior of a bilateral market. In [76] a mixed model is proposed that optimizes both the water allocation resources and the forward contracts for a small producer that owns only hydro generation. A riskaverse decision maker would be willing to accept a solution with a lower expected revenue. Here the probability of different scenarios is considered and a scenario tree is constructed. In this formulation, favorable decisions are rewarded and unfavorable ones are punished. Uncertainties are considered, such as water inflows or market price, which is exogenous to the company’s generation. They are represented through scenarios. Bjørkvoll et al. [10] present an approach for generation planning and risk management as two-phase decisions. The SGC is considered a price-taker company. The model is decomposed by units, without any constraint that relates their generation, so the model can be optimized independently for each unit. In it, the risk is considered by introducing the bilateral contracts markets and the future ones. Attention has also been given to pumping together with BCs, as both divert generation resources from satisfying the auctioned load. There are works on the short-term operation of pumped storage units in electricity markets selling its generation and buying energy for pumping based on a previously determined market-price hourly forecast, for a week in [48], and for a day and establishing a BC price in [37]. Renewable sources is an active area of research due to the fact that there are many published studies that are concerned with the impacts of N-DRs generation in electricity planning, for example [86,74,6,53]. However, most of them deal with short-term applications. In [6] integration of WP has impacts on the resulting prices at the electricity market. During hours with high wind power, electricity prices decrease. When WP can cover all the demand, prices are zero. In [74] a new methodology to analyze the operation planning 48
with an emphasis on keeping reserves is presented. Some examples of medium or long-term analysis are [70] where WP and solar cells are considered as renewable sources. Another example is [21] where the LDC of a future year is modified while wind is used. It combines analysis of generation economics, load and wind-generation characteristics. In [40] is described the process to calculate the benefit of the integration of WP plants in a power system: the effect of WP is deducted from the LDC and then the remaining LDC is matched with the other generation units. In [85] convolution techniques are employed to assess the future performance of a grid-linked hybrid system of WP and SPV. Meibom et al. [53] describe a method to study the operational impacts of WP penetrations in Ireland’s power system. They solve a stochastic mixed integer linear optimization scheduling model with a succession of several short-term problems. This approach does not consider any non-LMC constraints and uses a 3-day rolling-horizon over a year employing short-term procedures. Forced outages of power plants are considered through time series of mean time to failure and mean time to repair. 3.2 the load-matching heuristic Efficient procedures to account for the LMCs using a direct solution method (as a quadratic programming solver) in the solution of the medium-term planning (18) entails having to generate and to handle all the LMCs (18b), which is not efficient given the very large number of these linear inequality constraints. However, through the unit loading order principles (see §2.3.1) it is known that only a reduced subset of, at most nuLMCs, will be active at the optimizer for each LDC to be matched. The load-matching heuristic (LMH) presented in [68] is a means of avoiding having to create and employ an exponential number of (linear inequality) LMCs in medium-term planning optimizations. Its objective is to determine a subset of LMCs that contain all LMCs active (satisfied as equalities) at the optimizer. The heuristic is a succession of optimizations employing a very reduced subset of LMCs, which is enlarged after each optimization with some more LMCs selected taking into account the last optimal results. The optimizations referred to before is the medium-term generation planning model (15) except in the LMCs (15b). It is based on the fact that each solution corresponds to a loading order, and the loading order can be univocally represented by a subset of nested LMCs. 49
3.6 the nira algorithm within the modified load-matching heuristic As explained in §2.8the NIRA procedure is a successive maximization of max xj,y K X k=1 φk(xk|b x) subject to LMCs, non-LMCs and bounds, and an update of the fixed values b x. As the LMH and the mLMH are a successive optimization procedure adding more LMCs, in order to find the equilibrium solution it is necessary to change the objective function. In Nabona [56] there is described a way to introduce some changes in the mLMH procedure in order to take into account the modifications required by the NIRA procedure. The mLMH must have the changes listed below: •At the end of first step (the initialization part), it is necessary to solve the endogenous cartel instead of solving the cartel one. •At the end of the self-ordering part, again it is necessary to solve the endogenous cartel instead of solving the cartel problem. Additionally it is necessary to store in an auxiliary variable the value of the hydro generation of the SGC b xHSGC =X l∈HSGC xland the value of the hydro generation corresponding to the RoP b xHRoP =X l∈HRoP xl. •At the end of the low-load unit ordering using sets UN7and UN9, set the NIRA coefficient u:0<u⩽1(e.g. u=0.4). Resolve the equilibrium problem and update the former hydro solution b xHSGC := u×xHSGC + (1−u)×b xHSGC ,b xHRoP := u×xHRoP + (1−u)×b xHRoP and set the number of NIRA iterations at 1iteNIRA := 1. •In each loop of the step-by-step order, it is necessary to solve the equilibrium problem instead of solving the cartel problem and update b xHSGC ,b xHRoP as in the previous item in this list and iteNIRA := iteNIRA +1. •Finally, it is necessary an extra loop for completion of NIRA iterations. If the number of NIRA iterations is less than 15 then the equilibrium problem has to be solved and b xHSGC ,b xHRoP and iteNIRA must be updated. 3.7 convergence strategies of the nira algorithm Due to the fact that the objective function is indefinite, it is possible that NIRA algorithm does not converge to an equilibrium point. In order to accelerate the convergence in the al- 56
gorithm some procedures have been proposed such as a dynamic adaptation of step length u. This adaptation should be included in the algorithm. The structure of the NIRA procedure with dynamic adaptation of step length uis: •b x←x0,Ψold ←+∞,u←0.7,b u←0.01 •repeat until Ψ∗⩽ obtain Z(b x) = x∗by solving max x∈XΨ(b x,x) compute Ψ∗=Ψ(b x,Z(b x)) = K X k=1φk(x∗ k|b x) − φk(b x) ∆Ψ ←Ψ∗−Ψold ,Ψold ←Ψ∗ if ∆Ψ ⩽0 then (we are approximating the solution) b x←uZ(b x) + (1−u)b x if u⩽0.5then u←1.01u else (we are moving away from the solution) b x←uZ(b x) + (1−u)b x u←0.9u 57
4THE GENERATION OF AN EVENT TREE FOR THE RENEWABLE ENERGY SOURCES 4.1 introduction Renewable sources are an important aspect of sustainability because the energy that they produce is naturally refilled or regenerated. The most frequently used sources are watercourses, wind and solar power, and biomass. These types of generations are also called green energy as they are non-polluting, i.e. the emissions from the electricity generation, if any, do not affect the environment. Their importance is currently growing due to their null greenhouse effect, which mean no global warming, and due to the greater international awareness and concern about the problem. The dispatchable generation refers to electricity sources that can be turned on or off at the request of the power system operator. We can establish a classification within this type of generation depending on whether these energies are dispatchable or not. As an example of dispatchable renewable sources (DR), we have the hydro generation. The natural water inflows are stored in a reservoir and the electricity comes from the potential energy of stored water driving a water turbine and generator. Non-dispatchable renewable resources (N-DR) are, for example, wind and solar photovoltaic generation. While we can regulate hydroelectric generation by discharging more or less, or no water, wind and solar photovoltaic generation cannot be regulated. If there is sunlight, the solar cells will generate electricity without the possibility to turn them off (the same happens in the wind farms). In recent years, non-dispatchable renewable resources have had an increasing penetration in the MIBEL (in 2013, N-DR resources covered the 26% of the electricity demand in Spain) so other technologies have had to reduce its generation share. Specific models to represent the N-DR sources along with the classical dispatchable sources must be developed and tested. The specific models proposed in this thesis should: •use Stochastic Programming (see §2.9), [51], and •employ the probabilistic method of load matching for generating units described in §2.1.2[3,11,51]. 59
4.2 characterization of the renewable generation 4.2.1 Stochastic formulation of Hydro Generation Hydro generation is one of the most favored means of electricity production, because water is free. However, water inflows are uncertain and the use of stored water can be restricted. Besides being uncertain, water inflows (in Spain) show a similar pattern through the year as it can be seen in Figure 14. Scenarios will be developed for water inflows wν h(see (34) in §3.3) and then will be introduced into the stochastic model as it can be seen in §2.9.3. Figure 14: Available Monthly Hydro Generation (GWh) in Spain between 1920 and 2012 4.2.2 Stochastic formulation of Wind Power Generation The Wind Power (WP) generation is obtained by the effect of air currents. It is an abundant, renewable and clean resource and that contributes in the reduction of harmful emissions, and does not produce any type of pollution. However, its biggest drawback is its intermittency, which makes it difficult to predict its generation. In previous studies [67,68,84], WP is included inside a special regime unit when formulating the model. The generation within this special regime unit has a specific treatment in the Spanish power pool as all its power production is accepted in each hourly auction. 60
168 h 0 5000 10000 15000 period 1 Wind−power Generation (MW) 576 h 0 5000 10000 15000 period 2 1440 h 0 5000 10000 15000 period 3 2208 h 0 5000 10000 15000 period 4 2208 h 0 5000 10000 15000 period 5 2160 h 0 5000 10000 15000 period 6 Figure 15: Hourly WP generation in Spain split into 6successive periods of different length from October 2012 to October 2013 In Figure 15, there is the WP generation in Spain from October 2012 to October 2013. In each period, it can be seen that there is some variability and it is difficult to see any pattern. Due to the variability of WP, we propose a more realistic approach when incorporating WP: WP generation is considered as a zero-cost pseudo-unit whose capacity varies at each period; furthermore, the failure probability associated with the unit is modeled using concepts unique to WP generation. The analysis of WP data can be shown in Figure 16. The left graphic depicts the evolution of WP generation over March 2012 in Spain. In order to adapt it to the medium-term planning procedures, we have split it into three segments as in the figure. The lower segment corresponds to a generation capacity that leaves out a 15% of the energy, which would be equivalent to a failure probability of 15%; we will call it the base WP unit. The upper part contains WP spikes that only amount to 1.5% of the total WP energy, and this generation will be ignored. The middle segment has the capacity from the top of the lower segment to where the third segment starts; its corresponding failure probability is high (66% for this month). This middle segment will be referred to as the crest WP unit. The use of the base and the crest unit described above is a compromise between model accuracy and computational efficiency. In this regard, using a single unit would be inaccurate on two counts: because a single failure probability of about 40% would not adequately represent the 65% failure rate of the crest section nor the 15% base section, and because the profit calculation of WP through the approximation as a rectangle of width xW/cW(14), with cW=cWbs +cWcr, where subindex Wrefers to the single WP unit, of the WP energy area in the generation duration curve is less accurate than the approximation as a rectangle of width xWbs/cWbs plus another one of width xWcr/cWcr, especially if the rectangles correspond to units with wide different failure probabilities. Discarding the 1.5% energy spikes is a loss of accuracy compensated by a gain of accuracy due to a much lower cWcr, 61
Figure 16: Hourly WP generation during March 2012 in Spain (left) and capacity and failure probability of equivalent units (right) and a lower qWcr. Using two (or more) units for representing WP incurs in the error of not considering that the 15% unavailability hours of the base unit are always a part of the 65% unavailability of the crest unit (see Figure 16, left), while the assumption of the probabilistic technique is that the failures of units are independent events. This error is less important than the failure probability mismatch associated to modeling WP with a single unit. Figure 17 illustrates how using the base and the crest WP units fits much better the LDC that results from deducting the WP generation than when using a single WP unit with equivalent parameters cW=cWbs +cWcr and qW=1−cWbs(1−qWbs) + cWcr(1−qWcr) cW . The convolutions (2), scaled with the duration T=744 h (of March), have been used with March 2012 MIBEL LDC and WP base and crest capacities 4117 MW and 5131 MW, and failure rates 15% and 70% respectively of Figure 16, to produce the resulting modified LDCs when having loaded the base and crest units or the single equivalent unit shown in Figure 17 (right). Even though the case with the single equivalent WP unit is error free from the viewpoint of the independence of the unit failures, the fit of the base plus crest units is much closer to the real LDC minus reordered WP (approximated by a seventh degree polynomial in Figure 17) than the one with the single WP unit. On the other hand, the larger the number of units, the larger the problem is and the longer it takes to solve (see §5.5). Using two units instead of a single one to represent WP means a larger problem. The use of three units to represent WP would still be more accurate but the marginal increase in accuracy may not compensate the increase in the use of computational resources for scenario generation and problem solving. 62
Figure 17: MIBEL’s March 2012 LDC –dotted– and thick blue polynomially approximated LDC minus WP (left), and LDCs after having loaded base and crest WP units –continuous–, or the single equivalent WP unit –dashed–, together with LDC minus WP polynomial (right) It is important to remark the effect that a unit such as the crest WP has on the generation of the rest, given the high failure probability of the crest WP unit (its high unavailability). To appreciate it we consider that the probabilistic matching of an LDC is independent of the order in which the generation units are loaded, but the expected generation of each unit does depend on the order of loading. Cost-free (N-DR) WP units will be loaded first and the rest of units would have to match the remaining load still to be matched. We could thus compare the load-survival function after loading (using (2)) the crest WP (with high qWcr) and compare it with the loading of an energy-equivalent unit (with lower capacity cee and lower failure probability qee, such that cWcr(1−qWcr) = cee(1−qee). Figure 18 shows the difference on the load-survival function of a simple polygonal LDC. The expected generations of the rest of units for matching either the left load-survival function of the bottom of Figure 18 or the right one are going to have a significantly lower generation duration than those in the bottom-left figure for most of the units. 4.2.3 Stochastic formulation of Solar Photovoltaic Generation The Solar Photovoltaic (SPV) generation is created by the conversion of sunlight into electricity using solar panels. As WP generation, SPV is a renewable and clean resource but it 63
S0S0 xj /T xl clq = 0.6 l Sl /T 1 1 Sj q = 0.1 j 1 1 j c MW MW MW MW Figure 18: Simple load-survival function after loading of normal energy-equivalent unit (left) and after loading of crest WP unit (right) is not as abundant as WP in the MIBEL due to government regulations that have led to a much lower installed capacity of SPV. In Figure 19 is represented the overlaid daily SPV generation for each month over 2009 and 2010. For each period the distribution of the SPV hourly generation has a bell-shape, where in the early daily hours and in the late hours there is no generation (or a small one), in the midday is when the maximum generation is possible and the rest of the time there is like a medium sun light. Considering these characteristics entails having to break up each time period into three subperiods: the dark subperiod, where there cannot be any SPV production, the low-light subperiod where there are the hours with only some SPV generation, and the bright subperiod with the hours of higher SPV generation. These subperiods are not chronologically consecutive, but will be treated as such with no important loss of precision in the probabilistic matching of the load. Figure 20 shows the daily SPV generation in March 2012 in Spain. The separation into three subperiods of a specific period is done with the following criteria: the daily hours with not enough light to generate go to the dark subperiod (the white area in Figure 20); with the rest of the daily hours we order them from highest to lowest average SPV generation, and we pick up the highest average generation daily hours that amount to 60% of the total SPV generation of the period to be the bright subperiod (the yellow area), and the remaining hours will be the low-light subperiod (the blue area). The bright-subperiod hourly limits 64
Figure 19: Overlaid daily SPV generations in Spain for 2009 and 2010 are also marked in the monthly periods of Figure 19. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 0 1000 2000 3000 MW h Figure 20: Overlaid daily SPV generations in Spain during March 2012, showing the subdivision of daily hours into dark, low-light, and bright subperiods Considering the plot of SPV generation during the bright subperiods only, results in a randomness similar to that of WP and the same subdivision as in WP into a base-SPV unit and a crest-SPV unit will be considered. As with WP, only scenarios with respect to the capacity of the base-SPV units will be taken into account. The crest-SPV units will have 65
Figure 23: Scenario Reduction: in the first column the hydro inflows are presented, in the second the WP generation and in the third the bright subperiod SPV generation. In the rows are represented different reductions: from top to bottom 75,59 and 21 scenarios 72
5MEDIUM-TERM PLANNING WITH DISPATCHABLE AND NON-DISPATCHABLE RENEWABLES Nowadays, the use of renewable sources has been increased significantly in order to generate electricity. Therefore, it is necessary to update previous models (see §3.1) introducing this kind of generation into them. The medium-term model proposed here uses probabilistic matching of the pool LDCs using the capacities and the failure rates of units of all GenCos participating in the market. In this chapter, it can be seen that this model employs an endogenous market-price function influenced by hydro and N-DRs, and that it represents each N-DR generation with two units: one having a normal failure rate and another with a large one. It also takes into account medium-term constraints, which relate unit generations over several periods over the year, such as those for hydro generation with regulation reservoirs, take-or-pay contracts for fuels, pumping with medium-term storage capacity, or emission caps over several months. 5.1 the endogenous cartel solution The analysis of the historical records of generations and market prices in the MIBEL [88,89] shows a clear negative correlation between hydro generation and market price. In light of the effect that hydro generation has on the average market price, a correction in the marketprice intercept biin (14) was proposed [67,84,56]. When considering N-DRs (WP and SPV) we have an influence of WP and SPV on the basic market price of the same type. Given that each node νof the scenario tree will have a given level of WP and SPV (see §4.3), we can specify the influence of hydro generation, which is dispatchable, on the market price as: bν=bν 0+d Ti(ν)X h∈H xν h, (40) 73
where bν 0is established in terms of the levels of WP and SPV in node νand a decrease factor for price level due to WP and SPV, and d < 0 is to be estimated from historical data. The new cartel profit function to be maximized, X ν∈N πνX j∈Ωbν 0−fj+d Ti(ν)X h∈H xν hxν j+li(ν) 2cjxν j2−f0xν 0, (41) where fjis the generation cost of the jth unit, xν 0is the external energy and foits price, is also quadratic, and is endogenous as price depends on the level of hydro generation of all GenCos, and bν 0includes the effect of the fixed levels of WP and SPV in the node on the basic market price. In the case of the MIBEL, with the value of the parameters estimated, the quadratic part of (41) is indefinite in some of the nodes. Therefore, the usual procedures that maximize concave problems may find only a local maximizer, though the computational results obtained do not point in this direction. WP and SPV generations have similar effect to that of hydro generation on market-price levels. Contrary to hydro generation from regulation reservoirs, WP and SPV levels cannot be controlled. Their effect on the LDC and on price levels must be taken into account but it cannot be optimized. The value of the market price for peak load bν 0in each node νof a scenario tree of WP and SPV parameters, will take into account the expected WP and SPV associated to each node, which are known, using a formula as that in (40), using an appropriate value of dfor WP and SPV, which appear to be independent events in the MIBEL. The presence or absence of a nuclear unit has an influence on market price levels. It can be easily taken into account for given maintenance schedules. Random outages of nuclear units could be taken into account within stochastic programming scenario trees, but it has not been contemplated in this thesis. As to other thermal generation technologies (coal, combined cycle, etc.), their influence on market-price level in the MIBEL is of lesser importance and they have not been taken into account in this thesis. These influences were described and used in [84]. 74
Medium-term endogenous cartel model with N-DRs max xν g j,yνX ν∈N πν X g∈Lt X j∈Ωghbν 0+d Ti(ν) gX h∈H xν g h −fjxν g j +li(ν) 2cjxν g j2i−f0xν g 0 (42a) s.t.: X j∈ω xν g j ⩽eν g−sν g(ω)∀g∈Lt, ∀ω⊆Ωg,∀ν∈N(42b) X j∈Ωg xν g j +xν g 0 =eν g∀g∈Lt, ∀ν∈N(42c) X ν∈AλX g∈Lt Cg λxν g+X ν∈Aλ Dλyν⩾rλ∀λ∈L(42d) X ν∈Aλuν h−wν h=v0 h−vλ h∀λ∈L,∀h∈H(42e) X ν∈Aλ| i(ν)⩽kuν h−wν h⩽v0 h∀k∈1,...,ni−1,∀λ,∀h∈H(42f) uν h⩾0∀ν∈N,∀h∈H(42g) xν h=uν h+γwν h∀ν∈N,∀h∈H(42h) xν g j ⩾0 j ∈Ωgyν⩾0,∀g∈Lt, ∀ν∈N. (42i) The difference between this model and the model (18) presented in §2.7is, basically, that this one takes into account the characterization of the renewable generation and this fact forces the use of three LDCs to match (that of dark, of low light, and of bright hours) within stochastic programming. The problem to be solved now is more complex and needs more effort to be solved. 5.2 the equilibrium model with dispatchable and nondispatchable renewables The stochastic formulation of the equilibrium problem with renewable and N-DRs is similar to that employed in [84], but with endogenous terms referred only to hydro generation, and using bν 0that takes into account the influence on prices of WP and SPV: 75
max xν g j,yνX ν∈N πν X g∈Lt X j∈Ωghbν 0−fjxν g j +li(ν) 2cjxν g j2 +d Ti(ν) g K X k=1X l∈Hk xν g l +X l∈Hm| m6=k ˜xν g lxν g ji−f0xν g 0 (43a) s.t.: LMCs (42b–42c)and non −LMCs (42d −42i) In the model presented the generation xν Phyd of pumped hydro should there be a pumping storage scheme is not considered as part of the hydro generation that alters the basic market price bν(40). 5.3 consideration of a pumping storage scheme in medium-term planning with n-drs When considering the pumping storage scheme with N-DRs (see §3.4) it is necessary to match three different LDCs in each period. So in this case the expected generation of the pumping storage in some node νwill be xν g Cmp, for the LDC of each load type g∈Lt : for dark, medium-light and bright hours. Considering this fact, it is also necessary to update and extend the pumping load fee described in §3.4.1to take into account these three different LDCs. Thus, cPX g∈Lt ZTi(ν) g xν g Cmp+xν g Phyd cPbν+li(ν)tdt =bνX g∈LtcPTi(ν) g−xν g Cmp −xν g Phyd+ li(ν) 2cPX g∈LtcPTi(ν) g2−xν g Cmp +xν g Phyd2, (44) where bνis as in (40). The integration limits in (44) have been taken so that the pumping load-duration segment corresponds to the lowest market prices. Note that the generation of the compensating unit is not to be considered in profit calculation, and that using the compensating unit for generating the entire extra load added to the LDCs would lead to the same result as with no pumped storage. Finally, the equilibrium medium-term generation planning model with pumping generation is presented: 76
max xν g j,yνX ν∈N πν P g∈Lt P j∈Ωghbν 0−fjxν g j +li(ν) 2cjxν g j2+d Ti(ν) g K P k=1P l∈Hk xν g l +P l∈Hm| m6=k ˜xν g lxν g ji −f0xν g 0 −P g∈Lt(bν 0+d Ti(ν) gP h∈H xν g h)(cPTi(ν) g−xν g Cmp −xν g Phyd) −li(ν) 2cPX g∈LtcPTi(ν) g2−xν g Cmp +xν g Phyd2 (45a) s.t.: LMCs (42b–42c) and non-LMCs (42d–42i) cPTi(ν) g−xν g Cmp −xν g Phyd ⩾0∀ν∈N,∀g∈Lt (45b) v1 P=X g∈LtδPcPT1 g−x1 g Cmp −x1 g Phyd−x1 g Phyd+v0 P(45c) vν P=X g∈LtδPcPTi(ν) g−xν g Cmp −xν g Phyd−xν g Phyd+vν− P∀ν > 1 and ν6∈ L (45d) X g∈LtδPcPTi(λ) g−xλ g Cmp −xλ g Phyd−xλ g Phyd+vλ− P=v0 P∀λ∈L(45e) where the second and the third line of the objective function (45a) is the pumping extra load fee. The model has the same LMCs and non-LMCs as the medium-term endogenous cartel model with N-DRs (42), and the constraints that are referred to pumping scheme (see (35) and (36) in §3.4) here extended in (45b) to (45e) to the loads in the dark, the medium-light and the bright hours of each period. 5.4 test cases As described in §2.12.1and in §2.12.2, the LDCs of periods and subperiods, and the generation units that match these loads define the test cases solved. In the test cases where there are DR (hydro) and N-DRs (WP and SPV), randomness is represented through stochastic scenario trees (see §4.4). The numbers of conventional generation units of cases are 18, and 24, where units of the same technology are from less to more disaggregated, and a few more units, N-DR and/or related to pumping are also considered in different generation settings. The unit numbers will identify the test case. Cases with 18 units consider that there are three participants in the market, the SGC and two other GenCos with hydro generation, and cases with 24 units consider that there are five participants in the market, the SGC and 4GenCos with hydro generation. In §2.4.1is defined the six uneven periods in to which the yearly horizon 77
considered is subdivided. Table 2has the fixed dimensions of each case with the generation setting identified by one or two letters: rR for the presence of N-DRs (WP and SPV) using a single small r when solving the endogenous cartel model and the capital R for the equilibrium one, RP for N-DRs plus pumping, and with letter C to refer to having an extra conventional unit instead of N-DRs. The tree size is indicated with the number of scenarios after the generation setting letters in the case identifier. The generation setting is specified in columns “Rnw” (N-DRs), “Pmp” (pumped storage) and “Cnr” (conventional unit replacing N-DRs). Problem size is specified through the numbers nuof units, nνof tree nodes, and nvar of variables. The number of equality and inequality non-LMC is also indicated. The number of generated LMCs during the solution using the mLMH is given in the tables with the results. Table 2: Fixed Dimensions of Test Cases generation setting problem size non-LMCs case Rnw Pmp Cnr nunνnvar =⩾ 18rR21 √18 61 3471 654 315 18rR59 √18 100 5694 1195 885 18rR75 √18 153 8715 1752 1125 18RP21 √ √ 20 61 3877 715 498 18RP59 √ √ 20 100 6335 1295 1185 18RP75 √ √ 20 153 9711 1905 1584 18C21 √14 61 1035 288 315 18C59 √14 100 1698 595 885 18C75 √14 153 2599 834 1125 24rR21 √24 61 5118 1266 630 24rR59 √24 100 8394 2272 1770 24rR75 √24 153 12846 3354 2250 24RP21 √ √ 26 61 5524 1327 813 24RP59 √ √ 26 100 9035 2372 2070 24RP75 √ √ 26 153 13842 3507 2709 24C21 √20 61 1584 534 630 24C59 √20 100 2598 1072 1770 24C75 √20 153 3976 1518 2250 78
In Appendix A, there are the details of the data for the equilibrium case with pumping generation, 24 units and 21 scenarios. 5.5 computational results Two types of utility function are considered: the endogenous cartel behavior (maximization of generators surplus taking into account the effect of hydro generation on market prices), and the equilibrium behavior considering two or more players. 5.5.1 Results with the endogenous cartel model Table 3contains the endogenous cartel results with N-DRs. The first column e Pshows the expected profit value of the solution, and Psp90 its 5to 95% profit spread (see §2.10). Column LMCs indicates the number of LMCs generated by the mLMH, the Ipopt exe column indicates the number of different executions of the solver (in the application of the mLMH), and the ite column the number of iterations. The CPU sec. column contains the AMPL plus solver execution times. Table 3: Endogenous Cartel Solutions for different Generation Settings optimal profit (106)eIpopt CPU case e P Psp90 LMCs exe ite (sec) 18r21 10836.106 537.946 53699 17 2294 281 18r59 10807.713 540.613 88328 17 2843 604 18r75 10804.554 609.673 135096 17 3299 1089 24r21 10857.759 538.221 77857 21 4497 1324 24r59 10834.745 539.481 127448 22 5558 2856 24r75 10831.064 609.043 195169 22 6112 5062 As it can be seen in Table 3for the same number of units the profit spread, Psp90, is increasing as the number of scenarios increase. It is a reasonable result because if the number of scenarios is increasing then the variability increases too. Another logical result is that as the number of scenarios increases, the value of the objective function is smaller (although it is quite similar for all of the cases) and both the number of constraints and the CPU time increases. 79
In Appendix B there are, in detail, the results obtained for the equilibrium case using pumping units and with 21 scenarios and 24 units. In it, there is the evolution of the objective function along the successive optimizations of the problem and it is presented the optimal values for the expected generation by each unit jover each node ν. Finally, it is included Figure 36 where it can be appreciated the evolution of the objective function until it leads to stable solutions. 5.5.2 Results with the equilibrium model Table 4contains the results of the equilibrium planning solutions obtained with the NIRA algorithm for the test cases using different generation settings including the presence or not of a pumped storage scheme. It also contains the results using a conventional unit instead of the N-DR generation. This table has the same structure as Table 3. Table 4: Equilibrium Solutions for different Generation Settings optimal profit (106)eIpopt CPU case e P Psp90 LMCs exe ite (sec) 18R21 10817.996 543.420 53699 19 10932 2478 18R59 10789.223 554.017 88328 18 13229 5513 18R75 10784.936 618.641 135096 19 18118 12702 18RP21 11297.488 563.945 61286 24 9221 2263 18RP59 11267.881 556.280 100317 24 11728 5423 18RP75 11262.825 637.761 153679 24 15977 13034 18C21 9336.594 117.264 15471 17 1336 51 18C59 9320.608 207.450 25352 17 1342 88 18C75 9322.401 216.256 38687 17 1547 148 24R21 10830.967 543.164 77857 22 17231 9412 24R59 10806.115 543.022 127448 22 21193 20925 24R75 10801.476 613.566 195169 24 32212 53761 24RP21 11463.659 565.906 88086 28 13172 7505 24RP59 11436.825 535.899 143858 28 16133 17113 24RP75 11433.911 627.287 221017 28 22507 41335 24C21 9333.432 117.920 22511 17 1628 155 24C59 9322.668 207.888 36460 17 1559 261 24C75 9323.883 216.929 56088 17 1822 460 80
The differences between the endogenous cases and the corresponding equilibrium ones illustrate the important increase in CPU time of the equilibrium solution with respect to the endogenous cartel solution owing to the changing objective function (20) in the equilibrium model, which requires a much higher number of iterations, while the number of LMCs generated by the mLMH remains the same. Equilibrium profits are systematically lower than the endogenous cartel ones. It has been shown that the distribution of hydro generation along the successive periods in equilibrium solutions is different from that in cartel solutions, with that of the equilibrium model being closer to the minimum cost solution (where there is more hydro generation during higher demand periods) than that of the endogenous cartel [84]. Table 5, with the peak load ¯piof each period in the 4th column, shows this for the endogenous cartel case 24r21 and the equilibrium case 24R21. In [84], it was also described how other thermal generation technologies influenced market-price level in the MIBEL some years ago. This influence appears to be less important now with a higher share of N-DRs, and it has not been taken into account in this thesis. Table 5: Comparison of Hydro Generation in Cases 24r21 and 24R21 load 24r21 24R21 i Tihb eiMWh ¯piMW xhMWh xhMWh 1 168 3190062 27857 159674 250544 2 576 10238656 27034 1339422 1045161 3 1440 26727324 30983 2284373 2589853 4 2208 43464615 32432 2767199 4281843 5 2208 35495820 26417 5545843 3582622 6 2160 37838776 26711 2884320 3230809 5.5.3 Comparison of different types of generation setting The difference between having or not N-DRs as part of the generation portfolio can be appreciated in Table 4and in Figure 24. In that figure the darker (orange) distribution of profits of case 24R59, with renewables, and that lighter (pink) of case 24C59, with an extra conventional unit able to provide the same energy as the non-dispatchable renewables, are plotted on the same graphic. Note the difference in expected profits and the larger profit spread Psp90 between cases 24R59 and 24C59, where the null operating cost of the renewables becomes important, though subject to a higher risk of profit loss. Handling the renewable model, having to use 81
in pumping). 6.1 bilateral contract load The responsibility for matching the bilateral contract load and for satisfying other mediumterm constraints, as the management of hydro resources or the emission caps, is on the GenCos. In mixed systems, the GenCos also decide which units will be devoted to supplying their bilateral contract load, and during which hours. For every hour, the System Operator (SO) in a mixed system market collects the information from the pool auction and from the bilateral exchanges, determines the system load, and checks that the transmission network can safely convey the generations and consumptions agreed, introducing corrective changes if necessary. The analysis of the amount of energy traded through BCs for several months compared to the total energy produced in the MIBEL shows that the energy traded through BCs can be modeled as an LDC (see Figure 30). For future periods, BC duration curves (BCDC) could be forecasted in the same way as the system LDCs are estimated. 720 h 0 10 20 30 40 t 0 10 20 30 40 Figure 30: Series of the system demand and power traded through BCs (thin line) during June 2007 in GW (left); LDC, bilateral data ordered by decreasing load and non-increasing fitted polynomial (right). 88
Two types of BCs are contemplated by the regulations of the MIBEL: base contracts, which span the full length of the period, and peak contracts for several lengths of time. Piling up the peak contracts within a given period, and ordering the hours by decreasing system load, a generally decreasing BCDC will be obtained, as it is shown in Figure 30. The information on the past bilateral hourly load is available to the participants in the market (see [88]), and from it, system BCDCs, as that in Figure 30 right, for future periods can be deducted. Moreover, a SGC will know from its own records, which are its forecasted BCDCs, and, by subtracting them from the forecasted BCDC of the system, they will have the BCDCs of the RoP. We have thus two types of BCDCs: that of the SGC and that of the RoP, each of which having its own generation units to satisfy its specific bilateral load. With the available data in the MIBEL, no other participant can be observed; therefore, the medium-term planning must be limited to considering a SGC and the RoP. 6.2 time-share hypothesis A time-share hypothesis is made to address the problem of a certain unit having the possibility of matching two different LDCs over a given period. This unit may devote all or a part of its generation to honor BCs as long as there is BC load still to be matched. The remaining available generation of that unit may participate in the market and will be rewarded using the market price function. For notation purposes, in this problem formulation it will be used the two-element set B:= SGC, RoP, and the tilde ewill be employed on parameter, variable and set symbols that refer to BCs. The set e Ωβ⊆Ω,∀β∈Bwill contain the units that may match the BCDC of either the SGC, or RoP. It is supposed that the shaded part of Figure 31 (left) corresponds to BCs. Now it is assumed that the solution is given in Figure 31 (right), where each shaded slice represents the expected generation of a unit in e Ω(assuming null outage probability). For example, unit e u1devotes all of its generation to satisfy the BC agreements. But instead units e u2and e u3generate part of the time to satisfy the BCs and part of the time to the market. It is easy to see that the union of the darker areas conforms the BCDC. As in the model of the pure pool trading system (42), in order to compute the expected profit, two assumptions are taken: (i) a unit generates at its maximum capacity and (ii) the shape of the contribution is approximated to a rectangle. 89
Figure 31: LDC of the system and part corresponding to the bilateral contracts LDC (shaded part, left); optimal load matching with production for bilateral contracts (right). 6.3 maximization of stochastic market profits with endogenous price function and bilateral contracts In order to calculate the profits in the mixed system, the market price function pν(t,xh)is needed, with hydro and WP influence for each node νof the scenario tree, whose period is denoted by i(ν): pν(t,xν h) = bν 0+li(ν)t+d Ti(ν)X h∈H xν h, (46) where bν 0is the node WP-influenced market price at peak period load, decreased by the endogenous hydro generation term d Ti(ν)X h∈H xν hwith dbeing an estimated negative factor, h∈Hare the hydro pseudo-units that represent hydro basins of set H, and li(ν)is the estimated negative slope of the market price with respect to the LDC load duration t. From the total expected generation xν jof unit jin node ν, the part e xν jwill be rewarded according to the agreed BCs and the rest xν j−e xν jwill be paid at market price. The market revenue is calculated multiplying the capacity of the unit by the integration of the price function during the unit expected generation time, which now starts at e xν j/cjand ends at the total expected time xν j/cj, as units matching BC peak load participate in the market in hours that come after the duration e xν j/cjof matched BC load. Subtracting the generation 90
cost from the revenue, the generation unit profit rν j(xν j,e xν j)will be obtained (where the revenue from the BC, which is fixed, is not included). rν j(xν j,e xν j) = cjZxν j cj e xν j cj pν(t,xν h)dt −fjxν j= =bν 0(xν j−e xν j) + d Ti(ν)(xν j−e xν j)X h∈H xν h +li(ν) 2cj(xν j)2− (e xν j)2−fjxν j. (47) This function is indefinite, which means that when optimizing it, there may be more than one local optimum. It is possible to extend the model (15) with the influence of the hydro generation on the price function, with stochasticity and with BCs. max xν j,e xν jX ν∈N πνX β∈BX j∈e Ωβ rν j(xν j,e xν j) − f0xν 0(48a) s.t.: e xν j⩽xν j∀β∈B∀j∈e Ωβ∀ν∈N(48b) X j∈e ωβe xν j⩽e eν β−sν(e ωβ)∀e ωβ⊂e Ωβ∀β∈B∀ν∈N(48c) X j∈ω xν j⩽eν−sν(ω)∀ω⊆Ω∀ν∈N(48d) X j∈e Ωβe xν j=e eν β−sν(e Ωβ)∀β∈B∀ν∈N(48e) X j∈Ω xν j+xν 0=eν∀ν∈N(48f) X ν∈Hλ Cλxν+X ν∈Hλ Dλyν⩾rλ∀λ∈L(48g) e xν j⩾0∀β∈B∀j∈e Ωβ∀ν∈N(48h) xν j⩾0∀j∈Ω∀ν∈N(48i) Because of rν j(xν j,e xν j), defined in (47), the objective function is quadratic and indefinite. Constraints (48b), specific to the mixed-market problem, couple the total generation with the generation devoted to honor bilateral contracts. Constraints (48c) and (48d) are the LMCs for each LDC (BCDCs and system LDC). Constraints (48g) represent the single and multi-period non-LMCs, which are usually conditions over the total generation of some subsets of units. Constraints (48f) are the balance constraints between the LDC, the total energy eand the GDC taking into account the external energy. And, finally, constraints 91
(48h) and (48i) are the bounds of the variables. The modeling of the bilateral contracts brings about two novelties: a unit can match two different load-duration curves (because of the time-share hypothesis), and the rewards that a unit will receive for its generation depend on the amount of energy produced for bilateral contracts. 6.4 the difference of convex objective function Function (47) can be decomposed in the same way as (31) in §2.11 and therefore rν j(xν j,e xν j) can be rewritten as: rν j(xν j,e xν j) = bν 0(xν j−e xν j) − fjxν j(49a) −d 4Ti(ν)X h∈H xν h− (xν j−e xν j)2+li(ν) 2cje xν 2 j(49b) +d 4Ti(ν)X h∈H xν h+ (xν j−e xν j)2+li(ν) 2cj xν 2 j, (49c) where the expression (49a) is linear, and given that both dand liare negative, (49c) is convex and (49b) is concave. Taking into account §2.11.1, problem (48) can be recast as a minimization problem and its objective function (48a) could be rewritten as a difference of convex quadratic (DcxQ) function: min xν j,e xν jX ν∈N πνX β∈BX j∈e Ωβ fjxν j−bν 0(xν j−e xν j) − d 4Ti(ν)X h∈H xν h+ (xν j−e xν j)2−li(ν) 2cj xν 2 j +f0xν 0(50a) +X ν∈N πνX β∈BX j∈e Ωβ d 4Ti(ν)X h∈H xν h− (xν j−e xν j)2+li(ν) 2cje xν 2 j(50b) s.t.: LMCs (48c, 48d, 48e, 48f) and other constraints (48b, 48g, 48h, 48i) where (50a) is a positive definite quadratic function and (50b) is a concave quadratic form. 92
Further to the contents of §2.11.2, it is possible to consider an alternative formulation of the former problem that uses an extra variable vRC: min xν j,e xν j (50a) −vRC (51a) s.t.: vRC ⩽X ν∈N πν X β∈BX j∈e Ωβ −d 4Ti(ν)X h∈H xν h− (xν j−e xν j)2−li 2cje xν 2 j (51b) LMCs (48c, 48d, 48e, 48f) and other constraints (48b, 48g, 48h, 48i) where (51b) is a reverse convex constraint (RCC) because it makes the convex domain that it contains infeasible. Both the DcxQ problem (50) and the RCC problem (51) are non-convex and hard to solve, especially from initial points far away from the solution. The solution to the problem can be simplified by successively optimizing it with a linearized RCC (LRCC) about a former solution point obtained. Let x be an initial point, or the solution to a former problem with a LRCC, the problem to be solved would be linearly constrained with a positive definite objective function, having thus a unique solution: min xν j,xν j (50a) −vRC (52a) s.t.: LRCC (52b) LMCs (48c, 48d, 48e, 48f) and other constraints (48b, 48g, 48h, 48i) Moreover, the mLMH heuristic (see §3.2) should be employed to avoid having to generate an exponential number of LMCs, thus the linearization of the RCC and the application of the mLMH would be done at the same time. Finally, it is viable to take into consideration an easier problem: min xν j,e xν j (50a) (53a) s.t.: LMCs (48c, 48d, 48e, 48f) and other constraints (48b, 48g, 48h, 48i) where the objective function (53a) is the positive definite quadratic part (50a) of the objective function of the DcxQ problem (50). Problem (53) is convex, easy to solve and has a unique solution. 93
6.4.1 Changing the non-convexity of the objective function Due to the non-convexity of the objective functions, the maximization of the profits for these problems may causes infeasibilities or other anomalous solutions. In order to correct this and make the progress of the results converge to the optimizer it is possible to do some changes into the objective function. The degree of non-convexity of the objective functions can be easily changed by substituting the 4in the denominator of the fraction d/(4Ti(ν))of (50b) and of (51b) by a parameter ρand giving to ρvalues different from 4: the lower the value, the less non-convex will be the objective functions. Starting with ρ=2in the early stages of the mLMH and changing it gradually to 4in the later stages of it, the non-convexity of the problem is reduced during the first stages of the mLMH and recovers its proper degree towards the final stages. Let us denote with mnm the number of iterations that have to be done in the step-by-step order phase of the mLMH. As said before, the change on the non-convexity is taken into account with the ρparameter and it will be increased linearly at each iteration kfrom 2to 4: ρ=2mnm −4 mnm −1+2k mnm −1 6.4.2 Indefiniteness of the CVaR constraints The inclusion of risk-aversion terms in the objective function in order to minimize the VaR of the market participants is implemented in practice [83] by considering new variables and by adding CVaR constraints such as: τk,λ⩾Lk,λ−αk∀k∈B,∀λ∈L τk,λ⩾0∀k∈B,∀λ∈L(54) where αkis the VaR (to be obtained) of each market participant B={SGC, RoP},λis a scenario path, and τk,λare new non-negative variables. Lk,λare the profit losses of each participant kover the realizations of scenario λ. Given that the losses are minus the profits and the profits are here an indefinite function, the profit losses functions are also indefinite. The inclusion of the indefinite constraints (54) could further complicate the solution process. This inclusion has not been undertaken and is considered as an area for further research. 94
6.5 equilibrium solution of the medium-term bilateral planning An extension to the equilibrium behavior similar to the one with renewable sources (see §5.2) has been made. The NIRA procedure (see §2.8) within the application of the mLMH (see §3.2.2) is initialized during its stage 3) and followed during the iterations of stage 4). The objective function of the NIRA optimization (24), based on the NIRA function (20) will be extended to the stochastic formulation taking into account the two observable participants in the market: the SGC and the RoP. Using the constant terms b xν h,∀h∈H|h6∈ Ωβ,∀β∈B, (55) obtained as part of the results of a former solution, the equilibrium objective function expressed as a DcxQ function (eDcxQ) and the equilibrium problem are: min xν j,e xν jX ν∈N πν{f0xν 0+X β∈BX j∈e Ωβ fjxν j−bν 0(xν j−e xν j) − d Ti(ν)X h∈H|h6∈e Ωβb xν h(xν j−e xν j) −d 4Ti(ν)xν j−e xν j+X h∈H|h∈e Ωβ xν h2−li(ν) 2cj xν 2 j}(56a) +X ν∈N πν X β∈BX j∈e Ωβ d 4Ti(ν)−xν j+e xν jX h∈H|h∈e Ωβ xν h2+li(ν) 2cje xν 2 j (56b) s.t.: LMCs (48c, 48d, 48e, 48f) and other constraints (48b, 48g, 48h, 48i) Comparing the DcxQ problem (50) and the eDcxQ problem (56) it is possible to see that the later has more linear terms in the quadratic function and less quadratic terms both in the quadratic function and in the quadratic form, therefore the equilibrium problem is less non convex and should be easier to solve than the endogenous problem. An alternative formulation to problem (56) using a RCC and an extra variable vRC would be: 95
min xν j,e xν j (56a) −vRC (57a) s.t.: vRC ⩽X ν∈N πν X β∈BX j∈e Ωβ −d 4Ti(ν)−xν j+e xν jX h∈H|h∈e Ωβ xν h2−li(ν) 2cje xν 2 j (57b) LMCs (48c, 48d, 48e, 48f) and other constraints (48b, 48g, 48h, 48i) 6.6 solution procedures Direct methods of global optimization (see [34,25]) are the most appropriate for solving an indefinite problem such as (48). However, the current implementations of these techniques, such as the available branch-and-reduce based code described in [80] have not provided an acceptable solution in reasonable time for the smallest test cases used in this work. Optimization solvers non specialized for global optimization may have difficulties with problem (48), but there are ways, as those presented in the following sections, that take advantage of the successive optimizations in the mLMH, leading to satisfactory results. These procedures are based on using different, though equivalent, formulations of (48) and on gradually changing the non-convexity of (48a) from less non-convex to its full non-convexity over the successive optimizations in the mLMH, where batches of LMCs are added. Many tests have been done with the software BARON [80] through the modeling language GAMS (General Algebraic Modeling System, [2]). In each of them, one can observe that it takes hours to solve a reduced problem while other solvers, like Ipopt, solve them in minutes. Since no solution was obtained in a reasonable CPU time, the use of GAMS/BARON was rejected. As stated before (see §2.13) the solver used is Ipopt. When trying to optimize a non-convex constrained problem, a non-global optimization algorithm, as Ipopt is, may determine that the problem is infeasible or unlimited, depending on the initial point, even if a finite solution exists. The successive solutions in the application of the mLMH (see §3.2.2) use as initial point the solution of the former problem (plus default values for new variables associated to LMCs added). Default initial values are used in the first solution. To avoid a chain of infeasible solutions it is essential to avoid having infeasible or iteration exceeded solutions at the end of the first stage of the mLMH: All unit, all-but-one unit and all-but-two unit LMCs, or at the end of the second one: LMCs with all combinations of subset of most loaded units. To 96
obtain that the positive definite problem (53) will be minimized in both stages, for the endogenous and for the equilibrium bilateral cases. Their solutions are always Optimal. 6.6.1 Solution strategies: definition and purpose A solution strategy means a combination of successive problem modes, as described few sections before (see §6.4) along with changes in the non-convexity parameter ρdescribed before in §6.4.1. The purpose of using a solution strategy is to avoid, as much as possible, obtaining abnormal solutions in the successive optimizations in the application of the mLMH. Abnormal solutions entail a risk of failing to generate LMCs that should be active in the optimizer in the complete problem. (Generating LMCs not active at the solution of the complete problem is not harmful though it means useless extra CPU time) Many procedures have been tried. Most of them consisted on some variations in the problem mode depending on what kind of solution has been obtained (infeasibility, iteration limit, acceptable,...), for example, changing from the equilibrium problem eDcxQ (56) to problem eRCC (57) or from the endogenous one DcxQ (50) to the problem with the positive quadratic objective function (53). The following sections in this chapter contain the presentation of some strategies and their results. 6.7 test cases As described in §2.12.1and in §2.12.2, the LDCs of periods and subperiods, and the generation units that match these loads define the test cases solved. Realistic data from the MIBEL have been employed. The planning horizon, as explained in §2.4.1, is one year decomposed into 6periods of durations in days: 7,23,61,92,92 and 90, the starting date being October 4. Hydro generation is represented by a simplified model of several basins and has 13,153 GWh of expected inflows. A 1350 MW pumped storage scheme, whose upper reservoir can store up to 340200 MWh, and it is assumed to be half full both at the beginning and at the end of the yearly planning horizon is considered in several test cases. Loads (of 2010) to be satisfied amount to 157425 GWh, and generation units are considered in two degrees of disaggregation for different generation technologies. As for BCs, the units of the SGC considered have about 47% of system capacity. Test cases are almost the same as in §5.4. The difference between them is that BC cases do not have an SPV unit. This is because with BCs there are already three LDCs and if the SPV unit is taken into account then it is necessary to introduce more LDCs and it would increase the difficulty of the problem. Instead of using so many LDCs, an approximation 97
1) Let ρ:= 2, substitute the 4in (50a) by ρ, and solve (53). 2) Solve (53). If the solution outcome is Optimal or Acceptable, change mode to (50). If the solution is Iteration limit exceeded or Infeasibility, change mode to (51). 3) If in mode (50) the solution outcome is Acceptable or Iteration limit exceeded, change mode to (51). If the solution is Infeasibility, change mode to (52); if in mode (51) the solution outcome is Optimal, change mode to (50). Else, if the solution outcome is Iteration limit exceed or Infeasibility, then change mode to (52). 4) In each loop of addition of LMCs change gradually ρfrom 2to 4, and solve current problem mode; if in mode (50) or (51) the solution outcome is Infeasibility, change mode to (52), in other case, change mode to (50); if in mode (52) the solution outcome is Optimal or Acceptable, change mode to (50). Else, if the solution outcome is Iteration limit exceeded, change mode to (51). 6.10.1 Computational results with the Third Strategy Tables 11 and 12 have the results for both the equilibrium and the endogenous behaviors while modifying the parameter ρbetween 2and 4and using the third strategy. Although the expected profit e Pis similar between the first strategy and this one, it can be easily seen that this strategy is worse than the first one because the number of anomalous solutions is significantly higher than with the chosen strategy. Besides this, there is the existence of multiples infeasibilities. Due to these two facts, it is possible that the solution obtained is not the true optimal because abnormal solutions may have made the optimizer reach other solutions that are away from the optimal point. Comparing this strategy with the second, one can see that the third one is also worse than the second as for 456 optimizations, there are 8acceptable, 14 exceeded iterations and 6infeasible while in the second there are 16 acceptable, 11 exceeded iterations and 2infeasible. 6.11 fourth strategy As done with the second strategy, this fourth one corresponds to the same as third strategy but, instead of having a gradually change for non-convexity, fixing rho at 4. 104
Table 11: Endogenous Solutions using Third Strategy opt. profit Ipopt CPU case e P 106eexe ac ei inf ite (sec) 18n21 4345.920 14 1 10704 1078 18n59 4338.360 15 1 13992 2460 18n75 4332.014 16 2 2 19448 5879 18P21 4667.322 16 7858 598 18P59 4654.042 16 1 7735 1586 18P75 4655.845 16 2 8596 3138 24n21 4464.484 21 1 1 15694 4065 24n59 4469.569 19 1 2 2 17849 8280 24n75 4450.431 22 3 1 1 24442 18720 24P21 4795.044 22 8286 2226 24P59 4781.426 23 1 11258 5612 24P75 4779.215 23 1 13800 11907 Table 12: Equilibrium Solutions using Third Strategy opt. profit Ipopt CPU case e P 106eexe ac ei inf ite (sec) 18n21 4258.640 15 4621 378 18n59 4250.181 15 7601 1139 18n75 4246.993 15 5938 1403 18P21 4616.145 18 6037 613 18P59 4599.786 18 1 9141 1745 18P75 4602.274 18 8949 2746 24n21 4394.785 23 10394 2383 24n59 4390.751 21 1 12076 5013 24n75 4374.533 21 1 14685 10405 24P21 4745.177 23 10361 2734 24P59 4734.109 23 1 14099 6841 24P75 4732.522 23 1 15850 12775 6.11.1 Computational results with the Fourth Strategy Tables 13 and 14 have the results for the same behaviors but, instead of modifying ρ, there have been solved without parameter 4(or fixing it to ρ=4). Here, there were 480 105
optimizations, of which 18 acceptable, 41 exceeded iterations and 14 infeasible. Comparing with the other strategies similar expected profits were obtained but solutions that are more irregular were found. Consequently, this strategy was also rejected. Table 13: Endogenous Solutions using Fourth Strategy opt. profit Ipopt CPU case e P 106eexe ac ei inf ite (sec) 18n21 4346.453 17 10425 1165 18n59 4337.560 16 1 1 13220 2677 18n75 4334.207 17 1 1 16374 5844 18P21 4664.728 18 8474 1115 18P59 4649.873 18 2 2 11045 2617 18P75 4648.655 18 2 1 13467 5484 24n21 4461.490 22 1 1 1 16206 4828 24n59 4448.874 22 1 1 1 17813 9833 24n75 4445.156 23 2 1 3 20215 16835 24P21 4791.166 22 2 12680 3995 24P59 4780.444 23 1 1 2 13926 9083 24P75 4774.412 24 1 17969 17551 Table 14: Equilibrium Solutions using Fourth Strategy opt. profit Ipopt CPU case e P 106eexe ac ei inf ite (sec) 18n21 4262.302 14 5740 589 18n59 4253.562 15 1 7483 1400 18n75 4248.075 15 1 7800 2633 18P21 4625.335 19 1 13 1 43562 6934 18P59 4594.970 18 3 9162 1721 18P75 4596.155 20 1 14 2 47654 22616 24n21 4391.292 23 1 12131 3476 24n59 4377.628 23 1 15487 8422 24n75 4373.529 21 1 15308 13558 24P21 4743.007 24 11581 3430 24P59 4732.926 24 1 14051 7898 24P75 4726.945 24 1 1 15961 13549 106
6.12 summary of results with the different strategies In order to choose one strategy it is important to count the number of abnormal solutions and compare them. Strategy 1has 12 acceptable solutions, 4solutions with an excess of iterations and 2restoration phase. Strategy 2has 16 acceptable solutions, 11 with an excess of iterations and 2infeasible solutions. Strategy 3has 8acceptable solutions, 14 solutions with an excess of iterations and 6infeasible solutions. Finally, strategy 4has 18 acceptable solutions, 41 solutions with an excess of iterations and 14 infeasible solutions. Many different strategies have been tried in order to find the best strategy but they have failed to improve the results presented in this thesis, so they are not included here. First strategy is the best procedure because, while all strategies have similar results in the objective functions, this is the one with a lower number of abnormal solutions which means that is the one that minimizes the risk of not having generated LMCs that should be active in the optimal solution. The fact that, for a specific test case with different number of scenarios (21,59 and 75), the results obtained are similar, it is a necessary, but not sufficient condition to think that the solution reached is near to the global optimizer. If the results had been very different among them, possibly, locally optimizers have been found. In the light of the results, it seems reasonable and worthy to make a change in the nonconvexity of the objective function. With it, some restoration phase solutions are obtained, but they are not as harmful as an infeasible solution due to they do not get away from the optimizer. 6.13 further analysis of results of the first strategy Figure 32 shows three aspects of the solution to equilibrium case 24P21: the evolution of the energy kept in the upper reservoir of the pumped storage scheme along the nodes of each scenario at the top, the expected power productions of different technologies in the middle, and the evolution of the expected market price at the bottom. Although the pumping capacity would allow filling up the upper reservoir in about 200 hours, there is not unlimited power available for pumping as units must satisfy system load and BCs resulting in a yearly mean spare power of 771 MW, which is fully used in all scenarios, given that the initial and final stored volumes are the same in all scenarios and pumping (and generation from pumping) is paid at market price. 107
Figure 32: Solution to test case 24P21 showing the evolution over the periods of the energy stored in the pumped storage reservoir for the different scenarios (top), evolution of expected power productions of different technologies: “thr” thermal, “hyd” hydro, “phy” generation from pumped hydro, “wp” WP, and “pmp” pumping, in negative (middle), and evolution of market prices (bottom). Abscissae: time in days. As for the expected power productions, the WP generations of each period are totally determined by the WP scenarios generated [51]. The rest of generations are the result of the optimization. It can be appreciated that the generation from pumped water corresponds to the 75% of the pumped energy by the rest of units, given the 75% efficiency considered of the pumping system. Given that the length of the periods is their duration in days, the areas of the rectangles in each period correspond to the energies generated by each technology. These results could be individualized for each generation unit in the data set used. For the market prices, in orange there is the range of possible values of market prices at peak load over time periods, where in red is represented the range of values of market prices at base load. Finally, in black there is the expected market price. The market-price evolution obtained is influenced by all stochastic parameters and by all optimal generation policies obtained and by all constraints considered whether LMCs or non-LMCs. Table 15 has the range of values (maximum and minimum) and the expected value (¯xCMP) of the generation of the compensatory unit (xCMP) in the nodes of the scenario tree of each period for test case 24P21. The number of minutes, within parenthesis, that this pseudounit is working in each period is also included. As it can be seen, these values are not large but they are not null. This means that there are some minutes where there is neither generation from pumped hydro (because the upper reservoir is empty) nor generation capacity for pumping (because there is not unused generation capacity), and the pumping scheme 108
Table 15: Range and expected values of xCMP in periods for equilibrium case 24P21 xCMP in MWh (minutes) 1 2 3 4 5 6 max 82 (4)418 (19)1370 (61)5017 (223)243 (11)402 (17) ¯xCMP 82 (4)418 (19)1316 (58)4635 (206)212 (9)374 (16) min 82 (4)418 (19)1181 (52)4119 (183)197 (8)345 (15) is idle. Figure 33 shows the mean yearly energies of load, pumping, and of all technologies of the generation mix for the market and for the BCs in each scenario of the solution to equilibrium case 24P21. One important feature is that WP energy is split in two parts between market and BCs, the same as with thermal generation. Technologies with lower capacities, as hydro and pumped hydro generation, go almost entirely to either market or to BCs in the solution obtained. Figure 33: Yearly expected power of pumping “pmp”, in negative, for each scenario in solution to equilibrium case 24P21, with system load (1st column), and generation mix by technologies “thr” thermal, “hyd” hydro, “phy” pumped hydro generation and WP, in market (2nd column) and in BCs (3rd column). Regarding the difference between the endogenous and the equilibrium solution, in Figures 34 and 35 there are the evolutions of the energy kept in the upper reservoir of the pumped storage scheme. It can be seen that although there are different scenarios, endogenous solutions follow more or less the same pattern when using the pumping. In the equilibrium behavior, this fact is not as pronounced because there is more variation between the different scenarios. 109
17 31 91 183 275 365 0 2 4x 105 Endogenous 17 31 91 183 275 365 0 2 4x 105 Equilibrium days days Figure 34: Endogenous solution (above) and equilibrium solution (below) to test case 24P21 showing the evolution over the periods of the energy stored in the pumped storage reservoir for the different scenarios. 17 31 91 183 275 365 0 2 4x 105 Endogenous 17 31 91 183 275 365 0 2 4x 105 Equilibrium days days Figure 35: Endogenous solution (above) and equilibrium solution (below) to test case 24P59 showing the evolution over the periods of the energy stored in the pumped storage reservoir for the different scenarios. 110
7CONCLUSIONS AND FURTHER RESEARCH 7.1 contributions and implementations The list below summarizes the main contributions of this thesis: •A model for the representation of non-dispatchable renewables based on a two-unit system with different parameters of capacity and outage probability for WP and for SPV. The graphical justification of such model through the similarity of the effect of subtracting the real WP generation from the LDC, and of the loading of the two units that represent WP has been presented. •The development of scenario trees using QMC techniques for WP and SPV, and for the dispatchable hydro inflows taking into account the different parameters of units in each scenario node, as justified in this thesis, and the influence on market-price level in each scenario node due to WP and SPV; the decomposition of the LDC of each period into three LDCs for the dark, the medium light, and the bright hours. This entails having to employ three different sets of LMCs, each with its specific variables, in each node. •The extension of the medium-term single-period pumping model presented in [11] to the multi period case using extra variables and extra constraints, and establishing the cost of the pumping energy at market price. •The stochastic medium-term mixed-market model with BCs, renewables and pumping and the characterization of its non-convexity. A procedure based on the use of a conventional nonlinear programming solver has been presented, where a solution strategy was employed to circumvent the likely trouble caused by non-convexity of the sequence of optimizations of the mLMH, and the gradual variation of the nonconvexity. •The use of the mLMH in all the models described above to account for the matching the LDCs of all periods considered without having to use an exponential number of LMCs. •The experience of the unsuccessful attempt to use a commercial global optimization software for solving the BC non-convex problem; the use of a conventional solver 111
for this non-convex problem and the monitoring of the results of the successive optimizations modifying if necessary the convexity of the problem in order to obtain a solution with proper match of the LDCs. •The models presented in this thesis are useful for both price-makers, price-takers and for the market operator. For the price-maker, to obtain maximum profits and to have a generation scheduling of each generation unit. Moreover, they get to know the expected profits and its dispersion, so they can also make plans on fuel procurement. For the price-taker, to obtain a prediction of market-prices and of profits. Finally, the MO could obtain the endogenous cartel and the equilibrium solutions and appraise which behavior are the market participants closer to. The following are the main implementations in this thesis: •The coding in AMPL of all the models presented. •The development of a test-case set with different dimensions and representing stochasticity with different numbers of scenarios so as to allow comparisons among different problem solutions and to establish trends in the increase of CPU time required for different problem sizes. The computational results for all test cases. The number of scenarios presented corresponds to problems that can be solved in reasonable CPU time on a 2010 server. •The coding in MATLAB of the scenario tree generator using QMC techniques. It has been used the C++ algorithm CBCpoly [60] in order to obtain the QMC points. •Every code of each model uses several functions from the dynamic link library RightHandSideCalculatorV3.dll [82] in order to calculate the rhs of the LMCs. There are also 2subroutines employed many times in each code. The first subroutine has 53 lines of code and the second one has 39 lines. •Lines of code of some models: the case with the endogenous objective function and with renewable sources has 426 lines; the case with the equilibrium behavior and with pumping scheme using renewable sources has 593 lines; the case with the equilibrium behavior in a mixed market has 673 lines of code. As for the initial objectives in the thesis project of §1.2, all objectives but the two last ones have been fulfilled. The objective of developing a specific interior point code taking into account that the objective function is the difference of two positive definite quadratic functions, with (positive or negative) step size in a given direction that can be readily calculated, was abandoned. This was because using the solver Ipopt and a convexification heuristic yielded satisfactory results. Regarding the last objective of consideration of the risk of profit loss, it was abandoned due to the difficulty of including non-convex inequality constraints as explained in §6.4.2, and is considered as an area for further research. 112
7.2 conclusions In the following list there are the principal conclusions of this thesis •The probabilistic matching is an adequate procedure for medium-term power planning as it represents the exact probabilistic matching of load and avoids having to develop scenarios for load uncertainty and random failures of generation units, and it is able to adequately represent all renewable energy sources. •A stochastic model has been presented for the medium-term planning of GenCos participating in a pure pool market where N-DRs have a significant share under the behavioral principles of endogenous cartel and equilibrium. Pumped storage has been also considered through a new formulation for multi-period market problems and multi-LDC matching. The results obtained with the two-unit model for the renewable energies (WP and SPV), including market shares by units and technologies, are reliable given the representation of the load, of the GenCos, of the market price, and of the stochasticity in the process. •The probabilistic model of LDC matching based on considering all generation units represented by its capacity and forced outage probability has been employed and the mLMH has been used. This makes unnecessary to develop scenarios to account for load and units’ forced-outage uncertainties. A novel way of representing N-DRs with two units: a base unit with a normal failure rate and a crest unit with a large one has been presented and justified. •The scenario tree that represents the model stochasticity of hydro inflows, WP and SPV power was obtained using a quasi-Monte Carlo procedure. Considering SPV entails having to match three LDCs at each scenario tree node. The procedure presented has been applied to the solution of a number of test cases with realistic data from the MIBEL using scenario trees of different sizes, which provide valuable information on the computational requirements for solving these medium-term generation planning problems. The results obtained show that the solution procedure is reliable and coherent even though the objective functions for the endogenous cartel and for the equilibrium problems are non-convex. The convergence to a local optimizer by the interior-point solver (Ipopt) employed in each solution within the iterative procedure used, shows that these local optimizers exist. The CPU times required for large cases are long but affordable for medium-term planning. •The stochastic medium-term planning described can be also employed as a reliable way to measure the effect of a given penetration of N-DRs on the market share by other generation technologies. •A stochastic model has been presented for the medium-term planning of GenCos participating in a mixed pool and BC market including pumped storage under the 113
# units of SGCUNI set UNIGC[SGCUNI] := HYDR1 HYDR2 COAL1 FUEL1 PVslC PVslB PVmsC COMP TURB; # units of RoPUNI1 set UNIGC[RoPUNI1] := HYDR3 COAL2 FUEL2 GAS2; # units of RoPUNI2 set UNIGC[RoPUNI2] := HYDR4 COAL3 GAS3 NUC1; # units of RoPUNI3 set UNIGC[RoPUNI3] := HYDR5 COAL4 NUC2 WNDPC WNDPB; # units of RoPUNI4 set UNIGC[RoPUNI4] := HYDR6 GAS1 FUEL3 NUC3; # initial volume/energy in hydro basin param: v0 := HYDR1 1333691 HYDR2 952636 HYDR3 1905273 HYDR4 2095800 HYDR5 2000536 HYDR6 2191064 ; # expected inflows param expwhi: HYDR1 HYDR2 HYDR3 HYDR4 HYDR5 HYDR6 := 1 15578 11127 22254 24480 23367 25592 2 65680 46914 93828 103211 98519 107902 3 380641 271886 543773 598150 570962 625339 4 570554 407539 815077 896585 855831 937339 5 133256 95183 190366 209402 199884 218921 6 477956 341397 682794 751074 716934 785213 ; 120
# natural inflow in hydro basin over each node param whi: HYDR1 HYDR2 HYDR3 HYDR4 HYDR5 HYDR6 := 1 15578 11127 22254 24480 23367 25592 2 65680 46914 93828 103211 98519 107902 3 343941 245672 491344 540479 515912 565046 4 486388 347420 694840 764324 729582 799066 5 448425 320303 640606 704667 672637 736697 6 301243 215173 430346 473381 451864 494898 7 523703 374074 748147 822962 785555 860369 8 508464 363188 726376 799014 762695 835333 9 688821 492015 984030 1082433 1033232 1131635 10 639315 456653 913306 1004637 958972 1050302 11 377331 269522 539044 592948 565996 619900 12 483423 345302 690604 759664 725134 794194 13 680790 486279 972557 1069813 1021185 1118441 14 565537 403955 807909 888700 848305 929096 15 624482 446058 892116 981328 936722 1025934 16 510787 364848 729696 802665 766181 839150 17 706790 504850 1009699 1110669 1060184 1161154 18 533429 381020 762041 838245 800143 876347 19 706715 504796 1009593 1110552 1060073 1161032 20 495453 353895 707789 778568 743179 813958 21 434882 310630 621260 683386 652323 714449 22 511811 365579 731158 804274 767716 840832 23 643415 459582 919164 1011080 965122 1057038 24 116933 83523 167046 183751 175399 192103 25 146682 104773 209546 230501 220024 240978 26 155963 111402 222804 245084 233944 256224 27 135366 96690 193380 212718 203049 222387 28 123286 88061 176122 193734 184928 202540 29 136692 97637 195274 214802 205038 224565 30 147318 105227 210454 231499 220976 242022 31 139396 99569 199137 219051 209094 229008 32 132603 94716 189432 208375 198904 217847 33 112338 80241 160483 176531 168507 184555 34 128780 91985 183971 202368 193169 211566 35 115476 82483 164966 181462 173214 189711 36 126602 90430 180859 198945 189902 207988 37 114742 81959 163917 180309 172113 188505 38 105905 75646 151292 166421 158857 173986 121
39 165842 118459 236917 260609 248763 272455 40 153386 109561 219123 241035 230079 251991 41 435456 311040 622079 684287 653183 715391 42 515368 368120 736239 809863 773051 846675 43 565997 404284 808567 889424 848996 929852 44 511457 365326 730653 803718 767186 840251 45 449578 321127 642254 706479 674366 738592 46 523428 373877 747754 822529 785141 859917 47 438466 313190 626380 689018 657699 720337 48 404519 288942 577884 635672 606778 664566 49 532648 380463 760926 837018 798972 875065 50 526662 376187 752374 827612 789993 865230 51 429293 306638 613276 674603 643940 705267 52 414364 295974 591948 651143 621545 680740 53 360742 257673 515346 566880 541113 592648 54 401595 286853 573706 631077 602392 659762 55 438472 313194 626388 689027 657707 720346 56 571316 408083 816166 897782 856974 938591 57 366289 261635 523269 575596 549433 601760 58 520675 371910 743821 818203 781012 855394 59 495717 354084 708167 778984 743576 814392 60 688312 491651 983302 1081632 1032467 1130797 61 581479 415342 830684 913753 872219 955287 ; # proportion of run-of-the-river generation from upstream natural inflows param gamma := 0.16 ; # type of LDC set MCr := dark low-light bright ; # hours of each subperiod param mhp: dark low-light bright := 1 98 28 42 2 336 96 144 3 720 300 420 4 920 552 736 5 920 552 736 6 1170 360 630 ; # units that match dark set UNY[dark] := 122
HYDR1 HYDR2 HYDR3 HYDR4 HYDR5 HYDR6 COAL1 COAL2 COAL3 COAL4 FUEL1 FUEL2 FUEL3 GAS1 GAS2 GAS3 NUC1 NUC2 NUC3 WNDPC WNDPB COMP TURB ; # units in UNcv and in dark set UNYcv[dark] := WNDPC WNDPB ; # units that match low-light set UNY[low-light] := HYDR1 HYDR2 HYDR3 HYDR4 HYDR5 HYDR6 COAL1 COAL2 COAL3 COAL4 FUEL1 FUEL2 FUEL3 GAS1 GAS2 GAS3 NUC1 NUC2 NUC3 WNDPC WNDPB COMP TURB PVmsC ; # units in UNcv and in low-light set UNYcv[low-light] := WNDPC WNDPB PVmsC ; # units that match bright set UNY[bright] := HYDR1 HYDR2 HYDR3 HYDR4 HYDR5 HYDR6 COAL1 COAL2 COAL3 COAL4 FUEL1 FUEL2 FUEL3 GAS1 GAS2 GAS3 NUC1 NUC2 NUC3 WNDPC WNDPB COMP TURB PVslC PVslB ; # units in UNcv and in bright set UNYcv[bright] := WNDPC WNDPB PVslC PVslB ; # maximum capacity, linear generation cost # and % probability of failure of generation units param: mxc lgc q := HYDR1 700 0 0 HYDR2 500 0 0 HYDR3 1000 0 0 HYDR4 1100 0 0 HYDR5 1050 0 0 HYDR6 1150 0 0 COAL1 6000 28 20 COAL2 3900 28 20 COAL3 3200 28 19 COAL4 5000 28 19 123
FUEL1 1200 48 15 FUEL2 1500 48 15 FUEL3 1000 48 16 GAS1 750 50 2 GAS2 600 50 2 GAS3 600 50 3 NUC1 4000 5 5 NUC2 2550 5 5 NUC3 3500 5 5 WNDPC 0 0 0 WNDPB 0 0 15 PVmsC 0 0 0 PVslC 0 0 0 PVslB 0 0 15 COMP 1350 0 0 TURB 1350 0 0 ; # max volume of the reservoir param vmax := 340200 ; # initial volume of the reservoir param vini := 170100 ; # efficiency parameter of pumping param effp := 0.75 ; # maximum capacity of units that change with periods param mxcvI: WNDPC PVslC := 1 4099 510 2 4851 585 3 5551 1164 4 5733 1080 5 4460 1284 6 6216 1490 ; # failure probability of units that change with periods param qcvI: WNDPC PVslC := 1 75 64 2 67 61 3 68 56 4 76 56 124
5 74 54 6 69 60 ; # maximum capacity of units that change with nodes param mxcvN: WNDPB PVmsC PVslB := 1 6917 1368 941 2 3388 567 373 3 4058 1284 1297 4 4730 658 667 5 4114 122 128 6 4109 600 609 7 3575 1316 861 8 3980 2541 1660 9 3368 1627 1064 10 3386 1287 842 11 3766 1983 1296 12 3955 1019 667 13 3483 2249 1469 14 3747 1550 1013 15 3431 2427 1586 16 3857 1624 1062 17 3456 1264 827 18 3304 857 562 19 3441 1528 999 20 3606 2007 1312 21 3928 769 504 22 3426 1280 838 23 4053 2544 1662 24 3012 2107 1377 25 3083 2203 1440 26 2968 1562 1021 27 3182 1872 1223 28 3237 2665 1741 29 3250 1475 965 30 3126 1874 1225 31 2985 2154 1408 32 3168 2051 1340 33 3029 2675 1747 34 2988 2294 1499 35 2846 2221 1451 36 3052 2255 1474 37 3293 2080 1360 125
38 2651 1721 1125 39 3179 2388 1560 40 2967 1976 1292 41 5045 1717 2820 42 4231 1011 1663 43 4531 951 1565 44 4569 1270 2087 45 4458 1206 1982 46 4275 1720 2825 47 4809 804 1323 48 5049 1089 1790 49 4081 1590 2612 50 4638 1236 2032 51 4619 1511 2483 52 4208 1280 2103 53 4818 1459 2397 54 4703 2007 3295 55 4105 761 1254 56 4580 1784 2929 57 4249 1097 1804 58 4112 1883 3091 59 4714 894 1472 60 4623 576 950 61 4334 1788 2936 ; # failure probability of units that change with nodes param qcvN: PVmsC := 1 67 32 56 2 66 33 56 3 70 34 56 4 70 35 56 5 70 36 56 6 70 37 56 7 56 38 56 8 56 39 56 9 56 40 56 10 56 41 77 11 56 42 77 12 56 43 77 13 56 44 77 14 56 45 77 15 56 46 77 126
16 56 47 77 17 56 48 77 18 56 49 77 19 56 50 77 20 56 51 77 21 56 52 77 22 56 53 77 23 56 54 77 24 56 55 77 25 56 56 77 26 56 57 77 27 56 58 77 28 56 59 77 29 56 60 77 30 56 61 77 31 56 ; # maintenance of thermal units set icm := (’dark’, GAS1, 2) (’low-light’, GAS1, 2) (’bright’, GAS1, 2) (’dark’, GAS2, 2) (’low-light’, GAS2, 2) (’bright’, GAS2, 2) ; # price of external energy param pex := 94.2 ; # number of >= (inequality) constraints param nGEcons := 0 ; # terms and coefficients of >= inequality constraints param: GEterms: coefGE := ; # rhs of >= inequality constraints param rhsGE := ; # Number of equality constraints param nEQcons := 2 ; 127
# terms and coefficients of equality constraints param: EQterms: coefEQ := 1 GAS2 1 1.0 1 GAS2 2 1.0 1 GAS2 3 1.0 1 GAS2 4 1.0 1 GAS2 5 1.0 1 GAS2 6 1.0 2 GAS3 1 1.0 2 GAS3 2 1.0 2 GAS3 3 1.0 2 GAS3 4 1.0 2 GAS3 5 1.0 2 GAS3 6 1.0 ; # rhs of equality constraints param rhsEQ := 1 3000000 2 3000000 ; # total energy in LDC of each type and period param ein: dark low-light bright := 1 1915648 589400 911814 2 6189435 1894784 2932037 3 13886243 6089926 8695155 4 17627593 12615807 16202015 5 14567301 9744803 14164516 6 20268107 6978312 13508357 ; # peak load of each subperiod param pmx: dark low-light bright := 1 29207 28026 29158 2 28384 26518 27140 3 32333 31534 30533 4 33782 33599 31433 5 24842 25178 27767 6 26883 26240 28061 ; # base load of each subperiod 128
param pmn: dark low-light bright := 1 12216 13741 14831 2 10450 10894 11121 3 11389 11426 11750 4 11286 11248 12059 5 7999 8246 8530 6 11169 11158 11493 ; # hourly loads param crg := [1, dark, *,*]:1234567891011121314:= 1 14357 13211 12329 12216 12478 12824 14889 18456 22322 23710 26175 25524 23727 20868 2 20214 19557 18217 17357 17364 18132 19994 22993 23564 24395 26068 25801 23569 21502 3 21706 20430 19578 18695 18868 19741 21822 24836 27484 27794 29207 27943 25384 23494 (...) [6, bright, *,*]:1234567:= 276 25673 26167 27033 26659 24966 23629 22733 (...) 363 15894 15831 15907 16224 15484 15636 15363 364 14028 14143 14476 14777 14688 14169 14089 365 25040 23925 24218 24101 23908 23809 23693 ; 129