-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from oemof/fix/storage-investment
Fix: Storage Investment
- Loading branch information
Showing
7 changed files
with
537 additions
and
50 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
src/oemof/tabular/examples/datapackages/investment/data/elements/storage.csv
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,2 +1,2 @@ | ||
name;carrier;tech;storage_capacity;capacity;capacity_cost;invest_relation_output_capacity;invest_relation_input_output;expandable;type;bus;tech | ||
el-storage;lithium;battery;;0;10;0.2;1;true;storage;bus0;battery | ||
el-storage;lithium;battery;100;0;10;0.2;1;true;storage;bus0;battery |
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
123 changes: 123 additions & 0 deletions
123
tests/_files/lp_files/storage_investment_brown_field.lp
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,123 @@ | ||
\* Source Pyomo model name=Model *\ | ||
|
||
min | ||
objective: | ||
+1300 GenericInvestmentStorageBlock_invest(storage) | ||
+240 InvestmentFlow_invest(electricity_storage) | ||
|
||
s.t. | ||
|
||
c_e_Bus_balance(electricity_0)_: | ||
-1 flow(electricity_storage_0) | ||
+1 flow(storage_electricity_0) | ||
= 0 | ||
|
||
c_e_Bus_balance(electricity_1)_: | ||
-1 flow(electricity_storage_1) | ||
+1 flow(storage_electricity_1) | ||
= 0 | ||
|
||
c_e_Bus_balance(electricity_2)_: | ||
-1 flow(electricity_storage_2) | ||
+1 flow(storage_electricity_2) | ||
= 0 | ||
|
||
c_u_InvestmentFlow_max(electricity_storage_0)_: | ||
-1 InvestmentFlow_invest(electricity_storage) | ||
+1 flow(electricity_storage_0) | ||
<= 1 | ||
|
||
c_u_InvestmentFlow_max(electricity_storage_1)_: | ||
-1 InvestmentFlow_invest(electricity_storage) | ||
+1 flow(electricity_storage_1) | ||
<= 1 | ||
|
||
c_u_InvestmentFlow_max(electricity_storage_2)_: | ||
-1 InvestmentFlow_invest(electricity_storage) | ||
+1 flow(electricity_storage_2) | ||
<= 1 | ||
|
||
c_u_InvestmentFlow_max(storage_electricity_0)_: | ||
-1 InvestmentFlow_invest(storage_electricity) | ||
+1 flow(storage_electricity_0) | ||
<= 1 | ||
|
||
c_u_InvestmentFlow_max(storage_electricity_1)_: | ||
-1 InvestmentFlow_invest(storage_electricity) | ||
+1 flow(storage_electricity_1) | ||
<= 1 | ||
|
||
c_u_InvestmentFlow_max(storage_electricity_2)_: | ||
-1 InvestmentFlow_invest(storage_electricity) | ||
+1 flow(storage_electricity_2) | ||
<= 1 | ||
|
||
c_u_GenericInvestmentStorageBlock_init_content_limit(storage)_: | ||
+1 GenericInvestmentStorageBlock_init_content(storage) | ||
-1 GenericInvestmentStorageBlock_invest(storage) | ||
<= 2 | ||
|
||
c_e_GenericInvestmentStorageBlock_balance_first(storage)_: | ||
-1 GenericInvestmentStorageBlock_init_content(storage) | ||
+1 GenericInvestmentStorageBlock_storage_content(storage_0) | ||
-0.90000000000000002 flow(electricity_storage_0) | ||
+1.1111111111111112 flow(storage_electricity_0) | ||
= 0 | ||
|
||
c_e_GenericInvestmentStorageBlock_balance(storage_1)_: | ||
-1 GenericInvestmentStorageBlock_storage_content(storage_0) | ||
+1 GenericInvestmentStorageBlock_storage_content(storage_1) | ||
-0.90000000000000002 flow(electricity_storage_1) | ||
+1.1111111111111112 flow(storage_electricity_1) | ||
= 0 | ||
|
||
c_e_GenericInvestmentStorageBlock_balance(storage_2)_: | ||
-1 GenericInvestmentStorageBlock_storage_content(storage_1) | ||
+1 GenericInvestmentStorageBlock_storage_content(storage_2) | ||
-0.90000000000000002 flow(electricity_storage_2) | ||
+1.1111111111111112 flow(storage_electricity_2) | ||
= 0 | ||
|
||
c_e_GenericInvestmentStorageBlock_balanced_cstr(storage)_: | ||
-1 GenericInvestmentStorageBlock_init_content(storage) | ||
+1 GenericInvestmentStorageBlock_storage_content(storage_2) | ||
= 0 | ||
|
||
c_e_GenericInvestmentStorageBlock_power_coupled(storage)_: | ||
-1 InvestmentFlow_invest(electricity_storage) | ||
+1 InvestmentFlow_invest(storage_electricity) | ||
= 0 | ||
|
||
c_u_GenericInvestmentStorageBlock_max_storage_content(storage_0)_: | ||
-1 GenericInvestmentStorageBlock_invest(storage) | ||
+1 GenericInvestmentStorageBlock_storage_content(storage_0) | ||
<= 2 | ||
|
||
c_u_GenericInvestmentStorageBlock_max_storage_content(storage_1)_: | ||
-1 GenericInvestmentStorageBlock_invest(storage) | ||
+1 GenericInvestmentStorageBlock_storage_content(storage_1) | ||
<= 2 | ||
|
||
c_u_GenericInvestmentStorageBlock_max_storage_content(storage_2)_: | ||
-1 GenericInvestmentStorageBlock_invest(storage) | ||
+1 GenericInvestmentStorageBlock_storage_content(storage_2) | ||
<= 2 | ||
|
||
c_e_ONE_VAR_CONSTANT: | ||
ONE_VAR_CONSTANT = 1.0 | ||
|
||
bounds | ||
0 <= flow(electricity_storage_0) <= +inf | ||
0 <= flow(electricity_storage_1) <= +inf | ||
0 <= flow(electricity_storage_2) <= +inf | ||
0 <= flow(storage_electricity_0) <= +inf | ||
0 <= flow(storage_electricity_1) <= +inf | ||
0 <= flow(storage_electricity_2) <= +inf | ||
0 <= InvestmentFlow_invest(electricity_storage) <= 4 | ||
0 <= InvestmentFlow_invest(storage_electricity) <= +inf | ||
0 <= GenericInvestmentStorageBlock_storage_content(storage_0) <= +inf | ||
0 <= GenericInvestmentStorageBlock_storage_content(storage_1) <= +inf | ||
0 <= GenericInvestmentStorageBlock_storage_content(storage_2) <= +inf | ||
0 <= GenericInvestmentStorageBlock_invest(storage) <= 8 | ||
0 <= GenericInvestmentStorageBlock_init_content(storage) <= +inf | ||
end |
Oops, something went wrong.