Model Description

Here are written the equations of the optimisation problem built by POMMES. Have a look at the detailed nomenclature if needed.

Objective function

The objective function of the problem is given by the minimisation of the actualised costs given in equations (1). All variables are continuous and positive.

(1)\[\min_{ \mathbf P^{inv}, \mathbf P^{rep}, \mathbf P^, \mathbf S^{inv}, \mathbf S, \mathbf I, \mathbf E, \mathbf U } \sum_{a, y} \left[ \omega_y \, \phi_1 \left( \tau,y + \frac{\Delta y}{2}, y_0 \right) \left( \mathcal{CAP}_{a, y} + \mathcal{FIX}_{a, y} + \mathcal{VAR}_{a, y} \right) \right]\]

Where \(\phi_1(\tau, y, y_0)\) is the discount factor defined in (3) to actualise all the costs to reference year \(y_0\), and \(\omega_y\) (operation_year_weight, 1 by default) is the weight of operation year \(y\) in the objective.

The weight states how much of the objective an operation year stands for. Two uses:

  • Alternative weather years of the same planned system. Give several year_op the weather (availabilities, demands, prices) of different climatic years and weights summing to 1. They share the investment decisions – a capacity built in year \(i\) serves every \(y\) with \(i \le y < \text{end of life}\) – so the objective is one annuity plus the operation costs weighted by the probability of each weather year. Set the discount rate so that \(\phi_1\) is the same for all of them: they are alternatives, not successive years.

  • Coarse planning steps. A year_op that represents several calendar years can be given their number as weight.

Constraints are written for each operation year, whatever its weight: an annual cap, a carbon goal or a minimum production holds in every weather year, not on average. The hurdle costs of the transport module are a variable cost like the others ((17)): weighted and discounted with their year.

Operating conditions

Weather years written as year_op must be distinct calendar years, and every planning boundary – commissioning, decommissioning, end of life – is compared against them. The optional operating_condition coordinate states the same thing without borrowing years: each operation year \(y\) is dispatched in several operating conditions \(k \in \mathcal{K}_y\), weighted by \(\pi_{y, k}\) (operating_condition_weight), the probability of \(k\) given \(y\). The conditions of a year share every capacity and every planning decision; each has its own dispatch. It is a two-stage stochastic programme: the capacities are decided before the condition is known, the dispatch after.

Every operational cost of a year enters the objective as its expectation over the conditions of that year, so that (1) reads

(2)\[\sum_{a, y} \omega_y \, \phi_1 \left(\tau,y + \frac{\Delta y}{2}, y_0\right) \left( \mathcal{CAP}_{a, y} + \sum_{k \in \mathcal{K}_y} \pi_{y, k} \left(\mathcal{FIX}_{a, y} + \mathcal{VAR}_{a, y, k}\right) \right)\]

The fixed costs do not depend on the condition and are counted once, since the weights of a year sum to one. annualised_totex keeps its indices \((a, y)\) and holds the expected annual cost. \(\omega_y\) keeps its meaning – the scale of the year, or its probability among alternative years – and the two weights compose.

The duals compose the same way. The dual of an operational constraint of condition \(k\) (adequacy, storage level, a yearly ceiling) is the marginal value times \(\pi_{y, k}\), on top of \(\omega_y\), the discounting and operation_year_normalization: divide it by pommes.utils.dual_scale to read a price or a storage value in EUR per unit. Read raw, the duals of 35 equally weighted weather years are 35 times too small.

Every operational constraint holds in each condition: the adequacy, the storage cycle (closed within each condition), ramps, annual ceilings such as the hydro energy of conversion_max_yearly_production, carbon goals and import limits. A ceiling may differ from one condition to another, a wet and a dry year say. The TURPE contract power is subscribed once a year, before the weather is known, and covers the withdrawal of every condition.

