-
Notifications
You must be signed in to change notification settings - Fork 30
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 #22 from Mathias157/mbr-spatial-aggregation
Added Danish spatial aggregation study to Balmorel community
- Loading branch information
Showing
136 changed files
with
79,449 additions
and
214 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,9 @@ | |
**/output/economic/*.* | ||
/base/bui/gamsscr/*.* | ||
|
||
|
||
*.lst | ||
*.log | ||
*.log~1 | ||
*.log~2 | ||
*.err | ||
*.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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
B 3 C o m p i l a t i o n | ||
B 159 Include File Summary |
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,16 @@ | ||
## Storing the Data | ||
All code is stored in git, but input data is not tracked | ||
Execute the following commands in powershell to zip data: | ||
|
||
powershell Compress-Archive -Path "base/data, nuts2/data, nuts3/data, muni/data" -DestinationPath "Balmorel_branch_version.zip" | ||
|
||
## Unzipping the Data on HPC | ||
Use the following command to unzip - -qq disables logging output, -o overwrites existing files | ||
unzip -qq -o Balmorel_branch_version.zip | ||
|
||
If unzipping the data file on a HPC, you may need to ensure writing capabilities on the extracted files by doing the following commands on the extracted folders: | ||
chmod -R +x data | ||
chmod -R +x Pre-Processing | ||
chmod -R +x input | ||
|
||
Otherwise, these files will not be editable, which is needed in the framework |
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,2 @@ | ||
B 3 C o m p i l a t i o n | ||
B 159 Include File Summary |
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,15 @@ | ||
* Location of acronyms used in add-ons | ||
$ifi %BB4%==yes $goto beginbb4 | ||
|
||
$ifi %HYDROGEN%==yes $include "../../base/addons/hydrogen/hydrogen_acronyms.inc"; | ||
$ifi not %BB4%==yes $goto endoffile | ||
|
||
$label beginbb4 | ||
|
||
$ifi not %bb4%==yes $goto endoffile | ||
|
||
$ifi %HYDROGEN%==yes $include "../../base/addons/hydrogen/bb4/hydrogen_acronymsadditions.inc"; | ||
|
||
$label endoffile | ||
|
||
|
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
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,8 @@ | ||
* Flexible demand add-on. Added by Mathias Berg Rosendal | ||
|
||
* Additional equations in model definition: | ||
|
||
QFLEXDEMAND_YR | ||
$ifi %seasonal_demand%==yes QFLEXDEMAND_SR | ||
* $ifi %inflex_demand%==yes QINFLEXDEM_S | ||
$ifi %inflex_demand%==yes QINFLEXDEM_T |
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,37 @@ | ||
* Flexible demand add-on. Added by Mathias Berg Rosendal | ||
|
||
* Yearly demand has to be met in every region | ||
EQUATION QFLEXDEMAND_YR(Y,RRR,FLEXUSER) 'Annual transport demand has to be met in each region (MWh)'; | ||
|
||
QFLEXDEMAND_YR(IY411,IR,FLEXUSER)$FLEXYDEMAND(IY411,IR,FLEXUSER).. | ||
SUM((IS3,T), | ||
VFLEXDEMAND_T(FLEXUSER,IY411,IR,IS3,T)*IHOURSINST(IS3,T)) | ||
=E= | ||
FLEXYDEMAND(IY411,IR,FLEXUSER) | ||
; | ||
|
||
* Seasonal demand has to be met in every region | ||
EQUATION QFLEXDEMAND_SR(Y,SSS,RRR,FLEXUSER) 'Annual transport demand has to be met in each region (MWh)'; | ||
QFLEXDEMAND_SR(IY411,IS3,IR,FLEXUSER)$FLEXSDEMAND(IY411,IS3,IR,FLEXUSER).. | ||
SUM(T, | ||
VFLEXDEMAND_T(FLEXUSER,IY411,IR,IS3,T)*WEIGHT_S(IS3)/IWEIGHSUMT) | ||
=E= | ||
FLEXSDEMAND(IY411,IS3,IR,FLEXUSER) | ||
; | ||
|
||
EQUATION QINFLEXDEM_T(FLEXUSER, YYY, RRR, SSS, TTT) 'Terms must be equal to each other'; | ||
QINFLEXDEM_T(FLEXUSER, IY411, IR, IS3, T)$(ord(T) > 1).. | ||
VFLEXDEMAND_T(FLEXUSER,IY411,IR,IS3,T) | ||
=E= | ||
VFLEXDEMAND_T(FLEXUSER,IY411,IR,IS3,T++1) | ||
; | ||
|
||
* Not working | ||
* EQUATION QINFLEXDEM_S(FLEXUSER, YYY, RRR, SSS) 'Seasons must be equal to each other'; | ||
* QINFLEXDEM_S(FLEXUSER, IY411, IR, IS3)$(ord(IS3) > 1).. | ||
* SUM(T, VFLEXDEMAND_T(FLEXUSER,IY411,IR,IS3,T)) | ||
* =E= | ||
* SUM(T, VFLEXDEMAND_T(FLEXUSER,IY411,IR,IS3++1,T)) | ||
* ; | ||
|
||
|
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,9 @@ | ||
* Flexible demand add-on. Added by Mathias Berg Rosendal | ||
|
||
SET FLEXUSER 'Flexible demand users' %semislash% | ||
$if EXIST '../data/FLEXDEM_FLEXUSER.inc' $INCLUDE '../data/FLEXDEM_FLEXUSER.inc'; | ||
$if not EXIST '../data/FLEXDEM_FLEXUSER.inc' $INCLUDE '../../base/data/FLEXDEM_FLEXUSER.inc'; | ||
%semislash%; | ||
|
||
PARAMETER FLEXSDEMAND(YYY,SSS,CCCRRRAAA,FLEXUSER) 'Flexible seasonal demand per year, node and user (MWh)'; | ||
PARAMETER FLEXYDEMAND(YYY,CCCRRRAAA,FLEXUSER) 'Flexible yearly demand node and user (MWh)'; |
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,13 @@ | ||
* Flex add-on. Added by Juan Gea Bermudez | ||
|
||
PARAMETER FLEXYDEMAND(YYY,CCCRRRAAA,FLEXUSER) 'Flexible yearly demand node and user (MWh)' %semislash% | ||
$if EXIST '../data/FLEXDEM_FLEXYDEMAND.inc' $INCLUDE '../data/FLEXDEM_FLEXYDEMAND.inc'; | ||
$if not EXIST '../data/FLEXDEM_FLEXYDEMAND.inc' $INCLUDE '../../base/data/FLEXDEM_FLEXYDEMAND.inc'; | ||
%semislash%; | ||
|
||
PARAMETER FLEXSDEMAND(YYY,SSS,CCCRRRAAA,FLEXUSER) 'Flexible seasonal demand per year, node and user (MWh)' %semislash% | ||
$if EXIST '../data/FLEXDEM_FLEXSDEMAND.inc' $INCLUDE '../data/FLEXDEM_FLEXSDEMAND.inc'; | ||
$if not EXIST '../data/FLEXDEM_FLEXSDEMAND.inc' $INCLUDE '../../base/data/FLEXDEM_FLEXSDEMAND.inc'; | ||
%semislash%; | ||
|
||
|
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,6 @@ | ||
* Flexdem add-on. Added by Mathias Berg Rosendal | ||
|
||
+ SUM(FLEXUSER, VFLEXDEMAND_T(FLEXUSER,IY411,IR,IS3,T)$(FLEXYDEMAND(IY411,IR,FLEXUSER))) | ||
|
||
|
||
|
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,6 @@ | ||
* Flexible demand add-on. Added by Mathias Berg Rosendal | ||
|
||
* Variables | ||
|
||
POSITIVE VARIABLE VFLEXDEMAND_T(FLEXUSER,Y,RRR,S,T) 'Flexible demand variable (MWh)'; | ||
|
Oops, something went wrong.