Skip to content

Commit a255294

Browse files
committed
fix further bugs in beccs qtty target
1 parent b475eb9 commit a255294

File tree

4 files changed

+14
-19
lines changed

4 files changed

+14
-19
lines changed

main.gms

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1325,7 +1325,7 @@ $setGlobal cm_vehiclesSubsidies off !! def = off
13251325
*** cm_implicitQttyTarget to "2050.GLO.sub.s.FE.electricity 0.8". The p47_implicitQttyTargetTax parameter will contain the subsidy necessary to achieve that goal.
13261326
*** Enforce a subsidy (sub) that guarantees a minimum share (s) of electricity in final energy (FE.electricity) equal to 80% (0.8) from 2050 (2050) onward in all World (GLO) regions.
13271327
*** The p47_implicitQttyTargetTax parameter will contain the subsidy necessary to achieve that goal.
1328-
*** To limit CCS to 8 GtCO2 and BECCS to 5 GtCO2, use "2050.GLO.tax.t.CCS.all 8000, 2050.GLO.tax.t.CCS.biomass 5000"
1328+
*** To limit CCS to 8 GtCO2 and BECCS (only Pe2Se, not industry) to 5 GtCO2, use "2050.GLO.tax.t.CCS.all 8000, 2050.GLO.tax.t.CCS.biomass 5000"
13291329
$setGlobal cm_implicitQttyTarget off !! def = off
13301330
*** cm_loadFromGDX_implicitQttyTargetTax "load p47_implicitQttyTargetTax values from gdx for first iteration. Usefull for policy runs."
13311331
$setGlobal cm_loadFromGDX_implicitQttyTargetTax off !! def = off !! regexp = off|on

