-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* WIP: first update in the formulation * Update the formulation, first draft * Change the markdown to latex command * Update formulation with bounds for flows associated to assets * Updated input data * Update documentation * Updated the schema to include new parameters * Updated schema for different efficiency * Updated data with efficiency * Implement all constraints from the mathematical formulation (#1) * Change code and input data to have the flows with names instead of id * Change the variable cost data from the assets to the flows * Fix model funtion to create it properly with the new constraints * Update solution of the tiny example * Add write_lp_file option in the creation of the model * Fix Julia files format * Add all assets types in the sets structure * Changes in the model and input to include new assets data * Update tiny case study data files * Update tiny case test result and output file * Update Norse case study input data files * Change the flow capacity to import/export capacity to set flows bounds * Update formulation in the documentation with latest changes * Add test for Norse case study * Changes to cover all the options in test for the Norse case study * Changes according to review comments --------- Co-authored-by: datejada <[email protected]> Co-authored-by: Abel Soares Siqueira <[email protected]>
- Loading branch information
1 parent
7f8a48b
commit 4e5bbdd
Showing
12 changed files
with
2,340 additions
and
2,023 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,44 +1,48 @@ | ||
struct AssetData | ||
id::Int # Asset ID | ||
name::String # Name of Asset (geographical?) | ||
type::String # Producer/Consumer - maybe an enum? | ||
active::Bool # Active or decomissioned | ||
investable::Bool # Whether able to invest | ||
variable_cost::Float64 # kEUR/MWh | ||
investment_cost::Float64 # kEUR/MW/year | ||
capacity::Float64 # MW | ||
initial_capacity::Float64 # MW | ||
peak_demand::Float64 # MW | ||
id::Int # Asset ID | ||
name::String # Name of Asset (geographical?) | ||
type::String # Producer/Consumer - maybe an enum? | ||
active::Bool # Active or decomissioned | ||
investable::Bool # Whether able to invest | ||
investment_cost::Float64 # kEUR/MW/year | ||
capacity::Float64 # MW | ||
initial_capacity::Float64 # MW | ||
peak_demand::Float64 # MW | ||
initial_storage_capacity::Float64 # MWh | ||
energy_to_power_ratio::Float64 # Hours | ||
end | ||
|
||
struct FlowData | ||
id::Int # Flow ID | ||
carrier::String # (Optional?) Energy carrier | ||
from_asset_id::Int # Asset ID | ||
to_asset_id::Int # Asset ID | ||
from_asset::String # Name of Asset | ||
to_asset::String # Name of Asset | ||
active::Bool # Active or decomissioned | ||
is_transport::Bool # Whether a transport flow | ||
investable::Bool # Whether able to invest | ||
variable_cost::Float64 # kEUR/MWh | ||
investment_cost::Float64 # kEUR/MW/year | ||
capacity::Float64 # MW | ||
export_capacity::Float64 # MW | ||
import_capacity::Float64 # MW | ||
initial_capacity::Float64 # MW | ||
efficiency::Float64 # p.u. (per unit) | ||
end | ||
|
||
struct FlowProfiles | ||
id::Int # Flow ID | ||
rep_period_id::Int | ||
time_step::Int | ||
value::Float64 # p.u. | ||
rep_period_id::Int # Representative period ID | ||
time_step::Int # Time step ID | ||
value::Float64 # p.u. (per unit) | ||
end | ||
|
||
struct AssetProfiles | ||
id::Int # Asset ID | ||
rep_period_id::Int | ||
time_step::Int | ||
value::Float64 # p.u. | ||
rep_period_id::Int # Representative period ID | ||
time_step::Int # Time step ID | ||
value::Float64 # p.u. (per unit) | ||
end | ||
|
||
struct RepPeriodData | ||
id::Int | ||
weight::Float64 | ||
id::Int # Representative period ID | ||
weight::Float64 # Hours | ||
end |
Oops, something went wrong.