NO HAY FILAS Y CAJAS!! para el nid: 24 de la tabla parametros
logo

20.APENDIX Foundations of marginalist optimization

In the electricity sector, once investments are in place, they are difficult to uninstall. Therefore, when deciding on the optimal dispatch to meet demand, at each hour, only variable generation costs are considered. This leads to the concept of Marginal Substitution Benefit and induces the implementation of market pricing based on the Marginal Generation Cost.

20.1.Marginal Generation Cost

In any given hour, the Marginal Generation Cost is defined as the variable cost of the highest variable cost resource dispatched to meet the Demand during that hour.

The Node Actors in SimSEE are responsible for managing the dispatch constraint, which consists of imposing that the sum of all signed power injected into the Node (Generators with a positive sign and Demands with a negative sign) must be zero. In the optimization problem posed for solving the optimal dispatch, the change in the total cost for shifting this constraint by one unit is given by the Lagrange Multiplier of that constraint. Once the dispatch is solved, each Node reads the corresponding Lagrange Multiplier from the solution and publishes it as “cmg” (from the Spanish acronym for Marginal Generation Cost).

20.2.Marginal Substitution Benefit

As previously mentioned, for optimal dispatch in each hour, only the variable costs of the generation resources are considered. Once the dispatch is determined, the variable cost of the resource with the highest variable cost is the Marginal Generation Cost ( ) for the hour. Note that if is the variable generation cost of generator , then for all generators dispatched during that hour.



If generator were to generate 1 MW less, one of the generators with a marginal cost ( ) would have to generate the additional MW, and the additional cost to the system would then be equal to ( ). This allows generator to be assigned a Marginal Substitution Benefit in that dispatch hour equal to:

, (18)

 

where:

  • is Marginal Substitution Benefit of the generator in the hour

  • is de power delivered/dispached by the generator in the hour

  • is the Marginal Generation Cost resulting for the hour

  • is the variable generation costo of the generator at the hour



20.3.Energy and capacity markets

The value in (18) can be thought of as the benefit to the whole system (due to variable cost savings) of the presence of the last MW installed of generation with variable cost . From this observation it emerges that as long as the value is higher than the fixed costs of the technology corresponding to the cost cv_ih, the installation of an additional 1 MW of said technology will result in a reduction of costs for the system.

This observation serves as a tool for designing the optimal expansion of generation investments and is what leads many short-term energy market implementations to set a spot price equal to the marginal cost of generation. By setting the price in this way, each generator of each technology type would have the incentive to install additional MW until the total revenue received, integrating the present value of during the time-life, equals the total present value of fixed costs associated with that additional MW.

If all agents were marginal to the system and able to absorb without additional cost the risk associated with the volatility of the , the implementation of a pure energy market (without the need for capacity remuneration), setting the Spot price of energy equal to the Marginal Cost of Generation, would lead to the optimal installation of generation resources, that is, the one that results in the lowest expected value of the cost of supplying Demand.

In practice, the volatility of marginal generation costs, especially in systems with a high hydroelectric component, prevents stakeholders from considering in their investment plans those unlikely but very high marginal cost , generally associated with prolonged droughts that lead to energy rationing. Because potential investors do not consider these high-revenue tails of risk, the system fails to reach the optimal state for demand. Therefore, most market implementations have capped the spot price of energy and created a separate capacity market from the energy market. In theory, to maintain optimal equilibrium, generators in the capacity market should receive the revenue reduction resulting from the price cap in the energy market.

The increasing incorporation of zero-cost variable energy sources, such as solar and wind power, carries an additional risk beyond that of extreme droughts in energy markets. Therefore, there is a global trend toward refining the existing Energy and Capacity markets as a necessity for making projects financially viable. Ultimately, the greatest risk-taker in any system is the system's Demand, and it only makes sense to transfer risk to generators to the extent that they can compete for it without imposing additional costs on Demand. Where is the balance between separating the energy and capacity markets? This is a difficult question to answer and surely depends on the size of each system and the number of agents that can compete in the respective markets.

Regardless of the implementation of the markets, the conceptual basis serves as a tool for thinking about and designing the optimal expansion of the systems.

20.4.Future Value of Stored Energy

