Tutorials

The tutorials in this section are long-form explanations of how to use Macro. They are intended to help you learn to complete full workflows with Macro, as opposed to being convenient references for specific tasks. Each step of the tutorial is written out in full, rather than linking to the relevant guides. Most also have Jupyter notebooks to make it easier to follow the tasks.

We currently have the following tutorials:

  • Tutorial 0: Getting Started: Shows you how to download, install, and test Macro.
  • Tutorial 1: Running Macro: Describes how to optimize an electricity grid, write the results, and plot them. It will then show you how to add an emission limit to the system and how to solve the model with Benders decomposition.
  • Tutorial 2: Multisector Modelling: Shows you how to add a hydrogen sector model to the electricity grid from the previous tutorial. You will then optimize the multisector system, and plot the results.
  • Tutorial 3: Macro Showcase: Takes a three-zone multisector energy system from CSV inputs to insights. It walks through the inputs and the graph Macro builds from them, solves the system with and without a CO₂ cap, and compares the results across sectors.

Contributing a tutorial

We welcome additional tutorials. If you have written one and think it would be useful to others, please consider submitting it for inclusion here by creating a pull request (PR). See the "How to contribute" page for more information on how to do so.