modules/47_regipol/regiCarbonPrice/equations.gms

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,22 @@ q47_implicitQttyTargetTax(t,regi)$(t.val ge max(2010,cm_startyear))..
1818
=e=
1919
sum((qttyTarget,qttyTargetGroup)$p47_implicitQttyTargetTax(t,regi,qttyTarget,qttyTargetGroup),
2020
p47_implicitQttyTargetTax(t,regi,qttyTarget,qttyTargetGroup) * (
21-
( sum(entyPe$energyQttyTargetANDGroup2enty(qttyTarget,qttyTargetGroup,entyPe), sum(pe2se(entyPe,entySe,te), vm_demPe.l(t,regi,entyPe,entySe,te)))
21+
( sum(entyPe$energyQttyTargetANDGroup2enty(qttyTarget,qttyTargetGroup,entyPe), sum(pe2se(entyPe,entySe,te), vm_demPe(t,regi,entyPe,entySe,te)))
2222
)$(sameas(qttyTarget,"PE"))
2323
+
24-
( sum(entySe$energyQttyTargetANDGroup2enty(qttyTarget,qttyTargetGroup,entySe), sum(se2fe(entySe,entyFe,te), vm_demSe.l(t,regi,entySe,entyFe,te)))
24+
( sum(entySe$energyQttyTargetANDGroup2enty(qttyTarget,qttyTargetGroup,entySe), sum(se2fe(entySe,entyFe,te), vm_demSe(t,regi,entySe,entyFe,te)))
2525
)$(sameas(qttyTarget,"SE"))
2626
+
2727
( sum(entySe$energyQttyTargetANDGroup2enty("FE",qttyTargetGroup,entySe), sum(se2fe(entySe,entyFe,te), sum((sector,emiMkt)$(entyFe2Sector(entyFe,sector) AND sector2emiMkt(sector,emiMkt)), vm_demFeSector.l(t,regi,entySe,entyFe,sector,emiMkt))))
2828
)$(sameas(qttyTarget,"FE") or sameas(qttyTarget,"FE_wo_b") or sameas(qttyTarget,"FE_wo_n_e") or sameas(qttyTarget,"FE_wo_b_wo_n_e"))
2929
+
30-
( sum(ccs2te(ccsCo2(enty),enty2,te), sum(teCCS2rlf(te,rlf),vm_co2CCS.l(t,regi,enty,enty2,te,rlf)))
30+
( sum(ccs2te(ccsCo2(enty),enty2,te), sum(teCCS2rlf(te,rlf),vm_co2CCS(t,regi,enty,enty2,te,rlf)))
3131
)$(sameas(qttyTarget,"CCS") AND sameas(qttyTargetGroup,"all"))
3232
+
33-
(( !! Supply side BECCS
34-
sum(emiBECCS2te(enty,enty2,te,enty3),vm_emiTeDetail.l(t,regi,enty,enty2,te,enty3))
35-
!! Industry BECCS (using biofuels in Industry with CCS)
36-
+ sum((emiMkt,entySe,secInd37,entyFe)$entySeBio(entySe), pm_IndstCO2Captured(t,regi,entySe,entyFe,secInd37,emiMkt))
37-
) * pm_share_CCS_CCO2(t,regi) )$(sameas(qttyTarget,"CCS") AND sameas(qttyTargetGroup,"biomass"))
33+
( !! only supply side BECCS
34+
sum(emiBECCS2te(enty,enty2,te,enty3),vm_emiTeDetail(t,regi,enty,enty2,te,enty3)
35+
* sum(teCCS2rlf(te,rlf), vm_co2CCS.l(t,regi,"cco2","ico2",te,rlf)) / (sum(teCCS2rlf(te,rlf), vm_co2capture.l(t,regi,"cco2","ico2",te,rlf))+sm_eps)) !! pm_share_CCS_CCO2
36+
)$(sameas(qttyTarget,"CCS") AND sameas(qttyTargetGroup,"biomass"))
3837
)
3938
)
4039
-

modules/47_regipol/regiCarbonPrice/postsolve.gms

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -497,11 +497,9 @@ p47_implicitQttyTargetTax0(t,regi) =
497497
( sum(ccs2te(ccsCo2(enty),enty2,te), sum(teCCS2rlf(te,rlf),vm_co2CCS.l(t,regi,enty,enty2,te,rlf)))
498498
)$(sameas(qttyTarget,"CCS") AND sameas(qttyTargetGroup,"all"))
499499
+
500-
(( !! Supply side BECCS
501-
sum(emiBECCS2te(enty,enty2,te,enty3),vm_emiTeDetail.l(t,regi,enty,enty2,te,enty3))
502-
!! Industry BECCS (using biofuels in Industry with CCS)
503-
+ sum((emiMkt,entySe,secInd37,entyFe)$entySeBio(entySe), pm_IndstCO2Captured(t,regi,entySe,entyFe,secInd37,emiMkt))
504-
) * pm_share_CCS_CCO2(t,regi) )$(sameas(qttyTarget,"CCS") AND sameas(qttyTargetGroup,"biomass"))
500+
( !! Only supply side BECCS
501+
sum(emiBECCS2te(enty,enty2,te,enty3),vm_emiTeDetail.l(t,regi,enty,enty2,te,enty3)) * pm_share_CCS_CCO2(t,regi)
502+
)$(sameas(qttyTarget,"CCS") AND sameas(qttyTargetGroup,"biomass"))
505503
)
506504
)
507505
;

modules/47_regipol/regiCarbonPrice/presolve.gms

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,9 @@ p47_implicitQttyTargetTax0(t,regi) =
5151
( sum(ccs2te(ccsCo2(enty),enty2,te), sum(teCCS2rlf(te,rlf),vm_co2CCS.l(t,regi,enty,enty2,te,rlf)))
5252
)$(sameas(qttyTarget,"CCS") AND sameas(qttyTargetGroup,"all"))
5353
+
54-
(( !! Supply side BECCS
55-
sum(emiBECCS2te(enty,enty2,te,enty3),vm_emiTeDetail.l(t,regi,enty,enty2,te,enty3))
56-
!! Industry BECCS (using biofuels in Industry with CCS)
57-
+ sum((emiMkt,entySe,secInd37,entyFe)$entySeBio(entySe), pm_IndstCO2Captured(t,regi,entySe,entyFe,secInd37,emiMkt))
58-
) * pm_share_CCS_CCO2(t,regi) )$(sameas(qttyTarget,"CCS") AND sameas(qttyTargetGroup,"biomass"))
54+
( !! Only supply side BECCS
55+
sum(emiBECCS2te(enty,enty2,te,enty3),vm_emiTeDetail.l(t,regi,enty,enty2,te,enty3)) * pm_share_CCS_CCO2(t,regi)
56+
)$(sameas(qttyTarget,"CCS") AND sameas(qttyTargetGroup,"biomass"))
5957
)
6058
)
6159
;

0 commit comments

Comments
 (0)