Only the parameters describing the state of the world the dispatch reacts to may carry the coordinate: hourly profiles (availabilities, demands, import and export prices and emission factors, flexible demand), annual operational ceilings and variable costs. Capacities, their costs and bounds, the time grid, the policy and the technologies are shared by the conditions of a year, and check_inputs() refuses the coordinate on them.

Years may have different sets of conditions. The coordinate is the union of all conditions, and \(\pi_{y, k} =\) nan says that \(k\) does not exist in \(y\): no variable and no constraint are written for the pair. A weight of 0 keeps the condition: its constraints hold, its costs do not count.

Without the coordinate, the model is unchanged. pommes.io.expand_operating_conditions() rewrites a dataset with conditions into one where every pair is an operation year of its own – the formulation this one replaces – and pommes.io.fold_operating_conditions() brings the results back onto the pairs.

(3)\[\phi_1(\tau, y, y_0) = (1 + \tau)^{-(y - y_0)}\]

Costs definition

Annualised capital costs

Annualised capital costs are given in equation (4), and details are given in (5), (6) and (8).

(4)\[\mathcal{CAP}_{a, y} = \mathcal C^{cap}_{a, y} + \mathcal S^{cap}_{a, y} + \mathcal T^{cap}_{a, y} + \mathcal R^{cap}_{a, y} \quad \forall \, y\]

Where

(5)\[\mathcal C^{cap}_{a, y} = \sum_{c, i \leq y, d > y} \phi_2(\alpha_{c}, d - i) \, \beta_{c} \, \mathbf P^{c, inv}_{c, i, d} \quad \forall \, y\]
(6)\[\mathcal S^{cap}_{a, y} = \sum_{s, i \leq y, d > y} \phi_2(\alpha_{a, i, s}, d - i) \left( \beta_{a, i, s}\, \mathbf P^{s, inv}_{s, i, d} + \sigma_{a, i, s}\, \mathbf S^{inv}_{s, i, d} \right) \quad \forall \, y\]
(7)\[\mathcal R^{cap}_{a, y} = \sum_{c_1, i, j, c, d, j \leq y < d} \phi_2(\alpha_{c_1, c, j}, d - j) \, \beta^{rep}_{c_1, c, j} \, \mathbf P^{rep}_{c_1, i, j, c, d} \quad \forall \, y\]
(8)\[\mathcal{TODO}\]

The coefficient \(\phi_2(\alpha, n)\) represents the capital recovery factor in annualising the costs with a finance rate of \(\alpha\) during \(n\) years with one term per year (9). Payments occur at the end of the year.

(9)\[\phi_2(\alpha, n) = \frac{\alpha}{1 - (1 + \alpha)^{-n}}\]

with \(\phi_2(0, n) = 1/n\). The factor is evaluated at the declared finance rate, a fraction per year (0.05 for 5 %, not 5) that must lie in \([0, 1)\); a rate outside this range is rejected when the input dataset is built, and a NaN rate means no annuity. For \(0 < \alpha < 0.005\), where \(1 - (1 + \alpha)^{-n}\) cancels in floating point, the equivalent \(\alpha / \left(-\operatorname{expm1}(-n \log(1 + \alpha))\right)\) is evaluated instead.

Up to pommes 0.5.0 the factor was tabulated for the rates 0, 0.005, …, 0.095 only, and any other rate was replaced by 0 without notice, i.e. an annuity of \(\beta / n\). The closed form gives the same factors, bit for bit, for the rates of that grid.

Repayments only occur when technology is available for operation. As a result, all the CAPEX is considered between the installation and the decommissioning or retrofit of a technology.

Fixed operation costs

Fixed operation costs are given in equation (10) and details are provided in \(fixed-costs-conv\), \(fixed-costs-storage\), and \(fixed-costs-turpe\).

(10)\[\mathcal{FIX}_{a, y} = \mathcal C^{fix}_{a, y} + \mathcal S^{fix}_{a, y} + \mathcal T^{w, fix}_{a, y} \quad \forall \, y\]

Where

