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
9 changes: 9 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Release notes

## Unversioned

### Breaking changes

* Adjusted to the changes introduced in [`EnergyModelsInvestments` 0.9](https://github.com/EnergyModelsX/EnergyModelsInvestments.jl/releases/tag/v0.9.0) and [`EnergyModelsBase` 0.10](https://github.com/EnergyModelsX/EnergyModelsBase.jl/releases/tag/v0.10.0):
* Breaking change required as early retirement is now allowed.
* Changed the function call arguments for [`add_investment_constraints`](https://github.com/EnergyModelsX/EnergyModelsInvestments.jl/blob/0c84eb4fabdf6f3c188812a3555b40f2681e916b/src/model.jl#L1).
* Adjustment can change model behavior and results.

## Version 0.11.6 (2026-04-15)

### Add support for resource-specific constraint functions
Expand Down
5 changes: 3 additions & 2 deletions 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.6"
version = "0.12.0"

[deps]
EnergyModelsBase = "5d7e687e-f956-46f3-9045-6f5a5fd49f50"
Expand All @@ -16,7 +16,8 @@ EnergyModelsInvestments = "fca3f8eb-b383-437d-8e7b-aac76bb2004f"
EMIExt = "EnergyModelsInvestments"

[compat]
EnergyModelsBase = "0.9.5"
EnergyModelsBase = "0.10"
EnergyModelsInvestments = "0.9"
SparseVariables = "0.7.3"
JuMP = "1.5"
TimeStruct = "0.9"
Expand Down
3 changes: 1 addition & 2 deletions ext/EMIExt/model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,9 @@ function EMG.constraints_capacity_installed(
# Extract the investment data and the discount rate
disc_rate = discount_rate(modeltype)
inv_data = EMI.investment_data(tm, :cap)
𝒯ᴵⁿᵛ = strategic_periods(𝒯)

# Add the investment constraints
EMI.add_investment_constraints(m, tm, inv_data, :cap, :trans_cap, 𝒯ᴵⁿᵛ, disc_rate)
EMI.add_investment_constraints(m, tm, inv_data, :cap, :trans_cap, 𝒯, disc_rate)
else
for t ∈ 𝒯
fix(m[:trans_cap][tm, t], EMB.capacity(tm, t); force=true)
Expand Down
Loading