Skip to content

EnergyScope Python Libraryยค

This section provides a learning-oriented guide to the Python library that interfaces with the EnergyScope model. It includes hands-on tutorials and code examples to help you understand, modify, and extend the model in a programmatic way.

The tutorials are provided as Jupyter notebooks and cover essential tasks such as running the model, choosing datasets, running multiple scenarios, analyzing uncertainty, adding custom technologies, and exploring near-optimal alternatives.


๐Ÿ“˜ Tutorialsยค

  1. Basic Run โ€” Minimal working example to run the model.
  2. Choose Datasets โ€” Select and customize input datasets.
  3. Multiple Runs โ€” Automate batch simulations.
  4. Uncertainty Analysis โ€” Explore parameter sensitivity and scenario uncertainty.
  5. Add a New Technology โ€” Extend the model with custom technologies.
  6. Typical Days โ€” Generate typical days to represent seasonal variability.
  7. Basic Run with Pyomo โ€” Run the model using Pyomo instead of AMPL.
  8. Run using LCA โ€” Run the model with integrated life-cycle assessment metrics.
  9. Generate LCA metrics โ€” Generate sustainability metrics derived from life-cycle assessment.
  10. Explore Near-Optimal Designs with ORACLE โ€” Apply ORACLE (Turan, Moret & Bardow, 2026), a general method for any linear energy system model, to EnergyScope: map all designs that cost at most a few percent more than the optimum, with a guaranteed accuracy.

๐Ÿ“š Reference Documentationยค

These resources provide detailed descriptions of the mathematical and data structures that drive the EnergyScope model.