Skip to content

Walkthroughs

James Dunkerley edited this page Dec 3, 2026 · 17 revisions

In short

  • Each walkthrough builds one of PyPSA's examples in Conductor's UI, starting from an empty project, and solves it.
  • Each lists the files it uses, ready to download, and ends with its key learnings.
  • New to the terms? See the Glossary.
  • What got in the way is filed as an issue labelled walkthrough. See Findings.

The walkthroughs

Walkthrough Models What you learn
Quickstart 1 Two-zone market with a congested line and quadratic costs Why prices differ between zones, and what congestion rent is
Quickstart 2 Three-zone market with linear and AC power flow How power splits over lines, and what losses and voltages an AC power flow adds
Quickstart 3 Solar and battery sizing for a data centre over 8,760 hours How a model sizes solar and storage against buying from the grid
Capacity expansion, single node Wind, solar, battery and hydrogen for one node over 2,920 3-hour timesteps Why a renewable system needs both daily and seasonal storage, and how snapshot weightings shrink a model
Capacity expansion, three nodes Three Australian regions in three stages: renewables, storage, HVDC What storage and transmission each save, and how to read a constraint's dual
Unit commitment Coal and gas on one bus in 9 cases: part load, up and down times, start-up and shut-down costs, ramp limits, rolling horizon How on/off limits on power plants raise the cost, and what a rolling horizon is

How they were built

  • Every step was done in the UI. Nothing was imported as a .nc file, and no API call was used.
  • Capacity expansion: a scratch script cut the upstream series files to every third row before upload, and merged the two header rows of one file. The pages say why.
  • Unit commitment: every series was typed into the UI.
  • Costs: with no cost calculator, a capital cost of several parts is summed by hand, or entered as PyPSA's overnight_cost, discount_rate and lifetime.
  • Custom statistics are Visualisation charts with a written formula, read from Show data.

Findings

Each finding is a GitHub issue labelled walkthrough:

What worked well

Building a network

  • Add in a panel… adds several components of one type at once, with Separate values for fields that differ by row.
  • Import CSV… adds generators with different values in one step.
  • Network menu → Make a copy… copies components and series, so a case that differs in a few cells is a copy and a few edits.

Series

  • The time axis can be read straight from the series CSV, and Weight by spacing sets the weightings.
  • A series can be loaded from a CSV in the Add panel, or typed cell by cell in the series panel.
  • Import a sheet matches CSV columns to components by name and loads many series at once.

Constraints and statistics

  • Built-in statistics, such as congestion rent, capex, opex and start-up opex, are grid columns under Columns → Statistics.
  • Each constraint shows its dual after the run.
  • The Visualisation tab charts dispatch by carrier, investment cost and any written formula, with a data table under Show data.

Running

  • The Solve dialog's Method runs a power flow: Fix optimal dispatch, then Power flow, gives an AC power flow, losses and voltages included.
  • A solved version can be solved again with other options, such as a MIP gap, without a copy of the network.
  • The solver log shows the MIP gap reached HiGHS ("tolerance: 50%").

Clone this wiki locally