From 3d9e85552e2b3dcdc385352e6642a62cd3669714 Mon Sep 17 00:00:00 2001 From: orichters Date: Thu, 12 Oct 2023 10:46:13 +0200 Subject: [PATCH] fix Tech|*|Capital Costs|w/ Adj Costs to reference run --- CHANGELOG.md | 2 ++ core/postsolve.gms | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2d5cfa05b..545826c54 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). [[#1401](https://github.com/remindmodel/remind/pull/1401)] - let preempted and resumed runs start their subsequent runs [[#1414](https://github.com/remindmodel/remind/pull/1414)] +- correctly report `Tech|*|Capital Costs|w/ Adj Costs` for t < cm_startyear + [[#1429](https://github.com/remindmodel/remind/pull/1429)] ## [3.2.1] - 2023-07-13 (incomplete) diff --git a/core/postsolve.gms b/core/postsolve.gms index 0500acc08..18a691d99 100644 --- a/core/postsolve.gms +++ b/core/postsolve.gms @@ -625,7 +625,7 @@ o_margAdjCostInv(ttot,regi,te)$(ttot.val ge max(2010, cm_startyear) AND teAdj(te ; *** CG: calculate average adjustment cost for capacity investment: v_costInvTeAdj / vm_deltaCap -o_avgAdjCostInv(ttot,regi,te)$(ttot.val ge max(2010, cm_startyear) AND teAdj(te) AND (sum(te2rlf(te,rlf),vm_deltaCap.l(ttot,regi,te,rlf)) ne 0 )) +o_avgAdjCostInv(ttot,regi,te)$(ttot.val ge 2010 AND teAdj(te) AND (sum(te2rlf(te,rlf),vm_deltaCap.l(ttot,regi,te,rlf)) ne 0 )) = v_costInvTeAdj.l(ttot,regi,te) / sum(te2rlf(te,rlf),vm_deltaCap.l(ttot,regi,te,rlf)); *** and ratio between average adjCost and direct investment cost o_avgAdjCost_2_InvCost_ratioPc(ttot,regi,te)$(v_costInvTeDir.l(ttot,regi,te) ge 1E-22) = v_costInvTeAdj.l(ttot,regi,te)/v_costInvTeDir.l(ttot,regi,te) * 100;