-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrollingwindow_2019.gms
96 lines (55 loc) · 2.48 KB
/
rollingwindow_2019.gms
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
$ontext
Dispatch model project ProKoMo
Chair of Energy Economics BTU
target:
price forecast for 24 hours of the day ahead
method:
- rolling horizon including a time intervall before and after the forecasted day
- for a share of storages a fixed (water)price is implemented
- data is uploaded by annual data sets
- years, months, days and hours are mapped
- UTC time is applied for all data
Note:
- create an output folder named 'output'
- the data should be placed in a folder named 'data'
$offtext
*############################# DEFAULT OPTIONS #############################
$eolcom #
$setglobal Startup "" # if "*" the startup functions excluded, if "" startup functions included
$setglobal Flow "" # if "*" the trade excluded, if "" trade included
$setglobal CHP "" # if "*" the trade excluded, if "" trade included
$ifthen "%Startup%" == "" $setglobal exc_Startup "*"
$else $setglobal exc_Startup ""
$endif
*##################### DIRECTORIRY and FILE MANAGEMENT #####################
*Location of input files
$setglobal datadir data\
$setglobal DataIn_pp Input_pp
$setglobal DataIn_CHP Input_CHP
*$setglobal DataIn_TimeSeries Input_TimeSeries_2000-2009
$setglobal DataIn_TimeSeries Input_TimeSeries
$setglobal DataIn_NTC Input_NTC
$setglobal DataIn_time Input_time_set
*Location of output files
$setglobal output_dir output\
$setglobal result Results_year2019
set
year all years /y2018*y2019/
year_focus(year) the year which is on the current focus /y2019/
daily_window all days of the model horizon /day1*day376/
t all hours /t78841*t87696/
;
*############################# DATA LOAD ###############################
*$include time_set_2000-2009.gms
$include time_set_2010-2019.gms
$include declare_parameters.gms
*$include sensitivity_variations.gms
*############################# REPORTING INPUT ###############################
*execute_unload '%datadir%Input_final.gdx'
*$stop
*############################# MODEL #####################################
$include MODEL.gms
*############################# SOLVING ###################################
$include loop.gms
*############################# results #################################
$include aftermath.gms