Skip to content

Commit

Permalink
Merge pull request #1476 from orichters/fixtech
Browse files Browse the repository at this point in the history
fix Tech|*|Capital Costs|w/ Adj Costs on reference run
  • Loading branch information
orichters authored Nov 24, 2023
2 parents aa5b4a8 + 10ad8a1 commit b98ce3f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- 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)]
[[#1429](https://github.com/remindmodel/remind/pull/1429), [#1476](https://github.com/remindmodel/remind/pull/1476)]

## [3.2.1] - 2023-07-13 (incomplete)

Expand Down
3 changes: 3 additions & 0 deletions core/postsolve.gms
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,9 @@ 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 2010 AND teAdj(te) AND
(v_costInvTeAdj.l(ttot,regi,te) eq 0 OR sum(te2rlf(te,rlf),vm_deltaCap.l(ttot,regi,te,rlf)) eq 0))
= 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
Expand Down

0 comments on commit b98ce3f

Please sign in to comment.