(11)\[\mathcal C^{fix}_{a, y} = \sum_{c, i \leq y} \omega_{c} \bar P^{c}_{y, c, i} \quad \forall \, y\]
(12)\[\mathcal S^{fix}_{a, y} = \sum_{s, i \leq y} \omega_{a, i, s} \bar P^{s}_{y, s, i} \quad \forall \, y\]
(13)\[\mathcal T^{w, fix}_{a, y} = \sum_{h} \psi_{a, y, h} \left( \mathbf{CP}^{w}_{a, y, h} - \mathbf{CP}^{w}_{a, y, h - 1} \right) \quad \forall \, a, y\]

One can notice that repurposed conversion technologies fixed costs are taken into account in conversion fixed costs as \(\bar P^{s}_{y, s, i}\) include their capacities.

Moreover, storage fixed costs are only proportional to installed power capacity, not energy capacity.

As withdrawal contract power grows with the hour type index (see TURPE constraints), the TURPE fixed tax is proportional to the power increment of the next hour type in equation (13). No injection is allowed to the ROW grid here.

Variable operation costs

Variable operation costs are given in equation (14) and details are given in (15), (16), (20), (51), (17), and (21).

(14)\[\mathcal{VAR}_{a, y} = \mathcal C^{var}_{a, y} + \mathcal I^{net, var}_{a, y} + \mathcal{T}^{w, var}_{a, y} + \mathcal{F}^{var}_{a, y} + \mathcal{TR}^{var}_{a, y} + \mathcal A^{var}_{a, y} \quad \forall \, y\]

Where

(15)\[\mathcal C^{var}_{a, y} = \sum_{y, t, c, i} (\Delta T)_{t} \times \left( t^{CO_2}_{a, y} \varepsilon^{CO_2}_{c} + \lambda_{c} \right) \mathbf P^{c}_{y, t, c, i} \quad \forall \, y\]
(16)\[\mathcal I^{net, var}_{a, y} = \sum_{t, r} \left( \gamma^{imp}_{r, t, y} \times \mathbf{I}_{r, t, y} - \gamma^{exp}_{r, t, y} \times \mathbf{E}_{r, t, y} \right) + \left(t^{CO_2}_{a, y} \varepsilon^{CO_2}_{y, r, t} \right) \sum{r, t} I^{net}_{y, r, t} \quad \forall \, y\]

The hurdle costs of the transport module, (17), are paid per MWh carried on a link \(l\), whatever the resource, and each link’s cost is split evenly between its two areas, as its fixed costs are. \(\gamma^{hur}_{l, k, y}\) is transport_hurdle_costs (a missing value means no hurdle) and \(\mathbf{F}_{l, k, r, t, y}\) the flow operation_transport_power of technology \(k\). Like every operation cost, the sum is scaled to the year by the normalisation \(\nu_{y}\) defined with (20), left implicit here.

(17)\[\mathcal{TR}^{var}_{a, y} = \frac{1}{2} \sum_{l \,:\, a \in \{from(l), to(l)\}} \sum_{k, r, t} (\Delta T)_{t} \, \gamma^{hur}_{l, k, y} \, \mathbf{F}_{l, k, r, t, y} \quad \forall \, a, y\]

Up to pommes 0.10.0 this term was added to the objective on its own, weighted by \(\omega_y\) but neither discounted nor scaled to the year, and charged per time step rather than per MWh; annualised_totex did not include it.

The cost associated with the displacement of flexible demand is defined in (51), with the displaced demand defined in (49).

(18)\[\mathcal{F}^{var}_{a, y} = \sum_{r, t} \lambda^{flex}_{a, y, r, t} \times \mathbf{U}^{flex, disp}_{a, y, r, t} \quad \forall \, y\]
(19)\[\mathbf{U}^{flex, disp}_{a, r, t, y} \geq d^{flex}_{a, r, t, y} - \mathbf{D}^{flex}_{a, r, t, y} \quad \forall \, a, r, t, y\]

The TURPE cost structure implemented in this model sets the withdrawal proportional tax for electricity imports on the hour type (equation (20)). No injection is modelled for electricity.

