A comprehensive collection of example energy system models in multiple optimization modeling languages (GAMS, GMPL, JuMP/Julia), along with their parsed multimod representations. Includes both energyRt and OSeMOSYS test cases for testing and validating multimod's parser and conversion functions.
Format
A list with 2 main elements:
- energyRt
energyRt Utopia test case with components:
- gams
List with
modelanddataas character vectors (GAMS format)- gmpl
List with
modelanddataas character vectors (GMPL format)- jump
List with
modelanddataas character vectors (JuMP/Julia format)- multimod
Parsed multimod_model object with populated data
- metadata
List with source, scenario, repository, license, date_imported, note
- OSeMOSYS
OSeMOSYS Utopia test case with components:
- gmpl
List with
modelanddataas character vectors (GMPL format)- multimod
Parsed multimod_model object with populated data
- metadata
List with source, repository, license, model_file, data_file, version, date_imported, note
Details
Structure
Each example model contains:
Source code in one or more formats (character vectors, ready to parse)
Parsed multimod object (already converted, ready to use)
Metadata about the source, license, and provenance
All source code character vectors can be used directly with read_gams(),
read_gmpl(), etc. without writing temporary files.
Usage
# Load dataset
data(example_models)
# Access energyRt model
energyRt_gams <- example_models$energyRt$gams$model
energyRt_model <- example_models$energyRt$multimod
# Access OSeMOSYS model
osemosys_gmpl <- example_models$OSeMOSYS$gmpl$model
osemosys_model <- example_models$OSeMOSYS$multimodReferences
energyRt package: https://github.com/energyRt/energyRt
Howells, M., Rogner, H., Strachan, N., Heaps, C., Huntington, H., Kypreos, S., Hughes, A., Silveira, S., DeCarolis, J., Bazillian, M., & Roehrl, A. (2011). OSeMOSYS: The Open Source Energy Modeling System: An introduction to its ethos, structure and development. Energy Policy, 39(10), 5850–5870. doi:10.1016/j.enpol.2011.06.033
See also
read_gamsfor parsing GAMS modelsread_gmplfor parsing GMPL modelsread_jumpfor parsing JuMP modelsas_multimodfor converting model structures to multimod
Examples
# Load examples
data(example_models)
# Inspect structure
names(example_models)
#> [1] "energyRt" "OSeMOSYS"
names(example_models$energyRt)
#> [1] "gams" "gmpl" "jump" "multimod" "metadata"
names(example_models$OSeMOSYS)
#> [1] "gmpl" "multimod" "metadata"
# Check metadata
example_models$energyRt$metadata
#> $source
#> [1] "energyRt package"
#>
#> $scenario
#> [1] "BASE_UTOPIA (Utopia test case)"
#>
#> $repository
#> [1] "https://github.com/energyRt/energyRt"
#>
#> $license
#> [1] "AGPL-3.0"
#>
#> $date_imported
#> [1] "2025-12-08"
#>
#> $note
#> [1] "energyRt is an R package for energy systems modeling. This dataset contains generated model files from the BASE_UTOPIA scenario for testing multimod's parser and converter functions."
#>
example_models$OSeMOSYS$metadata
#> $gmpl
#> $gmpl$model
#> [1] "# OSeMOSYS_2017_11_08"
#> [2] "#"
#> [3] "# Open Source energy MOdeling SYStem"
#> [4] "#"
#> [5] "# Modified by Francesco Gardumi, Constantinos Taliotis, Igor Tatarewicz, Adrian Lefvert"
#> [6] "# Main changes to previous version OSeMOSYS_2016_08_01"
#> [7] "# Bug fixed in:"
#> [8] "#\t\t- Equation E1"
#> [9] "# ============================================================================"
#> [10] "#"
#> [11] "# Copyright [2010-2015] [OSeMOSYS Forum steering committee see: www.osemosys.org]"
#> [12] "#"
#> [13] "# Licensed under the Apache License, Version 2.0 (the \"License\");"
#> [14] "# you may not use this file except in compliance with the License."
#> [15] "# You may obtain a copy of the License at"
#> [16] "#"
#> [17] "# http://www.apache.org/licenses/LICENSE-2.0"
#> [18] "#"
#> [19] "# Unless required by applicable law or agreed to in writing, software"
#> [20] "# distributed under the License is distributed on an \"AS IS\" BASIS,"
#> [21] "# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied."
#> [22] "# See the License for the specific language governing permissions and"
#> [23] "# limitations under the License."
#> [24] "# ============================================================================"
#> [25] "#"
#> [26] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [27] " "
#> [28] "# To run OSeMOSYS, enter the following line into your command prompt:"
#> [29] "#"
#> [30] "# glpsol -m osemosys.txt -d datafile.txt -o results.txt"
#> [31] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [32] "#"
#> [33] "# \t\t\t#########################################"
#> [34] "######################\t\t\tModel Definition\t\t\t\t#############"
#> [35] "# \t\t\t#########################################"
#> [36] "#"
#> [37] "###############"
#> [38] "# Sets #"
#> [39] "###############"
#> [40] "#"
#> [41] "set YEAR;"
#> [42] "set TECHNOLOGY;"
#> [43] "set TIMESLICE;"
#> [44] "set FUEL;"
#> [45] "set EMISSION;"
#> [46] "set MODE_OF_OPERATION;"
#> [47] "set REGION;"
#> [48] "set SEASON;"
#> [49] "set DAYTYPE;"
#> [50] "set DAILYTIMEBRACKET;"
#> [51] "set STORAGE;"
#> [52] "#"
#> [53] "#####################"
#> [54] "# Parameters #"
#> [55] "#####################"
#> [56] "#"
#> [57] "########\t\t\tGlobal \t\t\t\t\t\t#############"
#> [58] "#"
#> [59] "param ResultsPath, symbolic default 'results';"
#> [60] "param YearSplit{l in TIMESLICE, y in YEAR};"
#> [61] ""
#> [62] "param DiscountRate{r in REGION};"
#> [63] "param DiscountRateIdv{r in REGION, t in TECHNOLOGY}, default DiscountRate[r];"
#> [64] ""
#> [65] "param DiscountFactor{r in REGION, y in YEAR} :="
#> [66] "\t(1 + DiscountRate[r]) ^ (y - min{yy in YEAR} min(yy) + 0.0);"
#> [67] "param DiscountFactorMid{r in REGION, y in YEAR} :="
#> [68] "\t(1 + DiscountRate[r]) ^ (y - min{yy in YEAR} min(yy) + 0.5);"
#> [69] ""
#> [70] "param OperationalLife{r in REGION, t in TECHNOLOGY};"
#> [71] ""
#> [72] "param CapitalRecoveryFactor{r in REGION, t in TECHNOLOGY} :="
#> [73] "\t(1 - (1 + DiscountRateIdv[r,t])^(-1))/(1 - (1 + DiscountRateIdv[r,t])^(-(OperationalLife[r,t])));"
#> [74] "param PvAnnuity{r in REGION, t in TECHNOLOGY} :="
#> [75] "\t(1 - (1 + DiscountRate[r])^(-(OperationalLife[r,t]))) * (1 + DiscountRate[r]) / DiscountRate[r];"
#> [76] ""
#> [77] "param DiscountRateStorage{r in REGION, s in STORAGE};"
#> [78] "param DiscountFactorStorage{r in REGION, s in STORAGE, y in YEAR} :="
#> [79] "\t(1 + DiscountRateStorage[r, s]) ^ (y - min{yy in YEAR} min(yy) + 0.0);"
#> [80] "param DiscountFactorMidStorage{r in REGION, s in STORAGE, y in YEAR} :="
#> [81] "\t(1 + DiscountRateStorage[r, s]) ^ (y - min{yy in YEAR} min(yy) + 0.5); "
#> [82] " "
#> [83] "param DaySplit{lh in DAILYTIMEBRACKET, y in YEAR};"
#> [84] "param Conversionls{l in TIMESLICE, ls in SEASON} binary;"
#> [85] "param Conversionld{l in TIMESLICE, ld in DAYTYPE} binary;"
#> [86] "param Conversionlh{l in TIMESLICE, lh in DAILYTIMEBRACKET} binary;"
#> [87] "param DaysInDayType{ls in SEASON, ld in DAYTYPE, y in YEAR};"
#> [88] "param TradeRoute {r in REGION, rr in REGION, f in FUEL, y in YEAR} binary;"
#> [89] "param DepreciationMethod{r in REGION};"
#> [90] ""
#> [91] "#"
#> [92] "########\t\t\tDemands \t\t\t\t\t#############"
#> [93] "#"
#> [94] "param SpecifiedAnnualDemand{r in REGION, f in FUEL, y in YEAR};"
#> [95] "param SpecifiedDemandProfile{r in REGION, f in FUEL, l in TIMESLICE, y in YEAR};"
#> [96] "param AccumulatedAnnualDemand{r in REGION, f in FUEL, y in YEAR};"
#> [97] "#"
#> [98] "#########\t\t\tPerformance\t\t\t\t\t#############"
#> [99] "#"
#> [100] "param CapacityToActivityUnit{r in REGION, t in TECHNOLOGY};"
#> [101] "param CapacityFactor{r in REGION, t in TECHNOLOGY, l in TIMESLICE, y in YEAR};"
#> [102] "param AvailabilityFactor{r in REGION, t in TECHNOLOGY, y in YEAR};"
#> [103] ""
#> [104] "param ResidualCapacity{r in REGION, t in TECHNOLOGY, y in YEAR};"
#> [105] "param InputActivityRatio{r in REGION, t in TECHNOLOGY, f in FUEL, m in MODE_OF_OPERATION, y in YEAR};"
#> [106] "param OutputActivityRatio{r in REGION, t in TECHNOLOGY, f in FUEL, m in MODE_OF_OPERATION, y in YEAR};"
#> [107] "#"
#> [108] "#########\t\t\tTechnology Costs\t\t\t#############"
#> [109] "#"
#> [110] "param CapitalCost{r in REGION, t in TECHNOLOGY, y in YEAR};"
#> [111] "param VariableCost{r in REGION, t in TECHNOLOGY, m in MODE_OF_OPERATION, y in YEAR};"
#> [112] "param FixedCost{r in REGION, t in TECHNOLOGY, y in YEAR};"
#> [113] "#"
#> [114] "######### \t\tStorage \t\t#############"
#> [115] "#"
#> [116] "param TechnologyToStorage{r in REGION, t in TECHNOLOGY, s in STORAGE, m in MODE_OF_OPERATION};"
#> [117] "param TechnologyFromStorage{r in REGION, t in TECHNOLOGY, s in STORAGE, m in MODE_OF_OPERATION};"
#> [118] "param StorageLevelStart{r in REGION, s in STORAGE};"
#> [119] "param StorageMaxChargeRate{r in REGION, s in STORAGE};"
#> [120] "param StorageMaxDischargeRate{r in REGION, s in STORAGE};"
#> [121] "param MinStorageCharge{r in REGION, s in STORAGE, y in YEAR};"
#> [122] "param OperationalLifeStorage{r in REGION, s in STORAGE};"
#> [123] "param CapitalCostStorage{r in REGION, s in STORAGE, y in YEAR};"
#> [124] "param ResidualStorageCapacity{r in REGION, s in STORAGE, y in YEAR};"
#> [125] "#"
#> [126] "#########\t\t\tCapacity Constraints\t\t#############"
#> [127] "#"
#> [128] "param CapacityOfOneTechnologyUnit{r in REGION, t in TECHNOLOGY, y in YEAR};"
#> [129] "param TotalAnnualMaxCapacity{r in REGION, t in TECHNOLOGY, y in YEAR};"
#> [130] "param TotalAnnualMinCapacity{r in REGION, t in TECHNOLOGY, y in YEAR};"
#> [131] "#"
#> [132] "#########\t\t\tInvestment Constraints\t\t#############"
#> [133] "#"
#> [134] "param TotalAnnualMaxCapacityInvestment{r in REGION, t in TECHNOLOGY, y in YEAR};"
#> [135] "param TotalAnnualMinCapacityInvestment{r in REGION, t in TECHNOLOGY, y in YEAR};"
#> [136] "#"
#> [137] "#########\t\t\tActivity Constraints\t\t#############"
#> [138] "#"
#> [139] "param TotalTechnologyAnnualActivityUpperLimit{r in REGION, t in TECHNOLOGY, y in YEAR};"
#> [140] "param TotalTechnologyAnnualActivityLowerLimit{r in REGION, t in TECHNOLOGY, y in YEAR};"
#> [141] "param TotalTechnologyModelPeriodActivityUpperLimit{r in REGION, t in TECHNOLOGY};"
#> [142] "param TotalTechnologyModelPeriodActivityLowerLimit{r in REGION, t in TECHNOLOGY};"
#> [143] "#"
#> [144] "#########\t\t\tReserve Margin\t\t\t\t#############"
#> [145] "#"
#> [146] "param ReserveMarginTagTechnology{r in REGION, t in TECHNOLOGY, y in YEAR} >= 0 <= 1;"
#> [147] "param ReserveMarginTagFuel{r in REGION, f in FUEL, y in YEAR} binary;"
#> [148] "param ReserveMargin{r in REGION, y in YEAR};"
#> [149] "#"
#> [150] "#########\t\t\tRE Generation Target\t\t#############"
#> [151] "#"
#> [152] "param RETagTechnology{r in REGION, t in TECHNOLOGY, y in YEAR} binary;"
#> [153] "param RETagFuel{r in REGION, f in FUEL, y in YEAR} binary;"
#> [154] "param REMinProductionTarget{r in REGION, y in YEAR};"
#> [155] "#"
#> [156] "#########\t\t\tEmissions & Penalties\t\t#############"
#> [157] "#"
#> [158] "param EmissionActivityRatio{r in REGION, t in TECHNOLOGY, e in EMISSION, m in MODE_OF_OPERATION, y in YEAR};"
#> [159] "param EmissionsPenalty{r in REGION, e in EMISSION, y in YEAR};"
#> [160] "param AnnualExogenousEmission{r in REGION, e in EMISSION, y in YEAR};"
#> [161] "param AnnualEmissionLimit{r in REGION, e in EMISSION, y in YEAR};"
#> [162] "param ModelPeriodExogenousEmission{r in REGION, e in EMISSION};"
#> [163] "param ModelPeriodEmissionLimit{r in REGION, e in EMISSION};"
#> [164] "#"
#> [165] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t"
#> [166] "##############"
#> [167] "##"
#> [168] "########################################################################"
#> [169] "# Check statements to carry out simple debugging in model parameters #"
#> [170] "########################################################################"
#> [171] ""
#> [172] "##### 'Capacity investment' check #####"
#> [173] "printf \"Checking Max and Min capcity-investment bounds for r in REGION, t in TECHNOLOGY, y in YEAR \\n\";"
#> [174] "#"
#> [175] "check{r in REGION, t in TECHNOLOGY, y in YEAR:TotalAnnualMaxCapacityInvestment[r, t, y]<>-1 && TotalAnnualMinCapacityInvestment[r, t, y]<>0}: TotalAnnualMaxCapacityInvestment[r, t, y]>=TotalAnnualMinCapacityInvestment[r, t, y];"
#> [176] "#"
#> [177] "##### 'Annual Activity' check #####"
#> [178] "printf \"Checking Annual activity limits for r in REGION, t in TECHNOLOGY, y in YEAR \\n\";"
#> [179] "#"
#> [180] "check{r in REGION, t in TECHNOLOGY, y in YEAR:TotalTechnologyAnnualActivityUpperLimit[r,t,y]<>-1 && TotalTechnologyAnnualActivityUpperLimit[r,t,y]<>0 && TotalTechnologyAnnualActivityLowerLimit[r,t,y]<>0}: TotalTechnologyAnnualActivityUpperLimit[r,t,y]>=TotalTechnologyAnnualActivityLowerLimit[r,t,y];"
#> [181] "#"
#> [182] "##### 'Capacity' check 1 #####"
#> [183] "printf \"Checking Residual and TotalAnnualMax Capacity for r in REGION, t in TECHNOLOGY, y in YEAR \\n\";"
#> [184] "#"
#> [185] "check{r in REGION, t in TECHNOLOGY, y in YEAR: TotalAnnualMaxCapacity[r,t,y]<>-1 && ResidualCapacity[r,t,y]<>0}: TotalAnnualMaxCapacity[r,t,y] >= ResidualCapacity[r,t,y];"
#> [186] "#"
#> [187] "##### 'Capacity' check 2 #####"
#> [188] "printf \"Checking Residual, Total annual maxcap and mincap investments for all Region, Tech and Year \\n\";"
#> [189] "#"
#> [190] "check{r in REGION, t in TECHNOLOGY, y in YEAR:TotalAnnualMaxCapacity[r,t,y]<>-1 && ResidualCapacity[r,t,y]<>0}: TotalAnnualMaxCapacity[r,t,y]>= ResidualCapacity[r,t,y] + TotalAnnualMinCapacityInvestment[r,t,y];"
#> [191] "#"
#> [192] "##### 'Minimum Annual activity' check #####"
#> [193] "printf \"Checking Annual production by technology bounds for r in REGION, t in TECHNOLOGY, y in YEAR \\n\";"
#> [194] "#"
#> [195] "check{r in REGION, t in TECHNOLOGY, y in YEAR:TotalAnnualMaxCapacity[r,t,y]<>0 && TotalAnnualMaxCapacity[r,t,y] <> -1 && TotalTechnologyAnnualActivityLowerLimit[r,t,y]<>0 && AvailabilityFactor[r,t,y]<>0 && CapacityToActivityUnit[r,t]<>0}: sum{l in TIMESLICE: CapacityFactor[r,t,l,y]<>0 && YearSplit[l,y]<>0}(CapacityFactor[r,t,l,y]*YearSplit[l,y])*TotalAnnualMaxCapacity[r,t,y]* AvailabilityFactor[r,t,y]*CapacityToActivityUnit[r,t] >= TotalTechnologyAnnualActivityLowerLimit[r,t,y];"
#> [196] "#"
#> [197] "##### 'Time Slice' check #####"
#> [198] "printf \"Checking TimeSlices/YearSplits for y in YEAR \\n\";"
#> [199] "#"
#> [200] "check{y in YEAR}: sum{l in TIMESLICE} YearSplit[l,y] >= 0.9999;"
#> [201] "check{y in YEAR}: sum{l in TIMESLICE} YearSplit[l,y] <= 1.0001;"
#> [202] "#"
#> [203] "##### 'Model period activity limit' check #####"
#> [204] "printf \"Checking Model period activity bounds for r in REGION, t in TECHNOLOGY \\n\";"
#> [205] "#"
#> [206] "check{r in REGION, t in TECHNOLOGY: TotalTechnologyModelPeriodActivityLowerLimit[r,t]<>0}:TotalTechnologyModelPeriodActivityLowerLimit[r,t] >= sum{y in YEAR: TotalTechnologyAnnualActivityLowerLimit[r,t,y] <>0}TotalTechnologyAnnualActivityLowerLimit[r,t,y];"
#> [207] ""
#> [208] "#"
#> [209] "#"
#> [210] "######################"
#> [211] "# Model Variables #"
#> [212] "######################"
#> [213] "#"
#> [214] "########\t\t\tDemands \t\t\t\t\t#############"
#> [215] "#"
#> [216] "var RateOfDemand{r in REGION, l in TIMESLICE, f in FUEL, y in YEAR}>= 0;"
#> [217] "var Demand{r in REGION, l in TIMESLICE, f in FUEL, y in YEAR}>= 0;"
#> [218] "#"
#> [219] "######## \t\tStorage \t\t#############"
#> [220] "#"
#> [221] "var RateOfStorageCharge{r in REGION, s in STORAGE, ls in SEASON, ld in DAYTYPE, lh in DAILYTIMEBRACKET, y in YEAR};"
#> [222] "var RateOfStorageDischarge{r in REGION, s in STORAGE, ls in SEASON, ld in DAYTYPE, lh in DAILYTIMEBRACKET, y in YEAR};"
#> [223] "var NetChargeWithinYear{r in REGION, s in STORAGE, ls in SEASON, ld in DAYTYPE, lh in DAILYTIMEBRACKET, y in YEAR};"
#> [224] "var NetChargeWithinDay{r in REGION, s in STORAGE, ls in SEASON, ld in DAYTYPE, lh in DAILYTIMEBRACKET, y in YEAR};"
#> [225] "var StorageLevelYearStart{r in REGION, s in STORAGE, y in YEAR} >=0;"
#> [226] "var StorageLevelYearFinish{r in REGION, s in STORAGE, y in YEAR} >=0;"
#> [227] "var StorageLevelSeasonStart{r in REGION, s in STORAGE, ls in SEASON, y in YEAR} >=0;"
#> [228] "var StorageLevelDayTypeStart{r in REGION, s in STORAGE, ls in SEASON, ld in DAYTYPE, y in YEAR} >=0;"
#> [229] "var StorageLevelDayTypeFinish{r in REGION, s in STORAGE, ls in SEASON, ld in DAYTYPE, y in YEAR} >=0;"
#> [230] "var StorageLowerLimit{r in REGION, s in STORAGE, y in YEAR}>=0;"
#> [231] "var StorageUpperLimit{r in REGION, s in STORAGE, y in YEAR} >=0;"
#> [232] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [233] "var AccumulatedNewStorageCapacity{r in REGION, s in STORAGE, y in YEAR} >=0;"
#> [234] "var NewStorageCapacity{r in REGION, s in STORAGE, y in YEAR} >=0;"
#> [235] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [236] "var CapitalInvestmentStorage{r in REGION, s in STORAGE, y in YEAR} >=0;"
#> [237] "var DiscountedCapitalInvestmentStorage{r in REGION, s in STORAGE, y in YEAR} >=0;"
#> [238] "var SalvageValueStorage{r in REGION, s in STORAGE, y in YEAR} >=0;"
#> [239] "var DiscountedSalvageValueStorage{r in REGION, s in STORAGE, y in YEAR} >=0;"
#> [240] "var TotalDiscountedStorageCost{r in REGION, s in STORAGE, y in YEAR} >=0;"
#> [241] "#"
#> [242] "#########\t\t Capacity Variables \t\t\t#############"
#> [243] "#"
#> [244] "var NumberOfNewTechnologyUnits{r in REGION, t in TECHNOLOGY, y in YEAR} >= 0,integer;"
#> [245] "var NewCapacity{r in REGION, t in TECHNOLOGY, y in YEAR} >= 0;"
#> [246] "var AccumulatedNewCapacity{r in REGION, t in TECHNOLOGY, y in YEAR} >= 0;"
#> [247] "var TotalCapacityAnnual{r in REGION, t in TECHNOLOGY, y in YEAR}>= 0;"
#> [248] "#"
#> [249] "#########\t\t Activity Variables \t\t\t#############"
#> [250] "#"
#> [251] "var RateOfActivity{r in REGION, l in TIMESLICE, t in TECHNOLOGY, m in MODE_OF_OPERATION, y in YEAR} >= 0;"
#> [252] "var RateOfTotalActivity{r in REGION, t in TECHNOLOGY, l in TIMESLICE, y in YEAR} >= 0;"
#> [253] "var TotalTechnologyAnnualActivity{r in REGION, t in TECHNOLOGY, y in YEAR} >= 0;"
#> [254] "var TotalAnnualTechnologyActivityByMode{r in REGION, t in TECHNOLOGY, m in MODE_OF_OPERATION, y in YEAR}>=0;"
#> [255] "var TotalTechnologyModelPeriodActivity{r in REGION, t in TECHNOLOGY};"
#> [256] "var RateOfProductionByTechnologyByMode{r in REGION, l in TIMESLICE, t in TECHNOLOGY, m in MODE_OF_OPERATION, f in FUEL, y in YEAR}>= 0;"
#> [257] "var RateOfProductionByTechnology{r in REGION, l in TIMESLICE, t in TECHNOLOGY, f in FUEL, y in YEAR}>= 0;"
#> [258] "var ProductionByTechnology{r in REGION, l in TIMESLICE, t in TECHNOLOGY, f in FUEL, y in YEAR}>= 0;"
#> [259] "var ProductionByTechnologyAnnual{r in REGION, t in TECHNOLOGY, f in FUEL, y in YEAR}>= 0;"
#> [260] "var RateOfProduction{r in REGION, l in TIMESLICE, f in FUEL, y in YEAR} >= 0;"
#> [261] "var Production{r in REGION, l in TIMESLICE, f in FUEL, y in YEAR} >= 0;"
#> [262] "var RateOfUseByTechnologyByMode{r in REGION, l in TIMESLICE, t in TECHNOLOGY, m in MODE_OF_OPERATION, f in FUEL, y in YEAR}>= 0;"
#> [263] "var RateOfUseByTechnology{r in REGION, l in TIMESLICE, t in TECHNOLOGY, f in FUEL, y in YEAR} >= 0;"
#> [264] "var UseByTechnologyAnnual{r in REGION, t in TECHNOLOGY, f in FUEL, y in YEAR}>= 0;"
#> [265] "var RateOfUse{r in REGION, l in TIMESLICE, f in FUEL, y in YEAR}>= 0;"
#> [266] "var UseByTechnology{r in REGION, l in TIMESLICE, t in TECHNOLOGY, f in FUEL, y in YEAR}>= 0;"
#> [267] "var Use{r in REGION, l in TIMESLICE, f in FUEL, y in YEAR}>= 0;"
#> [268] "var Trade{r in REGION, rr in REGION, l in TIMESLICE, f in FUEL, y in YEAR};"
#> [269] "var TradeAnnual{r in REGION, rr in REGION, f in FUEL, y in YEAR};"
#> [270] "#"
#> [271] "var ProductionAnnual{r in REGION, f in FUEL, y in YEAR}>= 0;"
#> [272] "var UseAnnual{r in REGION, f in FUEL, y in YEAR}>= 0;"
#> [273] "\t "
#> [274] " "
#> [275] "\t "
#> [276] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\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288] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [289] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [290] "#"
#> [291] "#########\t\t Costing Variables \t\t\t#############"
#> [292] "#"
#> [293] "var CapitalInvestment{r in REGION, t in TECHNOLOGY, y in YEAR}>= 0;"
#> [294] "var DiscountedCapitalInvestment{r in REGION, t in TECHNOLOGY, y in YEAR}>= 0;"
#> [295] "#"
#> [296] "var SalvageValue{r in REGION, t in TECHNOLOGY, y in YEAR}>= 0;"
#> [297] "var DiscountedSalvageValue{r in REGION, t in TECHNOLOGY, y in YEAR}>= 0;"
#> [298] "var OperatingCost{r in REGION, t in TECHNOLOGY, y in YEAR}>= 0;"
#> [299] " "
#> [300] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t"
#> [301] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [302] "var DiscountedOperatingCost{r in REGION, t in TECHNOLOGY, y in YEAR}>= 0;"
#> [303] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [304] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [305] "#"
#> [306] "var AnnualVariableOperatingCost{r in REGION, t in TECHNOLOGY, y in YEAR}>= 0;"
#> [307] "var AnnualFixedOperatingCost{r in REGION, t in TECHNOLOGY, y in YEAR}>= 0;"
#> [308] "#"
#> [309] "var TotalDiscountedCostByTechnology{r in REGION, t in TECHNOLOGY, y in YEAR}>= 0;"
#> [310] "var TotalDiscountedCost{r in REGION, y in YEAR}>= 0;"
#> [311] "#"
#> [312] "var ModelPeriodCostByRegion{r in REGION} >= 0;"
#> [313] "#"
#> [314] "#########\t\t\tReserve Margin\t\t\t\t#############"
#> [315] " "
#> [316] "#"
#> [317] "var TotalCapacityInReserveMargin{r in REGION, y in YEAR}>= 0;"
#> [318] "var DemandNeedingReserveMargin{r in REGION,l in TIMESLICE, y in YEAR}>= 0;"
#> [319] "#"
#> [320] "#########\t\t\tRE Gen Target\t\t\t\t#############"
#> [321] "#"
#> [322] "var TotalREProductionAnnual{r in REGION, y in YEAR};"
#> [323] "var RETotalProductionOfTargetFuelAnnual{r in REGION, y in YEAR};"
#> [324] "#"
#> [325] "#########\t\t\tEmissions\t\t\t\t\t#############"
#> [326] "#"
#> [327] "var AnnualTechnologyEmissionByMode{r in REGION, t in TECHNOLOGY, e in EMISSION, m in MODE_OF_OPERATION, y in YEAR}>=0;"
#> [328] "var AnnualTechnologyEmission{r in REGION, t in TECHNOLOGY, e in EMISSION, y in YEAR}>=0;"
#> [329] "var AnnualTechnologyEmissionPenaltyByEmission{r in REGION, t in TECHNOLOGY, e in EMISSION, y in YEAR}>=0;"
#> [330] "var AnnualTechnologyEmissionsPenalty{r in REGION, t in TECHNOLOGY, y in YEAR}>=0;"
#> [331] "var DiscountedTechnologyEmissionsPenalty{r in REGION, t in TECHNOLOGY, y in YEAR}>=0;"
#> [332] "var AnnualEmissions{r in REGION, e in EMISSION, y in YEAR}>=0;"
#> [333] "var ModelPeriodEmissions{r in REGION, e in EMISSION}>=0;"
#> [334] "\t "
#> [335] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [336] "\t "
#> [337] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t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t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [343] "######################"
#> [344] "# Objective Function #"
#> [345] "######################"
#> [346] "#"
#> [347] "minimize cost: sum{r in REGION, y in YEAR} TotalDiscountedCost[r,y];"
#> [348] "\t\t\t\t\t "
#> [349] "\t\t\t\t\t "
#> [350] " "
#> [351] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [352] "\t "
#> [353] "\t\t "
#> [354] "\t\t\t "
#> [355] "\t\t\t\t "
#> [356] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [357] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [358] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [359] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [360] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t"
#> [361] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [362] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [363] "#"
#> [364] "#####################"
#> [365] "# Constraints #"
#> [366] "#####################"
#> [367] "#"
#> [368] "s.t. EQ_SpecifiedDemand{r in REGION, l in TIMESLICE, f in FUEL, y in YEAR:"
#> [369] "\t\t\t\t\t\tSpecifiedAnnualDemand[r,f,y] <> 0}:"
#> [370] "\tSpecifiedAnnualDemand[r,f,y] * SpecifiedDemandProfile[r,f,l,y] / YearSplit[l,y]"
#> [371] "\t="
#> [372] "\tRateOfDemand[r,l,f,y];"
#> [373] "#"
#> [374] "######### \tCapacity Adequacy A\t \t#############"
#> [375] "#"
#> [376] "s.t. CAa1_TotalNewCapacity{r in REGION, t in TECHNOLOGY, y in YEAR}:"
#> [377] "\tAccumulatedNewCapacity[r,t,y]"
#> [378] "\t="
#> [379] "\tsum{yy in YEAR: y-yy < OperationalLife[r,t] && y - yy >= 0} NewCapacity[r,t,yy];"
#> [380] ""
#> [381] "s.t. CAa2_TotalAnnualCapacity{r in REGION, t in TECHNOLOGY, y in YEAR}:"
#> [382] "\tAccumulatedNewCapacity[r,t,y] + ResidualCapacity[r,t,y]"
#> [383] "\t="
#> [384] "\tTotalCapacityAnnual[r,t,y];"
#> [385] ""
#> [386] "s.t. CAa3_TotalActivityOfEachTechnology{r in REGION, t in TECHNOLOGY, l in TIMESLICE, y in YEAR}:"
#> [387] "\tsum{m in MODE_OF_OPERATION} RateOfActivity[r,l,t,m,y]"
#> [388] "\t="
#> [389] "\tRateOfTotalActivity[r,t,l,y];"
#> [390] ""
#> [391] "s.t. CAa4_Constraint_Capacity{r in REGION, l in TIMESLICE, t in TECHNOLOGY, y in YEAR}:"
#> [392] "\tRateOfTotalActivity[r,t,l,y]"
#> [393] "\t<="
#> [394] "\tTotalCapacityAnnual[r,t,y] * CapacityFactor[r,t,l,y] * CapacityToActivityUnit[r,t];"
#> [395] ""
#> [396] "s.t. CAa5_TotalNewCapacity{r in REGION, t in TECHNOLOGY, y in YEAR: CapacityOfOneTechnologyUnit[r,t,y]<>0}:"
#> [397] "\tCapacityOfOneTechnologyUnit[r,t,y] * NumberOfNewTechnologyUnits[r,t,y]"
#> [398] "\t="
#> [399] "\tNewCapacity[r,t,y];"
#> [400] ""
#> [401] "#"
#> [402] "# Note that the PlannedMaintenance equation below ensures that all other technologies have a capacity great enough"
#> [403] "# to at least meet the annual average."
#> [404] "#"
#> [405] "######### \tCapacity Adequacy B\t\t \t#############"
#> [406] "#"
#> [407] "s.t. CAb1_PlannedMaintenance{r in REGION, t in TECHNOLOGY, y in YEAR: AvailabilityFactor[r,t,y] < 1}:"
#> [408] "\tsum{l in TIMESLICE} RateOfTotalActivity[r,t,l,y] * YearSplit[l,y]"
#> [409] "\t<="
#> [410] "\tsum{l in TIMESLICE} (TotalCapacityAnnual[r,t,y] * CapacityFactor[r,t,l,y] * YearSplit[l,y])"
#> [411] "\t* AvailabilityFactor[r,t,y] * CapacityToActivityUnit[r,t];"
#> [412] ""
#> [413] "#"
#> [414] "#########\t Energy Balance A \t \t#############"
#> [415] "#"
#> [416] "s.t. EBa1_RateOfFuelProduction1{"
#> [417] "\tr in REGION, l in TIMESLICE, f in FUEL, t in TECHNOLOGY, m in MODE_OF_OPERATION, y in YEAR:"
#> [418] "\tOutputActivityRatio[r,t,f,m,y] <> 0}:"
#> [419] "\tRateOfActivity[r,l,t,m,y] * OutputActivityRatio[r,t,f,m,y]"
#> [420] "\t="
#> [421] "\tRateOfProductionByTechnologyByMode[r,l,t,m,f,y];"
#> [422] ""
#> [423] "s.t. EBa2_RateOfFuelProduction2{r in REGION, l in TIMESLICE, f in FUEL, t in TECHNOLOGY, y in YEAR"
#> [424] "\t\t\t\t\t\t\t\t# : (sum{m in MODE_OF_OPERATION} OutputActivityRatio[r,t,f,m,y]) <> 0"
#> [425] "\t\t\t\t\t\t\t\t}:"
#> [426] "\tsum{m in MODE_OF_OPERATION: OutputActivityRatio[r,t,f,m,y] <> 0} RateOfProductionByTechnologyByMode[r,l,t,m,f,y]"
#> [427] "\t="
#> [428] "\tRateOfProductionByTechnology[r,l,t,f,y];"
#> [429] ""
#> [430] "s.t. EBa3_RateOfFuelProduction3{r in REGION, l in TIMESLICE, f in FUEL, y in YEAR:"
#> [431] "\t\t\t\t\t\t\t (sum{t in TECHNOLOGY, m in MODE_OF_OPERATION} OutputActivityRatio[r,t,f,m,y]) <> 0}:"
#> [432] "\tsum{t in TECHNOLOGY} RateOfProductionByTechnology[r,l,t,f,y]"
#> [433] "\t="
#> [434] "\tRateOfProduction[r,l,f,y];"
#> [435] ""
#> [436] "s.t. EBa4_RateOfFuelUse1{r in REGION, l in TIMESLICE, f in FUEL, t in TECHNOLOGY, m in MODE_OF_OPERATION, y in YEAR:"
#> [437] "\t\t\t\t\t\t InputActivityRatio[r,t,f,m,y] <> 0}:"
#> [438] "\tRateOfActivity[r,l,t,m,y] * InputActivityRatio[r,t,f,m,y]"
#> [439] "\t="
#> [440] "\tRateOfUseByTechnologyByMode[r,l,t,m,f,y];"
#> [441] ""
#> [442] "s.t. EBa5_RateOfFuelUse2{r in REGION, l in TIMESLICE, f in FUEL, t in TECHNOLOGY, y in YEAR:"
#> [443] "\t\t\t\t\t\t sum{m in MODE_OF_OPERATION} InputActivityRatio[r,t,f,m,y] <> 0}:"
#> [444] "\tsum{m in MODE_OF_OPERATION: InputActivityRatio[r,t,f,m,y] <> 0}"
#> [445] "\tRateOfUseByTechnologyByMode[r,l,t,m,f,y]"
#> [446] "\t="
#> [447] "\tRateOfUseByTechnology[r,l,t,f,y];"
#> [448] ""
#> [449] "s.t. EBa6_RateOfFuelUse3{r in REGION, l in TIMESLICE, f in FUEL, y in YEAR:"
#> [450] "\t\t\t\t\t\t sum{t in TECHNOLOGY, m in MODE_OF_OPERATION} InputActivityRatio[r,t,f,m,y] <> 0}:"
#> [451] "\tsum{t in TECHNOLOGY} RateOfUseByTechnology[r,l,t,f,y]"
#> [452] "\t="
#> [453] "\tRateOfUse[r,l,f,y];"
#> [454] ""
#> [455] "s.t. EBa7_EnergyBalanceEachTS1{r in REGION, l in TIMESLICE, f in FUEL, y in YEAR:"
#> [456] "\t\t\t\t\t\t\t (sum{t in TECHNOLOGY, m in MODE_OF_OPERATION} OutputActivityRatio[r,t,f,m,y]) <> 0}:"
#> [457] "\tRateOfProduction[r,l,f,y] * YearSplit[l,y]"
#> [458] "\t="
#> [459] "\tProduction[r,l,f,y];"
#> [460] ""
#> [461] "s.t. EBa8_EnergyBalanceEachTS2{r in REGION, l in TIMESLICE, f in FUEL, y in YEAR:"
#> [462] "\t\t\t\t\t\t\t (sum{t in TECHNOLOGY, m in MODE_OF_OPERATION} InputActivityRatio[r,t,f,m,y]) <> 0}:"
#> [463] "\tRateOfUse[r,l,f,y] * YearSplit[l,y]"
#> [464] "\t="
#> [465] "\tUse[r,l,f,y];"
#> [466] ""
#> [467] "s.t. EBa9_EnergyBalanceEachTS3{r in REGION, l in TIMESLICE, f in FUEL, y in YEAR:"
#> [468] "\t\t\t\t\t\t\t SpecifiedAnnualDemand[r,f,y] <> 0}:"
#> [469] "\tRateOfDemand[r,l,f,y] * YearSplit[l,y]"
#> [470] "\t="
#> [471] "\tDemand[r,l,f,y];"
#> [472] ""
#> [473] "s.t. EBa10_EnergyBalanceEachTS4{r in REGION, rr in REGION, l in TIMESLICE, f in FUEL, y in YEAR:"
#> [474] "\t\t\t\t\t\t\t\tTradeRoute[r,rr,f,y] <> 0}:"
#> [475] "\tTrade[r,rr,l,f,y]"
#> [476] "\t="
#> [477] "\t-Trade[rr,r,l,f,y];"
#> [478] ""
#> [479] "s.t. EBa11_EnergyBalanceEachTS5{r in REGION, l in TIMESLICE, f in FUEL, y in YEAR}:"
#> [480] "\tProduction[r,l,f,y]"
#> [481] "\t>="
#> [482] "\tDemand[r,l,f,y] + Use[r,l,f,y] + sum{rr in REGION} Trade[r,rr,l,f,y] * TradeRoute[r,rr,f,y];"
#> [483] ""
#> [484] "#"
#> [485] "######### \tEnergy Balance B\t\t \t#############"
#> [486] "#"
#> [487] "s.t. EBb1_EnergyBalanceEachYear1{r in REGION, f in FUEL, y in YEAR}:"
#> [488] "\tsum{l in TIMESLICE} Production[r,l,f,y]"
#> [489] "\t="
#> [490] "\tProductionAnnual[r,f,y];"
#> [491] ""
#> [492] "s.t. EBb2_EnergyBalanceEachYear2{r in REGION, f in FUEL, y in YEAR}:"
#> [493] "\tsum{l in TIMESLICE} Use[r,l,f,y]"
#> [494] "\t="
#> [495] "\tUseAnnual[r,f,y];"
#> [496] ""
#> [497] "s.t. EBb3_EnergyBalanceEachYear3{r in REGION, rr in REGION, f in FUEL, y in YEAR}:"
#> [498] "\tsum{l in TIMESLICE} Trade[r,rr,l,f,y]"
#> [499] "\t="
#> [500] "\tTradeAnnual[r,rr,f,y];"
#> [501] ""
#> [502] "s.t. EBb4_EnergyBalanceEachYear4{r in REGION, f in FUEL, y in YEAR}:"
#> [503] "\tProductionAnnual[r,f,y]"
#> [504] "\t>="
#> [505] "\tUseAnnual[r,f,y] + sum{rr in REGION} TradeAnnual[r,rr,f,y] * TradeRoute[r,rr,f,y] + AccumulatedAnnualDemand[r,f,y];"
#> [506] ""
#> [507] "#"
#> [508] "######### \tAccounting Technology Production/Use\t#############"
#> [509] "#"
#> [510] "s.t. Acc1_FuelProductionByTechnology{r in REGION, l in TIMESLICE, t in TECHNOLOGY, f in FUEL, y in YEAR}:"
#> [511] "\tRateOfProductionByTechnology[r,l,t,f,y] * YearSplit[l,y]"
#> [512] "\t="
#> [513] "\tProductionByTechnology[r,l,t,f,y];"
#> [514] ""
#> [515] "s.t. Acc2_FuelUseByTechnology{r in REGION, l in TIMESLICE, t in TECHNOLOGY, f in FUEL, y in YEAR}:"
#> [516] "\tRateOfUseByTechnology[r,l,t,f,y] * YearSplit[l,y]"
#> [517] "\t="
#> [518] "\tUseByTechnology[r,l,t,f,y];"
#> [519] ""
#> [520] "s.t. Acc3_AverageAnnualRateOfActivity{r in REGION, t in TECHNOLOGY, m in MODE_OF_OPERATION, y in YEAR}:"
#> [521] "\tsum{l in TIMESLICE} RateOfActivity[r,l,t,m,y]*YearSplit[l,y]"
#> [522] "\t="
#> [523] "\tTotalAnnualTechnologyActivityByMode[r,t,m,y];"
#> [524] ""
#> [525] "s.t. Acc4_ModelPeriodCostByRegion{r in REGION}:"
#> [526] "\tsum{y in YEAR}TotalDiscountedCost[r,y] = ModelPeriodCostByRegion[r];"
#> [527] ""
#> [528] "#"
#> [529] "######### \tStorage Equations\t\t\t#############"
#> [530] "#"
#> [531] "s.t. S1_RateOfStorageCharge{r in REGION, s in STORAGE, ls in SEASON, ld in DAYTYPE, lh in DAILYTIMEBRACKET, y in YEAR}:"
#> [532] "\tsum{t in TECHNOLOGY, m in MODE_OF_OPERATION, l in TIMESLICE: TechnologyToStorage[r,t,s,m] > 0}"
#> [533] "\tRateOfActivity[r,l,t,m,y] * TechnologyToStorage[r,t,s,m] * Conversionls[l,ls] * Conversionld[l,ld] * Conversionlh[l,lh]"
#> [534] "\t="
#> [535] "\tRateOfStorageCharge[r,s,ls,ld,lh,y];"
#> [536] ""
#> [537] "s.t. S2_RateOfStorageDischarge{r in REGION, s in STORAGE, ls in SEASON, ld in DAYTYPE, lh in DAILYTIMEBRACKET, y in YEAR}:"
#> [538] "\tsum{t in TECHNOLOGY, m in MODE_OF_OPERATION, l in TIMESLICE: TechnologyFromStorage[r,t,s,m] > 0}"
#> [539] "\tRateOfActivity[r,l,t,m,y] * TechnologyFromStorage[r,t,s,m] * Conversionls[l,ls] * Conversionld[l,ld] * Conversionlh[l,lh]"
#> [540] "\t="
#> [541] "\tRateOfStorageDischarge[r,s,ls,ld,lh,y];"
#> [542] ""
#> [543] "s.t. S3_NetChargeWithinYear{r in REGION, s in STORAGE, ls in SEASON, ld in DAYTYPE, lh in DAILYTIMEBRACKET, y in YEAR}:"
#> [544] "\tsum{l in TIMESLICE:Conversionls[l,ls]>0 && Conversionld[l,ld] > 0 && Conversionlh[l,lh] > 0}"
#> [545] "\t(RateOfStorageCharge[r,s,ls,ld,lh,y] - RateOfStorageDischarge[r,s,ls,ld,lh,y]) * YearSplit[l,y] *"
#> [546] "\tConversionls[l,ls] * Conversionld[l,ld] * Conversionlh[l,lh]"
#> [547] "\t="
#> [548] "\tNetChargeWithinYear[r,s,ls,ld,lh,y];"
#> [549] ""
#> [550] "s.t. S4_NetChargeWithinDay{r in REGION, s in STORAGE, ls in SEASON, ld in DAYTYPE, lh in DAILYTIMEBRACKET, y in YEAR}:"
#> [551] "\t(RateOfStorageCharge[r,s,ls,ld,lh,y] - RateOfStorageDischarge[r,s,ls,ld,lh,y]) * DaySplit[lh,y]"
#> [552] "\t="
#> [553] "\tNetChargeWithinDay[r,s,ls,ld,lh,y];"
#> [554] ""
#> [555] "s.t. S5_and_S6_StorageLevelYearStart{r in REGION, s in STORAGE, y in YEAR}:"
#> [556] "\tif y = min{yy in YEAR} min(yy)"
#> [557] "\tthen StorageLevelStart[r,s]"
#> [558] "\telse StorageLevelYearStart[r,s,y-1] + sum{ls in SEASON, ld in DAYTYPE, lh in DAILYTIMEBRACKET}"
#> [559] "\tNetChargeWithinYear[r,s,ls,ld,lh,y-1]"
#> [560] "\t="
#> [561] "\tStorageLevelYearStart[r,s,y];"
#> [562] ""
#> [563] "s.t. S7_and_S8_StorageLevelYearFinish{r in REGION, s in STORAGE, y in YEAR}:"
#> [564] "\tif y < max{yy in YEAR} max(yy)"
#> [565] "\tthen StorageLevelYearStart[r,s,y+1]"
#> [566] "\telse StorageLevelYearStart[r,s,y] + sum{ls in SEASON, ld in DAYTYPE, lh in DAILYTIMEBRACKET}"
#> [567] "\tNetChargeWithinYear[r,s,ls,ld,lh,y]"
#> [568] "\t="
#> [569] "\tStorageLevelYearFinish[r,s,y];"
#> [570] ""
#> [571] "s.t. S9_and_S10_StorageLevelSeasonStart{r in REGION, s in STORAGE, ls in SEASON, y in YEAR}:"
#> [572] "\tif ls = min{lsls in SEASON} min(lsls)"
#> [573] "\tthen StorageLevelYearStart[r,s,y]"
#> [574] "\telse StorageLevelSeasonStart[r,s,ls-1,y] + sum{ld in DAYTYPE, lh in DAILYTIMEBRACKET}"
#> [575] "\tNetChargeWithinYear[r,s,ls-1,ld,lh,y]"
#> [576] "\t="
#> [577] "\tStorageLevelSeasonStart[r,s,ls,y];"
#> [578] ""
#> [579] "s.t. S11_and_S12_StorageLevelDayTypeStart{r in REGION, s in STORAGE, ls in SEASON, ld in DAYTYPE, y in YEAR}:"
#> [580] "\tif ld = min{ldld in DAYTYPE} min(ldld)"
#> [581] "\tthen StorageLevelSeasonStart[r,s,ls,y]"
#> [582] "\telse StorageLevelDayTypeStart[r,s,ls,ld-1,y] + sum{lh in DAILYTIMEBRACKET}"
#> [583] "\tNetChargeWithinDay[r,s,ls,ld-1,lh,y] * DaysInDayType[ls,ld-1,y]"
#> [584] "\t="
#> [585] "\tStorageLevelDayTypeStart[r,s,ls,ld,y];"
#> [586] ""
#> [587] "s.t. S13_and_S14_and_S15_StorageLevelDayTypeFinish{r in REGION, s in STORAGE, ls in SEASON, ld in DAYTYPE, y in YEAR}:"
#> [588] "\tif ls = max{lsls in SEASON} max(lsls) && ld = max{ldld in DAYTYPE} max(ldld)"
#> [589] "\tthen StorageLevelYearFinish[r,s,y]"
#> [590] "\telse if ld = max{ldld in DAYTYPE} max(ldld)"
#> [591] "\tthen StorageLevelSeasonStart[r,s,ls+1,y]"
#> [592] "\telse StorageLevelDayTypeFinish[r,s,ls,ld+1,y] - sum{lh in DAILYTIMEBRACKET}"
#> [593] "\tNetChargeWithinDay[r,s,ls,ld+1,lh,y] * DaysInDayType[ls,ld+1,y]"
#> [594] "\t="
#> [595] "\tStorageLevelDayTypeFinish[r,s,ls,ld,y];"
#> [596] ""
#> [597] "#"
#> [598] "##########\t\tStorage Constraints\t\t\t\t#############"
#> [599] "#"
#> [600] "s.t. SC1_LowerLimit_BeginningOfDailyTimeBracketOfFirstInstanceOfDayTypeInFirstWeekConstraint{r in REGION, s in STORAGE, ls in SEASON, ld in DAYTYPE, lh in DAILYTIMEBRACKET, y in YEAR}: 0 <= (StorageLevelDayTypeStart[r,s,ls,ld,y]+sum{lhlh in DAILYTIMEBRACKET:lh-lhlh>0} NetChargeWithinDay[r,s,ls,ld,lhlh,y])-StorageLowerLimit[r,s,y];"
#> [601] "s.t. SC1_UpperLimit_BeginningOfDailyTimeBracketOfFirstInstanceOfDayTypeInFirstWeekConstraint{r in REGION, s in STORAGE, ls in SEASON, ld in DAYTYPE, lh in DAILYTIMEBRACKET, y in YEAR}: (StorageLevelDayTypeStart[r,s,ls,ld,y]+sum{lhlh in DAILYTIMEBRACKET:lh-lhlh>0} NetChargeWithinDay[r,s,ls,ld,lhlh,y])-StorageUpperLimit[r,s,y] <= 0;"
#> [602] "s.t. SC2_LowerLimit_EndOfDailyTimeBracketOfLastInstanceOfDayTypeInFirstWeekConstraint{r in REGION, s in STORAGE, ls in SEASON, ld in DAYTYPE, lh in DAILYTIMEBRACKET, y in YEAR}: 0 <= if ld > min{ldld in DAYTYPE} min(ldld) then (StorageLevelDayTypeStart[r,s,ls,ld,y]-sum{lhlh in DAILYTIMEBRACKET:lh-lhlh<0} NetChargeWithinDay[r,s,ls,ld-1,lhlh,y])-StorageLowerLimit[r,s,y];"
#> [603] "s.t. SC2_UpperLimit_EndOfDailyTimeBracketOfLastInstanceOfDayTypeInFirstWeekConstraint{r in REGION, s in STORAGE, ls in SEASON, ld in DAYTYPE, lh in DAILYTIMEBRACKET, y in YEAR}: if ld > min{ldld in DAYTYPE} min(ldld) then (StorageLevelDayTypeStart[r,s,ls,ld,y]-sum{lhlh in DAILYTIMEBRACKET:lh-lhlh<0} NetChargeWithinDay[r,s,ls,ld-1,lhlh,y])-StorageUpperLimit[r,s,y] <= 0;"
#> [604] "s.t. SC3_LowerLimit_EndOfDailyTimeBracketOfLastInstanceOfDayTypeInLastWeekConstraint{r in REGION, s in STORAGE, ls in SEASON, ld in DAYTYPE, lh in DAILYTIMEBRACKET, y in YEAR}: 0 <= (StorageLevelDayTypeFinish[r,s,ls,ld,y] - sum{lhlh in DAILYTIMEBRACKET:lh-lhlh<0} NetChargeWithinDay[r,s,ls,ld,lhlh,y])-StorageLowerLimit[r,s,y];"
#> [605] "s.t. SC3_UpperLimit_EndOfDailyTimeBracketOfLastInstanceOfDayTypeInLastWeekConstraint{r in REGION, s in STORAGE, ls in SEASON, ld in DAYTYPE, lh in DAILYTIMEBRACKET, y in YEAR}: (StorageLevelDayTypeFinish[r,s,ls,ld,y] - sum{lhlh in DAILYTIMEBRACKET:lh-lhlh<0} NetChargeWithinDay[r,s,ls,ld,lhlh,y])-StorageUpperLimit[r,s,y] <= 0;"
#> [606] "s.t. SC4_LowerLimit_BeginningOfDailyTimeBracketOfFirstInstanceOfDayTypeInLastWeekConstraint{r in REGION, s in STORAGE, ls in SEASON, ld in DAYTYPE, lh in DAILYTIMEBRACKET, y in YEAR}: \t0 <= if ld > min{ldld in DAYTYPE} min(ldld) then (StorageLevelDayTypeFinish[r,s,ls,ld-1,y]+sum{lhlh in DAILYTIMEBRACKET:lh-lhlh>0} NetChargeWithinDay[r,s,ls,ld,lhlh,y])-StorageLowerLimit[r,s,y];"
#> [607] "s.t. SC4_UpperLimit_BeginningOfDailyTimeBracketOfFirstInstanceOfDayTypeInLastWeekConstraint{r in REGION, s in STORAGE, ls in SEASON, ld in DAYTYPE, lh in DAILYTIMEBRACKET, y in YEAR}: if ld > min{ldld in DAYTYPE} min(ldld) then (StorageLevelDayTypeFinish[r,s,ls,ld-1,y]+sum{lhlh in DAILYTIMEBRACKET:lh-lhlh>0} NetChargeWithinDay[r,s,ls,ld,lhlh,y])-StorageUpperLimit[r,s,y] <= 0;"
#> [608] "s.t. SC5_MaxChargeConstraint{r in REGION, s in STORAGE, ls in SEASON, ld in DAYTYPE, lh in DAILYTIMEBRACKET, y in YEAR}: RateOfStorageCharge[r,s,ls,ld,lh,y] <= StorageMaxChargeRate[r,s];"
#> [609] "s.t. SC6_MaxDischargeConstraint{r in REGION, s in STORAGE, ls in SEASON, ld in DAYTYPE, lh in DAILYTIMEBRACKET, y in YEAR}: RateOfStorageDischarge[r,s,ls,ld,lh,y] <= StorageMaxDischargeRate[r,s];"
#> [610] "#"
#> [611] "#########\t\tStorage Investments\t\t\t\t#############"
#> [612] "#"
#> [613] "s.t. SI1_StorageUpperLimit{r in REGION, s in STORAGE, y in YEAR}: AccumulatedNewStorageCapacity[r,s,y]+ResidualStorageCapacity[r,s,y] = StorageUpperLimit[r,s,y];"
#> [614] "s.t. SI2_StorageLowerLimit{r in REGION, s in STORAGE, y in YEAR}: MinStorageCharge[r,s,y]*StorageUpperLimit[r,s,y] = StorageLowerLimit[r,s,y];"
#> [615] "s.t. SI3_TotalNewStorage{r in REGION, s in STORAGE, y in YEAR}: sum{yy in YEAR: y-yy < OperationalLifeStorage[r,s] && y-yy>=0} NewStorageCapacity[r,s,yy]=AccumulatedNewStorageCapacity[r,s,y];"
#> [616] "s.t. SI4_UndiscountedCapitalInvestmentStorage{r in REGION, s in STORAGE, y in YEAR}: CapitalCostStorage[r,s,y] * NewStorageCapacity[r,s,y] = CapitalInvestmentStorage[r,s,y];"
#> [617] "s.t. SI5_DiscountingCapitalInvestmentStorage{r in REGION, s in STORAGE, y in YEAR}: CapitalInvestmentStorage[r,s,y]/(DiscountFactorStorage[r,s,y]) = DiscountedCapitalInvestmentStorage[r,s,y];"
#> [618] "s.t. SI6_SalvageValueStorageAtEndOfPeriod1{r in REGION, s in STORAGE, y in YEAR: (y+OperationalLifeStorage[r,s]-1) <= (max{yy in YEAR} max(yy))}: 0 = SalvageValueStorage[r,s,y];"
#> [619] "s.t. SI7_SalvageValueStorageAtEndOfPeriod2{r in REGION, s in STORAGE, y in YEAR: (DepreciationMethod[r]=1 && (y+OperationalLifeStorage[r,s]-1) > (max{yy in YEAR} max(yy)) && DiscountRateStorage[r,s]=0) || (DepreciationMethod[r]=2 && (y+OperationalLifeStorage[r,s]-1) > (max{yy in YEAR} max(yy)))}: CapitalInvestmentStorage[r,s,y]*(1-(max{yy in YEAR} max(yy) - y+1)/OperationalLifeStorage[r,s]) = SalvageValueStorage[r,s,y];"
#> [620] "s.t. SI8_SalvageValueStorageAtEndOfPeriod3{r in REGION, s in STORAGE, y in YEAR: DepreciationMethod[r]=1 && (y+OperationalLifeStorage[r,s]-1) > (max{yy in YEAR} max(yy)) && DiscountRateStorage[r,s]>0}: CapitalInvestmentStorage[r,s,y]*(1-(((1+DiscountRateStorage[r,s])^(max{yy in YEAR} max(yy) - y+1)-1)/((1+DiscountRateStorage[r,s])^OperationalLifeStorage[r,s]-1))) = SalvageValueStorage[r,s,y];"
#> [621] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t"
#> [622] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t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\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [626] "s.t. SI9_SalvageValueStorageDiscountedToStartYear{r in REGION, s in STORAGE, y in YEAR}: SalvageValueStorage[r,s,y]/((1+DiscountRateStorage[r,s])^(max{yy in YEAR} max(yy)-min{yy in YEAR} min(yy)+1)) = DiscountedSalvageValueStorage[r,s,y];"
#> [627] "s.t. SI10_TotalDiscountedCostByStorage{r in REGION, s in STORAGE, y in YEAR}: DiscountedCapitalInvestmentStorage[r,s,y]-DiscountedSalvageValueStorage[r,s,y] = TotalDiscountedStorageCost[r,s,y];"
#> [628] "#"
#> [629] "######### \tCapital Costs \t\t \t#############"
#> [630] "#"
#> [631] "s.t. CC1_UndiscountedCapitalInvestment{r in REGION, t in TECHNOLOGY, y in YEAR}: CapitalCost[r,t,y] * NewCapacity[r,t,y] * CapitalRecoveryFactor[r,t] * PvAnnuity[r,t] = CapitalInvestment[r,t,y];"
#> [632] ""
#> [633] "s.t. CC2_DiscountingCapitalInvestment{r in REGION, t in TECHNOLOGY, y in YEAR}: CapitalInvestment[r,t,y] / DiscountFactor[r,y] = DiscountedCapitalInvestment[r,t,y];"
#> [634] ""
#> [635] ""
#> [636] "#"
#> [637] "######### Salvage Value \t#############"
#> [638] "#"
#> [639] "s.t. SV1_SalvageValueAtEndOfPeriod1{r in REGION, t in TECHNOLOGY, y in YEAR: DepreciationMethod[r]=1 && (y + OperationalLife[r,t]-1) > (max{yy in YEAR} max(yy)) && DiscountRate[r]>0}: SalvageValue[r,t,y] = CapitalCost[r,t,y] * NewCapacity[r,t,y] * CapitalRecoveryFactor[r,t] * PvAnnuity[r,t] *(1-(((1+DiscountRate[r])^(max{yy in YEAR} max(yy) - y+1)-1)/((1+DiscountRate[r])^OperationalLife[r,t]-1)));"
#> [640] "s.t. SV2_SalvageValueAtEndOfPeriod2{r in REGION, t in TECHNOLOGY, y in YEAR: (DepreciationMethod[r]=1 && (y + OperationalLife[r,t]-1) > (max{yy in YEAR} max(yy)) && DiscountRate[r]=0) || (DepreciationMethod[r]=2 && (y + OperationalLife[r,t]-1) > (max{yy in YEAR} max(yy)))}: SalvageValue[r,t,y] = CapitalCost[r,t,y] * NewCapacity[r,t,y] * CapitalRecoveryFactor[r,t] * PvAnnuity[r,t] *(1-(max{yy in YEAR} max(yy) - y+1)/OperationalLife[r,t]);"
#> [641] "s.t. SV3_SalvageValueAtEndOfPeriod3{r in REGION, t in TECHNOLOGY, y in YEAR: (y + OperationalLife[r,t]-1) <= (max{yy in YEAR} max(yy))}: SalvageValue[r,t,y] = 0;"
#> [642] "s.t. SV4_SalvageValueDiscountedToStartYear{r in REGION, t in TECHNOLOGY, y in YEAR}: DiscountedSalvageValue[r,t,y] = SalvageValue[r,t,y]/((1+DiscountRate[r])^(1+max{yy in YEAR} max(yy)-min{yy in YEAR} min(yy)));"
#> [643] "#"
#> [644] "######### \tOperating Costs \t\t \t#############"
#> [645] "#"
#> [646] ""
#> [647] "s.t. OC1_OperatingCostsVariable{r in REGION, t in TECHNOLOGY, l in TIMESLICE, y in YEAR: sum{m in MODE_OF_OPERATION} VariableCost[r,t,m,y] <> 0}:"
#> [648] "\tsum{m in MODE_OF_OPERATION}"
#> [649] "\tTotalAnnualTechnologyActivityByMode[r,t,m,y] * VariableCost[r,t,m,y]"
#> [650] "\t="
#> [651] "\tAnnualVariableOperatingCost[r,t,y];"
#> [652] ""
#> [653] "s.t. OC2_OperatingCostsFixedAnnual{r in REGION, t in TECHNOLOGY, y in YEAR}:"
#> [654] "\tTotalCapacityAnnual[r,t,y]*FixedCost[r,t,y]"
#> [655] "\t="
#> [656] "\tAnnualFixedOperatingCost[r,t,y];"
#> [657] ""
#> [658] "s.t. OC3_OperatingCostsTotalAnnual{r in REGION, t in TECHNOLOGY, y in YEAR}:"
#> [659] "\tAnnualFixedOperatingCost[r,t,y] + AnnualVariableOperatingCost[r,t,y]"
#> [660] "\t="
#> [661] "\tOperatingCost[r,t,y];"
#> [662] ""
#> [663] "s.t. OC4_DiscountedOperatingCostsTotalAnnual{r in REGION, t in TECHNOLOGY, y in YEAR}:"
#> [664] "\tOperatingCost[r,t,y] / DiscountFactorMid[r, y]"
#> [665] "\t="
#> [666] "\tDiscountedOperatingCost[r,t,y];"
#> [667] " "
#> [668] "#"
#> [669] "######### \tTotal Discounted Costs\t \t#############"
#> [670] "#"
#> [671] "s.t. TDC1_TotalDiscountedCostByTechnology{r in REGION, t in TECHNOLOGY, y in YEAR}: DiscountedOperatingCost[r,t,y]+DiscountedCapitalInvestment[r,t,y]+DiscountedTechnologyEmissionsPenalty[r,t,y]-DiscountedSalvageValue[r,t,y] = TotalDiscountedCostByTechnology[r,t,y];"
#> [672] "s.t. TDC2_TotalDiscountedCost{r in REGION, y in YEAR}: sum{t in TECHNOLOGY} TotalDiscountedCostByTechnology[r,t,y]+sum{s in STORAGE} TotalDiscountedStorageCost[r,s,y] = TotalDiscountedCost[r,y];"
#> [673] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [674] "#"
#> [675] "######### \t\tTotal Capacity Constraints \t##############"
#> [676] "#"
#> [677] "s.t. TCC1_TotalAnnualMaxCapacityConstraint{r in REGION, t in TECHNOLOGY, y in YEAR: TotalAnnualMaxCapacity[r,t,y] <> -1}: TotalCapacityAnnual[r,t,y] <= TotalAnnualMaxCapacity[r,t,y];"
#> [678] " "
#> [679] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [680] " "
#> [681] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [682] "s.t. TCC2_TotalAnnualMinCapacityConstraint{r in REGION, t in TECHNOLOGY, y in YEAR: TotalAnnualMinCapacity[r,t,y]>0}: TotalCapacityAnnual[r,t,y] >= TotalAnnualMinCapacity[r,t,y];"
#> [683] "#"
#> [684] "######### \t\tNew Capacity Constraints \t##############"
#> [685] "#"
#> [686] "s.t. NCC1_TotalAnnualMaxNewCapacityConstraint{r in REGION, t in TECHNOLOGY, y in YEAR: TotalAnnualMaxCapacityInvestment[r,t,y] <> -1}: NewCapacity[r,t,y] <= TotalAnnualMaxCapacityInvestment[r,t,y];"
#> [687] " "
#> [688] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t"
#> [689] " "
#> [690] "s.t. NCC2_TotalAnnualMinNewCapacityConstraint{r in REGION, t in TECHNOLOGY, y in YEAR: TotalAnnualMinCapacityInvestment[r,t,y]>0}: NewCapacity[r,t,y] >= TotalAnnualMinCapacityInvestment[r,t,y];"
#> [691] "#"
#> [692] "######### \t\tAnnual Activity Constraints\t##############"
#> [693] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t"
#> [694] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\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t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [702] "\t "
#> [703] "#"
#> [704] "s.t. AAC1_TotalAnnualTechnologyActivity{r in REGION, t in TECHNOLOGY, y in YEAR}: sum{l in TIMESLICE} RateOfTotalActivity[r,t,l,y]*YearSplit[l,y] = TotalTechnologyAnnualActivity[r,t,y];"
#> [705] "s.t. AAC2_TotalAnnualTechnologyActivityUpperLimit{r in REGION, t in TECHNOLOGY, y in YEAR: TotalTechnologyAnnualActivityUpperLimit[r,t,y] <> -1}: TotalTechnologyAnnualActivity[r,t,y] <= TotalTechnologyAnnualActivityUpperLimit[r,t,y] ;"
#> [706] "s.t. AAC3_TotalAnnualTechnologyActivityLowerLimit{r in REGION, t in TECHNOLOGY, y in YEAR: TotalTechnologyAnnualActivityLowerLimit[r,t,y]>0}: TotalTechnologyAnnualActivity[r,t,y] >= TotalTechnologyAnnualActivityLowerLimit[r,t,y] ;"
#> [707] "#"
#> [708] "######### \t\tTotal Activity Constraints \t##############"
#> [709] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t"
#> [710] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [711] "#"
#> [712] "s.t. TAC1_TotalModelHorizonTechnologyActivity{r in REGION, t in TECHNOLOGY}: sum{y in YEAR} TotalTechnologyAnnualActivity[r,t,y] = TotalTechnologyModelPeriodActivity[r,t];"
#> [713] "s.t. TAC2_TotalModelHorizonTechnologyActivityUpperLimit{r in REGION, t in TECHNOLOGY: TotalTechnologyModelPeriodActivityUpperLimit[r,t]<>-1}: TotalTechnologyModelPeriodActivity[r,t] <= TotalTechnologyModelPeriodActivityUpperLimit[r,t] ;"
#> [714] "s.t. TAC3_TotalModelHorizenTechnologyActivityLowerLimit{r in REGION, t in TECHNOLOGY: TotalTechnologyModelPeriodActivityLowerLimit[r,t]>0}: TotalTechnologyModelPeriodActivity[r,t] >= TotalTechnologyModelPeriodActivityLowerLimit[r,t] ;"
#> [715] "#"
#> [716] "######### \t\tReserve Margin Constraint\t############## NTS: Should change demand for production"
#> [717] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [718] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t"
#> [719] "#"
#> [720] "s.t. RM1_ReserveMargin_TechnologiesIncluded_In_Activity_Units{r in REGION, l in TIMESLICE, y in YEAR: ReserveMargin[r,y] > 0}:"
#> [721] "\tsum {t in TECHNOLOGY}"
#> [722] "\tTotalCapacityAnnual[r,t,y] * ReserveMarginTagTechnology[r,t,y] * CapacityToActivityUnit[r,t]"
#> [723] "\t="
#> [724] "\tTotalCapacityInReserveMargin[r,y];"
#> [725] ""
#> [726] "s.t. RM2_ReserveMargin_FuelsIncluded{r in REGION, l in TIMESLICE, y in YEAR: ReserveMargin[r,y] > 0}:"
#> [727] "\tsum {f in FUEL}"
#> [728] "\tRateOfProduction[r,l,f,y] * ReserveMarginTagFuel[r,f,y]"
#> [729] "\t="
#> [730] "\tDemandNeedingReserveMargin[r,l,y];"
#> [731] ""
#> [732] "s.t. RM3_ReserveMargin_Constraint{r in REGION, l in TIMESLICE, y in YEAR: ReserveMargin[r,y] > 0}:"
#> [733] "\tDemandNeedingReserveMargin[r,l,y] * ReserveMargin[r,y]"
#> [734] "\t<="
#> [735] "\tTotalCapacityInReserveMargin[r,y];"
#> [736] ""
#> [737] "#"
#> [738] "######### \t\tRE Production Target\t\t############## N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\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t"
#> [743] "#"
#> [744] "s.t. RE1_FuelProductionByTechnologyAnnual{r in REGION, t in TECHNOLOGY, f in FUEL, y in YEAR}: sum{l in TIMESLICE} ProductionByTechnology[r,l,t,f,y] = ProductionByTechnologyAnnual[r,t,f,y];"
#> [745] "s.t. RE2_TechIncluded{r in REGION, y in YEAR}: sum{t in TECHNOLOGY, f in FUEL} ProductionByTechnologyAnnual[r,t,f,y]*RETagTechnology[r,t,y] = TotalREProductionAnnual[r,y];"
#> [746] "s.t. RE3_FuelIncluded{r in REGION, y in YEAR}: sum{l in TIMESLICE, f in FUEL} RateOfProduction[r,l,f,y]*YearSplit[l,y]*RETagFuel[r,f,y] = RETotalProductionOfTargetFuelAnnual[r,y];"
#> [747] "s.t. RE4_EnergyConstraint{r in REGION, y in YEAR}:REMinProductionTarget[r,y]*RETotalProductionOfTargetFuelAnnual[r,y] <= TotalREProductionAnnual[r,y];"
#> [748] "s.t. RE5_FuelUseByTechnologyAnnual{r in REGION, t in TECHNOLOGY, f in FUEL, y in YEAR}: sum{l in TIMESLICE} RateOfUseByTechnology[r,l,t,f,y]*YearSplit[l,y] = UseByTechnologyAnnual[r,t,f,y];"
#> [749] "#"
#> [750] "######### \t\tEmissions Accounting\t\t##############"
#> [751] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t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\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [763] "#"
#> [764] "s.t. E1_AnnualEmissionProductionByMode{r in REGION, t in TECHNOLOGY, e in EMISSION, m in MODE_OF_OPERATION, y in YEAR:"
#> [765] "\t\t\t\t\t\t\t\t\t EmissionActivityRatio[r,t,e,m,y] <> 0}:"
#> [766] "\tEmissionActivityRatio[r,t,e,m,y] * TotalAnnualTechnologyActivityByMode[r,t,m,y]"
#> [767] "\t="
#> [768] "\tAnnualTechnologyEmissionByMode[r,t,e,m,y];"
#> [769] ""
#> [770] "s.t. E2_AnnualEmissionProduction{r in REGION, t in TECHNOLOGY, e in EMISSION, y in YEAR}:"
#> [771] "\tsum{m in MODE_OF_OPERATION}"
#> [772] "\tAnnualTechnologyEmissionByMode[r,t,e,m,y]"
#> [773] "\t="
#> [774] "\tAnnualTechnologyEmission[r,t,e,y];"
#> [775] ""
#> [776] "s.t. E3_EmissionsPenaltyByTechAndEmission{r in REGION, t in TECHNOLOGY, e in EMISSION, y in YEAR: EmissionsPenalty[r,e,y] <> 0}:"
#> [777] "\tAnnualTechnologyEmission[r,t,e,y] * EmissionsPenalty[r,e,y]"
#> [778] "\t="
#> [779] "\tAnnualTechnologyEmissionPenaltyByEmission[r,t,e,y];"
#> [780] ""
#> [781] "s.t. E4_EmissionsPenaltyByTechnology{r in REGION, t in TECHNOLOGY, y in YEAR}:"
#> [782] "\tsum{e in EMISSION} AnnualTechnologyEmissionPenaltyByEmission[r,t,e,y]"
#> [783] "\t="
#> [784] "\tAnnualTechnologyEmissionsPenalty[r,t,y];"
#> [785] ""
#> [786] "s.t. E5_DiscountedEmissionsPenaltyByTechnology{r in REGION, t in TECHNOLOGY, y in YEAR}:"
#> [787] "\tAnnualTechnologyEmissionsPenalty[r,t,y] / DiscountFactorMid[r,y]"
#> [788] "\t="
#> [789] "\tDiscountedTechnologyEmissionsPenalty[r,t,y];"
#> [790] ""
#> [791] "s.t. E6_EmissionsAccounting1{r in REGION, e in EMISSION, y in YEAR}:"
#> [792] "\tsum{t in TECHNOLOGY}"
#> [793] "\tAnnualTechnologyEmission[r,t,e,y]"
#> [794] "\t="
#> [795] "\tAnnualEmissions[r,e,y];"
#> [796] ""
#> [797] "s.t. E7_EmissionsAccounting2{r in REGION, e in EMISSION}:"
#> [798] "\tsum{y in YEAR} AnnualEmissions[r,e,y]"
#> [799] "\t="
#> [800] "\tModelPeriodEmissions[r,e] - ModelPeriodExogenousEmission[r,e];"
#> [801] ""
#> [802] "s.t. E8_AnnualEmissionsLimit{r in REGION, e in EMISSION, y in YEAR: AnnualEmissionLimit[r, e, y] <> -1}:"
#> [803] "\tAnnualEmissions[r,e,y] + AnnualExogenousEmission[r,e,y]"
#> [804] "\t<="
#> [805] "\tAnnualEmissionLimit[r,e,y];"
#> [806] ""
#> [807] "s.t. E9_ModelPeriodEmissionsLimit{r in REGION, e in EMISSION: ModelPeriodEmissionLimit[r, e] <> -1}:"
#> [808] "\tModelPeriodEmissions[r,e]"
#> [809] "\t<="
#> [810] "\tModelPeriodEmissionLimit[r,e];"
#> [811] "#"
#> [812] "###########################################################################################"
#> [813] "#"
#> [814] " "
#> [815] "# Solve the problem"
#> [816] "solve;"
#> [817] "#"
#> [818] "#########################################################################################################"
#> [819] "# #"
#> [820] "# Summary results tables below are printed to a comma-separated file called ResultsPath #"
#> [821] "# For a full set of results please see \"Results.txt\" #"
#> [822] "# If you don't want these printed, please comment-out or delete them. #"
#> [823] "# #"
#> [824] "#########################################################################################################"
#> [825] "#"
#> [826] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [827] "#### Summary results ###"
#> [828] "#"
#> [829] "### Total costs and emissions by region ###"
#> [830] "#"
#> [831] "printf \"\\n\" > ResultsPath & \"/SelectedResults.csv\";"
#> [832] "printf \"Summary\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [833] "for {r in REGION} {printf \",%s\", r >> ResultsPath & \"/SelectedResults.csv\";"
#> [834] " }"
#> [835] "printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [836] "printf \"Emissions\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [837] "printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [838] "for {r in REGION} {"
#> [839] " for {e in EMISSION} {"
#> [840] " printf \",%s\", e >> ResultsPath & \"/SelectedResults.csv\";"
#> [841] " printf \",%g\", sum{l in TIMESLICE, t in TECHNOLOGY, m in MODE_OF_OPERATION, y in YEAR: EmissionActivityRatio[r,t,e,m,y]<>0} EmissionActivityRatio[r,t,e,m,y]*RateOfActivity[r,l,t,m,y]*YearSplit[l,y] + ModelPeriodExogenousEmission[r,e] >> ResultsPath & \"/SelectedResults.csv\";"
#> [842] " printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [843] " }"
#> [844] " }"
#> [845] "printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [846] "printf \"Cost\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [847] "for {r in REGION} {printf \",%g\", sum{t in TECHNOLOGY, y in YEAR}(((((sum{yy in YEAR: y-yy < OperationalLife[r,t] && y-yy>=0} NewCapacity[r,t,yy])+ ResidualCapacity[r,t,y])*FixedCost[r,t,y] + sum{m in MODE_OF_OPERATION, l in TIMESLICE} RateOfActivity[r,l,t,m,y]*YearSplit[l,y]*VariableCost[r,t,m,y])/DiscountFactorMid[r,y] + DiscountedCapitalInvestment[r,t,y] + DiscountedTechnologyEmissionsPenalty[r,t,y]-DiscountedSalvageValue[r,t,y]) + sum{s in STORAGE} (CapitalCostStorage[r,s,y] * NewStorageCapacity[r,s,y]/DiscountFactor[r,y]-CapitalCostStorage[r,s,y] * NewStorageCapacity[r,s,y]/DiscountFactor[r,y])) >> ResultsPath & \"/SelectedResults.csv\";"
#> [848] "}"
#> [849] "printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [850] "#"
#> [851] "### Time Independent demand ###"
#> [852] "#"
#> [853] "printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [854] "printf \"TID Demand\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [855] "printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [856] "printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [857] " for {r in REGION}{printf \",%s\", r >> ResultsPath & \"/SelectedResults.csv\";}"
#> [858] " printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [859] "\t\tprintf \"Fuel\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [860] "\t\t#printf \",\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [861] " for {y in YEAR}{printf \",%g\", y >> ResultsPath & \"/SelectedResults.csv\";}"
#> [862] "\t\tprintf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [863] "\t\tfor {r in REGION}{"
#> [864] "\t\t\t\t\t\t\tfor {f in FUEL} {printf \"%s,\", f >> ResultsPath & \"/SelectedResults.csv\";"
#> [865] "\t\t\t\t\t\t\t\t\t\t\t#printf \",%s\", f >> ResultsPath & \"/SelectedResults.csv\";"
#> [866] "\t\t\t\t\t\t\t\t\t\t\tfor {y in YEAR}{"
#> [867] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t#printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [868] " #printf \"%g\", y >> ResultsPath & \"/SelectedResults.csv\";"
#> [869] " printf \"%g,\", AccumulatedAnnualDemand[r,f,y] >> ResultsPath & \"/SelectedResults.csv\";"
#> [870] " #printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [871] " }"
#> [872] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tprintf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [873] "\t\t\t\t\t\t\t\t\t\t\t}"
#> [874] "\t\t\t\t\t\t\t\t\t\t\t#printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [875] "\t\t\t\t\t\t}"
#> [876] "#"
#> [877] "### Time Dependent demand ###"
#> [878] "#"
#> [879] "printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [880] "printf \"Time Dependent Demand (Energy Units)\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [881] "printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [882] "printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [883] "\t\tfor {r in REGION}{printf \",%s\", r >> ResultsPath & \"/SelectedResults.csv\";}"
#> [884] " printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [885] "\t\tprintf \"Fuel\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [886] "\t\tprintf \",Timeslice\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [887] " for {y in YEAR}{printf \",%g\", y >> ResultsPath & \"/SelectedResults.csv\";}"
#> [888] "\t\tprintf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [889] " for {r in REGION }{"
#> [890] "\t\t\t\t\t\t\tfor {f in FUEL} {#printf \"%s\", f >> ResultsPath & \"/SelectedResults.csv\";"
#> [891] "\t\t\t\t\t\t\t\t\t\t\t #printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [892] "\t\t\t\t\t\t\t\t\t\t\t for {l in TIMESLICE}{"
#> [893] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t printf \"%s\", f >> ResultsPath & \"/SelectedResults.csv\";"
#> [894] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t printf \",%s\", l >> ResultsPath & \"/SelectedResults.csv\";"
#> [895] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t for {y in YEAR}{printf \",%g\", SpecifiedAnnualDemand[r,f,y]*SpecifiedDemandProfile[r,f,l,y] >> ResultsPath & \"/SelectedResults.csv\";"
#> [896] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t }"
#> [897] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [898] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t }"
#> [899] "\t\t\t\t\t\t\t\t\t\t\t}"
#> [900] "\t\t\t\t\t\t\t}"
#> [901] "#"
#> [902] "### Time Dependent production ###"
#> [903] "#"
#> [904] "printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [905] "printf \"Time Dependent Production (Energy Units) Test\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [906] "printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [907] "printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [908] "for {r in REGION}{printf \",%s\", r >> ResultsPath & \"/SelectedResults.csv\";}"
#> [909] " printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [910] "\t\tprintf \"Fuel\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [911] "\t\tprintf \",Timeslice\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [912] " for {y in YEAR}{printf \",%g\", y >> ResultsPath & \"/SelectedResults.csv\";}"
#> [913] "\t\tprintf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [914] " for {r in REGION} {"
#> [915] "\t\t\t\t\t\t\tfor {f in FUEL} {#printf \"%s\", f >> ResultsPath & \"/SelectedResults.csv\";"
#> [916] " #printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [917] " for {l in TIMESLICE}{"
#> [918] " printf \"%s\", f >> ResultsPath & \"/SelectedResults.csv\";"
#> [919] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t printf \",%s\", l >> ResultsPath & \"/SelectedResults.csv\";"
#> [920] " for {y in YEAR }{"
#> [921] " printf \",%g\", sum{m in MODE_OF_OPERATION, t in TECHNOLOGY: OutputActivityRatio[r,t,f,m,y] <>0} RateOfActivity[r,l,t,m,y]*OutputActivityRatio[r,t,f,m,y]*YearSplit[l,y] >> ResultsPath & \"/SelectedResults.csv\";"
#> [922] " }"
#> [923] " printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [924] " }"
#> [925] " }"
#> [926] " }"
#> [927] "#"
#> [928] "#### Total Annual Capacity ###"
#> [929] "#"
#> [930] "printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [931] "printf \"TotalAnnualCapacity (Capacity Units)\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [932] "printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [933] "printf \"Technology\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [934] "for {y in YEAR} {printf \",%s\", y >> ResultsPath & \"/SelectedResults.csv\";}"
#> [935] "printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [936] "for {r in REGION} {"
#> [937] " for { t in TECHNOLOGY } {"
#> [938] " printf \"%s\", t >> ResultsPath & \"/SelectedResults.csv\";"
#> [939] " for { y in YEAR } {"
#> [940] " printf \",%g\", ((sum{yy in YEAR: y-yy < OperationalLife[r,t] && y-yy>=0} NewCapacity[r,t,yy])+ ResidualCapacity[r,t,y]) >> ResultsPath & \"/SelectedResults.csv\";"
#> [941] " }"
#> [942] " printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [943] " }"
#> [944] " }"
#> [945] "#"
#> [946] "#### New Annual Capacity ###"
#> [947] "#"
#> [948] "printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [949] "printf \"NewCapacity (Capacity Units )\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [950] "printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [951] "printf \"Technology\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [952] "for {y in YEAR} {printf \",%s\", y >> ResultsPath & \"/SelectedResults.csv\";}"
#> [953] "printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [954] "for {r in REGION} {"
#> [955] " for { t in TECHNOLOGY } {"
#> [956] " printf \"%s\", t >> ResultsPath & \"/SelectedResults.csv\";"
#> [957] " for { y in YEAR } {"
#> [958] " printf \",%g\", NewCapacity[r,t,y] >> ResultsPath & \"/SelectedResults.csv\";"
#> [959] " }"
#> [960] " printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [961] " }"
#> [962] " }"
#> [963] "#"
#> [964] "### Annual Production ###"
#> [965] "#"
#> [966] "printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [967] "printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [968] "printf \"Annual Production (Energy Units)\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [969] "printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [970] "for {r in REGION}{printf \",%s\", r >> ResultsPath & \"/SelectedResults.csv\";}"
#> [971] "printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [972] "printf \"Technology\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [973] "printf \",Fuel\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [974] "for {y in YEAR}{printf\",%g\",y >> ResultsPath & \"/SelectedResults.csv\";}"
#> [975] "printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [976] "for{r in REGION}{"
#> [977] "\t\t\t\t\tfor {t in TECHNOLOGY}{#printf \"%s\", t >> ResultsPath & \"/SelectedResults.csv\";"
#> [978] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t #printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [979] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t for {f in FUEL }{"
#> [980] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tprintf \"%s\", t >> ResultsPath & \"/SelectedResults.csv\";"
#> [981] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tprintf \",%s\", f >> ResultsPath & \"/SelectedResults.csv\";"
#> [982] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t for {y in YEAR}{printf \",%g\", sum{m in MODE_OF_OPERATION, l in TIMESLICE: OutputActivityRatio[r,t,f,m,y] <>0} RateOfActivity[r,l,t,m,y]*OutputActivityRatio[r,t,f,m,y] * YearSplit[l,y] >> ResultsPath & \"/SelectedResults.csv\";"
#> [983] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t }"
#> [984] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [985] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t }"
#> [986] "\t\t\t\t\t\t\t\t\t\t }"
#> [987] "\t\t\t\t\t\t\t\t\t\t printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [988] "\t\t\t\t}"
#> [989] "#"
#> [990] "### Annual Use ###"
#> [991] "#"
#> [992] "#printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [993] "printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [994] "printf \"Annual Use (Energy Units)\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [995] "printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [996] "for {r in REGION} {printf \",%s\", r >> ResultsPath & \"/SelectedResults.csv\";"
#> [997] " printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [998] " printf \"Technology\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [999] "\t\t\t\t\t\t\t\t\t\tprintf \",Fuel\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [1000] "\t\t\t\t\t\t\t\t\t\t#printf \",Timeslice\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [1001] "\t\t\t\t\t\t\t\t\t\tfor {y in YEAR}{printf\",%g\",y >> ResultsPath & \"/SelectedResults.csv\";}"
#> [1002] "\t\t\t\t\t\t\t\t\t\tprintf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [1003] "\t\t\t\t\t\t\t\t\t\tfor {t in TECHNOLOGY}{#printf \"%s\", t >> ResultsPath & \"/SelectedResults.csv\";"
#> [1004] " for {f in FUEL }{printf \"%s\", t >> ResultsPath & \"/SelectedResults.csv\";"
#> [1005] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t printf \",%s\", f >> ResultsPath & \"/SelectedResults.csv\";"
#> [1006] " for {y in YEAR}{printf \",%g\", sum{m in MODE_OF_OPERATION, l in TIMESLICE: InputActivityRatio[r,t,f,m,y]<>0} RateOfActivity[r,l,t,m,y]*InputActivityRatio[r,t,f,m,y]*YearSplit[l,y] >> ResultsPath & \"/SelectedResults.csv\";"
#> [1007] " }"
#> [1008] " printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [1009] " }"
#> [1010] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t #printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [1011] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t }"
#> [1012] "\t\t\t\t }"
#> [1013] "#"
#> [1014] "### Technology Production in each TS ###"
#> [1015] "#"
#> [1016] "printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [1017] "printf \"ProductionByTechnology (Energy Units)\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [1018] "printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [1019] "printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [1020] "for {r in REGION} {printf \",%s\", r >> ResultsPath & \"/SelectedResults.csv\";"
#> [1021] " printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [1022] "\t\tprintf \"Technology\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [1023] "\t\tprintf \",Fuel\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [1024] "\t\tprintf \",Timeslice\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [1025] " for {y in YEAR}{printf \",%g\", y >> ResultsPath & \"/SelectedResults.csv\";}"
#> [1026] "\t\tprintf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [1027] " for {t in TECHNOLOGY} {#printf \"%s\", t >> ResultsPath & \"/SelectedResults.csv\";"
#> [1028] " #printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [1029] " for {f in FUEL } {"
#> [1030] " #printf \",%s\", f >> ResultsPath & \"/SelectedResults.csv\";"
#> [1031] " for {l in TIMESLICE}{#printf \",%s\", l >> ResultsPath & \"/SelectedResults.csv\";"
#> [1032] "\t\t\t\t\t\t\t\t\t\t\t\t\t\tprintf \"%s\", t >> ResultsPath & \"/SelectedResults.csv\";"
#> [1033] "\t\t\t\t\t\t\t\t\t\t\t\t\t\tprintf \",%s\", f >> ResultsPath & \"/SelectedResults.csv\";"
#> [1034] "\t\t\t\t\t\t\t\t\t\t\t\t\t\tprintf \",%s\", l >> ResultsPath & \"/SelectedResults.csv\";"
#> [1035] " for { y in YEAR} {"
#> [1036] " printf \",%g\", sum{m in MODE_OF_OPERATION: OutputActivityRatio[r,t,f,m,y] <>0} RateOfActivity[r,l,t,m,y]*OutputActivityRatio[r,t,f,m,y] * YearSplit[l,y] >> ResultsPath & \"/SelectedResults.csv\";"
#> [1037] " }"
#> [1038] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tprintf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [1039] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t#printf \",\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [1040] " }"
#> [1041] " #printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [1042] " }"
#> [1043] "\t\t\t\t\t\t\t\t\t\t#printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [1044] " }"
#> [1045] "}"
#> [1046] "#"
#> [1047] "### Technology Use in each TS ###"
#> [1048] "#"
#> [1049] "printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [1050] "printf \"Use By Technology (Energy Units)\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [1051] "printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [1052] "printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [1053] "for {r in REGION} {printf \",%s\", r >> ResultsPath & \"/SelectedResults.csv\";"
#> [1054] " printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [1055] "\t\tprintf \"Technology\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [1056] "\t\tprintf \",Fuel\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [1057] "\t\tprintf \",Timeslice\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [1058] " for {y in YEAR}{printf \",%g\", y >> ResultsPath & \"/SelectedResults.csv\";}"
#> [1059] "\t\tprintf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [1060] " for {t in TECHNOLOGY} {#printf \"%s\", t >> ResultsPath & \"/SelectedResults.csv\";"
#> [1061] "\t\t\t\t\t\t\t\t\t\t#printf \",\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [1062] " #for {f in FUEL}{printf\",%s\",f >> ResultsPath & \"/SelectedResults.csv\";"
#> [1063] " #for {y in YEAR}{"
#> [1064] " #printf \",%g\", y >> ResultsPath & \"/SelectedResults.csv\";"
#> [1065] " #}"
#> [1066] " #}"
#> [1067] " #printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [1068] " for {f in FUEL} {"
#> [1069] " #printf \"%s\", f >> ResultsPath & \"/SelectedResults.csv\";"
#> [1070] " for {l in TIMESLICE}{#printf \",%s\", l >> ResultsPath & \"/SelectedResults.csv\";"
#> [1071] "\t\t\t\t\t\t\t\t\t\t\t\t\t\tprintf \"%s\", t >> ResultsPath & \"/SelectedResults.csv\";"
#> [1072] "\t\t\t\t\t\t\t\t\t\t\t\t\t\tprintf \",%s\", f >> ResultsPath & \"/SelectedResults.csv\";"
#> [1073] "\t\t\t\t\t\t\t\t\t\t\t\t\t\tprintf \",%s\", l >> ResultsPath & \"/SelectedResults.csv\";"
#> [1074] " for { y in YEAR} {"
#> [1075] " printf \",%g\", sum{m in MODE_OF_OPERATION: InputActivityRatio[r,t,f,m,y]<>0} RateOfActivity[r,l,t,m,y]*InputActivityRatio[r,t,f,m,y] * YearSplit[l,y] >> ResultsPath & \"/SelectedResults.csv\";"
#> [1076] " }"
#> [1077] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tprintf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [1078] " }"
#> [1079] "\t\t\t\t\t\t\t\t\t\t\t\t#printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [1080] " }"
#> [1081] "\t\t\t\t\t\t\t\t\t\t#printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [1082] " }"
#> [1083] "}"
#> [1084] "#"
#> [1085] "### Total Annual Emissions ###"
#> [1086] "#"
#> [1087] "printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [1088] "printf \"Annual Emissions (Emissions Units)\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [1089] "printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [1090] " for {r in REGION}{printf \",%s\", r >> ResultsPath & \"/SelectedResults.csv\";"
#> [1091] "\t\t\t\t\t\tprintf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [1092] "\t\t\t\t\t\tprintf \",\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [1093] "\t\t\t\t\t\tfor {y in YEAR} {printf \",%s\", y >> ResultsPath & \"/SelectedResults.csv\";}"
#> [1094] "\t\t\t\t\t\tprintf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [1095] "\t\t\t\t\t\tfor {e in EMISSION}{printf \",%s\", e >> ResultsPath & \"/SelectedResults.csv\";"
#> [1096] "\t\t\t\t\t\t\t\t\t\t\t#printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [1097] "\t\t\t\t\t\t\t\t\t\t\t#printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [1098] "\t\t\t\t\t\t\t\t\t\t\tfor {y in YEAR }{"
#> [1099] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t#printf \"%g\", y >> ResultsPath & \"/SelectedResults.csv\";"
#> [1100] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tprintf \",%g\", sum{l in TIMESLICE, t in TECHNOLOGY, m in MODE_OF_OPERATION: EmissionActivityRatio[r,t,e,m,y]<>0} EmissionActivityRatio[r,t,e,m,y]*RateOfActivity[r,l,t,m,y]*YearSplit[l,y] >> ResultsPath & \"/SelectedResults.csv\";"
#> [1101] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t#printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [1102] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}"
#> [1103] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tprintf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [1104] "\t\t\t\t\t\t\t\t\t\t\t}"
#> [1105] "\t\t\t\t\t\t\t}"
#> [1106] "#"
#> [1107] "### Annual Emissions by Technology ###"
#> [1108] "#"
#> [1109] "printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [1110] "printf \"Annual Emissions by Technology (Emissions Units)\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [1111] "printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [1112] "for {r in REGION} {printf \",%s\", r >> ResultsPath & \"/SelectedResults.csv\";"
#> [1113] " printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [1114] "\t\t\t\t\t\t\t\t\t\tprintf \"Technology\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [1115] "\t\t\t\t\t\t\t\t\t\tprintf \",Emission\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [1116] "\t\t\t\t\t\t\t\t\t\tfor {y in YEAR} {printf \",%s\", y >> ResultsPath & \"/SelectedResults.csv\";}"
#> [1117] "\t\t\t\t\t\t\t\t\t\tprintf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [1118] " for {t in TECHNOLOGY} {#printf \"%s\", t >> ResultsPath & \"/SelectedResults.csv\";"
#> [1119] " for {e in EMISSION}{"
#> [1120] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tprintf \"%s\", t >> ResultsPath & \"/SelectedResults.csv\";"
#> [1121] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tprintf\",%s\",e >> ResultsPath & \"/SelectedResults.csv\";"
#> [1122] " #}"
#> [1123] " #printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [1124] " #for {e in EMISSION} {"
#> [1125] " #printf \"%g\", y >> ResultsPath & \"/SelectedResults.csv\";"
#> [1126] " for {y in YEAR}{"
#> [1127] " printf \",%g\", sum{l in TIMESLICE, m in MODE_OF_OPERATION: EmissionActivityRatio[r,t,e,m,y]<>0} EmissionActivityRatio[r,t,e,m,y]*RateOfActivity[r,l,t,m,y]*YearSplit[l,y] >> ResultsPath & \"/SelectedResults.csv\";"
#> [1128] " }"
#> [1129] " printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [1130] " }"
#> [1131] " printf \"\\n\" >> ResultsPath & \"/SelectedResults.csv\";"
#> [1132] " }"
#> [1133] " }"
#> [1134] ""
#> [1135] ""
#> [1136] "table AccumulatedNewCapacityResults"
#> [1137] "\t{r in REGION, t in TECHNOLOGY, y in YEAR:"
#> [1138] "\t\tAccumulatedNewCapacity[r, t, y] > 0}"
#> [1139] ""
#> [1140] "\tOUT \"CSV\""
#> [1141] "\tResultsPath & \"/AccumulatedNewCapacity.csv\" :"
#> [1142] "\tr~REGION, t~TECHNOLOGY, y~YEAR, AccumulatedNewCapacity[r, t, y]~VALUE;"
#> [1143] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t"
#> [1144] "\t\t\t "
#> [1145] ""
#> [1146] "table AnnualEmissionsResults"
#> [1147] "\t{r in REGION, e in EMISSION, y in YEAR:"
#> [1148] "\t\tAnnualEmissions[r, e, y] > 0}"
#> [1149] ""
#> [1150] "\tOUT \"CSV\""
#> [1151] "\tResultsPath & \"/AnnualEmissions.csv\" :"
#> [1152] "\tr~REGION, e~EMISSION, y~YEAR, AnnualEmissions[r, e, y]~VALUE;"
#> [1153] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [1154] "\t\t\t "
#> [1155] ""
#> [1156] "table AnnualFixedOperatingCostResults"
#> [1157] "\t{r in REGION, t in TECHNOLOGY, y in YEAR:"
#> [1158] "\t\tAnnualFixedOperatingCost[r, t, y] > 0}"
#> [1159] ""
#> [1160] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [1161] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [1162] "\tOUT \"CSV\""
#> [1163] "\tResultsPath & \"/AnnualFixedOperatingCost.csv\" :"
#> [1164] "\tr~REGION, t~TECHNOLOGY, y~YEAR, AnnualFixedOperatingCost[r, t, y]~VALUE;"
#> [1165] "\t\t "
#> [1166] "\t\t\t "
#> [1167] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [1168] ""
#> [1169] "table AnnualTechnologyEmissionResults"
#> [1170] "\t{r in REGION, t in TECHNOLOGY, e in EMISSION, y in YEAR:"
#> [1171] "\t\tAnnualTechnologyEmission[r, t, e, y] > 0}"
#> [1172] ""
#> [1173] "\tOUT \"CSV\""
#> [1174] "\tResultsPath & \"/AnnualTechnologyEmission.csv\" :"
#> [1175] "\tr~REGION, t~TECHNOLOGY, e~EMISSION, y~YEAR, AnnualTechnologyEmission[r, t, e, y]~VALUE;"
#> [1176] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [1177] "\t\t\t "
#> [1178] ""
#> [1179] "table AnnualTechnologyEmissionByModeResults"
#> [1180] "\t{r in REGION, t in TECHNOLOGY, e in EMISSION, m in MODE_OF_OPERATION, y in YEAR:"
#> [1181] "\t\tAnnualTechnologyEmissionByMode[r, t, e, m, y] > 0}"
#> [1182] "\tOUT \"CSV\""
#> [1183] "\tResultsPath & \"/AnnualTechnologyEmissionByMode.csv\" :"
#> [1184] "\tr~REGION, t~TECHNOLOGY, e~EMISSION, m~MODE_OF_OPERATION, y~YEAR, AnnualTechnologyEmissionByMode[r, t, e, m, y]~VALUE;"
#> [1185] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [1186] "\t\t\t "
#> [1187] ""
#> [1188] "table AnnualVariableOperatingCostResults"
#> [1189] "\t{r in REGION, t in TECHNOLOGY, y in YEAR:"
#> [1190] "\t\tAnnualVariableOperatingCost[r, t, y] > 0}"
#> [1191] ""
#> [1192] "\tOUT \"CSV\""
#> [1193] "\tResultsPath & \"/AnnualVariableOperatingCost.csv\" :"
#> [1194] "\tr~REGION, t~TECHNOLOGY, y~YEAR, AnnualVariableOperatingCost[r, t, y]~VALUE;"
#> [1195] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [1196] "\t\t\t "
#> [1197] ""
#> [1198] "table CapitalInvestmentResults"
#> [1199] "\t{r in REGION, t in TECHNOLOGY, y in YEAR:"
#> [1200] "\t\tCapitalInvestment[r, t, y] > 0}"
#> [1201] "\tOUT \"CSV\""
#> [1202] "\tResultsPath & \"/CapitalInvestment.csv\" :"
#> [1203] "\tr~REGION, t~TECHNOLOGY, y~YEAR,"
#> [1204] "\tCapitalInvestment[r, t, y]~VALUE;"
#> [1205] ""
#> [1206] "table DemandResults"
#> [1207] "\t{r in REGION, l in TIMESLICE, f in FUEL, y in YEAR:"
#> [1208] "\t\tDemand[r, l, f, y] > 0}"
#> [1209] "\tOUT \"CSV\""
#> [1210] "\tResultsPath & \"/Demand.csv\" :"
#> [1211] "\tr~REGION, l~TIMESLICE, f~FUEL, y~YEAR,"
#> [1212] "\tDemand[r, l, f, y]~VALUE;"
#> [1213] ""
#> [1214] "table DiscountedSalvageValueResults"
#> [1215] "\t{r in REGION, t in TECHNOLOGY, y in YEAR:"
#> [1216] "\t\tDiscountedSalvageValue[r, t, y] > 0}"
#> [1217] "\tOUT \"CSV\""
#> [1218] "\tResultsPath & \"/DiscountedSalvageValue.csv\" :"
#> [1219] "\tr~REGION, t~TECHNOLOGY, y~YEAR,"
#> [1220] "\tDiscountedSalvageValue[r, t, y]~VALUE;"
#> [1221] ""
#> [1222] "table DiscountedTechnologyEmissionsPenaltyResults"
#> [1223] "\t{r in REGION, t in TECHNOLOGY, y in YEAR:"
#> [1224] "\t\tDiscountedTechnologyEmissionsPenalty[r, t, y] > 0}"
#> [1225] "\tOUT \"CSV\""
#> [1226] "\tResultsPath & \"/DiscountedTechnologyEmissionsPenalty.csv\" :"
#> [1227] "\tr~REGION, t~TECHNOLOGY, y~YEAR,"
#> [1228] "\tDiscountedTechnologyEmissionsPenalty[r, t, y]~VALUE;"
#> [1229] ""
#> [1230] "table NewCapacityResults"
#> [1231] "\t{r in REGION, t in TECHNOLOGY, y in YEAR:"
#> [1232] "\t\tNewCapacity[r, t, y] > 0}"
#> [1233] "\tOUT \"CSV\""
#> [1234] "\tResultsPath & \"/NewCapacity.csv\" :"
#> [1235] "\tr~REGION, t~TECHNOLOGY, y~YEAR,"
#> [1236] "\tNewCapacity[r, t, y]~VALUE;"
#> [1237] ""
#> [1238] "table NewStorageCapacityResults"
#> [1239] "\t{r in REGION, s in STORAGE, y in YEAR:"
#> [1240] "\t\tNewStorageCapacity[r, s, y] > 0}"
#> [1241] "\tOUT \"CSV\""
#> [1242] "\tResultsPath & \"/NewStorageCapacity.csv\" :"
#> [1243] "\tr~REGION, s~STORAGE, y~YEAR,"
#> [1244] "\tNewStorageCapacity[r, s, y]~VALUE;"
#> [1245] ""
#> [1246] "table NumberOfNewTechnologyUnitsResults"
#> [1247] "\t{r in REGION, t in TECHNOLOGY, y in YEAR:"
#> [1248] "\t\tNumberOfNewTechnologyUnits[r, t, y] > 0}"
#> [1249] "\tOUT \"CSV\""
#> [1250] "\tResultsPath & \"/NumberOfNewTechnologyUnits.csv\" :"
#> [1251] "\tr~REGION, t~TECHNOLOGY, y~YEAR,"
#> [1252] "\tNumberOfNewTechnologyUnits[r, t, y]~VALUE;"
#> [1253] ""
#> [1254] "table ProductionByTechnologyResults"
#> [1255] "\t{r in REGION, l in TIMESLICE, t in TECHNOLOGY, f in FUEL, y in YEAR:"
#> [1256] "\t\tProductionByTechnology[r, l, t, f, y] > 0}"
#> [1257] ""
#> [1258] "\tOUT \"CSV\""
#> [1259] "\tResultsPath & \"/ProductionByTechnology.csv\" :"
#> [1260] "\tr~REGION, l~TIMESLICE, t~TECHNOLOGY, f~FUEL, y~YEAR,"
#> [1261] "\tProductionByTechnology[r, l, t, f, y]~VALUE;"
#> [1262] "\t\t\t "
#> [1263] ""
#> [1264] "table ProductionByTechnologyAnnualResults"
#> [1265] "\t{r in REGION, t in TECHNOLOGY, f in FUEL, y in YEAR:"
#> [1266] "\t\tProductionByTechnologyAnnual[r, t, f, y] > 0}"
#> [1267] ""
#> [1268] "\tOUT \"CSV\""
#> [1269] "\tResultsPath & \"/ProductionByTechnologyAnnual.csv\" :"
#> [1270] "\tr~REGION, t~TECHNOLOGY, f~FUEL, y~YEAR,"
#> [1271] "\tProductionByTechnologyAnnual[r, t, f, y]~VALUE;"
#> [1272] "\t\t\t "
#> [1273] ""
#> [1274] "table RateOfActivityResults"
#> [1275] "\t{r in REGION, l in TIMESLICE, t in TECHNOLOGY, m in MODE_OF_OPERATION, y in YEAR:"
#> [1276] "\t\tRateOfActivity[r, l, t, m, y] > 0}"
#> [1277] "\tOUT \"CSV\""
#> [1278] "\tResultsPath & \"/RateOfActivity.csv\" :"
#> [1279] "\tr~REGION, l~TIMESLICE, t~TECHNOLOGY, m~MODE_OF_OPERATION, y~YEAR, RateOfActivity[r, l, t, m, y]~VALUE;"
#> [1280] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [1281] ""
#> [1282] "table RateOfProductionByTechnologyResults"
#> [1283] "\t{r in REGION, l in TIMESLICE, t in TECHNOLOGY, f in FUEL, y in YEAR:"
#> [1284] "\t\tRateOfProductionByTechnology[r, l, t, f, y] > 0}"
#> [1285] ""
#> [1286] "\tOUT \"CSV\""
#> [1287] "\tResultsPath & \"/RateOfProductionByTechnology.csv\" :"
#> [1288] "\tr~REGION, l~TIMESLICE, t~TECHNOLOGY, f~FUEL, y~YEAR,"
#> [1289] "\tRateOfProductionByTechnology[r, l, t, f, y]~VALUE;"
#> [1290] "\t\t\t "
#> [1291] ""
#> [1292] "table RateOfProductionByTechnologyByModeResults"
#> [1293] "\t{r in REGION, l in TIMESLICE, t in TECHNOLOGY, m in MODE_OF_OPERATION, f in FUEL, y in YEAR:"
#> [1294] "\t\tRateOfProductionByTechnologyByMode[r, l, t, m, f, y] > 0}"
#> [1295] "\tOUT \"CSV\""
#> [1296] "\tResultsPath & \"/RateOfProductionByTechnologyByMode.csv\" :"
#> [1297] "\tr~REGION, l~TIMESLICE, t~TECHNOLOGY, m~MODE_OF_OPERATION, f~FUEL, y~YEAR,"
#> [1298] "\tRateOfProductionByTechnologyByMode[r, l, t, m, f, y]~VALUE;"
#> [1299] ""
#> [1300] "table RateOfUseByTechnologyResults"
#> [1301] "\t{r in REGION, l in TIMESLICE, t in TECHNOLOGY, f in FUEL, y in YEAR:"
#> [1302] "\t\tRateOfUseByTechnology[r, l, t, f, y] > 0}"
#> [1303] ""
#> [1304] "\tOUT \"CSV\""
#> [1305] "\tResultsPath & \"/RateOfUseByTechnology.csv\" :"
#> [1306] "\tr~REGION, l~TIMESLICE, t~TECHNOLOGY, f~FUEL, y~YEAR,"
#> [1307] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [1308] "\tRateOfUseByTechnology[r, l, t, f, y]~VALUE;"
#> [1309] ""
#> [1310] "table RateOfUseByTechnologyByModeResults"
#> [1311] "\t{r in REGION, l in TIMESLICE, t in TECHNOLOGY, m in MODE_OF_OPERATION, f in FUEL, y in YEAR:"
#> [1312] "\t\tRateOfUseByTechnologyByMode[r, l, t, m, f, y] > 0}"
#> [1313] "\tOUT \"CSV\""
#> [1314] "\tResultsPath & \"/RateOfUseByTechnologyByMode.csv\" :"
#> [1315] "\tr~REGION, l~TIMESLICE, t~TECHNOLOGY, m~MODE_OF_OPERATION, f~FUEL, y~YEAR,"
#> [1316] "\tRateOfUseByTechnologyByMode[r, l, t, m, f, y]~VALUE;"
#> [1317] ""
#> [1318] "table SalvageValueResults"
#> [1319] "\t{r in REGION, t in TECHNOLOGY, y in YEAR:"
#> [1320] "\t\tSalvageValue[r, t, y] > 0}"
#> [1321] "\tOUT \"CSV\""
#> [1322] "\tResultsPath & \"/SalvageValue.csv\" :"
#> [1323] "\tr~REGION, t~TECHNOLOGY, y~YEAR, SalvageValue[r, t, y]~VALUE;"
#> [1324] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [1325] ""
#> [1326] "table SalvageValueStorageResults"
#> [1327] "\t{r in REGION, s in STORAGE, y in YEAR:"
#> [1328] "\t\tSalvageValueStorage[r, s, y] > 0}"
#> [1329] "\tOUT \"CSV\""
#> [1330] "\tResultsPath & \"/SalvageValueStorage.csv\" :"
#> [1331] "\tr~REGION, s~STORAGE, y~YEAR, SalvageValueStorage[r, s, y]~VALUE;"
#> [1332] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [1333] "\t\t\t "
#> [1334] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [1335] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t"
#> [1336] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t"
#> [1337] ""
#> [1338] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [1339] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [1340] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [1341] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [1342] "\t\t\t "
#> [1343] ""
#> [1344] "table TotalAnnualTechnologyActivityByModeResults"
#> [1345] "\t{r in REGION, t in TECHNOLOGY, m in MODE_OF_OPERATION, y in YEAR:"
#> [1346] "\t\tTotalAnnualTechnologyActivityByMode[r, t, m, y] > 0}"
#> [1347] ""
#> [1348] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [1349] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [1350] "\tOUT \"CSV\""
#> [1351] "\tResultsPath & \"/TotalAnnualTechnologyActivityByMode.csv\" :"
#> [1352] "\tr~REGION, t~TECHNOLOGY, m~MODE_OF_OPERATION, y~YEAR,"
#> [1353] "\tTotalAnnualTechnologyActivityByMode[r, t, m, y]~VALUE;"
#> [1354] "\t\t\t "
#> [1355] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [1356] ""
#> [1357] "table TotalCapacityAnnualResults"
#> [1358] "\t{r in REGION, t in TECHNOLOGY, y in YEAR:"
#> [1359] "\t\tTotalCapacityAnnual[r, t, y] > 0}"
#> [1360] "\tOUT \"CSV\""
#> [1361] "\tResultsPath & \"/TotalCapacityAnnual.csv\" :"
#> [1362] "\tr~REGION, t~TECHNOLOGY, y~YEAR,"
#> [1363] "\tTotalCapacityAnnual[r, t, y]~VALUE;"
#> [1364] ""
#> [1365] "table TotalDiscountedCostResults"
#> [1366] "\t{r in REGION, y in YEAR: TotalDiscountedCost[r, y] > 0}"
#> [1367] "\tOUT \"CSV\""
#> [1368] "\tResultsPath & \"/TotalDiscountedCost.csv\" :"
#> [1369] "\tr~REGION, y~YEAR,"
#> [1370] "\tTotalDiscountedCost[r, y]~VALUE;"
#> [1371] "\t\t "
#> [1372] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [1373] "\t\t\t\t "
#> [1374] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [1375] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [1376] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [1377] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [1378] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [1379] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [1380] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [1381] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [1382] ""
#> [1383] "table TotalTechnologyAnnualActivityResults"
#> [1384] "\t{r in REGION, t in TECHNOLOGY, y in YEAR:"
#> [1385] "\t\tTotalTechnologyAnnualActivity[r, t, y] > 0}"
#> [1386] ""
#> [1387] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [1388] "\tOUT \"CSV\""
#> [1389] "\tResultsPath & \"/TotalTechnologyAnnualActivity.csv\" :"
#> [1390] "\tr~REGION, t~TECHNOLOGY, y~YEAR,"
#> [1391] "\tTotalTechnologyAnnualActivity[r, t, y]~VALUE;"
#> [1392] "\t\t\t "
#> [1393] ""
#> [1394] "table TotalTechnologyModelPeriodActivityResults"
#> [1395] "\t{r in REGION, t in TECHNOLOGY:"
#> [1396] "\t\tTotalTechnologyModelPeriodActivity[r, t] > 0}"
#> [1397] ""
#> [1398] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [1399] "\tOUT \"CSV\""
#> [1400] "\tResultsPath & \"/TotalTechnologyModelPeriodActivity.csv\" :"
#> [1401] "\tr~REGION, t~TECHNOLOGY,"
#> [1402] "\tTotalTechnologyModelPeriodActivity[r, t]~VALUE;"
#> [1403] "\t\t\t "
#> [1404] ""
#> [1405] "table TradeResults"
#> [1406] "\t{r in REGION, rr in REGION, l in TIMESLICE, f in FUEL, y in YEAR:"
#> [1407] "\t\tTrade[r, rr, l, f, y] <> 0}"
#> [1408] ""
#> [1409] "\tOUT \"CSV\""
#> [1410] "\tResultsPath & \"/Trade.csv\" :"
#> [1411] "\tr~REGION, rr~REGION, l~TIMESLICE, f~FUEL, y~YEAR, Trade[r, rr, l, f, y]~VALUE;"
#> [1412] "\t\t\t "
#> [1413] ""
#> [1414] "table UseByTechnologyResults"
#> [1415] "\t{r in REGION, l in TIMESLICE, t in TECHNOLOGY, f in FUEL, y in YEAR:"
#> [1416] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t"
#> [1417] "\t\tUseByTechnology[r, l, t, f, y] > 0}"
#> [1418] "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
#> [1419] "\tOUT \"CSV\""
#> [1420] "\tResultsPath & \"/UseByTechnology.csv\" :"
#> [1421] "\tr~REGION, l~TIMESLICE, t~TECHNOLOGY, f~FUEL, y~YEAR, UseByTechnology[r, l, t, f, y]~VALUE;"
#> [1422] "\t\t\t"
#> [1423] "\t\t\t "
#> [1424] ""
#> [1425] "end;"
#>
#> $gmpl$data
#> [1] "#"
#> [2] "#\tTo run the model, copy and paste the following line into the command prompt, after replacing ...FILEPATH... with your folder structure."
#> [3] "#"
#> [4] "# C:\\...FILEPATH...\\glpsol -m C:\\...FILEPATH...\\OSeMOSYS_2016_08_01.txt -d C:\\...FILEPATH...\\UTOPIA_2016_08_01.txt -o C:\\...FILEPATH...\\UTOPIA-Results.txt"
#> [5] "#"
#> [6] "# Alternatively, install GUSEK (http://gusek.sourceforge.net/gusek.html) and run the model within this integrated development environment (IDE)."
#> [7] "# To do so, open the .dat file within GUSEK and select \"Use External .dat file\" from the Options menu. Then go to the .mod file and select the \"Go\" icon or press F5."
#> [8] "#"
#> [9] "#\tBased on UTOPIA version 5: BASE - Utopia Base Model"
#> [10] "#\tThe following are DEFAULT units, but they can be changed by users to their comfort. When doing so, users are advised to check the consistency of their choices though."
#> [11] "#\tEnergy and demands in PJ/a"
#> [12] "#\tPower plants in GW"
#> [13] "#\tInvestment and Fixed O&M Costs: Power plant: Million $ / GW (//$/kW)"
#> [14] "#\tOther plant costs: Million $/PJ/a"
#> [15] "#\tVariable O&M (& Import) Costs: Million $ / PJ (//$/GJ)"
#> [16] "#"
#> [17] "#****************************************"
#> [18] "param\tAnnualExogenousEmission\t\t\tdefault\t0\t\t:=\t;"
#> [19] "param\tAnnualEmissionLimit\t\t\t\tdefault\t-1\t:=\t;"
#> [20] "param\tModelPeriodExogenousEmission\tdefault\t0\t\t:=\t;"
#> [21] "param\tModelPeriodEmissionLimit\t\tdefault\t-1\t:=\t;"
#> [22] "#****************************************"
#> [23] "param ResultsPath := \"results\";"
#> [24] "#****************************************"
#> [25] "set\tEMISSION\t\t\t:=\tCO2\tNOX\t;"
#> [26] "set\tTECHNOLOGY\t\t\t:=\tE01\tE21\tE31\tE51\tE70\tIMPDSL1\tIMPGSL1\tIMPHCO1\tIMPOIL1\tIMPURN1\tRHE\tRHO\tRL1\tSRE\tTXD\tTXE\tTXG\tRIV\tRHu RLu TXu\t;"
#> [27] "# Summary of Set: TECHNOLOGY"
#> [28] "# E01 = Coal fuelled power plant"
#> [29] "# E21 = Nuclear power plant"
#> [30] "# E31 = Hydro power plant"
#> [31] "# E51 = Consumes and generates electricity"
#> [32] "# E70 = Diesel fuelled power plant"
#> [33] "# IMPDSL1 = Diesel supply"
#> [34] "# IMPGSL1 = Gasoline supply"
#> [35] "# IMPHCO1 = Coal supply"
#> [36] "# IMPOIL1 = Crude oil supply"
#> [37] "# IMPURN1 = Uranium supply"
#> [38] "# RHE = Residential electricity heating consuming electricity"
#> [39] "# RL1 = Residential lighting consuming electricity"
#> [40] "# SRE = Refinery"
#> [41] "# TXD = Transport in passenger km consuming diesel"
#> [42] "# TXE = Transport in passenger km consuming electricity"
#> [43] "# TXG = Transport in passenger km consuming gasoline"
#> [44] "# RIV = River to supply hydro power plants"
#> [45] "# RHu = Unmet heating demand"
#> [46] "# RLu = Unmet lighting demand"
#> [47] "# TXu = Unmet transport demand"
#> [48] "#"
#> [49] "set\tFUEL\t\t\t\t:=\tDSL\tELC\tGSL\tHCO\tHYD\tOIL\tURN\tRH\tRL\tTX\t;"
#> [50] "# Summary of Set: FUEL"
#> [51] "# DSL = Diesel"
#> [52] "# ELC = Electricity"
#> [53] "# GSL = Gasoline"
#> [54] "# HCO = Coal"
#> [55] "# HYD = Hydro"
#> [56] "# OIL = Oil"
#> [57] "# URN = Uranium"
#> [58] "# RH = Heating demand"
#> [59] "# RL = Lighting demand"
#> [60] "# TX = Transport demand"
#> [61] "#"
#> [62] "set\tYEAR\t\t\t\t:=\t1990\t1991\t1992\t1993\t1994\t1995\t1996\t1997\t1998\t1999\t2000\t2001\t2002\t2003\t2004\t2005\t2006\t2007\t2008\t2009\t2010\t;"
#> [63] "set\tTIMESLICE\t\t\t:=\tID\tIN\tSD\tSN\tWD\tWN\t;"
#> [64] "set\tMODE_OF_OPERATION\t:=\t1 2\t;"
#> [65] "set\tREGION\t\t\t\t:=\tUTOPIA\t;"
#> [66] "#"
#> [67] "# SEASON (Use consecutive numbers only, i.e, 1,2,3,4!, e.g., 1 = winter, 2 = spring, 3 = summer, 4 = autumn. The seasons with the higher number follow those with lower numbers.)"
#> [68] "# Note: in the UTOPIA case, energy is not stored from one season to another. Rather, the available capacity is assumed to be infinite. Therefore, it can be assumed that the intermediate season is between winter and summer without any consequences for the model results (and not both, between winter and summer, and between summer and winter)."
#> [69] "set SEASON\t:=\t1\t2\t3\t;"
#> [70] "#"
#> [71] "# DAYTYPE (Use consecutive numbers only, i.e, 1,2,3,4!, e.g., 1 = weekdays, 2 = weekends. The weekdays with the higher numbers follow those with lower numbers.)"
#> [72] "set DAYTYPE\t:=\t1\t;"
#> [73] "#"
#> [74] "# DAILYTIMEBRACKET (Use consecutive numbers only, i.e, 1,2,3,4!, e.g., 1 = first hour of day, 2 = 2nd hour of day, etc. The time brackets with the higher numbers follow those with lower numbers)"
#> [75] "set DAILYTIMEBRACKET\t:=\t1\t2\t;"
#> [76] "#"
#> [77] "set\tSTORAGE\t:=\tDAM\t;"
#> [78] "#"
#> [79] "param DiscountRate default 0.05 :=;"
#> [80] "param DiscountRateStorage default 0.05 :=;"
#> [81] "#"
#> [82] "# DepreciationMethod; equal to 1 for Sinking Fund and 2 for Straight Line Depreciation"
#> [83] "param DepreciationMethod default 1 :=;"
#> [84] ""
#> [85] "#"
#> [86] "# YearSplit{l in TIMESLICE, y in YEAR} Units: Fraction of 8760 hours"
#> [87] "# The fraction of the year in each time slice."
#> [88] "param\tYearSplit\t:\t1990\t1991\t1992\t1993\t1994\t1995\t1996\t1997\t1998\t1999\t2000\t2001\t2002\t2003\t2004\t2005\t2006\t2007\t2008\t2009\t2010\t:="
#> [89] "ID\t\t\t\t\t\t0.1667\t0.1667\t0.1667\t0.1667\t0.1667\t0.1667\t0.1667\t0.1667\t0.1667\t0.1667\t0.1667\t0.1667\t0.1667\t0.1667\t0.1667\t0.1667\t0.1667\t0.1667\t0.1667\t0.1667\t0.1667"
#> [90] "IN\t\t\t\t\t\t0.0833\t0.0833\t0.0833\t0.0833\t0.0833\t0.0833\t0.0833\t0.0833\t0.0833\t0.0833\t0.0833\t0.0833\t0.0833\t0.0833\t0.0833\t0.0833\t0.0833\t0.0833\t0.0833\t0.0833\t0.0833"
#> [91] "SD\t\t\t\t\t\t0.1667\t0.1667\t0.1667\t0.1667\t0.1667\t0.1667\t0.1667\t0.1667\t0.1667\t0.1667\t0.1667\t0.1667\t0.1667\t0.1667\t0.1667\t0.1667\t0.1667\t0.1667\t0.1667\t0.1667\t0.1667"
#> [92] "SN\t\t\t\t\t\t0.0833\t0.0833\t0.0833\t0.0833\t0.0833\t0.0833\t0.0833\t0.0833\t0.0833\t0.0833\t0.0833\t0.0833\t0.0833\t0.0833\t0.0833\t0.0833\t0.0833\t0.0833\t0.0833\t0.0833\t0.0833"
#> [93] "WD\t\t\t\t\t\t0.3333\t0.3333\t0.3333\t0.3333\t0.3333\t0.3333\t0.3333\t0.3333\t0.3333\t0.3333\t0.3333\t0.3333\t0.3333\t0.3333\t0.3333\t0.3333\t0.3333\t0.3333\t0.3333\t0.3333\t0.3333"
#> [94] "WN\t\t\t\t\t\t0.1667\t0.1667\t0.1667\t0.1667\t0.1667\t0.1667\t0.1667\t0.1667\t0.1667\t0.1667\t0.1667\t0.1667\t0.1667\t0.1667\t0.1667\t0.1667\t0.1667\t0.1667\t0.1667\t0.1667\t0.1667\t;"
#> [95] ""
#> [96] "#"
#> [97] "# AccumulatedAnnualDemand{r in REGION, f in FUEL, y in YEAR} Units: PJ"
#> [98] "# This type of demand can be satisfied at any time of the year, as long as the total is met."
#> [99] "param\tAccumulatedAnnualDemand\tdefault\t0\t:="
#> [100] "\t[UTOPIA,*,*]:\t\t1990\t1991\t1992\t1993\t1994\t1995\t1996\t1997\t1998\t1999\t2000\t2001\t2002\t2003\t2004\t2005\t2006\t2007\t2008\t2009\t2010\t:="
#> [101] "TX\t\t\t\t\t\t5.2\t\t5.46\t5.72\t5.98\t6.24\t6.5\t\t6.76\t7.02\t7.28\t7.54\t7.8\t\t8.189\t8.578\t8.967\t9.356\t9.745\t10.134\t10.523\t10.912\t11.301\t11.69\t;"
#> [102] ""
#> [103] "#"
#> [104] "# SpecifiedAnnualDemand{r in REGION, f in FUEL, y in YEAR} Units: PJ"
#> [105] "# The annual requirement for each output fuel."
#> [106] "param\tSpecifiedAnnualDemand\tdefault\t0\t:="
#> [107] "\t[UTOPIA,*,*]\t:\t1990\t1991\t1992\t1993\t1994\t1995\t1996\t1997\t1998\t1999\t2000\t2001\t2002\t2003\t2004\t2005\t2006\t2007\t2008\t2009\t2010\t:="
#> [108] "RH\t\t\t\t\t\t25.2\t26.46\t27.72\t28.98\t30.24\t31.5\t32.76\t34.02\t35.28\t36.54\t37.8\t39.69\t41.58\t43.47\t45.36\t47.25\t49.14\t51.03\t52.92\t54.81\t56.7"
#> [109] "RL\t\t\t\t\t\t5.6\t\t5.88\t6.16\t6.44\t6.72\t7\t\t7.28\t7.56\t7.84\t8.12\t8.4\t\t8.82\t9.24\t9.66\t10.08\t10.5\t10.92\t11.34\t11.76\t12.18\t12.6\t;"
#> [110] ""
#> [111] "#"
#> [112] "# SpecifiedDemandProfile{r in REGION, l in TIMESLICE, f in FUEL, y in YEAR} Units: Fraction"
#> [113] "# Indicates the proportion of energy demand required in each time slice. For each year the sum must be equal to 1."
#> [114] "param\tSpecifiedDemandProfile\tdefault\t0\t:="
#> [115] "\t[UTOPIA,RH,*,*]\t:\t1990\t1991\t1992\t1993\t1994\t1995\t1996\t1997\t1998\t1999\t2000\t2001\t2002\t2003\t2004\t2005\t2006\t2007\t2008\t2009\t2010\t:="
#> [116] "ID\t\t\t\t\t\t0.12\t0.12\t0.12\t0.12\t0.12\t0.12\t0.12\t0.12\t0.12\t0.12\t0.12\t0.12\t0.12\t0.12\t0.12\t0.12\t0.12\t0.12\t0.12\t0.12\t0.12"
#> [117] "IN\t\t\t\t\t\t0.06\t0.06\t0.06\t0.06\t0.06\t0.06\t0.06\t0.06\t0.06\t0.06\t0.06\t0.06\t0.06\t0.06\t0.06\t0.06\t0.06\t0.06\t0.06\t0.06\t0.06"
#> [118] "SD\t\t\t\t\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0"
#> [119] "SN\t\t\t\t\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0"
#> [120] "WD\t\t\t\t\t\t0.5467\t0.5467\t0.5467\t0.5467\t0.5467\t0.5467\t0.5467\t0.5467\t0.5467\t0.5467\t0.5467\t0.5467\t0.5467\t0.5467\t0.5467\t0.5467\t0.5467\t0.5467\t0.5467\t0.5467\t0.5467"
#> [121] "WN\t\t\t\t\t\t0.2733\t0.2733\t0.2733\t0.2733\t0.2733\t0.2733\t0.2733\t0.2733\t0.2733\t0.2733\t0.2733\t0.2733\t0.2733\t0.2733\t0.2733\t0.2733\t0.2733\t0.2733\t0.2733\t0.2733\t0.2733"
#> [122] ""
#> [123] "\t[UTOPIA,RL,*,*]\t:\t1990\t1991\t1992\t1993\t1994\t1995\t1996\t1997\t1998\t1999\t2000\t2001\t2002\t2003\t2004\t2005\t2006\t2007\t2008\t2009\t2010\t:="
#> [124] "ID\t\t\t\t\t\t0.15\t0.15\t0.15\t0.15\t0.15\t0.15\t0.15\t0.15\t0.15\t0.15\t0.15\t0.15\t0.15\t0.15\t0.15\t0.15\t0.15\t0.15\t0.15\t0.15\t0.15"
#> [125] "IN\t\t\t\t\t\t0.05\t0.05\t0.05\t0.05\t0.05\t0.05\t0.05\t0.05\t0.05\t0.05\t0.05\t0.05\t0.05\t0.05\t0.05\t0.05\t0.05\t0.05\t0.05\t0.05\t0.05"
#> [126] "SD\t\t\t\t\t\t0.15\t0.15\t0.15\t0.15\t0.15\t0.15\t0.15\t0.15\t0.15\t0.15\t0.15\t0.15\t0.15\t0.15\t0.15\t0.15\t0.15\t0.15\t0.15\t0.15\t0.15"
#> [127] "SN\t\t\t\t\t\t0.05\t0.05\t0.05\t0.05\t0.05\t0.05\t0.05\t0.05\t0.05\t0.05\t0.05\t0.05\t0.05\t0.05\t0.05\t0.05\t0.05\t0.05\t0.05\t0.05\t0.05"
#> [128] "WD\t\t\t\t\t\t0.5\t\t0.5\t\t0.5\t\t0.5\t\t0.5\t\t0.5\t\t0.5\t\t0.5\t\t0.5\t\t0.5\t\t0.5\t\t0.5\t\t0.5\t\t0.5\t\t0.5\t\t0.5\t\t0.5\t\t0.5\t\t0.5\t\t0.5\t\t0.5"
#> [129] "WN\t\t\t\t\t\t0.1\t\t0.1\t\t0.1\t\t0.1\t\t0.1\t\t0.1\t\t0.1\t\t0.1\t\t0.1\t\t0.1\t\t0.1\t\t0.1\t\t0.1\t\t0.1\t\t0.1\t\t0.1\t\t0.1\t\t0.1\t\t0.1\t\t0.1\t\t0.1\t\t;"
#> [130] ""
#> [131] "#"
#> [132] "# CapacityToActivityUnit{r in REGION, t in TECHNOLOGY}; Units: PJ/GW-YR"
#> [133] "# Thus here we use a factor of 31.536, which is the level of energy production in PJ produced from 1 GW operating for 1 year (1GW * 8760 * 3600 / 10^6)"
#> [134] "param\tCapacityToActivityUnit\tdefault\t1\t:\tE01\t\tE21\t\tE31\t\tE51\t\tE70\t\t:="
#> [135] "UTOPIA\t\t\t\t\t\t\t\t\t\t\t31.536\t31.536\t31.536\t31.536\t31.536\t;"
#> [136] ""
#> [137] "# InputActivityRatio{r in REGION, t in TECHNOLOGY, f in FUEL, m in MODE_OF_OPERATION, y in YEAR} Units: Ratio"
#> [138] "# The input (use) of fuel per unit of activity for each technology."
#> [139] "param\tInputActivityRatio\tdefault\t0\t:="
#> [140] "\t[UTOPIA,*,DSL,1,*]\t:\t1990\t\t\t1991\t\t\t1992\t\t\t1993\t\t\t1994\t\t\t1995\t\t\t1996\t\t\t1997\t\t\t1998\t\t\t1999\t\t\t2000\t\t\t2001\t\t\t2002\t\t\t2003\t\t\t2004\t\t\t2005\t\t\t2006\t\t\t2007\t\t\t2008\t\t\t2009\t\t\t2010\t:="
#> [141] "E70\t\t\t\t\t\t\t3.4\t\t\t\t3.4\t\t\t\t3.4\t\t\t\t3.4\t\t\t\t3.4\t\t\t\t3.4\t\t\t\t3.4\t\t\t\t3.4\t\t\t\t3.4\t\t\t\t3.4\t\t\t\t3.4\t\t\t\t3.4\t\t\t\t3.4\t\t\t\t3.4\t\t\t\t3.4\t\t\t\t3.4\t\t\t\t3.4\t\t\t\t3.4\t\t\t\t3.4\t\t\t\t3.4\t\t\t\t3.4"
#> [142] "RHO\t\t\t\t\t\t\t1.428571429\t\t1.428571429\t\t1.428571429\t\t1.428571429\t\t1.428571429\t\t1.428571429\t\t1.428571429\t\t1.428571429\t\t1.428571429\t\t1.428571429\t\t1.428571429\t\t1.428571429\t\t1.428571429\t\t1.428571429\t\t1.428571429\t\t1.428571429\t\t1.428571429\t\t1.428571429\t\t1.428571429\t\t1.428571429\t\t1.428571429"
#> [143] "TXD\t\t\t\t\t\t\t1\t\t\t\t1\t\t\t\t1\t\t\t\t1\t\t\t\t1\t\t\t\t1\t\t\t\t1\t\t\t\t1\t\t\t\t1\t\t\t\t1\t\t\t\t1\t\t\t\t1\t\t\t\t1\t\t\t\t1\t\t\t\t1\t\t\t\t1\t\t\t\t1\t\t\t\t1\t\t\t\t1\t\t\t\t1\t\t\t\t1"
#> [144] ""
#> [145] "\t[UTOPIA,*,ELC,1,*]\t:\t1990\t1991\t1992\t1993\t1994\t1995\t1996\t1997\t1998\t1999\t2000\t2001\t2002\t2003\t2004\t2005\t2006\t2007\t2008\t2009\t2010\t:="
#> [146] "RHE\t\t\t\t\t\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1"
#> [147] "RL1\t\t\t\t\t\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1"
#> [148] "TXE\t\t\t\t\t\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1"
#> [149] ""
#> [150] "\t[UTOPIA,*,GSL,1,*]\t:\t1990\t1991\t1992\t1993\t1994\t1995\t1996\t1997\t1998\t1999\t2000\t2001\t2002\t2003\t2004\t2005\t2006\t2007\t2008\t2009\t2010\t:="
#> [151] "TXG\t\t\t\t\t\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1"
#> [152] ""
#> [153] "\t[UTOPIA,*,HCO,1,*]\t:\t1990\t1991\t1992\t1993\t1994\t1995\t1996\t1997\t1998\t1999\t2000\t2001\t2002\t2003\t2004\t2005\t2006\t2007\t2008\t2009\t2010\t:="
#> [154] "E01\t\t\t\t\t\t\t3.125\t3.125\t3.125\t3.125\t3.125\t3.125\t3.125\t3.125\t3.125\t3.125\t3.125\t3.125\t3.125\t3.125\t3.125\t3.125\t3.125\t3.125\t3.125\t3.125\t3.125"
#> [155] ""
#> [156] "\t[UTOPIA,*,HYD,1,*]\t:\t1990\t1991\t1992\t1993\t1994\t1995\t1996\t1997\t1998\t1999\t2000\t2001\t2002\t2003\t2004\t2005\t2006\t2007\t2008\t2009\t2010\t:="
#> [157] "E31\t\t\t\t\t\t\t3.125\t3.125\t3.125\t3.125\t3.125\t3.125\t3.125\t3.125\t3.125\t3.125\t3.125\t3.125\t3.125\t3.125\t3.125\t3.125\t3.125\t3.125\t3.125\t3.125\t3.125"
#> [158] ""
#> [159] "\t[UTOPIA,*,OIL,1,*]\t:\t1990\t1991\t1992\t1993\t1994\t1995\t1996\t1997\t1998\t1999\t2000\t2001\t2002\t2003\t2004\t2005\t2006\t2007\t2008\t2009\t2010\t:="
#> [160] "SRE\t\t\t\t\t\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1"
#> [161] ""
#> [162] "\t[UTOPIA,*,URN,1,*]\t:\t1990\t1991\t1992\t1993\t1994\t1995\t1996\t1997\t1998\t1999\t2000\t2001\t2002\t2003\t2004\t2005\t2006\t2007\t2008\t2009\t2010\t:="
#> [163] "E21\t\t\t\t\t\t\t1\t\t1\t\t1\t\t1\t1\t1\t1\t1\t1\t1\t1\t1\t1\t1\t1\t1\t1\t1\t1\t1\t1"
#> [164] ""
#> [165] "\t[UTOPIA,*,ELC,2,*]\t:\t1990\t1991\t1992\t1993\t1994\t1995\t1996\t1997\t1998\t1999\t2000\t2001\t2002\t2003\t2004\t2005\t2006\t2007\t2008\t2009\t2010\t:="
#> [166] "E51\t\t\t\t\t\t\t1.3889\t1.3889\t1.3889\t1.3889\t1.3889\t1.3889\t1.3889\t1.3889\t1.3889\t1.3889\t1.3889\t1.3889\t1.3889\t1.3889\t1.3889\t1.3889\t1.3889\t1.3889\t1.3889\t1.3889\t1.3889\t;"
#> [167] ""
#> [168] "#"
#> [169] "# OutputActivityRatio{r in Region, t in Technology, f in Fuel, m in ModeOfOperation, y in Year} Units: Ratio"
#> [170] "# Ratio of output to activity."
#> [171] "# Should be 1 for power plants/electricity, 1 for supply technologies and their respective fuels and zero for rest."
#> [172] "param\tOutputActivityRatio\tdefault\t0\t:="
#> [173] "\t[UTOPIA,*,RH,1,*]\t:\t1990\t1991\t1992\t1993\t1994\t1995\t1996\t1997\t1998\t1999\t2000\t2001\t2002\t2003\t2004\t2005\t2006\t2007\t2008\t2009\t2010\t:="
#> [174] "RHE\t\t\t\t\t\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1"
#> [175] "RHO\t\t\t\t\t\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1"
#> [176] "RHu\t\t\t\t\t\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1"
#> [177] ""
#> [178] "\t[UTOPIA,*,RL,1,*]\t:\t1990\t1991\t1992\t1993\t1994\t1995\t1996\t1997\t1998\t1999\t2000\t2001\t2002\t2003\t2004\t2005\t2006\t2007\t2008\t2009\t2010\t:="
#> [179] "RL1\t\t\t\t\t\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1"
#> [180] "RLu\t\t\t\t\t\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1"
#> [181] ""
#> [182] "\t[UTOPIA,*,TX,1,*]\t:\t1990\t1991\t1992\t1993\t1994\t1995\t1996\t1997\t1998\t1999\t2000\t2001\t2002\t2003\t2004\t2005\t2006\t2007\t2008\t2009\t2010\t:="
#> [183] "TXD\t\t\t\t\t\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1"
#> [184] "TXE\t\t\t\t\t\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1"
#> [185] "TXG\t\t\t\t\t\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1"
#> [186] "TXu\t\t\t\t\t\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1"
#> [187] ""
#> [188] "\t[UTOPIA,*,DSL,1,*]\t:\t1990\t1991\t1992\t1993\t1994\t1995\t1996\t1997\t1998\t1999\t2000\t2001\t2002\t2003\t2004\t2005\t2006\t2007\t2008\t2009\t2010\t:="
#> [189] "SRE\t\t\t\t\t\t\t0.7\t\t0.7\t\t0.7\t\t0.7\t\t0.7\t\t0.7\t\t0.7\t\t0.7\t\t0.7\t\t0.7\t\t0.7\t\t0.7\t\t0.7\t\t0.7\t\t0.7\t\t0.7\t\t0.7\t\t0.7\t\t0.7\t\t0.7\t\t0.7"
#> [190] "IMPDSL1\t\t\t\t\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1"
#> [191] ""
#> [192] "\t[UTOPIA,*,ELC,1,*]\t:\t1990\t1991\t1992\t1993\t1994\t1995\t1996\t1997\t1998\t1999\t2000\t2001\t2002\t2003\t2004\t2005\t2006\t2007\t2008\t2009\t2010\t:="
#> [193] "E01\t\t\t\t\t\t\t1\t\t1\t\t1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[203] "\t[UTOPIA,*,HCO,1,*]\t:\t1990\t1991\t1992\t1993\t1994\t1995\t1996\t1997\t1998\t1999\t2000\t2001\t2002\t2003\t2004\t2005\t2006\t2007\t2008\t2009\t2010\t:="
#> [204] "IMPHCO1\t\t\t\t\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1"
#> [205] ""
#> [206] "\t[UTOPIA,*,HYD,1,*]\t:\t1990\t1991\t1992\t1993\t1994\t1995\t1996\t1997\t1998\t1999\t2000\t2001\t2002\t2003\t2004\t2005\t2006\t2007\t2008\t2009\t2010\t:="
#> [207] "RIV\t\t\t\t\t\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1"
#> [208] ""
#> [209] "\t[UTOPIA,*,OIL,1,*]\t:\t1990\t1991\t1992\t1993\t1994\t1995\t1996\t1997\t1998\t1999\t2000\t2001\t2002\t2003\t2004\t2005\t2006\t2007\t2008\t2009\t2010\t:="
#> [210] "IMPOIL1\t\t\t\t\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1"
#> [211] ""
#> [212] "\t[UTOPIA,*,URN,1,*]\t:\t1990\t1991\t1992\t1993\t1994\t1995\t1996\t1997\t1998\t1999\t2000\t2001\t2002\t2003\t2004\t2005\t2006\t2007\t2008\t2009\t2010\t:="
#> [213] "IMPURN1\t\t\t\t\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t;"
#> [214] ""
#> [215] "#"
#> [216] "# FixedCost{r in Region, t in Technology, y in Year} Units: M€/GW of Capacity"
#> [217] "# The annual cost per unit of capacity of a technology."
#> [218] "param\tFixedCost\tdefault\t0\t:="
#> [219] "\t[UTOPIA,*,*]\t:\t1990\t1991\t1992\t1993\t1994\t1995\t1996\t1997\t1998\t1999\t2000\t2001\t2002\t2003\t2004\t2005\t2006\t2007\t2008\t2009\t2010\t:="
#> [220] "E01\t\t\t\t\t\t40\t\t40\t\t40\t\t40\t\t40\t\t40\t\t40\t\t40\t\t40\t\t40\t\t40\t\t40\t\t40\t\t40\t\t40\t\t40\t\t40\t\t40\t\t40\t\t40\t\t40"
#> [221] "E21\t\t\t\t\t\t500\t\t500\t\t500\t\t500\t\t500\t\t500\t\t500\t\t500\t\t500\t\t500\t\t500\t\t500\t\t500\t\t500\t\t500\t\t500\t\t500\t\t500\t\t500\t\t500\t\t500"
#> [222] "E31\t\t\t\t\t\t75\t\t75\t\t75\t\t75\t\t75\t\t75\t\t75\t\t75\t\t75\t\t75\t\t75\t\t75\t\t75\t\t75\t\t75\t\t75\t\t75\t\t75\t\t75\t\t75\t\t75"
#> [223] "E51\t\t\t\t\t\t30\t\t30\t\t30\t\t30\t\t30\t\t30\t\t30\t\t30\t\t30\t\t30\t\t30\t\t30\t\t30\t\t30\t\t30\t\t30\t\t30\t\t30\t\t30\t\t30\t\t30"
#> [224] "E70\t\t\t\t\t\t30\t\t30\t\t30\t\t30\t\t30\t\t30\t\t30\t\t30\t\t30\t\t30\t\t30\t\t30\t\t30\t\t30\t\t30\t\t30\t\t30\t\t30\t\t30\t\t30\t\t30"
#> [225] "RHO\t\t\t\t\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1"
#> [226] "RL1\t\t\t\t\t\t9.46\t9.46\t9.46\t9.46\t9.46\t9.46\t9.46\t9.46\t9.46\t9.46\t9.46\t9.46\t9.46\t9.46\t9.46\t9.46\t9.46\t9.46\t9.46\t9.46\t9.46"
#> [227] "TXD\t\t\t\t\t\t52\t\t52\t\t52\t\t52\t\t52\t\t52\t\t52\t\t52\t\t52\t\t52\t\t52\t\t52\t\t52\t\t52\t\t52\t\t52\t\t52\t\t52\t\t52\t\t52\t\t52"
#> [228] "TXE\t\t\t\t\t\t100\t\t100\t\t100\t\t100\t\t100\t\t100\t\t100\t\t100\t\t100\t\t100\t\t100\t\t100\t\t100\t\t100\t\t100\t\t100\t\t100\t\t100\t\t100\t\t100\t\t100"
#> [229] "TXG\t\t\t\t\t\t48\t\t48\t\t48\t\t48\t\t48\t\t48\t\t48\t\t48\t\t48\t\t48\t\t48\t\t48\t\t48\t\t48\t\t48\t\t48\t\t48\t\t48\t\t48\t\t48\t\t48\t\t;"
#> [230] ""
#> [231] "#"
#> [232] "# CapitalCost{r in Region, t in Technology, y in Year} Units: M€/GW Capacity"
#> [233] "# Total capital cost (including interest paid during construction)per unit of capacity for new capacity additions"
#> [234] "param\tCapitalCost\tdefault\t0\t:="
#> [235] "\t[UTOPIA,*,*]\t:\t1990\t1991\t1992\t1993\t1994\t1995\t1996\t1997\t1998\t1999\t2000\t2001\t2002\t2003\t2004\t2005\t2006\t2007\t2008\t2009\t2010\t:="
#> [236] "E01\t\t\t\t\t\t1400\t1390\t1380\t1370\t1360\t1350\t1340\t1330\t1320\t1310\t1300\t1290\t1280\t1270\t1260\t1250\t1240\t1230\t1220\t1210\t1200"
#> [237] "E21\t\t\t\t\t\t5000\t5000\t5000\t5000\t5000\t5000\t5000\t5000\t5000\t5000\t5000\t5000\t5000\t5000\t5000\t5000\t5000\t5000\t5000\t5000\t5000"
#> [238] "E31\t\t\t\t\t\t3000\t3000\t3000\t3000\t3000\t3000\t3000\t3000\t3000\t3000\t3000\t3000\t3000\t3000\t3000\t3000\t3000\t3000\t3000\t3000\t3000"
#> [239] "E51\t\t\t\t\t\t900\t\t900\t\t900\t\t900\t\t900\t\t900\t\t900\t\t900\t\t900\t\t900\t\t900\t\t900\t\t900\t\t900\t\t900\t\t900\t\t900\t\t900\t\t900\t\t900\t\t900"
#> [240] "E70\t\t\t\t\t\t1000\t1000\t1000\t1000\t1000\t1000\t1000\t1000\t1000\t1000\t1000\t1000\t1000\t1000\t1000\t1000\t1000\t1000\t1000\t1000\t1000"
#> [241] "IMPDSL1\t\t\t\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0"
#> [242] "IMPGSL1\t\t\t\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0"
#> [243] "IMPHCO1\t\t\t\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0"
#> [244] "IMPOIL1\t\t\t\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0"
#> [245] "IMPURN1\t\t\t\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0"
#> [246] "RHE\t\t\t\t\t\t90\t\t90\t\t90\t\t90\t\t90\t\t90\t\t90\t\t90\t\t90\t\t90\t\t90\t\t90\t\t90\t\t90\t\t90\t\t90\t\t90\t\t90\t\t90\t\t90\t\t90"
#> [247] "RHO\t\t\t\t\t\t100\t\t100\t\t100\t\t100\t\t100\t\t100\t\t100\t\t100\t\t100\t\t100\t\t100\t\t100\t\t100\t\t100\t\t100\t\t100\t\t100\t\t100\t\t100\t\t100\t\t100"
#> [248] "RL1\t\t\t\t\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0"
#> [249] "SRE\t\t\t\t\t\t100\t\t100\t\t100\t\t100\t\t100\t\t100\t\t100\t\t100\t\t100\t\t100\t\t100\t\t100\t\t100\t\t100\t\t100\t\t100\t\t100\t\t100\t\t100\t\t100\t\t100"
#> [250] "TXD\t\t\t\t\t\t1044\t1044\t1044\t1044\t1044\t1044\t1044\t1044\t1044\t1044\t1044\t1044\t1044\t1044\t1044\t1044\t1044\t1044\t1044\t1044\t1044"
#> [251] "TXE\t\t\t\t\t\t2000\t1975\t1950\t1925\t1900\t1875\t1850\t1825\t1800\t1775\t1750\t1725\t1700\t1675\t1650\t1625\t1600\t1575\t1550\t1525\t1500"
#> [252] "TXG\t\t\t\t\t\t1044\t1044\t1044\t1044\t1044\t1044\t1044\t1044\t1044\t1044\t1044\t1044\t1044\t1044\t1044\t1044\t1044\t1044\t1044\t1044\t1044"
#> [253] "RIV\t\t\t\t\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0"
#> [254] "RHu\t\t\t\t\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0"
#> [255] "RLu\t\t\t\t\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0"
#> [256] "TXu\t\t\t\t\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t;"
#> [257] ""
#> [258] "#"
#> [259] "# VariableCost{r in Region, t in Technology, m in ModeOfOperation, y in Year} Units: Million €/PJ = €/GJ"
#> [260] "# Cost per unit of activity of the technology"
#> [261] "# This variable records both the nonfuel O&M costs of processes and fuel costs of each fuel supplied to those processes."
#> [262] "param\tVariableCost\tdefault\t0.00001\t:="
#> [263] "\t[UTOPIA,*,1,*]\t:\t1990\t1991\t1992\t1993\t1994\t1995\t1996\t1997\t1998\t1999\t2000\t2001\t2002\t2003\t2004\t2005\t2006\t2007\t2008\t2009\t2010\t:="
#> [264] "E01\t\t\t\t\t\t0.3\t\t0.3\t\t0.3\t\t0.3\t\t0.3\t\t0.3\t\t0.3\t\t0.3\t\t0.3\t\t0.3\t\t0.3\t\t0.3\t\t0.3\t\t0.3\t\t0.3\t\t0.3\t\t0.3\t\t0.3\t\t0.3\t\t0.3\t\t0.3"
#> [265] "E21\t\t\t\t\t\t1.5\t\t1.5\t\t1.5\t\t1.5\t\t1.5\t\t1.5\t\t1.5\t\t1.5\t\t1.5\t\t1.5\t\t1.5\t\t1.5\t\t1.5\t\t1.5\t\t1.5\t\t1.5\t\t1.5\t\t1.5\t\t1.5\t\t1.5\t\t1.5"
#> [266] "E70\t\t\t\t\t\t0.4\t\t0.4\t\t0.4\t\t0.4\t\t0.4\t\t0.4\t\t0.4\t\t0.4\t\t0.4\t\t0.4\t\t0.4\t\t0.4\t\t0.4\t\t0.4\t\t0.4\t\t0.4\t\t0.4\t\t0.4\t\t0.4\t\t0.4\t\t0.4"
#> [267] "SRE\t\t\t\t\t\t10\t\t10\t\t10\t\t10\t\t10\t\t10\t\t10\t\t10\t\t10\t\t10\t\t10\t\t10\t\t10\t\t10\t\t10\t\t10\t\t10\t\t10\t\t10\t\t10\t\t10"
#> [268] "IMPDSL1\t\t\t\t\t10\t\t10\t\t10\t\t10\t\t10\t\t10\t\t10\t\t10\t\t10\t\t10\t\t10\t\t10\t\t10\t\t10\t\t10\t\t10\t\t10\t\t10\t\t10\t\t10\t\t10"
#> [269] "IMPGSL1\t\t\t\t\t15\t\t15\t\t15\t\t15\t\t15\t\t15\t\t15\t\t15\t\t15\t\t15\t\t15\t\t15\t\t15\t\t15\t\t15\t\t15\t\t15\t\t15\t\t15\t\t15\t\t15"
#> [270] "IMPHCO1\t\t\t\t\t2\t\t2\t\t2\t\t2\t\t2\t\t2\t\t2\t\t2\t\t2\t\t2\t\t2\t\t2\t\t2\t\t2\t\t2\t\t2\t\t2\t\t2\t\t2\t\t2\t\t2"
#> [271] "IMPOIL1\t\t\t\t\t8\t\t8\t\t8\t\t8\t\t8\t\t8\t\t8\t\t8\t\t8\t\t8\t\t8\t\t8\t\t8\t\t8\t\t8\t\t8\t\t8\t\t8\t\t8\t\t8\t\t8"
#> [272] "IMPURN1\t\t\t\t\t2\t\t2\t\t2\t\t2\t\t2\t\t2\t\t2\t\t2\t\t2\t\t2\t\t2\t\t2\t\t2\t\t2\t\t2\t\t2\t\t2\t\t2\t\t2\t\t2\t\t2"
#> [273] "RHu \t\t\t\t\t99999\t99999\t99999\t99999\t99999\t99999\t99999\t99999\t99999\t99999\t99999\t99999\t99999\t99999\t99999\t99999\t99999\t99999\t99999\t99999\t99999"
#> [274] "RLu \t\t\t\t\t99999\t99999\t99999\t99999\t99999\t99999\t99999\t99999\t99999\t99999\t99999\t99999\t99999\t99999\t99999\t99999\t99999\t99999\t99999\t99999\t99999"
#> [275] "TXu\t\t\t\t\t\t99999\t99999\t99999\t99999\t99999\t99999\t99999\t99999\t99999\t99999\t99999\t99999\t99999\t99999\t99999\t99999\t99999\t99999\t99999\t99999\t99999\t;"
#> [276] ""
#> [277] "#"
#> [278] "# ResidualCapacity{r in Region, t in Technology, y in Year} Units: GW"
#> [279] "# The capacity left over from periods prior to the modeling period."
#> [280] "param\tResidualCapacity \tdefault\t0\t:="
#> [281] "\t[UTOPIA,*,*]\t:\t1990\t1991\t1992\t1993\t1994\t1995\t1996\t1997\t1998\t1999\t2000\t2001\t2002\t2003\t2004\t2005\t2006\t2007\t2008\t2009\t2010\t:="
#> [282] "E01\t\t\t\t\t\t0.5\t\t0.5\t\t0.5\t\t0.4\t\t0.4\t\t0.4\t\t0.4\t\t0.4\t\t0.4\t\t0.3\t\t0.32\t0.3\t\t0.3\t\t0.3\t\t0.3\t\t0.2\t\t0.2\t\t0.2\t\t0.2\t\t0.2\t\t0.15"
#> [283] "E21\t\t\t\t\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0"
#> [284] "E31\t\t\t\t\t\t0.1\t\t0.1\t\t0.1\t\t0.1\t\t0.1\t\t0.1\t\t0.1\t\t0.1\t\t0.1\t\t0.1\t\t0.1\t\t0.1\t\t0.1\t\t0.1\t\t0.1\t\t0.1\t\t0.1\t\t0.1\t\t0.1\t\t0.1\t\t0.1"
#> [285] "E51\t\t\t\t\t\t0.5\t\t0.5\t\t0.5\t\t0.5\t\t0.5\t\t0.5\t\t0.5\t\t0.5\t\t0.5\t\t0.5\t\t0.5\t\t0.5\t\t0.5\t\t0.5\t\t0.5\t\t0.5\t\t0.5\t\t0.5\t\t0.5\t\t0.5\t\t0.5"
#> [286] "E70\t\t\t\t\t\t0.3\t\t0.3\t\t0.29\t0.29\t0.28\t0.28\t0.27\t0.27\t0.26\t0.26\t0.25\t0.26\t0.26\t0.27\t0.27\t0.28\t0.28\t0.29\t0.29\t0.3\t\t0.2"
#> [287] "RHE\t\t\t\t\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0"
#> [288] "RHO\t\t\t\t\t\t25\t\t23.8\t22.5\t21.3\t20\t\t18.8\t17.5\t16.3\t15\t\t13.8\t12.5\t11.3\t10\t\t8.8\t\t7.5\t\t6.3\t\t5\t\t3.8\t\t2.5\t\t1.3\t\t0"
#> [289] "RL1\t\t\t\t\t\t5.6\t\t5\t\t4.5\t\t3.9\t\t3.4\t\t2.8\t\t2.2\t\t1.7\t\t1.1\t\t0.6\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0"
#> [290] "TXD\t\t\t\t\t\t0.6\t\t0.6\t\t0.5\t\t0.5\t\t0.4\t\t0.4\t\t0.4\t\t0.3\t\t0.3\t\t0.2\t\t0.2\t\t0.2\t\t0.2\t\t0.1\t\t0.1\t\t0.1\t\t0.1\t\t0.1\t\t0\t\t0\t\t0\t\t;"
#> [291] ""
#> [292] ""
#> [293] "#"
#> [294] "# AvailabilityFactor{r in Region, t in Technology, y in Year} Units: Fraction of Hours in Year"
#> [295] "# Maximum time technology may run for the whole year. Often used to simulate planned outages. OSeMOSYS will choose when to run or not run."
#> [296] "param\tAvailabilityFactor\tdefault\t1\t:="
#> [297] "\t[UTOPIA,*,*]\t:\t1990\t1991\t1992\t1993\t1994\t1995\t1996\t1997\t1998\t1999\t2000\t2001\t2002\t2003\t2004\t2005\t2006\t2007\t2008\t2009\t2010\t:="
#> [298] "RHE\t\t\t\t\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1"
#> [299] "RHO\t\t\t\t\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1"
#> [300] "RL1\t\t\t\t\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1"
#> [301] "TXD\t\t\t\t\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1"
#> [302] "TXE\t\t\t\t\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1"
#> [303] "TXG\t\t\t\t\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t;"
#> [304] ""
#> [305] "#"
#> [306] "# CapacityFactor{r in Region, t in Technology, l in TIMESLICE, y in Year} Units: Fraction of Hours in Year"
#> [307] "# Indicates the maximum time technology may run in a given time slice."
#> [308] "param\tCapacityFactor\tdefault\t1\t:="
#> [309] "\t[UTOPIA,E01,*,*]\t:\t1990\t1991\t1992\t1993\t1994\t1995\t1996\t1997\t1998\t1999\t2000\t2001\t2002\t2003\t2004\t2005\t2006\t2007\t2008\t2009\t2010\t:="
#> [310] "ID\t\t\t\t\t\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8"
#> [311] "IN\t\t\t\t\t\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8"
#> [312] "SD\t\t\t\t\t\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0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t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8"
#> [320] "SD\t\t\t\t\t\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8"
#> [321] "SN\t\t\t\t\t\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8"
#> [322] "WD\t\t\t\t\t\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8"
#> [323] "WN\t\t\t\t\t\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8"
#> [324] ""
#> [325] "\t[UTOPIA,E31,*,*]\t:\t1990\t1991\t1992\t1993\t1994\t1995\t1996\t1997\t1998\t1999\t2000\t2001\t2002\t2003\t2004\t2005\t2006\t2007\t2008\t2009\t2010\t:="
#> [326] "ID\t\t\t\t\t\t\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27"
#> [327] "IN\t\t\t\t\t\t\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27"
#> [328] "SD\t\t\t\t\t\t\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27"
#> [329] "SN\t\t\t\t\t\t\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27"
#> [330] "WD\t\t\t\t\t\t\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27"
#> [331] "WN\t\t\t\t\t\t\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27\t0.27"
#> [332] ""
#> [333] "\t[UTOPIA,E51,*,*]\t:\t1990\t1991\t1992\t1993\t1994\t1995\t1996\t1997\t1998\t1999\t2000\t2001\t2002\t2003\t2004\t2005\t2006\t2007\t2008\t2009\t2010\t:="
#> [334] "ID\t\t\t\t\t\t\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17"
#> [335] "IN\t\t\t\t\t\t\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17"
#> [336] "SD\t\t\t\t\t\t\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17"
#> [337] "SN\t\t\t\t\t\t\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17"
#> [338] "WD\t\t\t\t\t\t\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17"
#> [339] "WN\t\t\t\t\t\t\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17\t0.17"
#> [340] ""
#> [341] "\t[UTOPIA,E70,*,*]\t:\t1990\t1991\t1992\t1993\t1994\t1995\t1996\t1997\t1998\t1999\t2000\t2001\t2002\t2003\t2004\t2005\t2006\t2007\t2008\t2009\t2010\t:="
#> [342] "ID\t\t\t\t\t\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8"
#> [343] "IN\t\t\t\t\t\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8"
#> [344] "SD\t\t\t\t\t\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8"
#> [345] "SN\t\t\t\t\t\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8"
#> [346] "WD\t\t\t\t\t\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8"
#> [347] "WN\t\t\t\t\t\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t0.8\t\t;"
#> [348] ""
#> [349] "#"
#> [350] "# EmissionActivityRatio{r in Region, t in Technology, e in Emission, m in ModeOfOperation, y in Year} Units: Tonnes/PJ Output"
#> [351] "# Emissions factor per unit of activity."
#> [352] "param\tEmissionActivityRatio\tdefault\t0\t:="
#> [353] "\t[UTOPIA,*,CO2,1,*]\t:\t1990\t1991\t1992\t1993\t1994\t1995\t1996\t1997\t1998\t1999\t2000\t2001\t2002\t2003\t2004\t2005\t2006\t2007\t2008\t2009\t2010\t:="
#> [354] "IMPDSL1\t\t\t\t\t\t0.075\t0.075\t0.075\t0.075\t0.075\t0.075\t0.075\t0.075\t0.075\t0.075\t0.075\t0.075\t0.075\t0.075\t0.075\t0.075\t0.075\t0.075\t0.075\t0.075\t0.075"
#> [355] "IMPGSL1\t\t\t\t\t\t0.075\t0.075\t0.075\t0.075\t0.075\t0.075\t0.075\t0.075\t0.075\t0.075\t0.075\t0.075\t0.075\t0.075\t0.075\t0.075\t0.075\t0.075\t0.075\t0.075\t0.075"
#> [356] "IMPHCO1\t\t\t\t\t\t0.089\t0.089\t0.089\t0.089\t0.089\t0.089\t0.089\t0.089\t0.089\t0.089\t0.089\t0.089\t0.089\t0.089\t0.089\t0.089\t0.089\t0.089\t0.089\t0.089\t0.089"
#> [357] "IMPOIL1\t\t\t\t\t\t0.075\t0.075\t0.075\t0.075\t0.075\t0.075\t0.075\t0.075\t0.075\t0.075\t0.075\t0.075\t0.075\t0.075\t0.075\t0.075\t0.075\t0.075\t0.075\t0.075\t0.075"
#> [358] ""
#> [359] "\t[UTOPIA,*,NOX,1,*]\t:\t1990\t1991\t1992\t1993\t1994\t1995\t1996\t1997\t1998\t1999\t2000\t2001\t2002\t2003\t2004\t2005\t2006\t2007\t2008\t2009\t2010\t:="
#> [360] "TXD\t\t\t\t\t\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1"
#> [361] "TXG\t\t\t\t\t\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t;"
#> [362] ""
#> [363] "#"
#> [364] "# EmissionsPenalty{r in Region, e in Emission, y in Year} Units: Million $/Tonne of Pollutant"
#> [365] "# Externality cost per unit of emission"
#> [366] "param\tEmissionsPenalty\t\t\t:="
#> [367] "\t[UTOPIA,*,*]\t:\t1990\t1991\t1992\t1993\t1994\t1995\t1996\t1997\t1998\t1999\t2000\t2001\t2002\t2003\t2004\t2005\t2006\t2007\t2008\t2009\t2010\t:="
#> [368] "CO2\t\t\t\t\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0"
#> [369] "NOX\t\t\t\t\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t;"
#> [370] ""
#> [371] "#"
#> [372] "# ReserveMarginTagFuel{r in Region,f in Fuel, y in Year} Units: 1=yes, 0=no"
#> [373] "# Indicates if the output fuel has a reserve margin associated with it"
#> [374] "param\tReserveMarginTagFuel\tdefault\t0\t:="
#> [375] "\t[UTOPIA,*,*]\t:\t1990\t1991\t1992\t1993\t1994\t1995\t1996\t1997\t1998\t1999\t2000\t2001\t2002\t2003\t2004\t2005\t2006\t2007\t2008\t2009\t2010\t:="
#> [376] "ELC\t\t\t\t\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t;"
#> [377] ""
#> [378] "#"
#> [379] "# ReserveMargin{r in Region, y in Year} Units: Ratio (Installed/Peak)"
#> [380] "# The reserve (installed) capacity required relative to the peak demand for the specified fuel."
#> [381] "param\tReserveMargin\t:\t1990\t1991\t1992\t1993\t1994\t1995\t1996\t1997\t1998\t1999\t2000\t2001\t2002\t2003\t2004\t2005\t2006\t2007\t2008\t2009\t2010\t:="
#> [382] "UTOPIA\t\t\t\t\t\t1.18\t1.18\t1.18\t1.18\t1.18\t1.18\t1.18\t1.18\t1.18\t1.18\t1.18\t1.18\t1.18\t1.18\t1.18\t1.18\t1.18\t1.18\t1.18\t1.18\t1.18\t;"
#> [383] ""
#> [384] "#"
#> [385] "# ReserveMarginTagTechnology{r in Region,t in Technology, y in Year} Units: fraction"
#> [386] "# Amount the technology contributes to the reserve margin 1=100% 0.2=20%."
#> [387] "param\tReserveMarginTagTechnology\tdefault\t0\t:="
#> [388] "\t[UTOPIA,*,*]\t:\t1990\t1991\t1992\t1993\t1994\t1995\t1996\t1997\t1998\t1999\t2000\t2001\t2002\t2003\t2004\t2005\t2006\t2007\t2008\t2009\t2010\t:="
#> [389] "E01\t\t\t\t\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1"
#> [390] "E21\t\t\t\t\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1"
#> [391] "E31\t\t\t\t\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1"
#> [392] "E51\t\t\t\t\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1"
#> [393] "E70\t\t\t\t\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t\t1\t;"
#> [394] ""
#> [395] "#"
#> [396] "# param OperationalLife{r in Region, t in Technology}; Units: years"
#> [397] "# Operational lifespan of a process in years."
#> [398] "param\tOperationalLife\tdefault\t1\t:\tE01\tE21\tE31\tE51\tE70\tRHE\tRHO\tRL1\tSRE\tTXD\tTXE\tTXG\t:="
#> [399] "UTOPIA\t\t\t\t\t\t\t\t\t40\t40\t100\t100\t40\t30\t30\t10\t50\t15\t15\t15\t;"
#> [400] ""
#> [401] "#"
#> [402] "# TotalAnnualMaxCapacity{r in Region, t in Technology, y in Year} Units: GW"
#> [403] "# Maximum total (residual and new) capacity each year."
#> [404] "param\tTotalAnnualMaxCapacity\tdefault\t-1\t:="
#> [405] "\t[UTOPIA,*,*]\t:\t1990\t\t1991\t\t1992\t\t1993\t\t1994\t\t1995\t\t1996\t\t1997\t\t1998\t\t1999\t\t2000\t\t2001\t\t2002\t\t2003\t\t2004\t\t2005\t\t2006\t\t2007\t\t2008\t\t2009\t\t2010\t\t:="
#> [406] "E31\t\t\t\t\t\t0.1301\t\t0.1401\t\t0.1401\t\t0.1501\t\t0.1501\t\t0.1501\t\t0.1601\t\t0.1601\t\t0.1601\t\t0.1601\t\t0.1701\t\t0.201\t\t0.201\t\t0.201\t\t0.201\t\t0.201\t\t0.201\t\t0.201\t\t0.201\t\t0.201\t\t0.2101"
#> [407] "E51\t\t\t\t\t\t3\t\t\t3\t\t\t3\t\t\t3\t\t\t3\t\t\t3\t\t\t3\t\t\t3\t\t\t3\t\t\t3\t\t\t3\t\t\t3\t\t\t3\t\t\t3\t\t\t3\t\t\t3\t\t\t3\t\t\t3\t\t\t3\t\t\t3\t\t\t3"
#> [408] "RHE\t\t\t\t\t\t0\t\t\t0\t\t\t0\t\t\t0\t\t\t0\t\t\t0\t\t\t0\t\t\t0\t\t\t0\t\t\t0\t\t\t999999999\t999999999\t999999999\t999999999\t999999999\t999999999\t999999999\t999999999\t999999999\t999999999\t999999999"
#> [409] "SRE\t\t\t\t\t\t0.1001\t\t0.1001\t\t0.1001\t\t0.1001\t\t0.1001\t\t0.1001\t\t0.1001\t\t0.1001\t\t0.1001\t\t0.1001\t\t999999999\t999999999\t999999999\t999999999\t999999999\t999999999\t999999999\t999999999\t999999999\t999999999\t999999999"
#> [410] "TXE\t\t\t\t\t\t0\t\t\t0.4\t\t\t0.8\t\t\t1.2\t\t\t1.6\t\t\t2\t\t\t2.4\t\t\t2.8\t\t\t3.2\t\t\t3.6\t\t\t4\t\t\t4.6\t\t\t5.2\t\t\t5.8\t\t\t6.4\t\t\t7\t\t\t7.6\t\t\t8.2\t\t\t8.8\t\t\t9.4\t\t\t10\t\t\t;"
#> [411] ""
#> [412] "#"
#> [413] "# TotalAnnualMinCapacity{r in Region, t in Technology, y in Year} Units: GW"
#> [414] "# Minimum total (residual and new) capacity each year."
#> [415] "param\tTotalAnnualMinCapacity\tdefault\t0\t:="
#> [416] "\t[UTOPIA,*,*]\t:\t1990\t1991\t1992\t1993\t1994\t1995\t1996\t1997\t1998\t1999\t2000\t2001\t2002\t2003\t2004\t2005\t2006\t2007\t2008\t2009\t2010\t:="
#> [417] "E31\t\t\t\t\t\t0.13\t0.14\t0.14\t0.15\t0.15\t0.15\t0.16\t0.16\t0.16\t0.16\t0.17\t0.2\t\t0.2\t\t0.2\t\t0.2\t\t0.2\t\t0.2\t\t0.2\t\t0.2\t\t0.2\t\t0.21"
#> [418] "SRE\t\t\t\t\t\t0.1\t\t0.1\t\t0.1\t\t0.1\t\t0.1\t\t0.1\t\t0.1\t\t0.1\t\t0.1\t\t0.1\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t0\t\t;"
#> [419] ""
#> [420] "#"
#> [421] "# TotalAnnualMaxCapacityInvestment{r in Region, t in Technology, y in Year} Units: GW"
#> [422] "# Maximum new capacity each year. Use this to stop OSeMOSYS investing in existing technologies."
#> [423] "param\tTotalAnnualMaxCapacityInvestment\tdefault\t-1\t:=\t;"
#> [424] "#"
#> [425] "# TotalAnnualMinCapacityInvestment{r in Region, t in Technology, y in Year} Units: GW"
#> [426] "# Minimum new capacity each year."
#> [427] "param\tTotalAnnualMinCapacityInvestment\tdefault\t0\t:=\t;"
#> [428] "#"
#> [429] "# param TotalTechnologyAnnualActivityUpperLimit{r in Region, t in Technology, y in Year} Units: PJ"
#> [430] "# Maximum amount of activity that a technology can perform each year."
#> [431] "param\tTotalTechnologyAnnualActivityUpperLimit\tdefault\t-1\t:=\t;"
#> [432] "#"
#> [433] "# TotalTechnologyAnnualActivityLowerLimit{r in Region, t in Technology, y in Year} Units: PJ"
#> [434] "# Minimum activity that a technology can perform each year."
#> [435] "param\tTotalTechnologyAnnualActivityLowerLimit\tdefault\t0\t:=\t;"
#> [436] "#"
#> [437] "# TotalTechnologyModelPeriodActivityUpperLimit{r in Region, t in Technology} Units: PJ"
#> [438] "# Maximum level of activity by a technology over the whole model period."
#> [439] "param\tTotalTechnologyModelPeriodActivityUpperLimit\tdefault\t-1\t:="
#> [440] "# THIS IS NOT ENFORCED IN ORIGINAL CODE!!! UTOPIA E51 0 # set E51 to zero to force model not to use it."
#> [441] ";"
#> [442] "#"
#> [443] "# TotalTechnologyModelPeriodActivityLowerLimit{r in Region, t in Technology} Units: PJ"
#> [444] "# Minimum level of activity by a technology over the whole model period."
#> [445] "param\tTotalTechnologyModelPeriodActivityLowerLimit\tdefault\t0\t:=\t;"
#> [446] "#"
#> [447] "# RETagTechnology{r in Region, t in Technology, y in Year} Units: 1=yes, 0=no"
#> [448] "# Flags technologies that are allowed to contribute to the renewable capacity of the system."
#> [449] "param\tRETagTechnology\tdefault\t0\t:=\t;"
#> [450] "#"
#> [451] "# RETagFuel{r in Region,f in Fuel, y in Year} Units: 1=yes, 0=no"
#> [452] "# The fuels for which there is a renewable target."
#> [453] "param\tRETagFuel\tdefault\t0\t:=\t;"
#> [454] "#"
#> [455] "# REMinProductionTarget{r in Region, y in Year} Units: Fraction"
#> [456] "# What fraction of the fuels (tagged in the RETagFuel parameter) must come from the Renewable technologies (tagged in the RETagTechnology parameter)"
#> [457] "param\tREMinProductionTarget\tdefault\t0\t:=\t;"
#> [458] "#"
#> [459] "# Conversionls{l in TIMESLICE, ls in SEASON}"
#> [460] "# Set equal to 1 to assign a particular time slice to a season. Set equal to 0 in order not to assign a particular time slice to a season."
#> [461] "param Conversionls default 0 :="
#> [462] "[*,*]:\t1\t2\t3\t:="
#> [463] "ID\t\t0\t1\t0"
#> [464] "IN\t\t0\t1\t0"
#> [465] "SD\t\t0\t0\t1"
#> [466] "SN\t\t0\t0\t1"
#> [467] "WD\t\t1\t0\t0"
#> [468] "WN\t\t1\t0\t0\t;"
#> [469] "# Conversionld{l in TIMESLICE, ld in DAYTYPE}"
#> [470] "# Set equal to 1 to assign a particular time slice to a day type. Set equal to 0 in order not to assign a particular time slice to a day type."
#> [471] "param\tConversionld\tdefault\t0\t:="
#> [472] "[*,*]:\t1\t:="
#> [473] "ID\t\t1"
#> [474] "IN\t\t1"
#> [475] "SD\t\t1"
#> [476] "SN\t\t1"
#> [477] "WD\t\t1"
#> [478] "WN\t\t1\t;"
#> [479] "# Conversionlh{l in TIMESLICE, lh in DAILYTIMEBRACKET}"
#> [480] "# Set equal to 1 to assign a particular time slice to a daily time bracket. Set equal to 0 in order not to assign a particular time slice to a daily time bracket."
#> [481] "param\tConversionlh\tdefault\t0\t:="
#> [482] "[*,*]:\t1\t2\t:="
#> [483] "ID\t\t1\t0"
#> [484] "IN\t\t0\t1"
#> [485] "SD\t\t1\t0"
#> [486] "SN\t\t0\t1"
#> [487] "WD\t\t1\t0"
#> [488] "WN\t\t0\t1\t;"
#> [489] "#"
#> [490] "# DaySplit{lh in DAILYTIMEBRACKET, y in YEAR};"
#> [491] "# The length of one time bracket in one specific day as a fraction of the year, e.g., when distinguishing between days and night: 12h/(24h*365d)"
#> [492] "param DaySplit default 0.00137 :=;"
#> [493] "#"
#> [494] "# TechnologyToStorage{r in REGION, t in TECHNOLOGY, s in STORAGE, m in MODE_OF_OPERATION}"
#> [495] "param\tTechnologyToStorage\tdefault\t0\t:="
#> [496] "\t[UTOPIA,*,*,2]\t\t:\tDAM\t:="
#> [497] "E51\t\t\t1\t;"
#> [498] "#"
#> [499] "# TechnologyFromStorage{r in REGION, t in TECHNOLOGY, s in STORAGE, m in MODE_OF_OPERATION}"
#> [500] "param\tTechnologyFromStorage\tdefault\t0\t:="
#> [501] "\t[UTOPIA,*,*,1]\t\t:\tDAM\t:="
#> [502] "E51\t\t\t1\t;"
#> [503] "#"
#> [504] "# StorageLevelStart{r in REGION, s in STORAGE}"
#> [505] "# At beginning of first year. Attention: if zero, OSeMOSYS will use the first time slices in the entire first day type in the entire first season to fill the storage."
#> [506] "# To avoid OSeMOSYS taking a whole part of a season to fill up the storage, and to avoid defining smaller seasons, set it to zero, run the model, and check the StorageLevelYearStart"
#> [507] "# variable of the following year and use a similar value for StorageLevelStart. Alternatively, model a few years before the first year of your interest."
#> [508] "param StorageLevelStart default 999:="
#> [509] ";"
#> [510] "# DaysInDayType{ls in SEASON, ld in DAYTYPE, y in YEAR};"
#> [511] "# Number of days for each day type within a week, i.e., out of 7"
#> [512] "param DaysInDayType default 7:="
#> [513] ";"
#> [514] "# StorageMaxChargeRate{r in REGION, s in STORAGE}; Unit: GW"
#> [515] "param StorageMaxChargeRate default 99:="
#> [516] ";"
#> [517] "# StorageMaxDischargeRate{r in REGION, s in STORAGE}; Unit: GW"
#> [518] "param StorageMaxDischargeRate default 99:="
#> [519] ";"
#> [520] "# MinStorageCharge{r in REGION, s in STORAGE, y in YEAR}; Unit: fraction of MaxStorageCharge, i.e., between 0.00 and 0.99"
#> [521] "param MinStorageCharge default 0. :="
#> [522] ";"
#> [523] "# OperationalLifeStorage{r in REGION, s in STORAGE, y in YEAR}; Unit: years"
#> [524] "param OperationalLifeStorage default\t\t\t99\t:="
#> [525] ";"
#> [526] "# CapitalCostStorage{r in REGION, s in STORAGE, y in YEAR}; Unit: USD/GWa"
#> [527] "param CapitalCostStorage default \t\t\t0\t:="
#> [528] ";"
#> [529] "# ResidualStorageCapacity{r in REGION, s in STORAGE, y in YEAR};"
#> [530] "# Storage capacity which is available from before the modelling period, or which is know to become available in a specific year. Unit: GWa"
#> [531] "param ResidualStorageCapacity default\t\t\t999\t:="
#> [532] ";"
#> [533] "# CapacityOfOneTechnologyUnit{r in REGION, t in TECHNOLOGY, y in YEAR}; Unit: GW"
#> [534] "# Defines the minimum size of one capacity addition. If set to zero, no mixed integer linear programming (MILP) is used and computational time will decrease."
#> [535] "param CapacityOfOneTechnologyUnit default\t0\t:=\t;"
#> [536] "#"
#> [537] "# TradeRoute{r in REGION, rr in REGION, f in FUEL, y in YEAR}"
#> [538] "# Defines which region r is linked with which region rr in order to enable or disable trading of a specific fuel. Unit: Fraction, either 1 or 0"
#> [539] "# 1 defines a trade link and 0 ensuring that no trade occurs. Values inbetween are not allowed. If r is linked to rr, rr has also to be linked with r."
#> [540] "# I.e., for one specific year and fuel, this parameter is entered as a symmetric matrix (with a diagonal of zeros)."
#> [541] "param TradeRoute default\t0 :="
#> [542] ";"
#> [543] "end;"
#>
#>
#> $metadata
#> $metadata$source
#> [1] "OSeMOSYS_GNU_MathProg"
#>
#> $metadata$repository
#> [1] "https://github.com/OSeMOSYS/OSeMOSYS_GNU_MathProg"
#>
#> $metadata$license
#> [1] "Apache-2.0"
#>
#> $metadata$model_file
#> [1] "src/osemosys.txt"
#>
#> $metadata$data_file
#> [1] "tests/utopia.txt"
#>
#> $metadata$date_imported
#> [1] "2025-12-08"
#>
#> $metadata$note
#> [1] "OSeMOSYS (Open Source energy MOdeling SYStem) is a full-fledged systems optimization model for long-run energy planning. This dataset contains the GMPL source code for testing multimod's GMPL parser."
#>
#> $metadata$version
#> [1] "v1.0.1"
#>
#>
# Use pre-parsed multimod models
summary(example_models$energyRt$multimod)
#> Length Class Mode
#> name 0 -none- NULL
#> desc 0 -none- NULL
#> sets 13 -none- list
#> aliases 7 -none- list
#> mappings 240 -none- list
#> parameters 151 -none- list
#> variables 64 -none- list
#> equations 108 -none- list
#> inMemory 1 -none- logical
#> base_path 1 -none- character
#> metadata 8 -none- list
#> objectives 1 -none- list
#> index_aliases 30 -none- character
#> misc 2 -none- list
summary(example_models$OSeMOSYS$multimod)
#> Length Class Mode
#> name 1 -none- character
#> desc 1 -none- character
#> sets 11 -none- list
#> aliases 11 -none- list
#> mappings 0 -none- list
#> parameters 61 -none- list
#> variables 68 -none- list
#> equations 95 -none- list
#> inMemory 1 -none- logical
#> base_path 1 -none- character
#> metadata 3 -none- list
#> objectives 1 -none- list
#> index_aliases 12 -none- character
# Parse from source (no temp files needed!)
if (FALSE) { # \dontrun{
# Parse energyRt GAMS source
model_gams <- read_gams(
file_or_text = example_models$energyRt$gams$model,
include = FALSE
)
# Parse energyRt GMPL source
model_gmpl <- read_gmpl(
model_file = example_models$energyRt$gmpl$model,
data_file = example_models$energyRt$gmpl$data
)
# Parse OSeMOSYS GMPL source
model_osemosys <- read_gmpl(
model_file = example_models$OSeMOSYS$gmpl$model,
data_file = example_models$OSeMOSYS$gmpl$data
)
# Compare line counts
sapply(example_models$energyRt[c("gams", "gmpl", "jump")],
function(x) list(model = length(x$model), data = length(x$data)))
# Export to different formats
write_gmpl(example_models$energyRt$multimod, "tmp/energyrt")
write_jump(example_models$OSeMOSYS$multimod, "tmp/osemosys")
write_pyomo(example_models$energyRt$multimod, "tmp/energyrt_pyomo")
} # }
