Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve carbonprice/exogenous doc; allow running fixOnRef non-interactively #1718

Merged
merged 4 commits into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 29 additions & 54 deletions config/settings_config.csv
Original file line number Diff line number Diff line change
@@ -1,54 +1,29 @@
;climate|off;growth|exogenous;growth|endogenous;growth|spillover;biomass|exogenous;biomass|magpie_hightccost;fossil|timeDepGrades;fossil|grades;fossil|polynomial;fossil|simple;fossil|exogenous;transport|simple;techpol|none;techpol|moderate;techpol|stringent;techpol|eur;techpol|lowCarbonPush;techpol|CombLowCandCoalPO;techpol|coalPhaseout;emicapregi|none;emicapregi|CandC;emicapregi|GDPint;emicapregi|POPint;emicapregi|exog;emicapregi|exogMod;emicapregi|exogMod2;emicapregi|exogStr;emicapregi|exogMT;emicapregi|exogG8;banking|off;banking|banking;banking|bankborrow;carbonprice|none;optimization|negishi;optimization|nash;optimization|testOneRegi;cm_emiscen|0;cm_emiscen|1;cm_emiscen|2;cm_emiscen|3;cm_emiscen|4;cm_emiscen|5;cm_emiscen|8;cm_emiscen|9;cm_rcp_scen|none;cm_rcp_scen|26;cm_iterative_target_adj|1;tax|off;cm_fetaxscen|1;cm_fetaxscen|2;codePerformance|on;cm_IndCCSscen|1;buildings|simple;industry|fixed_shares
climate|off;1;1;1;1;1;1;1;1;1;0;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;0;0;1;0;0;1;1;1;1;1;1;1;1;1;1;1
growth|exogenous;1;1;1;1;1;1;1;1;1;0;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1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0;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;0;0;0;0;0;0;1;1;1;1;1;1;1;1;1;1
cm_rcp_scen|1;1;1;1;1;1;1;1;1;1;0;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;0;1;1;1;1;0;1;1;1;1;1;1;1
cm_iterative_target_adj|1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;0;0;0;0;0;0;0;0;1;1;0;1;1;1;1;1;1;1;1
tax|off;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;0;0;1;1;1;1
cm_fetaxscen|1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;0;1;1;1;1;1;1
cm_fetaxscen|2;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;0;1;1;1;1;1;1
buildings|simple;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1
industry|fixed_shares;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1
;climate|off;techpol|lowCarbonPush;techpol|CombLowCandCoalPO;techpol|coalPhaseout;emicapregi|none;emicapregi|CandC;emicapregi|GDPint;emicapregi|POPint;emicapregi|exog;carbonprice|none;optimization|negishi;optimization|nash;optimization|testOneRegi;cm_emiscen|0;cm_emiscen|1;cm_emiscen|2;cm_emiscen|3;cm_emiscen|4;cm_emiscen|5;cm_emiscen|8;cm_emiscen|9;cm_rcp_scen|none;cm_rcp_scen|26;cm_iterative_target_adj|1;tax|off;cm_fetaxscen|1;cm_fetaxscen|2;codePerformance|on;cm_IndCCSscen|1
climate|off;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;0;0;1;0;0;1;1;1;1;1;1;1;1;1
industry|simple;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;0
techpol|lowCarbonPush;1;1;1;1;1;1;1;1;1;1;1;0;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1
techpol|CombLowCandCoalPO;1;1;1;1;1;1;1;1;1;1;1;0;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1
techpol|coalPhaseout;1;1;1;1;1;1;1;1;1;1;1;0;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1
emicapregi|none;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;0;1;1;1;1;1;1;1;1;1;1;1
emicapregi|CandC;1;1;1;1;1;1;1;1;1;1;1;0;1;0;0;1;1;1;1;1;1;1;1;1;1;1;1;1;1
emicapregi|GDPint;1;1;1;1;1;1;1;1;1;1;1;0;1;0;0;1;1;1;1;1;1;1;1;1;1;1;1;1;1
emicapregi|POPint;1;1;1;1;1;1;1;1;1;1;1;0;1;0;0;1;1;1;1;1;1;1;1;1;1;1;1;1;1
emicapregi|exog;1;1;1;1;1;1;1;1;1;1;1;0;1;1;1;1;1;0;1;1;1;1;1;1;1;1;1;1;1
carbonprice|none;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;0;1;1;1;1;1;1;0;1
optimization|negishi;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;0;1;1;1;1;1;1;1;1;1;1;1
optimization|nash;1;0;0;0;1;0;0;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1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;0;1;1;1;1
2 changes: 1 addition & 1 deletion main.gms
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ $setglobal emicapregi none !! def = none
*' * (none): no tax policy (combined with all emiscens except emiscen = 9)
*' * (exponential): 5% exponential increase over time of the tax level in 2020 set via cm_co2_tax_2020 (combined with emiscen = 9 and cm_co2_tax_2020>0)
*' * (expoLinear): 5% exponential increase until c_expoLinear_yearStart, linear increase thereafter
*' * (exogenous): carbon price is specified using an external input file or using the switch cm_regiExoPrice
*' * (exogenous): carbon price is specified using an external input file or using the switch cm_regiExoPrice. Requires cm_emiscen = 9 and cm_iterative_target_adj = 0
*' * (linear): linear increase over time of the tax level in 2020 set via cm_co2_tax_2020 (combined with emiscen = 9 and cm_co2_tax_2020>0)
*' * (temperatureNotToExceed): [test and verify before using it!] Find the optimal carbon carbon tax (set cm_emiscen = 1, iterative_target_adj = 9] curved convergence of CO2 prices between regions until cm_CO2priceRegConvEndYr; developed countries have linear path from 0 in 2010 through cm_co2_tax_2020 in 2020;
*' * (diffCurvPhaseIn2Lin): [REMIND 2.1 default for validation peakBudget runs, in combination with iterative_target_adj = 9] curved convergence of CO2 prices between regions until cm_CO2priceRegConvEndYr; developed countries have linear path from 0 in 2010 through cm_co2_tax_2020 in 2020;
Expand Down
4 changes: 2 additions & 2 deletions modules/45_carbonprice/exogenous/datainput.gms
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*** CO2 Tax level
***----------------------------