(20)\[\mathcal{T}^{w, var}_{a, y} = \nu_{y} \sum_{t} \theta_{a, y, h = \varphi_{a}(t)} \, \mathbf I^{}_{a, y, t, r = electricity} \quad \forall \, a, y\]

The import \(\mathbf I\) is an energy per step, priced per MWh without the step duration. \(\nu_{y}\) is the operational-year normalisation operation_year_duration \(/ \sum_t (\Delta T)_{t}\), which scales the sum over the modelled steps to the year. The model applies it to every operation cost; the other equations of this section leave it implicit. The fixed part (13) is annual already.

The tariff grid, its hour types and its calendar are given per area \(a\): network tariffs are national, and a model spanning several countries would otherwise bill the grid of one of them to all the others. Areas whose grid is left undescribed share the single grid given without an \(a\) index, which is the behaviour of datasets written before the index existed; a grid of zeros exempts its area altogether.

The model has no proportional power capacity or energy capacity costs for storage.

(21)\[\mathcal{A}^{var}_{a, y} = \sum_{t, r} \left( \lambda^{curt}_{a, r, y} \, \mathbf U^{curt}_{y, t, r} + \lambda^{spill}_{a, r, y} \, U^{spill}_{y, t, r} \right) \quad \forall \, y\]

Adequacy constraint

The adequacy is met for each resource at each operation time \(adequacy\). The net generation of the conversion (resp. storage) technologies are aggregated for each time step in \(U^{net, c}_{y, t, r}\) (resp. \(U^{net, s}_{y, t, r}\)), defined in equation \(conv-net-gen-def\) (resp. \(storage-net-gen-def\)).

These net generations, those of the transport and combined technologies, the net imports and the carbon emissions are not variables of the model: each is written as the linear expression that defines it, straight into the rows that use it (the adequacy, the carbon costs, the carbon goal), and its values are computed after the solve from those of the powers. The problem is the same as with a variable and an equality per definition, with fewer columns, rows and non-zeros; the solution carries the values under the names of the nomenclature.

(22)\[\boxed{ d^{}_{a, r, t, y} + \mathbf{D}^{flex}_{a, r, t, y} + U^{spill}_{a, r, t, y} = U^{net, c}_{a, r, t, y} + U^{net, s}_{a, r, t, y} + I^{net}_{a, r, t, y} + \mathbf U^{curt}_{a, r, t, y} \quad \forall \, a, r, t, y }\]
(23)\[U^{net, c}_{y, t, r} = (\Delta T)_{t} \times \sum_{c, i} k^{}_{c, i, r} \, \mathbf P^{c}_{y, t, c, i} \quad \forall \, y, t, r\]
(24)\[U^{net, s}_{y, t, r} = (\Delta T)_{t} \times \sum_{a, i, s} \left( k^{in}_{s, i, r} \, \mathbf P^{s, in}_{y, t, s, i} + k^{keep}_{s, i, r} \, \mathbf S^{}_{y, t, s, i} + k^{out}_{s, i, r} \, \mathbf P^{s, out}_{y, t, s, i} \right) \quad \forall \, y, t, r\]

Capacity constraints

The instant power of the conversion technologies is lower than the available installed capacity (25).

(25)\[\mathbf P^{c}_{y, t, c, i} \leq a_{y, t, c, i} \, \bar P^{c}_{y, c, i} \quad \forall\, y, t, c, i\]

As seen above, this model innovates by allowing conversion technologies to be repurposed. For instance, carbon capture can be added to SMR. The retrofit factor \(q_{c1, i1, j, c2, i2}\) links the capacity of technology \((c2, i2 = j, d2)\) derived from the repurposed technology \((c1, i1, d1 = j)\). As \(\beta^{rep} > 0\), the cost minimisation avoids retrofit when the retrofit factor is null.

