-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Move support for EMI to extension in EMG (from EMGExt in EMI) - Move example and test from EMI to EMG - Added TransInvData constructor - Included parts in docs * Included redirect of output for examples in tests --------- Co-authored-by: Julian Straus <[email protected]>
- Loading branch information
Showing
25 changed files
with
1,225 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,24 @@ | ||
name = "EnergyModelsGeography" | ||
uuid = "3f775d88-a4da-46c4-a2cc-aa9f16db6708" | ||
authors = ["Espen Flo Bødal <[email protected]>"] | ||
version = "0.9.1" | ||
version = "0.10.0" | ||
|
||
[deps] | ||
EnergyModelsBase = "5d7e687e-f956-46f3-9045-6f5a5fd49f50" | ||
JuMP = "4076af6c-e467-56ae-b986-b466b2749572" | ||
SparseVariables = "2749762c-80ed-4b14-8f33-f0736679b02b" | ||
TimeStruct = "f9ed5ce0-9f41-4eaa-96da-f38ab8df101c" | ||
|
||
[weakdeps] | ||
EnergyModelsInvestments = "fca3f8eb-b383-437d-8e7b-aac76bb2004f" | ||
|
||
[extensions] | ||
EMIExt = "EnergyModelsInvestments" | ||
|
||
[compat] | ||
EnergyModelsBase = "^0.7" | ||
EnergyModelsBase = "^0.8" | ||
EnergyModelsInvestments = "0.7" | ||
SparseVariables = "0.7.3" | ||
JuMP = "1.5" | ||
julia = "^1.6" | ||
TimeStruct = "^0.8" | ||
julia = "1.9" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
[deps] | ||
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" | ||
DocumenterInterLinks = "d12716ef-a0f6-4df4-a9f1-a5a34e75c656" | ||
EnergyModelsBase = "5d7e687e-f956-46f3-9045-6f5a5fd49f50" | ||
EnergyModelsGeography = "3f775d88-a4da-46c4-a2cc-aa9f16db6708" | ||
EnergyModelsInvestments = "fca3f8eb-b383-437d-8e7b-aac76bb2004f" | ||
JuMP = "4076af6c-e467-56ae-b986-b466b2749572" | ||
TimeStruct = "f9ed5ce0-9f41-4eaa-96da-f38ab8df101c" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Internals - EnergyModelsInvestment extensions | ||
|
||
## Index | ||
|
||
```@index | ||
Pages = ["reference_EMIExt.md"] | ||
``` | ||
|
||
## Types | ||
|
||
```@autodocs | ||
Modules = [ | ||
isdefined(Base, :get_extension) ? | ||
Base.get_extension(EMG, :EMIExt) : | ||
EMG.EMIExt | ||
] | ||
Public = false | ||
Order = [:type] | ||
``` | ||
|
||
## Methods | ||
|
||
```@autodocs | ||
Modules = [ | ||
isdefined(Base, :get_extension) ? | ||
Base.get_extension(EMG, :EMIExt) : | ||
EMG.EMIExt | ||
] | ||
Public = false | ||
Order = [:function] | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# [Adding investments](@id man-emi) | ||
|
||
Investment options are added through loading the package [`EnergyModelsInvestments`](https://energymodelsx.github.io/EnergyModelsInvestments.jl/). | ||
`EnergyModelsInvestments` was previously seen as extension package to `EnergyModelsBase`, that it was dependent on `EnergyModelsBase` and only allowed investment options in `EnergyModelsBase`. | ||
This approach was reversed from version 0.7 onwards and `EnergyModelsInvestments` is now a standalone package and provides an extension to `EnergyModelsBase`. | ||
|
||
As a consequence, it was not also necessary to move the `EnergyModelsGeography` extension of `EnergyModelsInvestments` to an `EnergyModelsInvestments` extension of `EnergyModelsGeography`. | ||
|
||
## [General concept](@id man-emi-gen) | ||
|
||
Investment options are added separately to each individual transmission mode through the field `data`. | ||
This is similar to the approach used in | ||
Hence, it is possible to use different prices for the same technology in different regions or allow investments only in a limited subset of technologies. | ||
|
||
Transmission mode investments utilize the same data type [`SingleInvData`](@extref EnergyModelsBase.SingleInvData) as the majority of the node investments. | ||
This type inludes as fields [`AbstractInvData`](@extref EnergyModelsInvestments.AbstractInvData) which can be either in the form of [`StartInvData`](@extref EnergyModelsInvestments.StartInvData) or [`NoStartInvData`](@extref EnergyModelsInvestments.NoStartInvData). | ||
The exact description of the individual investment data and their fields can be found in the *[public library](@extref EnergyModelsInvestments lib-pub)* of `EnergyModelsInvestments`. | ||
|
||
Investments require the application of an [`InvestmentModel`](@extref EnergyModelsBase.InvestmentModel) instead of an [`OperationalModel`](@extref EnergyModelsBase.OperationalModel). | ||
This allows us to provide two core functions with new methods, `constraints_capacity_installed` (as described on *[Constraint functions](@ref man-con)*), `variables_trans_capex`, a function previously not declaring any variables, and the update to the objective functoin `update_objective`. | ||
|
||
## [Added variables](@id man-emi-var) | ||
|
||
Investment options increase the number of variables. | ||
The individual variables are described in the *[documentation of `EnergyModelsInvestments`](@extref EnergyModelsInvestments man-opt_var)*. | ||
|
||
All transmission modes with investments use the prefix `:trans`. |
Oops, something went wrong.