Skip to content

Commit

Permalink
Merge pull request remindmodel#1258 from tabeado/deltaCap_for_capCum
Browse files Browse the repository at this point in the history
remove deltaCap time split for vm_capCum
  • Loading branch information
tabeado committed Jan 12, 2024
2 parents f43a105 + 754e3ca commit 2646a08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions core/equations.gms
Original file line number Diff line number Diff line change
Expand Up @@ -373,8 +373,7 @@ qm_deltaCapCumNet(ttot,regi,teLearn)$(ord(ttot) lt card(ttot) AND pm_ttot_val(tt
vm_capCum(ttot+1,regi,teLearn)
=e=
sum(te2rlf(teLearn,rlf),
(pm_ts(ttot) / 2 * vm_deltaCap(ttot,regi,teLearn,rlf)) + (pm_ts(ttot+1) / 2 * vm_deltaCap(ttot+1,regi,teLearn,rlf))
)
pm_ts(ttot+1)* vm_deltaCap(ttot+1,regi,teLearn,rlf))
+
vm_capCum(ttot,regi,teLearn);

Expand Down
4 changes: 1 addition & 3 deletions modules/22_subsidizeLearning/globallyOptimal/presolve.gms
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ display pm_capCumForeign;
* calculate marginal benefit of spillovers in each region. This expression for the subsidy can be derived analytically.
loop(regi$(pm_SolNonInfes(regi) eq 1),
p22_marginalCapcumBenefit(ttot,regi,teLearn) =
pm_ts(ttot)/2 * (abs(qm_deltaCapCumNet.m(ttot,regi,teLearn)) / max(abs(qm_budget.m(ttot,regi)),1E-9))
+ pm_ts(ttot)/2 * (abs(qm_deltaCapCumNet.m(ttot -1,regi,teLearn)) / max(abs(qm_budget.m(ttot,regi)),1E-9))

pm_ts(ttot) * (abs(qm_deltaCapCumNet.m(ttot,regi,teLearn)) / max(abs(qm_budget.m(ttot,regi)),1E-9))
);


Expand Down

0 comments on commit 2646a08

Please sign in to comment.