Considering this, the total installed capacity of \((c, i)\) for operation year \(y\) (\(\bar P^{c}_{y, c, i}\)) is defined as the total installed capacity of technology \((c, i)\) that is not yet decommissioned in \(y\), plus the sum of the capacities which were repurposed into \((c, i)\) that are not yet decommissioned in \(y\) (26).

(26)\[\bar P^{c}_{y, c, i} = \sum_{d > y} \mathbf P^{c, inv}_{c, i, d} + \sum_{c1, i1, j = i, d > y} q^{}_{c1, i1, j, c, d} \, \mathbf P^{c, rep}_{c1, i1, j, c, d} \quad \forall \, y, c, i\]

The total capacity of technology \((c, i)\) being repurposed to other conversion technologies for year \(j\) is lower than the installed capacity of \((c, i, d = j)\) whether the capacity comes from direct investment or retrofit (27). As a consequence, it is possible to chain retrofit investments.

(27)\[\sum_{c2, d2} \mathbf P^{c, rep}_{c, i, j, c2, d2} \leq \mathbf P^{c, inv}_{c, i , d = j} + \sum_{c1, i1} \mathbf P^{c, rep}_{c1, i1, j = i, c, d = j} \quad \forall \, c, i, j\]

The minimum bounds are the invested capacity and the maximum allowed each year by the decision maker (28). This constraint could be related to the deployment rate or to the limited space of the local area, for example.

(28)\[p^{c, min}_{c} \leq \sum_{d} \mathbf P^{c, inv}_{c, i, d} \leq p^{c, max}_{c} \quad \forall\, c, i\]

The same principle applies to retrofit in equation (29).

(29)\[p^{c, min,\, rep}_{i, c} \leq \sum_{c1, i1, j = i, d} \mathbf P^{c, rep}_{c1, i1, j, c, d} \leq p^{c, max,\, rep}_{i, c} \quad \forall \, i, c\]

Storage constraints

The total storage power (resp. energy) capacity for operation year \(y\) is defined as the total power (resp. energy) capacity of \((s, i)\) that is not yet decommissioned in \(y\) in equation \(stor-power-tot-def\) (resp. \(stor-energy-tot-def\)).

(30)\[\bar P^{s}_{y, s, i} = \sum_{d > y} \mathbf P^{s, inv}_{s, i, d} \quad \forall \, y, s, i\]
(31)\[\bar S^{}_{y, s, i} = \sum_{d > y} \mathbf S^{inv}_{s, i, d} \quad \forall \, y, s, i\]

Any resource of the model can be stored in the right storage technology \(s\) is invested in. For all time steps \(t\), the input rate of storage \(P^{s, in/out}_{y, t, s, i}\) is bounded by the total invested power capacity \(\bar P^{s}_{y, s, i}\):

(32)\[\mathbf P^{s, in/out}_{y, t, s, i} \leq \bar P^{s}_{y, s, i} \quad \forall \, y, t, s\]

The total amount of energy in storage \(S_{y, t, s, i}\) should remain lower than the total invested energy capacity \(\bar S_{y, s, i}\):

(33)\[\mathbf S^{}_{y, t, s, i} \leq \bar S^{}_{y, s, i} \quad \forall \, y, t, s, i\]

Invested power and energy capacities are bounded by the minimum and maximum allowed values in equations (34) and \(stor-energy-bounds\).

(34)\[p^{s, min}_{a, i, s} \leq \sum_{d} \mathbf P^{s, inv}_{s, i, d} \leq p^{s, max}_{a, i, s} \quad \forall\, s, i, d\]
(35)\[s^{s, min}_{a, i, s} \leq \sum_{d} \mathbf S^{inv}_{s, i, d} \leq s^{s, max}_{a, i, s} \quad \forall \, s, i, d\]

The total amount of energy in the storage at each time step \(S_{y, t, s, i}\) is defined as the total amount of energy in the storage at the previous time step minus the dissipation plus the loaded energy minus the discharged energy (36). The constraint is cyclic to avoid side effects.

