Skip to content

Commit

Permalink
removing duplication for the pm_capCumForeign definition from the opt…
Browse files Browse the repository at this point in the history
…imization module
  • Loading branch information
Renato-Rodrigues committed Sep 7, 2023
1 parent cb999ab commit b49317b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions modules/80_optimization/nash/not_used.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ pm_taxCO2eq, parameter, ???
pm_ttot_val, parameter, ???
pm_welf, parameter, ???
vm_dummyBudget, input, questionnaire
pm_capCumForeign, parameter, defined at module 22
1 change: 0 additions & 1 deletion modules/80_optimization/nash/presolve.gms
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
*ML+LB 20140107* update of climate externality (carbon market)
*LB* 20140506 update of climate externality (link to the climate module)
*AJS* TODO: this is non-optimal: in summing over regi2, we'd like to keep the last known optimal value. To achieve that, param0 should not be overwritten in core/presolve.gms - we'd have to make p80_repynoninfes an interface.
pm_capCumForeign(ttot,regi,teLearn)$((ttot.val ge 2005) and (pm_SolNonInfes(regi) eq 1)) = sum(regi2$((NOT sameas(regi,regi2))), pm_capCum0(ttot,regi2,teLearn));

pm_cumEff(ttot,regi, in)$(ttot.val ge 2005 and pm_SolNonInfes(regi) eq 1) = sum( regi2$(pm_SolNonInfes(regi2) eq 1), (pm_cesdata("2005",regi2,in,"eff") * vm_effGr.l(ttot,regi2,in))) - (pm_cesdata("2005",regi,in,"eff") * vm_effGr.l(ttot,regi,in)); !! TODO: take care of the case of infeasible solution

Expand Down

0 comments on commit b49317b

Please sign in to comment.