Newer
Older
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
*** | (C) 2006-2019 Potsdam Institute for Climate Impact Research (PIK)
*** | authors, and contributors see CITATION.cff file. This file is part
*** | of REMIND and licensed under AGPL-3.0-or-later. Under Section 7 of
*** | AGPL-3.0, you are granted additional permissions described in the
*** | REMIND License Exception, version 1.0 (see LICENSE file).
*** | Contact: remind@pik-potsdam.de
*** SOF ./main.gms
*' @title REMIND - REgional Model of INvestments and Development
*'
*' @description REMIND is a global multi-regional model incorporating the economy, the climate system and a detailed representation of the energy sector.
*' It solves for an inter-temporal Pareto optimum in economic and energy investments in the model regions, fully accounting for interregional trade in goods,
*' energy carriers and emissions allowances. REMIND allows for the analysis of technology options and policy proposals for climate mitigation.
*'
*' The macro-economic core of REMIND is a Ramsey-type optimal growth model in which intertemporal global welfare is optimized subject to equilibrium constraints.
*' Intertemporal optimization with perfect foresight subject to market clearing.
*'
*' The code is structured in a modular way. The technical structure looky as follows: At the top level you find the folders config, core, modules and scripts.
*' The overall structure is build in the file main.gms. All settings and configuration information is given in the config folder.
*' The core folder contains all files that are part of the core of the REMIND model. For each module there exists a sub-folder in the modules folder.
*' Helpful scripts for e.g. starting a run or analysing results you find in the scripts folder.
*'
*' In the main.gms the technical structure of REMIND can be found.
*' First, the *.gms files from the core folder are included and afterward the *.gms files from the activated module realization,
*' beginning with the one with the smallest module-number. The technical structure of REMIND looks as follows:
*'
*' { width=100% }
*'
*' In general, the .gms-files in each module realization can be the same as in the core.
*' For each module it has to be clearly defined what kind of interfaces it has with the core part of the model.
*'
*' The REMIND GAMS code folllows a coding etiquette including the following prefixes:
*'
*' * q_ eQuations
*' * v_ Variables
*' * s_ Scalars
*' * f_ File parameters - these parameters contain data as it was read from file
*' * o_ Output parameters - only being influenced by optimization but without effect on the optimization
*' * c_ switches from the Config.gms - parameters, that are switches to choose different scenarios
*'
*' The prefixes are extended in some cases by a second letter:
*'
*' * ?m_ module-relevant object - This object is used by at least one module and the core code. Changes related to this object have to be performed carefully.
*' * ?00_ (a 2-digit number) module-only object - This 2-digit number defines the module the object belongs to. The number is used here to make sure that different modules cannot have the same object.
*'
*' Sets are treated slightly different: Instead of adding a prefix sets should get a 2-digit number suffix giving the number of the module in which the set is exclusively used.
*' If the set is used in more than one module no suffix should be given. For specific sets also prefixes exist:
*'
*' * s_FIRSTUNIT_2_SECONDUNIT unit conversion scalar - a scalar that is used to convert from FIRSTUNIT to SECONDUNIT by multiplying - example: s_GWh_2_EJ.
*' * c_@ - configuration switch, must be defined and assigned in the config.gms file. It's practically the former switches we had (emiscen, climscen, etc).
*'
*' The units (e.g., TWa, EJ, GtC, GtCO2, ...) of varialbles and parameters are documented at the location of the variable and parameter declaration in \[ \].
*##################### R SECTION START (VERSION INFO) ##########################
*
* Regionscode: 690d3718e151be1b450b394c1064b1c5
*
* Input data revision: 5.936
*
* Last modification (input data): Wed Dec 11 09:40:06 2019
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
*
*###################### R SECTION END (VERSION INFO) ###########################
*----------------------------------------------------------------------
*** main.gms: main file. welcome to remind!
*----------------------------------------------------------------------
*--------------------------------------------------------------------------
*** preliminaries:
*--------------------------------------------------------------------------
*** allow empty data sets:
$onempty
*** create dummy identifier to fill empty sets:
$phantom null
*** include unique element list:
$onuellist
*** include $-statements in listing
$ondollar
*** include end-of-line comments
$ONeolcom
*** remove the warnings for very small exponents (x**-60) when post-processing
$offdigit
*** turn profiling off (0) or on (1-3, different levels of detail)
option profile = 0;
*--------------------------------------------------------------------------
*** basic scenario choices
*--------------------------------------------------------------------------
***------------------------------------------------------------------------------------------------
***------------------------------------------------------------------------------------------------
*** WARNING *** WARNING *** WARNING *** WARNING *** WARNING *** WARNING ***
***------------------------------------------------------------------------------------------------
*** START OF WARNING ZONE
***------------------------------------------------------------------------------------------------
***
*** PLEASE DO NOT PERFORM ANY CHANGES IN THE WARNING ZONE! ALL SETTINGS WILL BE AUTOMATICALLY
*** SET BY submit.R BASED ON THE SETTINGS OF THE CORRESPONDING CFG FILE
*** PLEASE DO ALL SETTINGS IN THE CORRESPONDING CFG FILE (e.g. config/default.cfg)
***
***------------------------------------------------------------------------------------------------
*** WARNING *** WARNING *** WARNING *** WARNING *** WARNING *** WARNING ***
***------------------------------------------------------------------------------------------------
***--------------------- Run name -----------------------------------------
$setGlobal c_expname default
***------------------------------------------------------------------------------
*** MODULES
***------------------------------------------------------------------------------
***--------------------- 04_PE_FE_parameters ------------------------------
$setGlobal PE_FE_parameters iea2014 !! def = iea2014
***--------------------- 05_initialCap ------------------------------------
$setGlobal initialCap on !! def = on
***--------------------- 11_aerosols --------------------------------------
$setGlobal aerosols exoGAINS !! def = exoGAINS
***--------------------- 15_climate ---------------------------------------
$setGlobal climate off !! def = off
***--------------------- 16_downscaleTemperature ---------------------------------------
$setGlobal downscaleTemperature off !! def = off
***--------------------- 20_growth ----------------------------------------
$setGlobal growth exogenous !! def = exogenous
***--------------------- 21_tax -------------------------------------------
$setGlobal tax on !! def = on
***--------------------- 22_subsidizeLearning -----------------------------
$setGlobal subsidizeLearning off !! def = off
***--------------------- 23_capitalMarket -----------------------------
$setGlobal capitalMarket perfect !! def = perfect
***--------------------- 26_agCosts ------------------------------------------
$setGlobal agCosts costs !! def = costs
***--------------------- 29_CES_parameters --------------------------------
$setglobal CES_parameters load !! def = load
***--------------------- 30_biomass ---------------------------------------
$setGlobal biomass magpie_40 !! def = magpie_40
***--------------------- 31_fossil ----------------------------------------
$setGlobal fossil grades2poly !! def = grades2poly
***--------------------- 32_power ----------------------------------------
$setGlobal power IntC !! def = IntC
***--------------------- 33_cdr ----------------------------------------
$setGlobal CDR DAC !! def = DAC
***--------------------- 35_transport -------------------------------------
$setGlobal transport complex !! def = complex
***--------------------- 36_buildings -------------------------------------
$setglobal buildings simple !! def = simple
***--------------------- 37_industry --------------------------------------
$setglobal industry fixed_shares !! def = simple
***--------------------- 38_stationary --------------------------------------
$setglobal stationary off !! def = simple
***--------------------- 39_CCU --------------------------------------
$setglobal CCU off !! def = off
***--------------------- 40_techpol -----------------------------------------
$setglobal techpol none !! def = none
***--------------------- 41_emicapregi --------------------------------------
$setglobal emicapregi none !! def = none
***--------------------- 42_banking -----------------------------------------
$setglobal banking off !! def = off
***--------------------- 45_carbonprice -------------------------------------
$setglobal carbonprice none !! def = none
***--------------------- 47_regipol -------------------------------------
$setglobal regipol none !! def = none
***--------------------- 50_damages ---------------------------------------
$setGlobal damages off !! def = off
***--------------------- 51_internalizeDamages ---------------------------------------
$setGlobal internalizeDamages off !! def = off
***--------------------- 70_water -------------------------------------------
$setglobal water off !! def = off
***--------------------- 80_optimization ----------------------------------
$setGlobal optimization nash !! def = nash
***--------------------- 81_codePerformance -------------------------------
$setGlobal codePerformance off !! def = off
***-----------------------------------------------------------------------------
*** SWITCHES and FLAGS
***-----------------------------------------------------------------------------
***--------------- declaration of parameters for switches ----------------------
parameters
cm_iteration_max "number of Negishi iterations (up to 49)"
c_solver_try_max "maximum number of inner iterations within one Negishi iteration (<10)"
c_keep_iteration_gdxes "save intermediate iteration gdxes"
cm_nash_autoconverge "choice of nash convergence mode"
cm_postproc "turn on postprocessing" !! warning: you have to rerun the scenario
cm_emiscen "policy scenario choice"
cm_co2_tax_2020 "level of co2 tax in year 2020 in $ per t CO2eq, makes sense only for emiscen eq 9 and 45_carbonprice exponential"
cm_co2_tax_growth "growth rate of carbon tax"
c_macscen "use of mac"
cm_nucscen "nuclear option choice"
cm_ccapturescen "carbon capture option choice"
c_bioliqscen "bioenergy liquids technology choise"
c_bioh2scen "bioenergy hydrogen technology choice"
cm_IndCCSscen "CCS for Industry"
cm_optimisticMAC "assume optimistic Industry MAC from AR5 Ch. 10?"
cm_CCS_cement "CCS for cement sub-sector"
cm_CCS_chemicals "CCS for chemicals sub-sector"
cm_CCS_steel "CCS for steel sub-sector"
c_solscen "solar option choice"
cm_bioenergy_tax "level of bioenergy tax in fraction of bioenergy price"
cm_bioenergymaxscen "bound on global pebiolc production excluding residues"
c_tradecost_bio "choose financal tradecosts for biomass (purpose grown pebiolc)"
cm_1stgen_phaseout "choose if 1st generation biofuels should phase out after 2020 (delatcap=0)"
Lavinia Baumstark
committed
cm_cprice_red_factor "reduction factor for price on co2luc when calculating the revenues. Replicates the reduction applied in MAgPIE"
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
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
cm_startyear "first optimized modelling time step"
cm_stagestart "start of staged accession for delay runs"
cm_stageend "end of staged accession for delay runs"
c_start_budget "start of GHG budget limit"
cm_prtpScen "pure rate of time preference standard values"
cm_fetaxscen "choice of final energy tax path, subsidy path and inconvenience cost path, values other than 0 make setting module 21_tax on"
cm_multigasscen "scenario on GHG portfolio to be included in permit trading scheme"
cm_permittradescen "scenario on permit trade"
cm_limit_peur_scen "limit total uranium production"
cm_rentdiscoil "[grades2poly] discount factor for the oil rent"
cm_rentdiscoil2 "[grades2poly] discount factor for the oil rent achieved in 2100"
cm_rentconvoil "[grades2poly] number of years required to converge to the 2100 oil rent"
cm_rentdiscgas "[grades2poly] discount factor for the gas rent"
cm_rentdiscgas2 "[grades2poly] discount factor for the gas rent achieved in 2100"
cm_rentconvgas "[grades2poly] number of years required to converge to the 2100 gas rent"
cm_rentdisccoal "[grades2poly] discount factor for the coal rent"
cm_rentdisccoal2 "[grades2poly] discount factor for the coal rent achieved in 2100"
cm_rentconvcoal "[grades2poly] number of years required to converge to the 2100 coal rent"
cm_earlyreti_rate "maximum portion of capital stock that can be retired in one year"
c_cint_scen "additional GHG emissions from mining fossil fuels"
cm_so2tax_scen "level of SO2 tax"
c_damage "c_damage factor for forcing overshoot"
cm_solwindenergyscen "scenario for fluctuating renewables, 1 is reference, 2 is pessimistic with limits to fluctuating SE el share"
c_techAssumptScen "scenario for assumptions of energy technologies based on SSP scenarios, 1: SSP2 (default), 2: SSP1, 3: SSP5"
c_ccsinjecratescen "CCS injection rate factor, 0.5% by default yielding a 60 Mt per year IR"
c_ccscapratescen "CCS capture rate"
c_export_tax_scen "choose which oil export tax is used in the model. 0 = none, 1 = fix"
cm_iterative_target_adj "whether or not a tax or a budget target should be iteratively adjusted depending on actual emission or forcing level"
cm_gdximport_target "whether or not the starting value for iteratively adjusted budgets, tax scenarios, or forcing targets (emiscen 5,6,8,9) should be read in from the input.gdx"
cm_gs_ew "grain size (for enhanced weathering, CDR module) [micrometre]"
cm_LimRock "limit amount of rock spread each year [Gt]"
c_tau_so2_xmpt "switch for temporarily (mainly in the past) exempting chinese SO2 emissions from the SO2 tax"
cm_expoLinear_yearStart "time at which carbon price increases lineraly instead of exponentially"
c_budgetCO2FFI "carbon budget for CO2 emissions from FFI (in GtCO2)"
c_abtrdy "first year in which advanced bio-energy technology are ready (unit is year; e.g. 2050)"
c_abtcst "scaling of the cost of advanced bio-energy technologies (no unit, 50% increase means 1.5)"
c_budgetCO2 "carbon budget for all CO2 emissions (in GtCO2)"
c_trdcst "parameter to scale trade export cost for gas"
cm_trdadj "parameter scale the adjustment cost parameter for increasing gas trade export"
c_refcapbnd "switch for fixing refinery capacities to the SSP2 levels in 2010 (if equal zero then no fixing)"
cm_damages_BurkeLike_specification "empirical specification for Burke-like damage functions"
cm_damages_BurkeLike_persistenceTime " persistence time in years for Burke-like damage functions"
cm_damages_SccHorizon "Horizon for SCC calculation. Damages cm_damagesSccHorizon years into the future are internalized."
cm_carbonprice_temperatureLimit "not-to-exceed temperature target in degree above pre-industrial"
cm_frac_CCS "tax on CCS to reflect risk of leakage, formulated as fraction of ccs O&M costs"
cm_frac_NetNegEmi "tax on CDR to reflect risk of overshooting, formulated as fraction of carbon price"
cm_DiscRateScen "Scenario for the implicit discount rate applied to the energy efficiency capital"
cm_noReboundEffect "Switch for allowing a rebound effect when closing the efficiency gap (cm_DiscRateScen)"
cm_peakBudgYr "date of net-zero CO2 emissions for peak budget runs without overshoot"
cm_taxCO2inc_after_peakBudgYr "annual increase of CO2 price after the Peak Budget Year in $ per tCO2"
cm_CO2priceRegConvEndYr "Year at which regional CO2 prices converge in module 45 realization diffPhaseIn2LinFlex"
;
*** --------------------------------------------------------------------------------------------------------------------------------------------------------------------
*** YOU ARE IN THE WARNING ZONE (DON'T DO CHANGES HERE)
*** --------------------------------------------------------------------------------------------------------------------------------------------------------------------
cm_iteration_max = 1; !! def = 1
c_solver_try_max = 2; !! def = 2
c_keep_iteration_gdxes = 0; !! def = 0
cm_nash_autoconverge = 1; !! def = 1
cm_postproc = 0; !! def = 0
$setglobal cm_MAgPIE_coupling off !! def = "off"
cm_emiscen = 1; !! def = 1
$setglobal cm_rcp_scen none !! def = "none"
cm_co2_tax_2020 = -1; !! def = -1
cm_co2_tax_growth = 1.05; !! def = 1.05
c_macscen = 1; !! def = 1
cm_nucscen = 2; !! def = 2
cm_ccapturescen = 1; !! def = 1
c_bioliqscen = 1; !! def = 1
c_bioh2scen = 1; !! def = 1
c_solscen = 1; !! def = 1
cm_IndCCSscen = 1; !! def = 1
cm_optimisticMAC = 0; !! def = 0
cm_CCS_cement = 1; !! def = 1
cm_CCS_chemicals = 1; !! def = 1
cm_CCS_steel = 1; !! def = 1
cm_bioenergy_tax = 1.5; !! def = 1.5
cm_bioenergymaxscen = 0; !! def = 3
c_tradecost_bio = 2; !! def = 2
$setglobal cm_LU_emi_scen SSP2 !! def = SSP2
cm_1stgen_phaseout = 0; !! def = 0
Lavinia Baumstark
committed
cm_cprice_red_factor = 0.5; !! def = 0.5
$setglobal cm_POPscen pop_SSP2 !! def = pop_SSP2
$setglobal cm_GDPscen gdp_SSP2 !! def = gdp_SSP2
$setglobal c_GDPpcScen SSP2 !! def = gdp_SSP2 (automatically adjusted by start_run() based on GDPscen)
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
*AG* and *CB* for cm_startyear greater than 2005, you have to copy the fulldata.gdx (rename it to: input_ref.gdx) from the run you want to build your new run onto.
cm_startyear = 2005; !! def = 2005 for a BAU, 2015 for policy runs
cm_stagestart = 2020; !! def = 2020
cm_stageend = 2040; !! def = 2040
c_start_budget = 2100; !! def = 2100
cm_prtpScen = 3; !! def = 3
cm_fetaxscen = 3; !! def = 3
cm_multigasscen = 2; !! def = 2
cm_permittradescen = 1; !! def = 1
cm_limit_peur_scen = 1; !! def = 1
$setGlobal cm_oil_scen medOil !! def = medOil
$setGlobal cm_gas_scen medGas !! def = medGas
$setGlobal cm_coal_scen medCoal !! def = medCoal
cm_rentdiscoil = 0.2; !! def 0.2
cm_rentdiscoil2 = 0.9; !! def 0.9
cm_rentconvoil = 50; !! def 50
cm_rentdiscgas = 0.6; !! def 0.6
cm_rentdiscgas2 = 0.8; !! def 0.8
cm_rentconvgas = 50; !! def 50
cm_rentdisccoal = 0.4; !! def 0.4
cm_rentdisccoal2 = 0.6; !! def 0.6
cm_rentconvcoal = 50; !! def 50
cm_earlyreti_rate = 0.09; !! def 0.09
cm_so2tax_scen = 1; !! def =
c_cint_scen = 1; !! def = 1
c_damage = 0.005; !! def = 0.005
cm_solwindenergyscen = 1; !! def = 1
c_techAssumptScen = 1; !! def = 1
c_ccsinjecratescen = 1; !! def = 1
c_ccscapratescen = 1; !! def = 1
c_export_tax_scen = 0; !! def = 0
cm_iterative_target_adj = 0; !! def = 0
cm_gdximport_target = 0; !! def = 0
$setglobal c_SSP_forcing_adjust forcing_SSP2 !! def = forcing_SSP2
$setglobal c_delayPolicy SPA0 !! def = SPA0
cm_gs_ew = 20; !! def = 20
cm_LimRock = 1000; !! def = 1000
c_tau_so2_xmpt = 0; !! def = 0
cm_expoLinear_yearStart = 2050; !! def = 2050
c_budgetCO2FFI = 1000; !! def = 1000
c_abtrdy = 2010; !! def = 2010
c_abtcst = 1; !! def = 1
c_budgetCO2 = 1350; !! def = 1300
$setGlobal cm_regiCO2target off !! def = off
cm_peakBudgYr = 2050; !! def = 2050
cm_taxCO2inc_after_peakBudgYr = 2; !! def = 2
cm_CO2priceRegConvEndYr = 2050; !! def = 2050
cm_trdadj = 2; !! def = 2.0
c_trdcst = 1.5; !! def = 1.5
c_refcapbnd = 0; !! def = 0
cm_frac_CCS = 10; !! def = 10
cm_frac_NetNegEmi = 0.5; !! def = 0.5
cm_damages_BurkeLike_specification = 0; !! def = 0
cm_damages_BurkeLike_persistenceTime = 30; !! def = 30
cm_damages_SccHorizon = 100; !! def = 100
cm_carbonprice_temperatureLimit = 1.8; !! def = 1.8
cm_DiscRateScen = 0;!! def = 0
cm_noReboundEffect = 0;
$setGlobal cm_EsubGrowth low !! def = low
*** --------------------------------------------------------------------------------------------------------------------------------------------------------------------
*** YOU ARE IN THE WARNING ZONE (DON'T DO CHANGES HERE)
*** --------------------------------------------------------------------------------------------------------------------------------------------------------------------
*--------------------flags------------------------------------------------------------
$SETGLOBAL cm_SlowConvergence off !! def = off
$setGlobal cm_nash_mode parallel !! def = parallel
$setGlobal c_EARLYRETIRE on !! def = on
$setGlobal cm_OILRETIRE off !! def = off
$setglobal c_INCONV_PENALTY on !! def = on
$setGlobal cm_so2_out_of_opt on !! def = on
$setGlobal c_skip_output off !! def = off
$setGlobal cm_MOFEX off !! def = off
$setGlobal cm_conoptv conopt3 !! def = conopt3
$setGlobal cm_ccsfosall off !! def = off
$setGlobal cm_APscen SSP2 !! def = SSP2
$setGlobal cm_magicc_calibrateTemperature2000 uncalibrated !! def=uncalibrated
$setGlobal cm_magicc_config OLDDEFAULT !! def = OLDDEFAULT
$setGlobal cm_magicc_temperatureImpulseResponse off !! def = off
$setGlobal cm_damage_DiceLike_specification HowardNonCatastrophic !! def = HowardNonCatastrophic
$setglobal cm_compile_main TRUE !! this will be changed by submit.R
$setglobal cm_CES_configuration stat_off-indu_fixed_shares-buil_simple-tran_complex-POP_pop_SSP2-GDP_gdp_SSP2-Kap_perfect-Reg_690d3718e1 !! this will be changed by start_run()
$setglobal c_CES_calibration_new_structure 0 !! def = 0
$setglobal c_CES_calibration_iterations 10 !! def = 10
$setglobal c_CES_calibration_iteration 1 !! def = 1
$setglobal c_CES_calibration_write_prices 0 !! def = 0
$setglobal cm_CES_calibration_default_prices 0 !! def = 0
$setglobal c_testOneRegi_region EUR !! def = EUR
$setglobal cm_cooling_shares static !! def = static
$setglobal cm_techcosts REG !! def = REG
$setglobal cm_regNetNegCO2 on !! def = on
*** --------------------------------------------------------------------------------------------------------------------------------------------------------------------
*** --------------------------------------------------------------------------------------------------------------------------------------------------------------------
*** END OF WARNING ZONE
*** --------------------------------------------------------------------------------------------------------------------------------------------------------------------
*** --------------------------------------------------------------------------------------------------------------------------------------------------------------------
*--------------------more flags-------------------------------------------------------
*-------------------------------------------------------------------------------------
*AG* the remaining flags outside the warning zone are usually not changed
*LB* default: 5 years time steps from 2005 to 2150
*LB* test_TS: 2005,2010, 2020,2030,2040,2050,2070,2090,2110,2130,2150
*LB* cm_less_TS: 2005,2010,2015,2020,2025,2030,2035,2040,2045,2050,2055,2060,2070,2080,2090,2100,2110,2130,2150
*LB* END2110: 2005:5:2105,2120
$setGlobal cm_less_TS on !! def = on
***$setGlobal test_TS !! def = off
*GL* Flag for short time horizon
***$setGlobal END2110 !! def = off
$setGlobal cm_Full_Integration off !! def = off
*-------------------------------------------------------------------------------------
*** automated checks and settings
*ag* set conopt version
option nlp = %cm_conoptv%;
option cns = %cm_conoptv%;
*--------------------------------------------------------------------------
*** SETS
*--------------------------------------------------------------------------
$include "./core/sets.gms";
$batinclude "./modules/include.gms" sets
$include "./core/sets_calculations.gms";
*--------------------------------------------------------------------------
*** DECLARATION of equations, variables, parameters and scalars
*--------------------------------------------------------------------------
$include "./core/declarations.gms";
$batinclude "./modules/include.gms" declarations
*--------------------------------------------------------------------------
*** DATAINPUT
*--------------------------------------------------------------------------
$include "./core/datainput.gms";
$batinclude "./modules/include.gms" datainput
*--------------------------------------------------------------------------
*** EQUATIONS
*--------------------------------------------------------------------------
$include "./core/equations.gms";
$batinclude "./modules/include.gms" equations
*--------------------------------------------------------------------------
*** PRELOOP Calculations before the Negishi-loop starts
*** (e.g. initial calibration of macroeconomic module)
*--------------------------------------------------------------------------
$include "./core/preloop.gms";
$batinclude "./modules/include.gms" preloop
*--------------------------------------------------------------------------
*** LOOP solve statement, including BOUNDS
*--------------------------------------------------------------------------
$include "./core/loop.gms";
*--------------------------------------------------------------------------
*** OUTPUT
*--------------------------------------------------------------------------
$ifthen.c_skip_output %c_skip_output% == "off"
$include "./core/output.gms";
$batinclude "./modules/include.gms" output
$include "./core/magicc.gms"; !!connection to MAGICC, needed for post-processing
$endif.c_skip_output
*** EOF ./main.gms