Note that \(P^{s, in}_{y, t, s, i}\) is the power to load 1 MWh into the storage and \(P^{s, out}_{y, t, s, i}\) is discharge power to lower the storage level of 1 MWh.

(36)\[\mathbf S_{y, t, s, i} = \left( 1 - \eta_{a, i, s} \right)^{\frac{(\Delta T)_{t}}{1[h]}} \, \mathbf S^{}_{y, t - 1, s, i} + (\Delta T)_{t} \times ( \mathbf P^{s, in}_{y, t, s, i} - \mathbf P^{s, out}_{y, t, s, i} ) \quad \forall \ y, t, s, i\]

Imports constraints

Imports bound is defined in equation (41). Exports have not been implemented yet. Variables are in energy units (MWh).

(39)\[I^{net}_{y, r, t} = \mathbf I^{}_{y, r, t} - \mathbf E^{}_{y, r, t} \quad \forall \, y, r, t\]
(40)\[R_{y, r, t} = \mathbf I^{}_{y, r, t} + \mathbf E^{}_{y, r, t} \quad \forall \, y, r, t\]
(41)\[\mathbf I^{}_{y, r, t} \leq \pi^{max, imp}_{y, r, t} \quad \forall \, y, r, t\]
(42)\[\mathbf E^{}_{y, r, t} \leq \pi^{max, exp}_{y, r, t} \quad \forall \, y, r, t\]

TURPE constraints

The constraints to implement the costs of the Tarif d’Utilisation du Réseau Public d’Electricité (TURPE) are listed below.

First, the withdrawal power from the ROW grid is bound by the contract power (43).

(43)\[\frac{\mathbf I^{}_{a, y, t, r = electricity}}{(\Delta T)_{t}} \leq \mathbf{CP}^{w}_{a, y, \varphi_{a}(t)} \quad \forall \, a, y, t\]

The import is an energy per step and the contract power a power, hence the step duration. The function \(\varphi_{a}\) links the hour of the operation with the TURPE hour type (heure pleine, heure creuse, etc.) of area \(a\). The contract power is a decision variable of each area taken separately: an electrolyser may subscribe narrow and shed its peak where that pays, and not where it does not.

TURPE hour types

TURPE hour type

\(h\) (hour type index)

designation

heure creuse été

1

HCE

heure pleine été

2

HPE

heure creuse hiver

3

HCH

heure pleine hiver

4

HPH

pointe

5

P

The hour type index indicates the criticality of the hour on the grid (see TURPE hour types), and progressive taxes are in place. The regulation imposes that the withdrawal contract power grows with the criticality of the hour: equation (44).

(44)\[\mathbf{CP}^{w}_{a, y, h} \geq \mathbf{CP}^{w}_{a, y, h - 1} \quad \forall \, a, y, h\]

Flexible demand constraints

Flexible demand represents energy services whose consumption timing can be adjusted within certain bounds while preserving the total energy requirement. This includes applications such as electric vehicle charging, thermal storage in buildings, industrial batch processes, and other load-shifting opportunities. The model allows demand to be displaced in time, subject to operational constraints on ramping rates, power bounds, and energy conservation.

Decision Variables

The primary decision variable for flexible demand is \(\mathbf{D}^{flex}_{a, y, t, r}\), which represents the actual scheduled flexible demand at each time step. Additionally, the model defines the displaced demand \(\mathbf{U}^{flex, disp}_{a, y, t, r}\) as an auxiliary variable to quantify deviations from the baseline demand profile.

Adequacy Integration

Flexible demand is integrated into the adequacy constraint (22) by adding it to the baseline demand that must be met by generation sources.

Operational Bounds

The flexible demand at each time step is bounded by user-defined minimum and maximum values, which represent physical or contractual limitations on demand modulation:

(45)\[d^{flex, min}_{a, r, t, y} \leq \mathbf{D}^{flex}_{a, y, t, r} \leq d^{flex, max}_{a, r, t, y} \quad \forall \, a, y, t, r\]

