From 782cfa81fe60ad26947123e7a3c1359dc1801a73 Mon Sep 17 00:00:00 2001 From: Jakob Duerrwaechter Date: Mon, 25 Mar 2024 18:25:40 +0100 Subject: [PATCH] fix cm_repeatNonOpt regexp; change non-'off' value from 'yes' to more intuitive 'on' (has no effect, since is only compared to 'off' string in code) --- main.gms | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/main.gms b/main.gms index 0a90fa489..8579fd565 100755 --- a/main.gms +++ b/main.gms @@ -216,9 +216,9 @@ $offdigit *** turn profiling off (0) or on (1-3, different levels of detail) option profile = 0; -file foo_msg; !! This creates a dummy output file with a well-defined output format: +file foo_msg; !! This creates a dummy output file with a well-defined output format: foo_msg.nr = 1; !! namely F-format (decimal) (and not E-format = scientific notation) -*** The file can throughout the code be activated with `putclose foo_msg;` and used in the form `put_utility foo_msg "msg" / "xxxx"` to print out xxxx to full.lst +*** The file can throughout the code be activated with `putclose foo_msg;` and used in the form `put_utility foo_msg "msg" / "xxxx"` to print out xxxx to full.lst *** and be sure that the numeric format is F-format @@ -516,7 +516,7 @@ parameter cm_nucscen = 2; !! def = 2 !! regexp = 2|5|6 *' * (2): no fnrs, tnrs with restricted new builds until 2030 (based on current data on plants under construction, planned or proposed) *' * (5): no new nuclear investments after 2020 -*' * (6): +33% investment costs for tnrs under SSP5, uranium resources increased by a factor of 10 +*' * (6): +33% investment costs for tnrs under SSP5, uranium resources increased by a factor of 10 *' parameter cm_ccapturescen "carbon capture option choice, no carbon capture only if CCS and CCU are switched off!" @@ -780,8 +780,8 @@ parameter *' This switch determines the upper bound of the annual CCS injection rate. *' CCS here refers to carbon sequestration, carbon capture is modelled separately. *' * (0) no "CCS" as in no carbon sequestration at all -*' * (1) reference case: 0.005; max 19.7 GtCO2/yr globally -*' * (2) lower estimate: 0.0025; max 9.8 GtCO2/yr globally +*' * (1) reference case: 0.005; max 19.7 GtCO2/yr globally +*' * (2) lower estimate: 0.0025; max 9.8 GtCO2/yr globally *' * (3) upper estimate: 0.0075; max 29.5 GtCO2/yr globally *' * (4) unconstrained: 1; max 3900 GtCO2/yr globally *' * (5) sustainability case: 0.001; max 3.9 GtCO2/yr globally @@ -810,7 +810,7 @@ parameter *' * (5): iterative adjustment of CO2 tax based on economy-wide CO2 cumulative emission budget(2020-2100), for runs with emission budget or CO2 tax constraints. See core/postsolve.gms for direct algorithms *' * (6): iterative adjustment of CO2 tax based on economy-wide CO2 cumulative emission peak budget, for runs with emission budget or CO2 tax constraints. See core/postsolve.gms for direct algorithms *' * (7): iterative adjustment of CO2 tax based on economy-wide CO2 cumulative emission peak budget, for runs with emission budget or CO2 tax constraints. Features: results in a peak budget with zero net CO2 emissions after peak budget is reached. See core/postsolve.gms for direct algorithms -*' * (9): [require the right settings in 45_carbonprice] iterative adjustment of CO2 tax based on economy-wide CO2 cumulative emission peak budget, for runs with emission budget or CO2 tax constraints. Features: 1) after the year when budget peaks, CO2 tax has an annual increase by c_taxCO2inc_after_peakBudgYr, 2) automatically shifts c_peakBudgYr to find the correct year of budget peaking for a given budget. For REMIND version v2.1 or above. +*' * (9): [require the right settings in 45_carbonprice] iterative adjustment of CO2 tax based on economy-wide CO2 cumulative emission peak budget, for runs with emission budget or CO2 tax constraints. Features: 1) after the year when budget peaks, CO2 tax has an annual increase by c_taxCO2inc_after_peakBudgYr, 2) automatically shifts c_peakBudgYr to find the correct year of budget peaking for a given budget. For REMIND version v2.1 or above. *' parameter cm_NDC_divergentScenario "choose scenario about convergence of CO2eq prices [45_carbonprice = NDC]" @@ -936,7 +936,7 @@ parameter cm_frac_NetNegEmi "tax on net negative emissions to reflect risk of overshooting, formulated as fraction of carbon price" ; cm_frac_NetNegEmi = 0.5; !! def = 0.5 -*' This tax reduces the regional effective carbon price for CO2 once regional net CO2 emissions turn negative; default is a reduction by 50 percent. +*' This tax reduces the regional effective carbon price for CO2 once regional net CO2 emissions turn negative; default is a reduction by 50 percent. *' As the tax applies to net CO2 emissions, both further emission reductions and CDR are disincentivised. *' Fraction can be freely chosen. Guidelines: *' @@ -1116,7 +1116,7 @@ parameter cm_LearningSpillover = 1; !! def 1 = Learningspillover activated (set to 0 to deactivate) *' *' * if Learningspillover is deactivated, foreign capacity is set to the level of 2020 in technology learning. -*' * This means that in the model, each region's learning depends on its OWN additional capacity investment after 2020 in comparison to the GLOBAL cumulative capacity until 2020, +*' * This means that in the model, each region's learning depends on its OWN additional capacity investment after 2020 in comparison to the GLOBAL cumulative capacity until 2020, *' * so for small regions learning is very slow. This is a very pessimistic interpretation of 'no learning spillovers', *' * as every region has to climb up the global learning curve all by itself. *' * In combination with endogenous carbon pricing (e.g., in NDC), the deactivated Learningspillover will lead to higher overall carbon prices. Can be solved by setting carbonprice to exogenous (config). @@ -1291,7 +1291,7 @@ $setGlobal cm_loadFromGDX_implicitQttyTargetTax off !! def = off !! regexp = *** (3) start only after regional emission target is close to convergence, by setting "cm_implicitQttyTarget_delay = emiRegiConv x", which forces the quantity target to start only after x times the cm_emiMktTarget_tolerance is achieved. *** e.g., if "cm_emiMktTarget_tolerance = 0.01", i.e. 1% of deviation, and "cm_implicitQttyTarget_delay = emiRegiConv 5", the quantity target algorithm will only start after the emission target achieved a number lower than 5% (0.01 * 5)." *** option 3 should only be used if the target is defined for a region that has its carbon pricing controlled by cm_emiMktTarget in the 47_regipol module. -$setGlobal cm_implicitQttyTarget_delay iteration 3 !! def = iteration 3, quantity targets only start after iteration 3 +$setGlobal cm_implicitQttyTarget_delay iteration 3 !! def = iteration 3, quantity targets only start after iteration 3 *** cm_implicitPriceTarget "define tax/subsidies to match FE prices defined in the pm_implicitPriceTarget parameter." *** Acceptable values: "off", "initial", "elecPrice", "H2Price", "highElec", "highGasandLiq", "highPrice", "lowElec", "lowPrice" $setGlobal cm_implicitPriceTarget off !! def = off !! regexp = off|initial|elecPrice|H2Price|highElec|highGasandLiq|highPrice|lowElec|lowPrice @@ -1551,7 +1551,7 @@ $setGlobal cm_CESMkup_ind_data "" !! def = "" *** The CCS share of waste incineration increases linearly from zero, in 2025, to the value set at the switch, and it is kept constant for years afterwards. $setglobal cm_wasteIncinerationCCSshare off !! def = off *** cm_feedstockEmiUnknownFate, account for chemical feedstock emissions with unknown fate -*** off: assume that these emissions are trapped and do not account for total anthropogenic emissions +*** off: assume that these emissions are trapped and do not account for total anthropogenic emissions *** on: account for chemical feedstock emissions with unknown fate as re-emitted to the atmosphere $setglobal cm_feedstockEmiUnknownFate off !! def = off *** cm_feShareLimits <- "off" # def <- "off", limit the electricity final energy share to be in line with the industry maximum electrification levels (60% by 2050 in the electric scenario), 10% lower (=50% in 2050) in an increased efficiency World, or 20% lower (40% in 2050) in an incumbents future (incumbents). The incumbents scenario also limits a minimal coverage of buildings heat provided by gas and liquids (25% by 2050). @@ -1663,8 +1663,8 @@ $setglobal cm_taxrc_RE none !! def = none !! regexp = none|REdirect *' cm_repeatNonOpt "should nonoptimal regions be solved again?" *' *' * (off): no, only infeasable regions are repeated, standard setting -*' * (yes): also non-optimal regions are solved again, up to cm_solver_try_max -$setglobal cm_repeatNonOpt off +*' * (on): also non-optimal regions are solved again, up to cm_solver_try_max +$setglobal cm_repeatNonOpt off !! def = off !! regexp = off|on *' @stop