In the explanations in the previous sections, the variable generation cost of resources, cv_ih, was used. This corresponds to the explicit cost in fuel-fired power plants or is directly zero in wind and solar power plants (if O&M costs are considered 100% fixed). However, in power plants with energy storage capacity, such as a hydroelectric plant with a reservoir, the cv_ih value to be considered for dispatch at hour h is the expected value of the explicit variable costs avoided in the future if, instead of using the MWh at hour h, it is left stored for future use. This possibility of leaving a resource stored for future use creates a temporal link between dispatch decisions and complicates their resolution. The problem of determining the Future Value of Stored Energy is a Stochastic Dynamic Programming problem (in mathematical terms). SimSEE has two ways to obtain what is known as the Operating Policy, which, in short, is the function that calculates the cv_ih value of the storable resources for each simulation step and for each system state. This section does not intend to delve into the details of solving the stochastic dynamic scheduling problem; it simply aims to introduce the concept of the variable cost assigned to the use of stored energy as its future value.



20.5.Investment Gradients (GI)

In SimSEE, it is possible to configure for the different generation technologies: the number of Generation Units installed, the fixed costs (CAPEX + OPEX) in the form of payments for capacity made available and the variable costs (Fuel and OPEX).

For the installation of an additional unit of a given technology, the net benefit (benefit from substitution of the variable cost of the resource that margins less fixed costs) produced by the last MW installed can be calculated as:

, (19)

Where:

  • is the time step

  • identifies the time step inside the time-life of the project. Ranging from 0 for the time step in which the new MW is installed to N-1, the last step in the technology's life cycle.

  • is the identifier of the realization of the stochastic processes corresponding to each simulation chronicle. The parentheses correspond to the expected value in the set of possible realizations.

  • is the present value of the net benefit corresponding to realization .

  • is the discount factor for calculating the present value, if is the annual discount rate and the duration of the time step is hours,

  • is the resulting marginal cost in step of the simulation of realization .

  • is the variable generation cost corresponding to step of the simulation of realization .

  • is the remuneration for capacity made available calculated as explained in section 19 corresponding to step .

  • is 1 if the MW was available in step of the simulation of realization and 0 otherwise. Only the availability of the equipment is considered here, not the availability of the energy resource.

  • is the energy effectively delivered in step of the simulation of realization by the generator. It is the conjunction that the equipment was available , that the associated resource was available (wind, solar, hydroelectric) and that the generator was summoned by the system dispatch to generate.

If , then installing an additional MW of the technology in question at time step would be advisable. If , there is over-installation of the technology at that step.

 

To compare which of several technologies is more advantageous to invest in, or which presents the greatest investment potential, we define the technology's investment gradient as:

 

, (20)

 

With this definition, at time step , the of a possible expansion technology indicates the net profit generated by the assumed costs. The highest-yielding technology would be the one to invest in first. Adding additional MW of that technology will lower the marginal cost, thus changing the returns. A new evaluation of the will then allow us to decide how to proceed with the expansion. In theory, if there are no additional constraints, all would eventually reach zero.

In practice, additional restrictions may exist that limit the application of the gradient method. For example, in the rooms prepared for Haiti, wind, solar, and thermal power plants and battery energy storage systems were considered as expansion options, with the possibility of installation starting in January 2027. However, there are hydroelectric projects that are expected to come online in 2034 and 2035. This means that projects installed before the hydroelectric plants come online will see their revenues reduced in 2034, 2035, and 2036, appearing with for those years until demand growth makes the installation of additional MW profitable again. These additional restrictions do not invalidate the meaning of investment gradients or their use for planning; they simply require extra care in their interpretation.

 

Actors in SimSEE publish the following variables which can then be selected for presentation and post-simulation calculations with the SimRes3 application:

  • “E*cmg” is the value of the energy delivered in each time slot, valued at the corresponding marginal cost.

  • “cdpSinPenalidadesExtra” is the variable operating cost incurred in the time step. For thermal generators, this corresponds to the fuel cost. For wind, solar, and hydroelectric generators, it is zero.

  • “Ingreso_PorDisponibilidad” corresponds to the capacity payment received by the generator in the time step.

 

These variables have time series (one value for each time step) for each of the simulated stochastic process realizations. This allows the calculation of nvestment gradients using the operations available in SimRes3. The SimRes3 calculation templates: val_SolDBESS.sr3 and val_hydros.sr3 contain the necessary definitions for calculating the investment gradients of the expansion options considered and the hydroelectric projects considered.

 

 

20.6.Optimization of the Possible Investment Plan based on Investment Gradients

The SimSEE Room starts with an investment unit in each of the candidate technologies and, the following algorithm is executed repeatedly:

a)Simulation

