Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Release notes

## Version 0.11.5 (2026-01-06)

### Adjustments

* Make the `GeoAvailability(id, 𝒫::Array{Resource})` constructor more flexible (enabling, e.g., `GeoAvailability("av", [ResourceCarrier("Power", 0.0)])`).

## Version 0.11.4 (2025-12-16)

### Minor updates
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "EnergyModelsGeography"
uuid = "3f775d88-a4da-46c4-a2cc-aa9f16db6708"
authors = ["Espen Flo Bødal <Espen.Bodal@sintef.no>"]
version = "0.11.4"
version = "0.11.5"

[deps]
EnergyModelsBase = "5d7e687e-f956-46f3-9045-6f5a5fd49f50"
Expand Down
14 changes: 9 additions & 5 deletions src/structures/area.jl
Comment thread
JulStraus marked this conversation as resolved.
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ struct LimitedExchangeArea <: Area
end

"""
GeoAvailability <: EMB.Availability
struct GeoAvailability <: EMB.Availability

A geography `Availability` node for substituion of the general
A geography `Availability` node for substitution of the general
[`GenAvailability`](@extref EnergyModelsBase.GenAvailability) node. A `GeoAvailability` is
required if transmission should be included between individual [`Area`](@ref)s due to a
changed mass balance.
Expand All @@ -64,13 +64,17 @@ changed mass balance.
- **`id`** is the name/identifier of the node.
- **`inputs::Vector{<:Resource}`** are the input [`Resource`](@extref EnergyModelsBase.Resource)s.
- **`output::Vector{<:Resource}`** are the output [`Resource`](@extref EnergyModelsBase.Resource)s.

A constructor is provided so that only a single array can be provided with the fields:
- **`id`** is the name/identifier of the node.
- **`𝒫::Vector{<:Resource}`** are the [`Resource`](@extref EnergyModelsBase.Resource)s.
"""
struct GeoAvailability <: EMB.Availability
id
input::Array{Resource}
output::Array{Resource}
input::Array{<:Resource}
output::Array{<:Resource}
end
GeoAvailability(id, 𝒫::Array{Resource}) = GeoAvailability(id, 𝒫, 𝒫)
GeoAvailability(id, 𝒫::Array{<:Resource}) = GeoAvailability(id, 𝒫, 𝒫)

"""
name(a::Area)
Expand Down