Skip to content

Commit 98f6951

Browse files
authored
Minor update to documentation (#82)
* Minor changes to documentation
1 parent bfdfec6 commit 98f6951

9 files changed

Lines changed: 25 additions & 20 deletions

File tree

NEWS.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
# Release notes
22

3-
## Unversioned
3+
## Version 0.9.5 (2026-03-25)
44

5-
* New functions (`variables_flow_resource()`, `constraints_resource()`, `constraints_couple_resource()`) that dispatch on resource types, which allow for creation of new resource-specific variables and constraints in extension packages.
6-
* New function to indentify the unique resource types of a vector of resources
7-
* New function that segments the vector of resources into sub-vectors based on each resource type
5+
### Minor updates
6+
7+
* Minor updates in the documentation.
8+
9+
### Support for resource specific variables and constraints
10+
11+
* New functions (`variables_flow_resource()`, `constraints_resource()`, `constraints_couple_resource()`) that dispatch on resource types.
12+
* New function to indentify the unique resource types of a vector of resources.
13+
* New function that segments the vector of resources into sub-vectors based on each resource type.
14+
* This allows for creation of new resource-specific variables and constraints in extension packages.
815

916
## Version 0.9.4 (2025-11-26)
1017

docs/src/nodes/availability.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ with square brackets, while functions are represented as
5555

5656
``func\_example(index_1, index_2)``
5757

58-
with paranthesis.
58+
with parantheses.
5959

6060
### [Variables](@id nodes-availability-math-var)
6161

docs/src/nodes/networknode.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The fields of a [`RefNetworkNode`](@ref) are given as:
1616
If the node should contain investments through the application of [`EnergyModelsInvestments`](https://energymodelsx.github.io/EnergyModelsInvestments.jl/), it is important to note that you can only use `FixedProfile` or `StrategicProfile` for the capacity, but not `RepresentativeProfile` or `OperationalProfile`.
1717
In addition, all values have to be non-negative.
1818
- **`opex_var::TimeProfile`**:\
19-
The variable operational expenses are based on the capacity utilization through the variable [`:cap_use`](@ref man-opt_var-cap).
19+
The variable operating expenses are based on the capacity utilization through the variable [`:cap_use`](@ref man-opt_var-cap).
2020
Hence, it is directly related to the specified `input` and `output` ratios.
2121
The variable operating expenses can be provided as `OperationalProfile` as well.
2222
- **`opex_fixed::TimeProfile`**:\
@@ -54,7 +54,7 @@ with square brackets, while functions are represented as
5454

5555
``func\_example(index_1, index_2)``
5656

57-
with paranthesis.
57+
with parantheses.
5858

5959
### [Variables](@id nodes-network_node-math-var)
6060

docs/src/nodes/sink.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ with square brackets, while functions are represented as
4343

4444
``func\_example(index_1, index_2)``
4545

46-
with paranthesis.
46+
with parantheses.
4747

4848
### [Variables](@id nodes-sink-math-var)
4949

docs/src/nodes/source.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The fields of a [`RefSource`](@ref) node are given as:
1616
If the node should contain investments through the application of [`EnergyModelsInvestments`](https://energymodelsx.github.io/EnergyModelsInvestments.jl/), it is important to note that you can only use `FixedProfile` or `StrategicProfile` for the capacity, but not `RepresentativeProfile` or `OperationalProfile`.
1717
In addition, all values have to be non-negative.
1818
- **`opex_var::TimeProfile`**:\
19-
The variable operational expenses are based on the capacity utilization through the variable [`:cap_use`](@ref man-opt_var-cap).
19+
The variable operating expenses are based on the capacity utilization through the variable [`:cap_use`](@ref man-opt_var-cap).
2020
Hence, it is directly related to the specified `output` ratios.
2121
The variable operating expenses can be provided as `OperationalProfile` as well.
2222
- **`opex_fixed::TimeProfile`**:\
@@ -57,7 +57,7 @@ with square brackets, while functions are represented as
5757

5858
``func\_example(index_1, index_2)``
5959

60-
with paranthesis.
60+
with parantheses.
6161

6262
### [Variables](@id nodes-source-math-var)
6363

docs/src/nodes/storage.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ As a consequence, a new abstract type is specified.
77
## [Philosophy of Storage nodes](@id nodes-storage-phil)
88

99
[`Storage`](@ref) nodes differ from the other nodes as they are designed per default as *[parametric types](https://docs.julialang.org/en/v1/manual/types/#man-parametric-composite-types)* using the concept of [`EnergyModelsBase.StorageBehavior`](@ref).
10-
In addition, capacities and operational expenses are not included at the first level of the composite type, but instead on a lower level.
10+
In addition, capacities and operating expenses are not included at the first level of the composite type, but instead on a lower level.
1111

1212
### [Parametric implementation](@id nodes-storage-phil-parametric)
1313

@@ -106,7 +106,7 @@ with square brackets, while functions are represented as
106106

107107
``func\_example(index_1, index_2)``
108108

109-
with paranthesis.
109+
with parantheses.
110110

111111
### [Variables](@id nodes-storage-math-var)
112112

src/model.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,6 @@ The default methods are empty and intended to be implemented in extension packag
304304
function variables_flow_resource(m, ℒ::Vector{<:Link}, 𝒫::Vector{<:Resource}, 𝒯, modeltype::EnergyModel) end
305305
function variables_flow_resource(m, 𝒩::Vector{<:Node}, 𝒫::Vector{<:Resource}, 𝒯, modeltype::EnergyModel) end
306306

307-
308307
"""
309308
variables_opex(m, 𝒩::Vector{<:Node}, 𝒳ᵛᵉᶜ, 𝒯, modeltype::EnergyModel)
310309
variables_opex(m, ℒ::Vector{<:Link}, 𝒳ᵛᵉᶜ, 𝒯, modeltype::EnergyModel)
@@ -641,7 +640,6 @@ specific resource types. In `EnergyModelsBase`, this method is provided for
641640
The function is empty by default and can be implemented in extension packages.
642641
"""
643642
function constraints_resource(m, n::Node, 𝒯, 𝒫::Vector{<:Resource}, modeltype::EnergyModel) end
644-
645643
function constraints_resource(m, l::Link, 𝒯, 𝒫::Vector{<:Resource}, modeltype::EnergyModel) end
646644

647645
"""
@@ -789,7 +787,7 @@ end
789787
objective_operational(m, 𝒳, 𝒯ᴵⁿᵛ::TS.AbstractStratPers, modeltype::EnergyModel)
790788
791789
Create JuMP expressions indexed over the investment periods `𝒯ᴵⁿᵛ` for different elements 𝒳.
792-
The expressions correspond to the operational expenses of the different elements.
790+
The expressions correspond to the operating expenses of the different elements.
793791
The expressions are not discounted and do not take the duration of the investment periods
794792
into account.
795793

src/structures/link.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,10 @@ has_capacity(l::Link) = false
8888
"""
8989
has_opex(l::Link)
9090
91-
Checks whether link `l` has operational expenses.
91+
Checks whether link `l` has operating expenses.
9292
93-
By default, links do not have operational expenses. You must dispatch on this function if
94-
you want to introduce links with operational expenses.
93+
By default, links do not have operating expenses. You must dispatch on this function if
94+
you want to introduce links with operating expenses.
9595
"""
9696
has_opex(l::Link) = false
9797

src/structures/node.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,9 +448,9 @@ has_capacity(n::Availability) = false
448448
"""
449449
has_opex(n::Node)
450450
451-
Checks whether node `n` has operational expenses.
451+
Checks whether node `n` has operating expenses.
452452
453-
By default, all nodes except for [`Availability`](@ref) nodes do have operational expenses.
453+
By default, all nodes except for [`Availability`](@ref) nodes do have operating expenses.
454454
"""
455455
has_opex(n::Node) = true
456456
has_opex(n::Availability) = false

0 commit comments

Comments
 (0)