These bounds allow modeling of constraints such as minimum occupancy comfort levels, maximum charging rates, or contractual obligations.

A bound left undefined (nan) is not written. This is the default of flexibility_max_demand: a flexible demand declared without a maximum is uncapped. How much of it can be moved into a single time step is then set by the energy conservation below, together with the minima of the other time steps and, when declared, the ramping constraints. The default of flexibility_min_demand, 0, coincides with the non-negativity of \(\mathbf{D}^{flex}_{a, y, t, r}\) and is equally neutral. A maximum set to 0 is a cap like any other: with a positive baseline to deliver, it contradicts the conservation constraint and the problem is infeasible.

Energy Conservation

While flexible demand can be shifted in time, the total energy consumption over a defined conservation period must equal the baseline demand. This ensures that energy services are ultimately delivered in full:

(46)\[\sum_{t \in T^{cons}_{n}} \mathbf{D}^{flex}_{a, y, t, r} = \sum_{t \in T^{cons}_{n}} d^{flex}_{a, r, t, y} \quad \forall \, a, y, r, n\]

where \(T^{cons}_{n}\) represents the \(n\)-th conservation window containing consecutive time steps spanning \(\tau^{cons}_{a, r, y}\) hours. Conservation periods are not overlapping.

Ramping Constraints

To represent physical or operational limitations on how quickly demand can be adjusted, the model includes ramping constraints that limit the rate of change between consecutive time steps.

The ramp-up constraint limits demand increases:

(47)\[\frac{\mathbf{D}^{flex}_{a, y, t, r} - \mathbf{D}^{flex}_{a, y, t-1, r}}{(\Delta T)_{t}} \leq \rho^{flex, up}_{a, r, y} \times d^{flex}_{a, r, t, y} \quad \forall \ a, y, t > t_0, r\]

The ramp-down constraint limits demand decreases:

(48)\[\frac{\mathbf{D}^{flex}_{a, y, t-1, r} - \mathbf{D}^{flex}_{a, y, t, r}}{(\Delta T)_{t}} \leq \rho^{flex, down}_{a, r, y} \times d^{flex}_{a, r, t, y} \quad \forall \ a, y, t > t_0, r\]

where \(\rho^{flex, up}_{a, r, y}\) and \(\rho^{flex, down}_{a, r, y}\) are the maximum ramp rates expressed as fractions of the baseline demand. These constraints ensure smooth transitions and prevent unrealistic demand oscillations.

Displaced Demand Definition

The displaced demand quantifies the absolute deviation from the baseline demand profile and is used in the cost formulation:

(49)\[\mathbf{U}^{flex, disp}_{a, y, t, r} \geq \left| d^{flex}_{a, r, t, y} - \mathbf{D}^{flex}_{a, y, t, r} \right| \quad \forall \ a, y, t, r\]

In practice, this is linearized as:

(50)\[\mathbf{U}^{flex, disp}_{a, y, t, r} \geq d^{flex}_{a, r, t, y} - \mathbf{D}^{flex}_{a, y, t, r} \quad \forall \ a, y, t, r\]

Combined with the non-negativity of \(\mathbf{U}^{flex, disp}_{y, t, r}\) and cost minimization in the objective function, this formulation ensures that the displaced demand captures the magnitude of temporal shifts.

Variable Costs

The variable costs of flexible demand are proportional to the total displaced demand, reflecting the operational costs or inconvenience associated with shifting consumption away from preferred times:

(51)\[\mathcal{F}^{var}_{a, y} = \sum_{t, r} \lambda^{flex}_{a, r, y, t} \times \mathbf{U}^{flex, disp}_{a, r, y, t} \quad \forall \ a, y\]

where \(\lambda^{flex}_{a, r, y, t}\) is the flexibility variable cost parameter (currency per MWh displaced). The displaced demand is an energy per time step, like the demand in the adequacy constraint, so the cost takes no time step duration \((\Delta T)_{t}\), unlike the conversion costs. This cost structure incentivizes the model to minimize demand shifting unless there are sufficient system-level benefits, such as utilizing cheaper generation or avoiding peak grid charges.