if((cm_emiscen eq 9),
if((cm_emiscen eq 9 AND cm_iterative_target_adj eq 0),

p45_tau_co2_tax(ttot, regi) = 0;

Expand All @@ -21,7 +21,7 @@ pm_taxCO2eq(ttot,regi)$(ttot.val ge 2005) = p45_tau_co2_tax(ttot,regi);

else
pm_taxCO2eq(ttot,regi)$(ttot.val ge 2005) = 0;
abort "Error: Please set cm_emiscen to 9";
abort "Error: Please set cm_emiscen to 9 and cm_iterative_target_adj to 0";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Depending on the need of the group it might be good to turn this into a warning that can be ignored if a different cm_iterative_target_adj was intentionally chosen. But maybe there is no use-case for this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think, exogenous should mean "exogenous". If you wanted an exogenous path that is adapted according to some budget, this should have a different name and be properly documented. 🙂

The alternative would be to simply set cm_iterative_target_adj to 0 here. But I think failing is more transparent.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, convinced! Go ahead

);

*** EOF ./modules/45_carbonprice/exogenous/datainput.gms
1 change: 0 additions & 1 deletion modules/45_carbonprice/exogenous/not_used.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ cm_co2_tax_2020, switch, ???
sm_c_2_co2,switch, ???
pm_ttot_val,parameter,???
cm_co2_tax_growth,switch,???
cm_iterative_target_adj,switch,???
cm_expoLinear_yearStart,switch,???
vm_co2eq,variable,???
vm_emiFgas,input,questionnaire
Expand Down
4 changes: 3 additions & 1 deletion modules/45_carbonprice/exogenous/realization.gms
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
*** | Contact: [email protected]
*** SOF ./modules/45_carbonprice/exogenous/realization.gms

*#' @description This realization implements carbon price trajectories from an exogenous file (p45_tau_co2_tax.inc).
*#' @description This realization implements carbon price trajectories from an exogenous file (p45_tau_co2_tax.inc).
*#' Alternatively, specify in 'path_gdx_carbonprice' the run to be used
*#' Requires cm_emiscen = 9 and cm_iterative_target_adj = 0


*####################### R SECTION START (PHASES) ##############################
Expand Down
8 changes: 6 additions & 2 deletions output.R
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ choose_slurmConfig_output <- function(output) {
slurm_options <- paste(slurm_options[1:3], "--mem=32000")
} else if ("reporting" %in% output) {
slurm_options <- grep("--mem=[0-9]*[0-9]{3}", slurm_options, value = TRUE)
} else if ("fixOnRef" %in% output && length(output) == 1) {
slurm_options <- c("direct", slurm_options)
}

if (length(slurm_options) == 1) {
Expand Down Expand Up @@ -220,11 +222,10 @@ if (comp %in% c("comparison", "export")) {
}
} else { # comp = single
# define slurm class or direct execution
outputInteractive <- c("plotIterations", "fixOnRef", "integratedDamageCosts")
outputInteractive <- c("plotIterations", "integratedDamageCosts")
if (! exists("source_include")) {
if (any(output %in% outputInteractive)) {
slurmConfig <- "direct"
flags <- c(flags, "--interactive") # to tell scripts they can run in interactive mode
}
# if this script is not being sourced by another script but called from the command line via Rscript let the user
# choose the slurm options
Expand All @@ -235,6 +236,9 @@ if (comp %in% c("comparison", "export")) {
if (slurmConfig %in% c("priority", "short", "standby")) {
slurmConfig <- paste0("--qos=", slurmConfig, " --nodes=1 --tasks-per-node=1")
}
if (isTRUE(slurmConfig %in% "direct")) {
flags <- c(flags, "--interactive") # to tell scripts they can run in interactive mode
}
} else {
# if being sourced by another script execute the output scripts directly without sending them to the cluster
slurmConfig <- "direct"
Expand Down
Loading