Skip to content

Commit 9c5b52e

Browse files
authored
Adjustments to EMI v0.9, EMB v0.10, and EMRP v0.7 (#11)
* Updated version number * Updated `Data` with `ExtensionData`
1 parent ec3a0b7 commit 9c5b52e

19 files changed

Lines changed: 66 additions & 56 deletions

NEWS.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,24 @@
11
# Release notes
22

3-
## Unversioned
3+
## Version 0.3.0 (2026-04-16)
44

5-
### Enhancements
5+
### Breaking changes
66

7+
* Adjusted to [`EnergyModelsBase` v0.10.0](https://github.com/EnergyModelsX/EnergyModelsBase.jl/releases/tag/v0.10.0) and [`EnergyModelsRenewableProducers` v0.7.0](https://github.com/EnergyModelsX/EnergyModelsRenewableProducers.jl/releases/tag/v0.7.0):
8+
* Breaking change required as early retirement is now allowed.
9+
* Early retirement changes the model behavior.
10+
* Model worked without adjustments except for compatibility updates.
11+
* Breaking change still included to maintain the possibility to do bug fixes in version 0.1.x for existing models with `EnergyModelsBase` v0.9.x.
12+
* UpdMoved from `Data` to `ExtensionData` in fields and tests.
713
* Improved `MinUpDownTimeNode`:
814
* Rewrote the function `constraints_capacity` based on core functionality.
915
* Updated the test set to identify all potential problems with the node.
16+
* Renamed field names of the type.
17+
18+
### Additional changes
1019

20+
* Updated CI versions.
21+
* Fixed errors in the documentation.
1122

1223
## Version 0.2.11 (2026-02-16)
1324

Project.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "EnergyModelsFlex"
22
uuid = "a81b9388-333d-4b63-81f2-910b060b544c"
33
authors = ["Sigrid Aunsmo, Sigmund Eggen Holm, Jon Vegard Venås, and Per Åslid"]
4-
version = "0.2.11"
4+
version = "0.3.0"
55

66
[deps]
77
EnergyModelsBase = "5d7e687e-f956-46f3-9045-6f5a5fd49f50"
@@ -10,8 +10,8 @@ JuMP = "4076af6c-e467-56ae-b986-b466b2749572"
1010
TimeStruct = "f9ed5ce0-9f41-4eaa-96da-f38ab8df101c"
1111

1212
[compat]
13-
EnergyModelsBase = "0.9"
14-
EnergyModelsRenewableProducers = "0.6.5"
13+
EnergyModelsBase = "0.10"
14+
EnergyModelsRenewableProducers = "0.7"
1515
JuMP = "1.23"
1616
TimeStruct = "0.9"
1717
julia = "1.10"

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@
1313
> The different node types are partly experimental.
1414
> They have furthermore some limitations with respect to the chosen `TimeStructure` or whether they are able to handle investments.
1515
> As a consequence, it is advised to read the documentation for each node to identify their usefulness.
16+
> Is is planned to removesome nodes and rewrite the behaviour of other nodes to improve their flexibility.
1617
>
17-
> The initial version is based on [`EnergyModelsBase` v0.8](https://energymodelsx.github.io/EnergyModelsBase.jl/v0.8/).
18-
> It is planned to update the model in the near future to support the latest version of `EnergyModelsBase`.
19-
> This update may include the removal of some nodes and a rewrite of the behaviour of the different nodes.
18+
> Version 0.2.8 is based on [`EnergyModelsBase` v0.8](https://energymodelsx.github.io/EnergyModelsBase.jl/v0.8/) while version 0.2.9 is adding support for [`EnergyModelsBase` v0.9](https://energymodelsx.github.io/EnergyModelsBase.jl/v0.9/).
2019
2120
## Usage
2221

docs/src/nodes/network/activationcostnode.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ The standard fields are given as:
3737
CO₂ cannot be directly specified, *i.e.*, you cannot specify a ratio.
3838
If you use [`CaptureData`](@extref EnergyModelsBase.CaptureData), it is however necessary to specify CO₂ as output, although the ratio is not important.\
3939
All values have to be non-negative.
40-
- **`data::Vector{Data}`**:\
40+
- **`data::Vector{<:ExtensionData}`**:\
4141
An entry for providing additional data to the model.
4242
In the current version, it is used for providing `EmissionsData`.
4343

docs/src/nodes/network/combustion.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ The standard fields are given as:
3434
CO₂ cannot be directly specified, *i.e.*, you cannot specify a ratio.
3535
If you use [`CaptureData`](@extref EnergyModelsBase.CaptureData), it is however necessary to specify CO₂ as output, although the ratio is not important.\
3636
All values have to be non-negative.
37-
- **`data::Vector{<:Data}`**:\
37+
- **`data::Vector{<:ExtensionData}`**:\
3838
An entry for providing additional data to the model.
3939
In the current version, it is used for both providing `EmissionsData` and additional investment data when [`EnergyModelsInvestments`](https://energymodelsx.github.io/EnergyModelsInvestments.jl/) is used.
4040

docs/src/nodes/network/limitedflexibleinput.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ The standard fields are given as:
2828
CO₂ cannot be directly specified, *i.e.*, you cannot specify a ratio.
2929
If you use [`CaptureData`](@extref EnergyModelsBase.CaptureData), it is however necessary to specify CO₂ as output, although the ratio is not important.\
3030
All values have to be non-negative.
31-
- **`data::Vector{<:Data}`**:\
31+
- **`data::Vector{<:ExtensionData}`**:\
3232
An entry for providing additional data to the model.
3333
In the current version, it is used for both providing `EmissionsData` and additional investment data when [`EnergyModelsInvestments`](https://energymodelsx.github.io/EnergyModelsInvestments.jl/) is used.
3434

docs/src/nodes/network/minupdowntimenode.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ The standard fields are given as:
3333
CO₂ cannot be directly specified, *i.e.*, you cannot specify a ratio.
3434
If you use [`CaptureData`](@extref EnergyModelsBase.CaptureData), it is however necessary to specify CO₂ as output, although the ratio is not important.\
3535
All values have to be non-negative.
36-
- **`data::Vector{<:Data}`**:\
36+
- **`data::Vector{<:ExtensionData}`**:\
3737
Optional metadata (*e.g.*, emissions or investment data). This is initialized to an empty array by default.
3838

3939
!!! note "Constructor for `MinUpDownTimeNode`"

docs/src/nodes/sink/loadshiftingnode.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ The fields of a [`LoadShiftingNode`](@ref) are:
3838
The magnitude of demand shifted per period in a batch.
3939
- **`load_shift_times_per_period::Int`**:\
4040
Number of time steps per shift group in which shifts may occur.
41-
- **`data::Vector{Data}`**:\
41+
- **`data::Vector{<:ExtensionData}`**:\
4242
Optional metadata (e.g., emissions, investment data).
4343

4444
!!! warning

docs/src/nodes/sink/multipleinputsink.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The fields of a [`MultipleInputSink`](@ref) node are given as:
2222
- **`input::Dict{<:Resource,<:Real}`**:\
2323
The field `input` includes [`Resource`](@extref EnergyModelsBase.Resource)s with their corresponding conversion factors as dictionaries.\
2424
All values have to be non-negative.
25-
- **`data::Vector{Data}`**:\
25+
- **`data::Vector{<:ExtensionData}`**:\
2626
An entry for providing additional data to the model.
2727
In the current version, it is used for both providing `EmissionsData` and additional investment data when [`EnergyModelsInvestments`](https://energymodelsx.github.io/EnergyModelsInvestments.jl/) is used.
2828
!!! note "Included constructor"

docs/src/nodes/sink/multipleinputsinkstrat.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ These fields are:
4444
- **`input::Dict{<:Resource,<:Real}`**:\
4545
The field `input` includes [`Resource`](@extref EnergyModelsBase.Resource)s with their corresponding conversion factors as dictionaries.\
4646
All values have to be non-negative.
47-
- **`data::Vector{Data}`**:\
47+
- **`data::Vector{<:ExtensionData}`**:\
4848
An entry for providing additional data to the model.
4949
In the current version, it is used for both providing `EmissionsData` and additional investment data when [`EnergyModelsInvestments`](https://energymodelsx.github.io/EnergyModelsInvestments.jl/) is used.
5050
!!! note "Included constructor"

0 commit comments

Comments
 (0)