It is possible to represent the PIP information, information contained in the SimSEE Room, as a matrix U(jStage, jActor) with the number of units installed in each Stage for each Actor, where jStage and jActor, ranging from 1 to the number of decision stages and from 1 to the number of type of investment options are ordinals that identify the decision Stage and the Actor respectively.

The operation of the system defined by the SimSEE Room is simulated on the entire horizon.

The main result is a GI( jStage, jActor ) matrix with the investment gradients for each Actor in each Stage.

 

b)Identification of the Actors and Stages with decision margins

Given a stage and an actor, there is room to reduce the number of units U(jStage, jActor) if any of the following conditions are met:

  • U(jStage, jActor) > 0 and jStage = 1. This is the first stage and there are units installed.

  • U(jStage, jActor) – U(jStage-1, jActor ) > 0. The number of units installed in stage jStage is greater than zero.

  • U(jStage, jActor) – U(jStage-TL(jActor), jActor ) > 0. Where TL(jActor) is the lifetime of units of type jActor, measured in the number of decision stages. This condition is met if there are units that have already completed their lifetime and are therefore removed from the system.

 

Given a stage and an actor, there is room to increase the number of units U(jStage, jActor) the number of units already installed is less than the maximum admissible (input of the plannig).

c)Identification of the Actors and Stages with the lowest and highest GI

The Stage and Actor are selected, with room for decision-making, with Maximum and Minimum GI. The corresponding annual Investment Gradient (GI) values determine the Actor (jActorMax) and the decision Stage (usually the year.) with the highest GI (jStageMax) and those with the lowest GI (jActorMin and jStageMin).

 

d)If GI[ jActorMax, jEtapaMax ] > 0 there is room to increase units of jActorMax

If the largest GI[jActorMax, jStageMax] > 0, then for the decision stage corresponding to jStageMax and for the actor jActorMax, an increase in the number of units is implemented. This increase occurs in the year in question and in all subsequent years, encompassing the technology's useful life. A useful life of 20 years was assumed for wind farms, 30 for solar farms, 40 for thermal power plants, and 10 for battery banks. Since the proposed optimization horizon runs from 2027 to 2039 inclusive, only for battery banks installed in 2027 and 2028 is their useful life shorter than 2039.

It could happen that GI[jActorMax, j] < 0 with j > jStageMax; in that case, there would be over-equipping in stage j, which would be justified by the cost reduction achieved in jStageMax. If the number of units already installed in stage j is greater than that installed in jStageMax, this would allow increasing the number of units in jActorMax up to U[jActorMax, j].

So, given GI[jActorMax, jStageMax] > 0 , we look to see if all GI[ jActorMax, j ] > 0 for j > jStageMax, if so, we increment the units of all stages after jActorMax. The increment to be made will be dU, which will be given by the minimum of the dU[ jActor, j ] with j >= jStageMax.

If we find a j >= jStageMax such that GI[jActorMax, jStageMax] <= 0 then, the increment of units will be max( 1, U[jActorMax, j] – U[jActorMax, jStageMax] ) with this we try to increase the number of units where there is margin and respecting the amount already installed in later stages where there is no longer margin.

 

e)if GI[ jActorMin, jStageMin ] < 0 then it is desirable to reduce the units of jActorMin

In this case, we want to uninstall units of the actor jActorMin in the stage jStageMin. To do this, the number of units U[jActorMin, j] with j>= jActorMin must be decremented.

It may happen that for a j >= jStageMin, GI[ jActorMin, j ] >= 0 would be fulfilled, so it would not be desired to decrement the units from there onwards.

We then look for j* as the first j >= jStageMin such that GI[ jActorMin, j ] >= 0

 

It is only possible to uninstall units that were installed at the same stage or that have already reached the end of their useful life.

 

The units installed in the same stage jStageMin correspond to: U[jActorMin, 0 ] for the case jStageMin = 0 and U[jActorMin, j] – U[ jActorMin, j-1] for jStageMin > 0.

 

The units that can be reduced because they have reached the end of their useful life are:

  • 0 if jStageMin < YearsLifeUtil[ jActorMin ]

  • min( U[jActorMin, j], U[jActorMin, j – YearsLifeUtil ] ) if jStageMin >= YearsLifeUtil[ jActorMin ]

 

f)Propose a new PIP

Having identified the stages and actors where it is most convenient to increase or decrease the number of units, the units are modified and the simulation stage a) is resumed.

 

To avoid oscillations, the algorithm has a history of the modifications of U(jStage, jActor) and reduces the modification step when it detects that the variations between simulations change direction.