-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path2_CMW_2016_Parameters_Data.gms
273 lines (215 loc) · 9.65 KB
/
2_CMW_2016_Parameters_Data.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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
****************************Parameters & Data Load******************************
********************************************************************************
*****************************Generate GDX - Data Import*************************
********************************************************************************
* Load calibrated CMW data for NPS (WEO2012)
$call "gdxxrw.exe Input_Data/%input_data%.xlsx UpdLinks =3 o=input_data.gdx @Input_data.txt"
********************************************************************************
***************************General Parameters***********************************
********************************************************************************
Parameter
emsint Emission Intensity (CO2 emissions per generated energy) in CO2 Mt per PJ
;
emsint=0.0983;
Parameter
timestamp ;
timestamp = jnow + 1;
********************************************************************************
**************************Producer Parameters***********************************
********************************************************************************
Parameters
r(f) discount rate of producers
Producer_data(f,*) constant producer data
PCap(f) production capacity of Producer in Mt in starting year
kfs(f) quality factor in t per GJ in starting year
delta(f) quality depreciation parameter
res(f) reserves in Mt
CPinv(f) investment costs in production capacity in USD per t
Pmaxinv(f) maximal investments per (5) year in new production capacity in Mt
*20.06.2016, rm: make mc_int_start dependent on year a to implement subsidy removal startin 2020
mc_int_start(f,a) marginal costs intercept in USD per t
mc_slp_start(f) marginal costs slope in USD per t squared
mc_int_var(f) intercept variation factor (mine mortality rate)
mc_slp_var(f) slope variation factor (not existing in this version)
CournotPowerP(a,f,c) Cournot market power parameter
;
$GDXIN input_data.gdx
$LOAD Producer_data
$GDXIN
r(f)= 0.1;
Pcap(f) = Producer_data(f,'Pcap');
kfs(f) = Producer_data(f,'kfs');
delta(f) = Producer_data(f,'delta');
res(f) = Producer_data(f,'res');
CPinv(f) = Producer_data(f,'CPinv');
Pmaxinv(f) = Producer_data(f,'Pmaxinv');
mc_int_start(f,a) = Producer_data(f,'mc_int_start');
mc_slp_start(f) = Producer_data(f,'mc_slp_start');
mc_int_var(f) = Producer_data(f,'mc_int_var');
mc_slp_var(f) = Producer_data(f,'mc_slp_var');
*CournotPower=0 means no market power. CournotPower=1 means market power.
CournotPowerP(a,f,c)=0;
********************************************************************************
*************************Exporters Parameters***********************************
********************************************************************************
Parameters
r_e(e) discout rate of exporter
Exporter_data(e,*) exporter data
Ecap(e) export capacity of port of exporter e in Mt
fee_port(e) export fee of port of exporter e in USD per t
CEinv(e) investment costs in export capacity in USD per t
Emaxinv(e) maximal investments per (5) year in new export capacity in Mt
Emaxcap(e) maximal export capacity of exporter at final year in Mt
theta(e,sea) binary parameter for china export restriction
CournotPowerE(a,e,c)
;
$GDXIN input_data.gdx
$LOAD Exporter_data
$GDXIN
r_e(e)= 0.1;
Ecap(e) = Exporter_data(e,'Ecap');
fee_port(e) = Exporter_data(e,'fee_port');
CEinv(e) = Exporter_data(e,'CEinv');
Emaxinv(e) = Exporter_data(e,'Emaxinv');
Emaxcap(e) = Exporter_data(e,'Emaxcap');
*CournotPower=0 means no market power. CournotPower=1 means market power.
CournotPowerE(a,e,c)=0;
*Chinese Export Restriction
theta(e,sea) = 0;
theta('E_CHN',NoChina) = 1;
$ontext
Parameter China_lic(a) export licences in Mt meaning export restriction
/2010 20
2015 80
2020 90
2025 100
2030 110
2035 120
2040 130
/;
$offtext
********************************************************************************
**********************TransportLand Parameters**********************************
********************************************************************************
Parameters
Trans_c_data(f,c,*)
DomProd(f,c) existing land transport link between producer and consumer
Tmaxinv_c_fix(f,c)
Tmaxinv_c(a,f,c) maximal investments in additional transport capacity to consumer in year a in Mt
trans_c(f,c) transport costs from mine to consumption node in USD per t
tcap_c(f,c) tranport capacity from mine to consumption node in Mt
CTinv_c(f,c) investment costs in tranport capacity from mine to consumption node in USD per t
Trans_e_data(f,e,*)
ExProd(f,e) existing land transport link between producer and exporter
Tmaxinv_e_fix(f,e)
Tmaxinv_e(a,f,e) maximal investments in additional transport capacity to exporter in year a in Mt
trans_e(f,e,a) transport costs from mine to exporter in USD per t
tcap_e(f,e) transport capacity from mine to exporter in Mt
CTinv_e(f,e) investment costs in tranport capacity from mine to exporter in USD per t
kes(e) quality factor of exporter in t per GJ (note per exporter only one producer)
;
$GDXIN input_data.gdx
$LOAD Trans_c_data
$LOAD Trans_e_data
$GDXIN
DomProd(f,c) = Trans_c_data(f,c,'DomProd');
Tmaxinv_c_fix(f,c) = Trans_c_data(f,c,'Tmaxinv_c_fix');
trans_c(f,c) = Trans_c_data(f,c,'trans_c');
tcap_c(f,c) = Trans_c_data(f,c,'tcap_c');
CTinv_c(f,c) = Trans_c_data(f,c,'CTinv_c');
Tmaxinv_c(a,f,c) = Trans_c_data(f,c,'Tmaxinv_c_fix');
ExProd(f,e) = Trans_e_data(f,e,'ExProd');
Tmaxinv_e_fix(f,e) = Trans_e_data(f,e,'Tmaxinv_e_fix');
trans_e(f,e,a) = Trans_e_data(f,e,'trans_e');
tcap_e(f,e) = Trans_e_data(f,e,'tcap_e');
CTinv_e(f,e) = Trans_e_data(f,e,'CTinv_e');
Tmaxinv_e(a,f,e) = Trans_e_data(f,e,'Tmaxinv_e_fix');
kes(e) = sum(f,kfs(f)$ExProd(f,e));
********************************************************************************
**********************SeaTransport Parameters***********************************
********************************************************************************
Parameters
seastart(e,sea) starting year freight rates btw two nodes in USD per t
seadynamic(e,sea) freight rates btw two nodes in USD per t
searate(a,e,sea);
$GDXIN input_data.gdx
$LOAD seastart
$LOAD seadynamic
$GDXIN
searate(as,e,sea) = seastart(e,sea);
searate(ad,e,sea) = seadynamic(e,sea);
********************************************************************************
**********************Consumer Parameters***************************************
********************************************************************************
Parameters
p_ref(c,a) ref steam coal price in demand node c in USD per GJ
y_ref(c,a) ref steam coal consumption of demand node c in PJ
epsi(c,a) price elasticity of demand node c
b(a,c) demand curve slope
DemInter(a,c) demand curve intercept
r_c cosumer discount rate
;
$GDXIN input_data.gdx
$LOAD p_ref
$LOAD y_ref
$LOAD epsi
$GDXIN
b(a,c) = (1/epsi(c,a))*(p_ref(c,a)/y_ref(c,a));
DemInter(a,c) = p_ref(c,a)*(1-1/epsi(c,a));
*epsi(c,a)$(epsi(c,a)=0)=999;
*p_ref(c,a)$(p_ref(c,a)=0)=999;
*y_ref(c,a)$(y_ref(c,a)=0)=999;
*Display epsi, p_ref, y_ref;
r_c = 0.1 ;
********************************************************************************
**********************Save variables to fix for later runs**********************
********************************************************************************
parameters
x_fix(a,f,c)
y_fix(a,f,e)
z_fix(a,e,sea)
Pinv_fix(a,f)
Tinv_c_fix(a,f,c)
Tinv_e_fix(a,f,e)
alpha_p_fix(a,f)
alpha_Pinv_fix(a,f)
alpha_tc_fix(a,f,c)
alpha_te_fix(a,f,e)
Einv_fix(a,e)
mu_e_fix(a,e)
mu_Einv_fix(a,e)
pi_CHN_fix(a)
p_c_fix(a,c)
p_e_fix(a,e)
mc_int_fix(a,f)
consumption(c,a)
tsyear
********************************************************************************
**********************Output Parameters*****************************************
********************************************************************************
alias(r1,r2,r3,r4,r5,r6,r7,f1,f2,f3,f4,f5,f6,f7,f8,f9,*);
Parameters
zz what is this?
xxdom(country,f,c,a)
qxdom(country,f,c,a)
xxexp(country,f,c,a)
qxexp(country,f,c,a)
zzdom(country,e,c,a)
qzdom(country,e,c,a)
zzexp(country,e,c,a)
qzexp(country,e,c,a)
yydom(country,f,e,a)
yyexp(country,f,e,a)
fracdom(country,f,a)
fracexp(country,f,a)
xxfracdom(country,f,a)
xxfracexp(country,f,a)
yyfracdom(country,f,a)
yyfracexp(country,f,a)
ttest(country,f,a)
* General Reporting
report(r1,r2,r3,r4,r5,r6,r7) General Output Report all loop steps
* %modrun%,'tax rate','production','type', 'Unit', country,node,a
flow(f1,f2,f3,f4,f5,f6,f7,f8,f9) General Flow Report all loop steps
* %modrun%,'trade','type','Unit',countryOut,node,countryIn,node,a
;