Python for Power System Analysis (PyPSA)

Python for Power System Analysis (PyPSA) is a free software toolbox for simulating and optimizing investment and operation in modern power systems.

PyPSA includes models for conventional generators with unit commitment, variable wind and solar generation, storage units, coupling to other energy sectors, and mixed alternating and direct current networks. PyPSA is designed to scale well with large networks and long time series. PyPSA can calculate:

  • static power flow
  • security-constrained linear optimal power flow
  • total electricity/energy system least-cost investment optimization

Open-source available here.


Contact: tom.brown(at)

Source: Brown T, Hörsch J, and Schlachtberger D. PyPSA: Python for Power System Analysis. Journal of Open Research Software 2018;6(1).

Print Version