Case description
Index
Case type
The incorporation of the AbstractElements requires a change to the provided input.
The original structure of the Case of EnergyModelsBase when only considering Nodes and Links is given by:
case = Case(
T,
products,
[nodes, links],
[[get_nodes, get_links]],
)As outlined in the documentation, this corresponds to an energy system with Nodes coupled by Links with a given time structure T and resources products.
Including areas and transmission corridors requires declaring the case as
case = Case(
T,
products,
[nodes, links, areas, transmissions],
[[get_nodes, get_links], [get_areas, get_transmissions]],
)that is including the areas and transmissions vectors in the field elements and adding a new vector to the field couplings given by the functions to access areas and transmissions vectors in the field elements, get_areas and get_transmissions as described below. This extends the existing model with the constraints for the Areas and Transmission corridors as well as the coupling between them.
Functions for accessing different information
EnergyModelsGeography.get_areas — Function
get_areas(case::Case)
get_areas(𝒳::Vector{Vector})Returns the vector of areas of the Case case or the vector of element vectors 𝒳.
EnergyModelsGeography.get_transmissions — Function
get_transmissions(case::Case)
get_transmissions(𝒳::Vector{Vector})Returns the vector of transmission corridors of the Case case or the vector of element vectors 𝒳.