-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgenesysmod_dec.gms
481 lines (396 loc) · 18 KB
/
genesysmod_dec.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
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
296
297
298
299
300
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
479
480
481
* ###################### genesysmod_dec.gms #######################
*
* GENeSYS-MOD v3.1 [Global Energy System Model] ~ March 2022
*
* Based on OSEMOSYS 2011.07.07 conversion to GAMS by Ken Noble, Noble-Soft Systems - August 2012
*
* Updated to newest OSeMOSYS-Version (2016.08) and further improved with additional equations 2016 - 2022
* by Konstantin L�ffler, Thorsten Burandt, Karlo Hainsch
*
* #############################################################
*
* Copyright 2020 Technische Universit�t Berlin and DIW Berlin
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* #############################################################
$offOrder
$ifthen.dec_timeseries %timeseries% == elmod
set TIMESLICE_FULL /1*8760/;
alias (l_full,ll_full,TIMESLICE_FULL);
set DAILYTIMEBRACKET /1*24/;
alias (lh,DAILYTIMEBRACKET,lhlh);
$else.dec_timeseries
set HOUR /1*8760/
alias (h,hh,HOUR);
set TIMESLICE_FULL /Q1M,Q1P,Q1A,Q1N,Q2M,Q2P,Q2A,Q2N,Q3M,Q3P,Q3A,Q3N,Q4M,Q4P,Q4A,Q4N/;
alias (l_full,ll_full,TIMESLICE_FULL);
set DAILYTIMEBRACKET;
alias (lh,DAILYTIMEBRACKET,lhlh);
$endif.dec_timeseries
set TIMESLICE(l_full);
alias (l,ll,TIMESLICE);
Set YEAR_FULL /2015*2100/;
alias (y_full, yy_full, YEAR_FULL);
set YEAR(y_full);
alias (y,yy,YEAR);
set REGION_FULL ;
alias (REGION_FULL,r_full,rr_full);
set REGION(REGION_FULL);
alias (REGION,r,rr)
set TECHNOLOGY /Infeasibility_Power,
Infeasibility_HLI,
Infeasibility_HMI,
Infeasibility_HHI,
Infeasibility_HLR,
Infeasibility_Mob_Passenger,
Infeasibility_Mob_Freight /;
alias (t,TECHNOLOGY);
set DummyTechnology(TECHNOLOGY);
set FUEL;
alias (f,ff,FUEL);
set SECTOR /Infeasibility/;
alias (se,sse,SECTOR);
set EMISSION;
alias (e,EMISSION);
set MODE_OF_OPERATION ;
alias (m,MODE_OF_OPERATION);
set STORAGE;
alias (s,STORAGE);
set SEASON;
alias (ls,SEASON);
set DAYTYPE;
alias (ld,DAYTYPE);
set DAILYTIMEBRACKET;
alias (lh,DAILYTIMEBRACKET,lhlh);
set MODALTYPE;
alias (mt,MODALTYPE);
*
* ####################
* # Parameters #
* ####################
*
* ####### Global #############
*
parameter StartYear Defines the first year of the modeling horizon;
parameter YearSplit(TIMESLICE_FULL,y_full);
parameter GeneralDiscountRate(REGION_FULL);
parameter SocialDiscountRate(REGION_FULL);
parameter TechnologyDiscountRate(REGION_FULL,TECHNOLOGY);
*
* ####### Demands #############
*
parameter SpecifiedAnnualDemand(REGION_FULL,FUEL,y_full);
parameter SpecifiedDemandProfile(REGION_FULL,FUEL,TIMESLICE_FULL,y_full);
parameter RateOfDemand(y_full,TIMESLICE_FULL,FUEL,REGION_FULL) Rate of demand in given timeslice. Unit: GW;
parameter Demand(y_full,TIMESLICE_FULL,FUEL,REGION_FULL);
*parameter AccumulatedAnnualDemand(REGION_FULL,FUEL,y_full);
parameter DepreciationMethod(REGION_FULL);
*
* ######## Technology Performance #############
*
parameter CapacityToActivityUnit(REGION_FULL,TECHNOLOGY);
parameter CapacityFactor(REGION_FULL,TECHNOLOGY,TIMESLICE_FULL,y_full);
parameter AvailabilityFactor(REGION_FULL,TECHNOLOGY,y_full);
parameter OperationalLife(REGION_FULL,TECHNOLOGY);
parameter ResidualCapacity(REGION_FULL,TECHNOLOGY,y_full);
parameter InputActivityRatio(REGION_FULL,TECHNOLOGY,FUEL,MODE_OF_OPERATION,y_full);
parameter OutputActivityRatio(REGION_FULL,TECHNOLOGY,FUEL,MODE_OF_OPERATION,y_full);
parameter CapacityOfOneTechnologyUnit(y_full, TECHNOLOGY, REGION_FULL);
parameter TagDispatchableTechnology(TECHNOLOGY);
parameter BaseYearProduction(TECHNOLOGY,FUEL,YEAR_FULL);
parameter RegionalBaseYearProduction(REGION_FULL,TECHNOLOGY,FUEL,YEAR_FULL);
parameter TagElectricTechnology(TECHNOLOGY);
parameter TimeDepEfficiency(REGION_FULL,TECHNOLOGY,TIMESLICE_FULL,YEAR_FULL) Time dependent efficiency for heatpumps;
parameter RegionalCCSLimit(REGION_FULL);
*
* ######## Technology Costs #############
*
parameter CapitalCost(REGION_FULL,TECHNOLOGY,YEAR_FULL);
parameter VariableCost(REGION_FULL,TECHNOLOGY,MODE_OF_OPERATION,YEAR_FULL);
parameter FixedCost(REGION_FULL,TECHNOLOGY,YEAR_FULL);
*
* ######## Storage Parameters #############
*
parameter StorageLevelStart(REGION_FULL,STORAGE);
parameter StorageMaxChargeRate(REGION_FULL,STORAGE);
parameter StorageMaxDischargeRate(REGION_FULL,STORAGE);
parameter MinStorageCharge(REGION_FULL,STORAGE,YEAR_FULL);
parameter OperationalLifeStorage(REGION_FULL,STORAGE,YEAR_FULL);
parameter CapitalCostStorage(REGION_FULL,STORAGE,YEAR_FULL);
parameter ResidualStorageCapacity(REGION_FULL,STORAGE,YEAR_FULL);
parameter TechnologyToStorage(YEAR_FULL,MODE_OF_OPERATION,TECHNOLOGY,STORAGE);
parameter TechnologyFromStorage(YEAR_FULL,MODE_OF_OPERATION,TECHNOLOGY,STORAGE);
parameter StorageMaxCapacity(REGION_FULL,STORAGE,YEAR_FULL);
*
* ######## Capacity Constraints #############
*
parameter TotalAnnualMaxCapacity(REGION_FULL,TECHNOLOGY,YEAR_FULL);
parameter TotalAnnualMinCapacity(REGION_FULL,TECHNOLOGY,YEAR_FULL);
*
* ######### SectoralEmissions #############
*
parameter TagTechnologyToSector(TECHNOLOGY,SECTOR);
parameter AnnualSectoralEmissionLimit(EMISSION,SECTOR,YEAR_FULL);
parameter TagDemandFuelToSector(FUEL,SECTOR);
*
* ######## Investment Constraints #############
*
parameter TotalAnnualMaxCapacityInvestment(REGION_FULL,TECHNOLOGY,YEAR_FULL);
parameter TotalAnnualMinCapacityInvestment(REGION_FULL,TECHNOLOGY,YEAR_FULL);
*
* ######## Activity Constraints #############
*
parameter TotalTechnologyAnnualActivityUpperLimit(REGION_FULL,TECHNOLOGY,YEAR_FULL);
parameter TotalTechnologyAnnualActivityLowerLimit(REGION_FULL,TECHNOLOGY,YEAR_FULL);
* Added for Guadeloupe:
* -------------------------------------------------------------------------------------
parameter OverallBaseYearMinActivity(TECHNOLOGY,YEAR_FULL);
parameter OverallBaseYearMaxActivity(TECHNOLOGY,YEAR_FULL);
* -------------------------------------------------------------------------------------
parameter TotalTechnologyModelPeriodActivityUpperLimit(REGION_FULL,TECHNOLOGY);
parameter TotalTechnologyModelPeriodActivityLowerLimit(REGION_FULL,TECHNOLOGY);
*
* ######## Reserve Margin ############
*
parameter ReserveMarginTagTechnology(REGION_FULL,TECHNOLOGY,YEAR_FULL);
parameter ReserveMarginTagFuel(REGION_FULL,FUEL,YEAR_FULL);
parameter ReserveMargin(REGION_FULL,YEAR_FULL);
*
* ######## RE Generation Target ############
*
parameter RETagTechnology(REGION_FULL,TECHNOLOGY,YEAR_FULL);
parameter RETagFuel(REGION_FULL,FUEL,YEAR_FULL);
parameter REMinProductionTarget(REGION_FULL,FUEL,YEAR_FULL);
*
* ######### Emissions & Penalties #############
*
parameter EmissionActivityRatio(REGION_FULL,TECHNOLOGY,EMISSION,MODE_OF_OPERATION,YEAR_FULL);
parameter EmissionContentPerFuel(FUEL,EMISSION);
parameter EmissionsPenalty(REGION_FULL,EMISSION,YEAR_FULL);
parameter EmissionsPenaltyTagTechnology(REGION_FULL,TECHNOLOGY,EMISSION,YEAR_FULL);
parameter AnnualExogenousEmission(REGION_FULL,EMISSION,YEAR_FULL);
parameter AnnualEmissionLimit(EMISSION,YEAR_FULL);
parameter RegionalAnnualEmissionLimit(REGION_FULL,EMISSION,YEAR_FULL);
parameter ModelPeriodExogenousEmission(REGION_FULL,EMISSION);
parameter ModelPeriodEmissionLimit(EMISSION);
parameter RegionalModelPeriodEmissionLimit(EMISSION,REGION_FULL);
parameter CurtailmentCostFactor(REGION_FULL,FUEL,YEAR_FULL);
*
* ######### Trade #############
*
parameter TradeRoute(y_full,FUEL,REGION_FULL,rr_full);
parameter TradeCosts(FUEL,REGION_FULL,rr_full);
parameter TradeLossFactor(YEAR_FULL,FUEL);
parameter TradeRouteInstalledCapacity(y_full,f,r_full,rr_full);
parameter TradeLossBetweenRegions(y_full,FUEL,REGION_FULL,RR_FULL);
parameter AdditionalTradeCapacity(y_full,f,r_full,rr_full);
parameter TradeCapacity(y_full,f,r_full,rr_full);
parameter TradeCapacityGrowthCosts(f, r_full, rr_full);
parameter GrowthRateTradeCapacity(y_full, f, r_full, rr_full);
parameter SelfSufficiency(y_full, fuel, r_full);
*
* ######### Time Slice Conversion #############
*
parameter Conversionls(TIMESLICE_FULL,ls);
parameter Conversionld(TIMESLICE_FULL,ld);
parameter Conversionlh(TIMESLICE_FULL,lh);
parameter DaySplit(y_full,TIMESLICE_FULL);
parameter DaysInDayType(y_full,SEASON,DAYTYPE);
*
* ######### Transportation #############
*
parameter ModalSplitByFuelAndModalType(REGION_FULL,FUEL,YEAR_FULL,MODALTYPE);
parameter TagTechnologyToModalType(TECHNOLOGY,MODE_OF_OPERATION,MODALTYPE);
parameter ProductionGrowthLimit(YEAR_FULL,FUEL);
* #####################
* # Model Variables #
* #####################
*
* ############### Capacity Variables ############*
*
positive variable NewCapacity(y_full,TECHNOLOGY,REGION_FULL);
positive variable AccumulatedNewCapacity(y_full,TECHNOLOGY,REGION_FULL);
positive variable TotalCapacityAnnual(y_full,TECHNOLOGY,REGION_FULL);
*
* ############### Activity Variables #############
*
positive variable RateOfActivity(y_full,TIMESLICE_FULL,TECHNOLOGY,MODE_OF_OPERATION,REGION_FULL);
*positive variable RateOfTotalActivity(y_full,TIMESLICE_FULL,TECHNOLOGY,REGION_FULL);
positive variable TotalTechnologyAnnualActivity(y_full,TECHNOLOGY,REGION_FULL);
positive variable TotalAnnualTechnologyActivityByMode(y_full,TECHNOLOGY,MODE_OF_OPERATION,REGION_FULL);
*positive variable RateOfProductionByTechnologyByMode(y_full,TIMESLICE_FULL,TECHNOLOGY,MODE_OF_OPERATION,FUEL,REGION_FULL);
*positive variable RateOfUseByTechnologyByMode(y_full,TIMESLICE_FULL,TECHNOLOGY,MODE_OF_OPERATION,FUEL,REGION_FULL);
*positive variable RateOfProductionByTechnology(y_full,TIMESLICE_FULL,TECHNOLOGY,FUEL,REGION_FULL);
*positive variable RateOfUseByTechnology(y_full,TIMESLICE_FULL,TECHNOLOGY,FUEL,REGION_FULL);
*positive variable ProductionByTechnology(y_full,TIMESLICE_FULL,TECHNOLOGY,FUEL,REGION_FULL);
*positive variable UseByTechnology(y_full,TIMESLICE_FULL,TECHNOLOGY,FUEL,REGION_FULL);
*positive variable RateOfProduction(y_full,TIMESLICE_FULL,FUEL,REGION_FULL);
*positive variable RateOfUse(y_full,TIMESLICE_FULL,FUEL,REGION_FULL);
positive variable ProductionByTechnologyAnnual(y_full,TECHNOLOGY,FUEL,REGION_FULL);
positive variable UseByTechnologyAnnual(y_full,TECHNOLOGY,FUEL,REGION_FULL);
*positive variable Production(y_full,TIMESLICE_FULL,FUEL,REGION_FULL);
*positive variable Use(y_full,TIMESLICE_FULL,FUEL,REGION_FULL);
*positive variable ProductionAnnual(y_full,FUEL,REGION_FULL);
*positive variable UseAnnual(y_full,FUEL,REGION_FULL);
positive variable TotalActivityPerYear(REGION_FULL,TIMESLICE_FULL,TECHNOLOGY,YEAR_FULL);
positive variable Curtailment(y_full,TIMESLICE_FULL,f,r_full);
positive variable CurtailmentAnnual(y_full,f,r_full);
positive variable DispatchDummy(r_full,TIMESLICE_FULL,t,y_full);
*
* ############### Costing Variables #############
*
positive variable CapitalInvestment(y_full,TECHNOLOGY,REGION_FULL);
positive variable DiscountedCapitalInvestment(y_full,TECHNOLOGY,REGION_FULL);
positive variable SalvageValue(y_full,TECHNOLOGY,REGION_FULL);
positive variable DiscountedSalvageValue(y_full,TECHNOLOGY,REGION_FULL);
positive variable OperatingCost(y_full,TECHNOLOGY,REGION_FULL);
positive variable DiscountedOperatingCost(y_full,TECHNOLOGY,REGION_FULL);
positive variable AnnualVariableOperatingCost(y_full,TECHNOLOGY,REGION_FULL);
positive variable AnnualFixedOperatingCost(y_full,TECHNOLOGY,REGION_FULL);
positive variable VariableOperatingCost(y_full,TIMESLICE_FULL,TECHNOLOGY,REGION_FULL);
positive variable TotalDiscountedCost(y_full,REGION_FULL);
positive variable TotalDiscountedCostByTechnology(y_full,TECHNOLOGY,REGION_FULL)
positive variable ModelPeriodCostByRegion (REGION_FULL);
positive variable AnnualCurtailmentCost(YEAR_FULL,FUEL,REGION_FULL);
positive variable DiscountedAnnualCurtailmentCost(YEAR_FULL,FUEL,REGION_FULL);
*
* ############### Storage Variables #############
*
free variable RateOfStorageCharge(s,y_full,ls,ld,lh,REGION_FULL);
free variable RateOfStorageDischarge(s,y_full,ls,ld,lh,REGION_FULL);
free variable NetChargeWithinYear(s,y_full,ls,ld,lh,REGION_FULL);
free variable NetChargeWithinDay(s,y_full,ls,ld,lh,REGION_FULL);
positive variable StorageLevelYearStart(s,y_full,REGION_FULL);
positive variable StorageLevelTSStart(s,y_full,TIMESLICE_FULL,REGION_FULL);
positive variable StorageLevelYearFinish(s,y_full,REGION_FULL);
positive variable StorageLevelSeasonStart(s,y_full,ls,REGION_FULL);
positive variable StorageLevelDayTypeStart(s,y_full,ls,ld,REGION_FULL);
positive variable StorageLevelDayTypeFinish(s,y_full,ls,ld,REGION_FULL);
positive variable StorageLowerLimit(s,y_full,REGION_FULL);
positive variable StorageUpperLimit(s,y_full,REGION_FULL);
positive variable AccumulatedNewStorageCapacity(s,y_full,REGION_FULL);
positive variable NewStorageCapacity(s,y_full,REGION_FULL);
positive variable CapitalInvestmentStorage(s,y_full,REGION_FULL);
positive variable DiscountedCapitalInvestmentStorage(s,y_full,REGION_FULL);
positive variable SalvageValueStorage(s,y_full,REGION_FULL);
positive variable DiscountedSalvageValueStorage(s,y_full,REGION_FULL);
positive variable TotalDiscountedStorageCost(s,y_full,REGION_FULL);
*
* ######## Reserve Margin #############
*
positive variable TotalActivityInReserveMargin(REGION_FULL,y_full,TIMESLICE_FULL);
positive variable DemandNeedingReserveMargin(y_full,TIMESLICE_FULL,REGION_FULL);
*
* ######## RE Gen Target #############
*
free variable TotalREProductionAnnual(y_full,REGION_FULL,FUEL);
free variable RETotalDemandOfTargetFuelAnnual(y_full,REGION_FULL,FUEL);
free variable TotalTechnologyModelPeriodActivity(TECHNOLOGY,REGION_FULL);
positive variable RETargetMin(YEAR_FULL,REGION_FULL);
*
* ######## Emissions #############
*
variable AnnualTechnologyEmissionByMode(y_full,TECHNOLOGY,EMISSION,MODE_OF_OPERATION,REGION_FULL);
variable AnnualTechnologyEmission(y_full,TECHNOLOGY,EMISSION,REGION_FULL);
variable AnnualTechnologyEmissionPenaltyByEmission(y_full,TECHNOLOGY,EMISSION,REGION_FULL);
variable AnnualTechnologyEmissionsPenalty(y_full,TECHNOLOGY,REGION_FULL);
variable DiscountedTechnologyEmissionsPenalty(y_full,TECHNOLOGY,REGION_FULL);
variable AnnualEmissions(y_full,EMISSION,REGION_FULL);
variable ModelPeriodEmissions(EMISSION,REGION_FULL);
variable WeightedAnnualEmissions(year_full,emission,region_full);
*
* ######### SectoralEmissions #############
*
variable AnnualSectoralEmissions(y_full,EMISSION,SECTOR,REGION_FULL);
*
* ######### Trade #############
*
positive variable Import(y_full,TIMESLICE_FULL,FUEL,REGION_FULL,rr_full);
positive variable Export(y_full,TIMESLICE_FULL,FUEL,REGION_FULL,rr_full);
positive variable NewTradeCapacity(YEAR_FULL, FUEL, REGION_FULL, rr_full);
positive variable TotalTradeCapacity(YEAR_FULL, FUEL, REGION_FULL, rr_full);
positive variable NewTradeCapacityCosts(YEAR_FULL, FUEL, REGION_FULL, rr_full);
positive variable DiscountedNewTradeCapacityCosts(YEAR_FULL, FUEL, REGION_FULL, rr_full);
free variable NetTrade(y_full,TIMESLICE_FULL,FUEL,REGION_FULL);
free variable NetTradeAnnual(y_full,FUEL,REGION_FULL);
free variable TotalTradeCosts(y_full,TIMESLICE_FULL,REGION_FULL);
free variable AnnualTotalTradeCosts(y_full,REGION_FULL);
free variable DiscountedAnnualTotalTradeCosts(y_full,REGION_FULL);
*
* ######### Transportation #############
*
parameter TrajectoryLowerLimit(y_full);
parameter TrajectoryUpperLimit(y_full);
positive variable DemandSplitByModalType(MODALTYPE,TIMESLICE_FULL,REGION_FULL,FUEL,YEAR_FULL);
positive variable ProductionSplitByModalType(MODALTYPE,TIMESLICE_FULL,REGION_FULL,FUEL,YEAR_FULL);
$ifthen.dec_ramping %switch_ramping% == 1
*
* ######## Ramping #############
*
parameter RampingUpFactor(REGION_FULL,TECHNOLOGY,y_full);
parameter RampingDownFactor(REGION_FULL,TECHNOLOGY,y_full);
parameter ProductionChangeCost(REGION_FULL,TECHNOLOGY,y_full);
parameter MinActiveProductionPerTimeslice(YEAR_FULL,TIMESLICE_FULL,FUEL,TECHNOLOGY,REGION_FULL);
positive variable ProductionUpChangeInTimeslice(YEAR_FULL,TIMESLICE_FULL,FUEL,TECHNOLOGY,REGION_FULL);
positive variable ProductionDownChangeInTimeslice(YEAR_FULL,TIMESLICE_FULL,FUEL,TECHNOLOGY,REGION_FULL);
positive variable AnnualProductionChangeCost(y_full,TECHNOLOGY,REGION_FULL);
positive variable DiscountedAnnualProductionChangeCost(y_full,TECHNOLOGY,REGION_FULL);
$endif.dec_ramping
Parameter PhaseOut(YEAR_FULL) this is an upper limit for fossil generation based on the previous year - to remove choose large value
/ 2020 3
2025 3
2030 3
2035 2.5
2040 2.5
2045 2
2050 2
/
PhaseIn(YEAR_FULL) this is a lower bound for renewable integration based on the previous year - to remove choose 0
/ 2020 1
2025 0.8
2030 0.7
2035 0.7
2040 0.7
2045 0.6
2050 0.5
/;
Parameter BaseYearSlack(f);
Positive Variable BaseYearOvershoot(r_full,t,f,y_full);
positive variable DiscountedSalvageValueTransmission(y_full,r_full);
Parameter StorageLevelYearStartUpperLimit;
Parameter StorageLevelYearStartLowerLimit;
StorageLevelYearStartUpperLimit = %set_storagelevelstart_up%;
StorageLevelYearStartLowerLimit = %set_storagelevelstart_low%;
if((StorageLevelYearStartUpperLimit-StorageLevelYearStartLowerLimit)<0,abort "StorageLevelYearStart upper limit cannot be smaller than lower limit. Please check your values for set_storagelevelstart_up and set_storagelevelstart_low.");
$ifthen %switch_employment_calculation% == 1
set JobType this set contains job types /ConstructionJobs,ManufacturingJobs,OMJobs,SupplyJobs/
alias (JobType,jt);
* ########## Declaration of Employment Parameters ##########
parameter EFactorConstruction;
parameter EFactorOM;
parameter EFactorManufacturing;
parameter EFactorFuelSupply;
parameter EFactorCoalJobs;
parameter CoalSupply
parameter CoalDigging
parameter RegionalAdjustmentFactor;
parameter LocalManufacturingFactor;
parameter DeclineRate;
parameter ConstructionJobs;
parameter ManufacturingJobs;
parameter OMJobs;
parameter SupplyJobs;
parameter CoalJobs;
parameter output_energyjobs;
$endif