You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mTEPES=ConcreteModel('Open Generation, Storage, and Transmission Operation and Expansion Planning Model with RES and ESS (openTEPES) - Version 4.18.16 - April 10, 2026')
43
-
print( 'Open Generation, Storage, and Transmission Operation and Expansion Planning Model with RES and ESS (openTEPES) - Version 4.18.16 - April 10, 2026', file=open(f'{_path}/openTEPES_version_{CaseName}.log','w'))
42
+
mTEPES=ConcreteModel('Open Generation, Storage, and Transmission Operation and Expansion Planning Model with RES and ESS (openTEPES) - Version 4.18.17RC - April 10, 2026')
43
+
print( 'Open Generation, Storage, and Transmission Operation and Expansion Planning Model with RES and ESS (openTEPES) - Version 4.18.17RC - April 10, 2026', file=open(f'{_path}/openTEPES_version_{CaseName}.log','w'))
Copy file name to clipboardExpand all lines: openTEPES/openTEPES_Main.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -660,7 +660,7 @@
660
660
# For more information on this, and how to apply and follow the GNU AGPL, see
661
661
# <https://www.gnu.org/licenses/>.
662
662
663
-
# Open Generation, Storage, and Transmission Operation and Expansion Planning Model with RES and ESS (openTEPES) - April 10, 2026
663
+
# Open Generation, Storage, and Transmission Operation and Expansion Planning Model with RES and ESS (openTEPES) - April 11, 2026
664
664
# simplicity and transparency in power systems planning
665
665
666
666
# Developed by
@@ -693,7 +693,7 @@
693
693
BLUE="\033[34m"
694
694
RESET="\033[0m"
695
695
696
-
print(GREEN+'Open Generation, Storage, and Transmission Operation and Expansion Planning Model with RES and ESS (openTEPES) - Version 4.18.16 - April 10, 2026'+RESET)
696
+
print(GREEN+'Open Generation, Storage, and Transmission Operation and Expansion Planning Model with RES and ESS (openTEPES) - Version 4.18.17RC - April 11, 2026'+RESET)
697
697
print(BLUE+'#### Academic research license - for non-commercial use only ####'+RESET+'\n')
698
698
699
699
parser=argparse.ArgumentParser(description='Introducing main parameters...')
ifmTEPES.pEmission[p,ar] ==math.inforsum(mTEPES.pEmissionRate[g] forginmTEPES.gifging2a[ar] and (p,g) inmTEPES.pg) ==0.0:
186
186
returnConstraint.Skip
187
-
returnOptModel.vTotalEmissionArea[p,sc,n,ar] == (mTEPES.pLoadLevelDuration[p,sc,n]() *1e-3* (sum(mTEPES.pEmissionRate[nr] *OptModel.vTotalOutput [p,sc,n,nr] fornrinmTEPES.nrifnring2a[ar] and (p,nr) inmTEPES.pnr) #1e-3 to change from tCO2/MWh to MtCO2/GWh
188
-
+sum(mTEPES.pEmissionRate[bo] *OptModel.vTotalOutputHeat[p,sc,n,bo] forboinmTEPES.boifboing2a[ar] and (p,bo) inmTEPES.pbo))) #1e-3 to change from tCO2/MWh to MtCO2/GWh
187
+
returnOptModel.vTotalEmissionArea[p,sc,n,ar] == (mTEPES.pLoadLevelDuration[p,sc,n]() *1e-3* (sum(mTEPES.pEmissionRate[nr] *OptModel.vTotalOutput [p,sc,n,nr] fornrinmTEPES.nrifnring2a[ar] and (p,nr) inmTEPES.pnr) #1e-3 to change from tCO2/MWh to MtCO2/GWh
188
+
+sum(mTEPES.pEmissionRate[bo] *OptModel.vTotalOutputHeat[p,sc,n,bo] forboinmTEPES.boifboing2a[ar] and (p,bo) inmTEPES.pbo))) #1e-3 to change from tCO2/MWh to MtCO2/GWh
189
189
setattr(OptModel, f'eTotalEmissionArea_{p}_{sc}_{st}', Constraint(mTEPES.n*mTEPES.ar, rule=eTotalEmissionArea, doc='area total emission [MtCO2 eq]'))
0 commit comments