The flexible demand variable costs are included in the total variable operation costs in equation (14).

Production group constraints

POMMES caps the annual production of one technology at a time with conversion_max_yearly_production and its combined sibling. Capping each member of a group at the group’s ceiling is not the same constraint and is not a substitute for it: several members can sit at the ceiling together, so three reformers each capped at \((1 - x) \, D\) still produce \(3 (1 - x) \, D\). Splitting the ceiling between them in advance is a different, stricter constraint – it forbids one member from taking up another’s slack, which is rarely what the policy being represented says. A fuel contract shared by several units, an emission permit written on a site rather than on a machine, a public mandate on a whole sector: all of them bound a sum.

A production group \(g \in \mathcal{G}\) is a set of technologies, declared on its own tech_group coordinate. A technology joins one through the membership tables \(m^{c}_{c, g}\) and \(m^{cb}_{cb, g}\), so one group can span conversion and combined technologies. The annual production of the group, summed over its members, is bounded by the group’s ceiling (52).

(52)\[\nu_{y} \left( \sum_{t, c} m^{c}_{c, g} \, (\Delta T)_{t} \, \mathbf P^{c}_{y, t, c} + \sum_{t, cb, k} m^{cb}_{cb, g} \, (\Delta T)_{t} \, \mathbf P^{cb}_{y, t, cb, k} \right) \leq \pi^{max, g}_{a, g, y} \quad \forall \, a, g, y\]

where \(\nu_{y}\) is the operational-year normalisation factor the per-technology caps already use, and \(k\) indexes the modes of a combined technology. The modes are summed away because they are ways of running the same machine, not separate machines – which is what the hourly capacity limit of a combined technology already assumes.

The left-hand side is therefore the one POMMES writes for its per-technology caps, so the ceiling reads in the same units as conversion_max_yearly_production.

The cap is per area. A ceiling binding several areas together – a national mandate over a multi-node model – is not expressible this way and would need the membership tables to carry \(a\).

The constraint is written only where \(\pi^{max, g}_{a, g, y}\) is finite, so a nan ceiling is neutral and a dataset that declares no group pays nothing.

Note

A group whose membership tables name nobody bounds an empty sum: the constraint reads \(0 \leq \pi^{max, g}\), it is satisfied at every iterate, the run looks normal and the policy is simply absent – which is exactly what a misspelt group label produces. Both check_inputs and build_model refuse it and name the offending group.

Declaring a group

Groups are a coordinate like any other, and the membership tables are ordinary input files. In the study configuration:

coords:
  tech_group:
    type: str
    values: ["reforming", "heat"]

add_modules:
  production_group: true

input:
  parameters:
    production_group_conversion_member:
      file: "production_group.csv"
      column: "conversion_member"
      fill: 0
      index_input: ["conversion_tech", "tech_group"]
    production_group_combined_member:
      file: "production_group_combined.csv"
      column: "combined_member"
      fill: 0
      index_input: ["combined_tech", "tech_group"]
    production_group_max_yearly_production:
      file: "production_group_cap.csv"
      column: "max_yearly_production"
      fill: nan
      index_input: ["area", "tech_group", "year_op"]

A membership table names the members, and only the members – every pair it leaves out is a non-member:

conversion_tech;tech_group;conversion_member
smr;reforming;1
smr_ccs;reforming;1
ocgt;heat;1

and the ceiling is likewise given only where it binds, the rest staying nan:

area;tech_group;year_op;max_yearly_production
area_1;reforming;2030;100

Warning

The two fill values above are not interchangeable. nan is the right one for the ceiling, where it means no cap, and the wrong one for a membership table: a boolean has no missing value, and nan cast to one is True. With fill: nan every pair the file leaves out becomes a member, so each group holds every technology of its module – and since no group is empty, neither check_inputs nor build_model has anything to refuse. A membership table takes fill: 0.