SlideShare a Scribd company logo
2
Most read
4
Most read
12
Most read
xl2times – updates and
notebook-based workflow
Summer 2025 Semi-Annual ETSAP Meeting
June 10th, Nara, Japan
Olexandr Balyk and Siddhart Krishna
Talk Overview
• Recap
• Updates
• Usage for Scenario analysis
• Jupyter Notebooks demo
• Getting started / contributing
Quick Facts
• Outcome of the ETSAP R&D Project “Open source TIMES Excel
Reader” (finished April 2024)
• Based on times-excel-reader started at Microsoft
• Enables the use of Excel-based TIMES models in a non-
interactive, automatable, and reproducible manner
• Available via pip and on https://github.com/etsap-times/xl2times
Functionality Overview
Model files
xl2times
ts.dd
milestonyr.dd
output.dd
• Generation of GAMS input files
• Automated comparison with
“ground truth” (e.g. to assess
interpretation accuracy of
existing models)
• Generation of textual
representation of model data
in Excel files (used by the
TIMES-NZ team)
Development Approach
• Automated regression testing
on DemoS 01-12, TIM and
TIMES-NZ models (with every
pull request).
• Manual testing on proprietary
or really big models (e.g.
TIMES-GEO)
• Over 90% accuracy on most
tested models
Recent updates
• ca. 70 PR since the initial release:
https://github.com/etsap-TIMES/xl2times/compare/v0.1.0...v0.3.0
• Improvements include:
• Performance (e.g. allowed including TIMES-NZ in benchmarks)
• Accuracy (e.g. all DemoS are ~100%)
• Usability (e.g. different level of logging)
• Special in version 0.3.0:
• Exposure of TimesModel object (e.g. for using in Jupyter Notebooks)
• Separation of the *.dd creation step (e.g. can be supplemented by other
formats)
xl2times for scenario analysis
TimesModel for Scenario Analysis
Use xl2times to
generate
TimesModel from
*.xlsx files
Make changes to
TimesModel in a
python script or
Jupyter Notebook
Generate *.dd
files, run GAMS
and analyse the
results
Demonstration
• A basic example is available with xl2times:
https://github.com/etsap-
TIMES/xl2times/blob/main/tests/notebook-demo.ipynb
• It can be experimented with on Google colab:
https://colab.research.google.com/github/etsap-
TIMES/xl2times/blob/main/tests/notebook-demo.ipynb
• Or locally…
Possible API extensions
• Ease of use
• TimesModel.add_process()
• TimesModel.add_commodity()
• TimesModel.add_attribute()
• TimesModel.add_constraint()
• …
• The method could include
• Default values
• Data input feedback
• Validation
Benefits
• Create a transparent record of the steps necessary to carry out a
specific scenario analysis
• No clatter added to the core model
• Easy to reproduce the analysis (incl. with a different model version)
• Documentation of the analysis
• Allow users without familiarity of Veda to carry out the analysis
• Leverage preexisting skills in python and/or pandas
• Start working on the study right away (i.e. without learning new software)
• Orchestrate (programmatically) advanced scenario analysis
Getting started / Contributing / Ideas
• Bulk test your TIMES model (guide available on
https://xl2times.readthedocs.io)
• Submit issues to https://github.com/etsap-TIMES/xl2times/issues
• Open PRs with code improvements
• Contribute ideas / code to develop the API
• Develop a package for passing various TIMES settings/options
• Try it with LLMs (e.g. https://github.com/cdgaete/pypsa-mcp)
• Reach out!
Questions?
Thank you!

More Related Content

PDF
Generalized levelized cost as a metric for explaining model behavior of linea...
PDF
TIMES2JuMP project status report; Learnings on the feasibility of Migrating T...
PDF
A platform for open, realistic, and reproducible benchmarking of solvers on e...
PDF
Integrated Long-Term Planning and Short-Term Reliability Assessment for High-...
PDF
IEA H2 TCP Task 52 Hydrogen for Iron and Steel Making
PDF
TIMES-NZ 3.0: automating upstream data processing for an open-source workflow
PDF
Towards a national integrated energy, land and food system model for long ter...
PDF
Development of an AFOLU module for TIMES
Generalized levelized cost as a metric for explaining model behavior of linea...
TIMES2JuMP project status report; Learnings on the feasibility of Migrating T...
A platform for open, realistic, and reproducible benchmarking of solvers on e...
Integrated Long-Term Planning and Short-Term Reliability Assessment for High-...
IEA H2 TCP Task 52 Hydrogen for Iron and Steel Making
TIMES-NZ 3.0: automating upstream data processing for an open-source workflow
Towards a national integrated energy, land and food system model for long ter...
Development of an AFOLU module for TIMES

More from IEA-ETSAP (20)

PDF
The plant-level decarbonization pathways and mitigation cost of global oil re...
PDF
Near-optimal solutions for long-term energy planning facing the possible crit...
PDF
Integrated TIMES-E3ME-PLEXOS-DASMOD Modelling Framework for Assessing The Cze...
PDF
Does myopic foresight modeling better capture the real-world energy transitio...
PDF
Liberating energy models from modelers Amit Kanudia
PDF
The potential role of alternative fuels in the decarbonization of hard-to-aba...
PDF
Future Low-Carbon Hydrogen Production Technology Penetration with Aspen-Based...
PDF
Integrating Detailed Petrochemical Processes in Global Energy System Models f...
PDF
Are Heavy-Duty Vehicles at a Crossroads? A Real Options and Innovation Diffus...
PDF
An Assessment of the Impact of Electrification for Integration of Offshore Wi...
PDF
Role of Carbon Pricing and Emissions Constraint Pathways for India’s Net-Zero...
PDF
Implications of Party Politics for Future Energy System Scenarios in Norway
PDF
Modelling pathways, shaping climate policy: Lessons from the TIMES-Ireland Model
PDF
Pakistan Integrated Energy Plan (iE-Plan)
PDF
Application of extended the theory of planned behavior on renewable energy in...
PDF
Impact of integrating societal factors on the accuracy of optimization-based ...
PDF
Developing an Integrated TIMES-CGE-PLEXOS Framework for Assessing Taiwan’s En...
PDF
Welcome to ETSAP Summer Workshop 2025, Prof. Brian Ó Gallachóir
PDF
How do we successfully translate energy systems modelling results into energy...
PDF
Supporting municipalities with modeled based policy support - When to provide...
The plant-level decarbonization pathways and mitigation cost of global oil re...
Near-optimal solutions for long-term energy planning facing the possible crit...
Integrated TIMES-E3ME-PLEXOS-DASMOD Modelling Framework for Assessing The Cze...
Does myopic foresight modeling better capture the real-world energy transitio...
Liberating energy models from modelers Amit Kanudia
The potential role of alternative fuels in the decarbonization of hard-to-aba...
Future Low-Carbon Hydrogen Production Technology Penetration with Aspen-Based...
Integrating Detailed Petrochemical Processes in Global Energy System Models f...
Are Heavy-Duty Vehicles at a Crossroads? A Real Options and Innovation Diffus...
An Assessment of the Impact of Electrification for Integration of Offshore Wi...
Role of Carbon Pricing and Emissions Constraint Pathways for India’s Net-Zero...
Implications of Party Politics for Future Energy System Scenarios in Norway
Modelling pathways, shaping climate policy: Lessons from the TIMES-Ireland Model
Pakistan Integrated Energy Plan (iE-Plan)
Application of extended the theory of planned behavior on renewable energy in...
Impact of integrating societal factors on the accuracy of optimization-based ...
Developing an Integrated TIMES-CGE-PLEXOS Framework for Assessing Taiwan’s En...
Welcome to ETSAP Summer Workshop 2025, Prof. Brian Ó Gallachóir
How do we successfully translate energy systems modelling results into energy...
Supporting municipalities with modeled based policy support - When to provide...
Ad

Recently uploaded (20)

PDF
Effective factors on adoption of intercropping and it’s role on development o...
PPTX
Disposal Of Wastes.pptx according to community medicine
PPTX
Biodiversity.udfnfndrijfreniufrnsiufnriufrenfuiernfuire
DOCX
Epoxy Coated Steel Bolted Tanks for Beverage Wastewater Storage Manages Liqui...
PPTX
Arugula. Crop used for medical plant in kurdistant
PPTX
Conformity-and-Deviance module 7 ucsp grade 12
PDF
Effect of anthropisation and revegetation efforts on soil bacterial community...
DOCX
Epoxy Coated Steel Bolted Tanks for Crude Oil Large-Scale Raw Oil Containment...
PPTX
Green and Cream Aesthetic Group Project Presentation.pptx
PPTX
Plant_Cell_Presentation.pptx.com learning purpose
PPTX
UN Environmental Inventory User Training 2021.pptx
PPTX
structure and components of Environment.pptx
DOCX
D-360 ESG Series: Sustainable Hospitality Strategies for a Greener Future
PDF
Insitu conservation seminar , national park ,enthobotanical significance
PDF
Lecture 2 investigation of renal diseses.pdf
PDF
The Role of Non-Legal Advocates in Fighting Social Injustice.pdf
PDF
2-Reqerwsrhfdfsfgtdrttddjdiuiversion 2.pdf
PDF
Effects of rice-husk biochar and aluminum sulfate application on rice grain q...
PPTX
Making GREEN and Sustainable Urban Spaces
PDF
Global Natural Disasters in H1 2025 by Beinsure
Effective factors on adoption of intercropping and it’s role on development o...
Disposal Of Wastes.pptx according to community medicine
Biodiversity.udfnfndrijfreniufrnsiufnriufrenfuiernfuire
Epoxy Coated Steel Bolted Tanks for Beverage Wastewater Storage Manages Liqui...
Arugula. Crop used for medical plant in kurdistant
Conformity-and-Deviance module 7 ucsp grade 12
Effect of anthropisation and revegetation efforts on soil bacterial community...
Epoxy Coated Steel Bolted Tanks for Crude Oil Large-Scale Raw Oil Containment...
Green and Cream Aesthetic Group Project Presentation.pptx
Plant_Cell_Presentation.pptx.com learning purpose
UN Environmental Inventory User Training 2021.pptx
structure and components of Environment.pptx
D-360 ESG Series: Sustainable Hospitality Strategies for a Greener Future
Insitu conservation seminar , national park ,enthobotanical significance
Lecture 2 investigation of renal diseses.pdf
The Role of Non-Legal Advocates in Fighting Social Injustice.pdf
2-Reqerwsrhfdfsfgtdrttddjdiuiversion 2.pdf
Effects of rice-husk biochar and aluminum sulfate application on rice grain q...
Making GREEN and Sustainable Urban Spaces
Global Natural Disasters in H1 2025 by Beinsure
Ad

xl2times: progress update & a proof-of-concept interactive notebook-based workflow

  • 1. xl2times – updates and notebook-based workflow Summer 2025 Semi-Annual ETSAP Meeting June 10th, Nara, Japan Olexandr Balyk and Siddhart Krishna
  • 2. Talk Overview • Recap • Updates • Usage for Scenario analysis • Jupyter Notebooks demo • Getting started / contributing
  • 3. Quick Facts • Outcome of the ETSAP R&D Project “Open source TIMES Excel Reader” (finished April 2024) • Based on times-excel-reader started at Microsoft • Enables the use of Excel-based TIMES models in a non- interactive, automatable, and reproducible manner • Available via pip and on https://github.com/etsap-times/xl2times
  • 4. Functionality Overview Model files xl2times ts.dd milestonyr.dd output.dd • Generation of GAMS input files • Automated comparison with “ground truth” (e.g. to assess interpretation accuracy of existing models) • Generation of textual representation of model data in Excel files (used by the TIMES-NZ team)
  • 5. Development Approach • Automated regression testing on DemoS 01-12, TIM and TIMES-NZ models (with every pull request). • Manual testing on proprietary or really big models (e.g. TIMES-GEO) • Over 90% accuracy on most tested models
  • 6. Recent updates • ca. 70 PR since the initial release: https://github.com/etsap-TIMES/xl2times/compare/v0.1.0...v0.3.0 • Improvements include: • Performance (e.g. allowed including TIMES-NZ in benchmarks) • Accuracy (e.g. all DemoS are ~100%) • Usability (e.g. different level of logging) • Special in version 0.3.0: • Exposure of TimesModel object (e.g. for using in Jupyter Notebooks) • Separation of the *.dd creation step (e.g. can be supplemented by other formats)
  • 8. TimesModel for Scenario Analysis Use xl2times to generate TimesModel from *.xlsx files Make changes to TimesModel in a python script or Jupyter Notebook Generate *.dd files, run GAMS and analyse the results
  • 9. Demonstration • A basic example is available with xl2times: https://github.com/etsap- TIMES/xl2times/blob/main/tests/notebook-demo.ipynb • It can be experimented with on Google colab: https://colab.research.google.com/github/etsap- TIMES/xl2times/blob/main/tests/notebook-demo.ipynb • Or locally…
  • 10. Possible API extensions • Ease of use • TimesModel.add_process() • TimesModel.add_commodity() • TimesModel.add_attribute() • TimesModel.add_constraint() • … • The method could include • Default values • Data input feedback • Validation
  • 11. Benefits • Create a transparent record of the steps necessary to carry out a specific scenario analysis • No clatter added to the core model • Easy to reproduce the analysis (incl. with a different model version) • Documentation of the analysis • Allow users without familiarity of Veda to carry out the analysis • Leverage preexisting skills in python and/or pandas • Start working on the study right away (i.e. without learning new software) • Orchestrate (programmatically) advanced scenario analysis
  • 12. Getting started / Contributing / Ideas • Bulk test your TIMES model (guide available on https://xl2times.readthedocs.io) • Submit issues to https://github.com/etsap-TIMES/xl2times/issues • Open PRs with code improvements • Contribute ideas / code to develop the API • Develop a package for passing various TIMES settings/options • Try it with LLMs (e.g. https://github.com/cdgaete/pypsa-mcp) • Reach out!