Constraint functions

The package provides standard constraint functions that can be used for newly developed TransmissionModes. The general approach is similar to EnergyModelsBase. Bidirectional transport requires at the time being the introduction of an if-loop. In a later implementation, we plan to use dispatch for this as well.

For resource-specific extensions of area-transmission coupling, see the Section on Extend Resource functionality. This extension is called from the default implementation of EMB.constraints_couple for each resource-type segment.

Capacity constraints

constraints_capacity(m, tm::TransmissionMode, 𝒯::TimeStructure, modeltype::EnergyModel)

corresponds to the constraints on the capacity usage of a transmission mode $tm$. It is implemented for both the TransmissionMode and PipeMode abstract types as well as PipeLinepackSimple concrete type. The key difference between the former two is that PipeMode does not allow for bidirectional transport. PipeLinepackSimple includes in addition the maximum storage capacity for a pipeline when considering linepacking. The implementation is still preliminary and based on a simplified potential for energy storage in a pipeline.

Within this function, the function

constraints_capacity_installed(m, tm::TransmissionMode, 𝒯::TimeStructure, modeltype::EnergyModel)

is called to limit the variable $\texttt{trans\_cap}$ of transmission mode $tm$. This function is also used to subsequently dispatch on model type for the introduction of investments.

Warning

As the function constraints_capacity_installed is used for including investments for transmission modes, it is important that it is also called when creating a new mode. It is not possible to only add a function for

constraints_capacity_installed(m, tm::NewTransmissionMode, 𝒯::TimeStructure, modeltype::EnergyModel)

without adding a function for

constraints_capacity_installed(m, tm::NewTransmissionMode, 𝒯::TimeStructure, modeltype::EMB.AbstractInvestmentModel)

as this can lead to a method ambiguity error.

Transmission loss functions

constraints_trans_loss(m, tm::TransmissionMode, 𝒯::TimeStructure, modeltype::EnergyModel)

corresponds to the constraints on the transmission loss of a transmission mode $tm$. It is implemented for both the TransmissionMode and PipeMode abstract types. The key difference between the two is that PipeMode does not allow for bidirectional transport. The loss is calculated for the provided TransmissionModes as relative loss of the transported energy.

Balance functions

constraints_trans_balance(m, tm::TransmissionMode, 𝒯::TimeStructure, modeltype::EnergyModel)

corresponds to the constraints on the energy balance of a transmission mode $tm$. It is implemented for the abstract type TransmissionMode and the concrete type PipeLinepackSimple. The standard approach only relies on the conservation of mass/energy, while storage is not included. PipeLinepackSimple also includes the overall mass balance for the energy storage within the pipeline.

Note

PipeLinepackSimple does not support representative periods correctly. In practice, seasonal energy storage through linepacking is unrealistic due to the small volume. The implementation is working with the assumption that the initial level in a representative period is equal to the final level in the last representative period of a strategic period. This implies that it does not account correctly for the remaining level at the end of a representative period.

Operational expenditure constraints

constraints_opex_fixed(m, tm::TransmissionMode, 𝒯ᴵⁿᵛ, modeltype::EnergyModel)

corresponds to the constraints calculating the fixed operational costs of a transmission mode tm. There is currently only a single implemented version. It can however be extended, if desirable.

constraints_opex_var(m, tm::TransmissionMode, 𝒯ᴵⁿᵛ, modeltype::EnergyModel)

corresponds to the constraints calculating the variable operational costs of a transmission mode tm. There is currently only a single implemented version. It can however be extended, if desirable.

Extension data functions

create_transmission_mode iterates through the data of a transmission mode and calls for each entry

EMB.constraints_ext_data(m, tm::TransmissionMode, 𝒯, modeltype::EnergyModel, data::ExtensionData)

similar to the approach for nodes in EnergyModelsBase. The fallback method does not add any constraints. New ExtensionData types for transmission modes can add constraints by dispatching on the type of data.