What's next
Roadmap
What we're planning to build and a selection of what was recently shipped. If you want to get involved, reach out to us or follow along in the repositories.
Stricter network validation
Catch inconsistent inputs for better and earlier user feedback.
New file format
A new network format, faster than today's netCDF, that loads data lazily, reads only what is needed and supports streaming.
Improved model scaling
Automatic scaling to improve the model's numerical conditioning, solver stability and speed.
Custom constraint interface
Define constraints and models in a text-based format, without the need for scripting.
Roundtrip Serialisation IO
Any network object can be saved and loaded back identically, with no state lost, including custom constraints, solver metadata and geospatial data.
Flow-based market coupling
Model zonal electricity markets with flow-based domains, as used in European market coupling.
Recourse investments
Allow certain investment variables to adjust per scenario as better information about uncertain conditions becomes available, extending recourse beyond dispatch decisions.
Endogenous learning curves
Technological learning modelled endogenously via piecewise-linear constraints, so costs fall with deployment.
Categorised components
Separate physical components (e.g. generators, lines) from shared properties (e.g. carriers) and allow custom-defined properties.
Unit commitment extensions and speed-up
An extended and more performant unit commitment formulation considering a wider set of operational constraints.
Non-uniform time resolution
Mix different snapshot resolutions per bus or carrier within a single model to save computation time.
Global sensitivity analysis
A new module for uncertainty quantification and global sensitivity analysis.
Interactive dashboard
Launch a local dashboard straight from PyPSA, powered by the PyPSA App, to explore, visualise and analyse networks with statistics, plots and interactive maps.
Piecewise-linear relationships
Piecewise-linear investment costs, marginal costs and efficiencies.
Maintenance scheduling
Schedule optimal maintenance windows for components (e.g. generators, links) with contiguous downtime blocks, partial outages, and multiple events in a year.
Process component
New multi-port Process component with explicit conversion rates.
Link & process time-delays
Weighted time-delays for Link and Process component outputs.
Temporal clustering
New n.cluster.temporal.* accessor to aggregate snapshots into representative periods.
Committable + extendable assets
Components can now be committable and capacity-extendable at the same time.
Secant transmission losses
New secant-based approximation of transmission losses with configurable tolerances, alongside the existing tangent method.
Overnight & FOM cost split
Specify overnight investment cost and fixed O&M separately and let PyPSA annuitise them at solve time, with dedicated cost statistics for reporting.
Stable release
PyPSA is now stable. Upgrades within 1.x won't break your code, and breaking changes wait for the next major version with deprecation warnings first.
Stochastic optimisation
Two-stage stochastic optimisation across weighted scenarios.
Interactive maps
n.explore() now returns PyDeck maps supporting all static-plot options, exportable to self-contained HTML.
xarray optimisation core
Optimisation model rebuilt on an xarray view that spans all dimensions at once, enabling cleaner problem formulation.
Directional MGA
Solve modelling-to-generate-alternatives along chosen directions in user-defined coordinate space, with a parallelised multi-direction sweep.
CVaR risk-averse mode
Conditional Value-at-Risk objective for risk-averse optimisation.
Interactive statistics plots
Interactive equivalent of every statistics plot via plotly.
NetworkCollection container
Experimental NetworkCollection holds many Network objects in one container for comparison.
Component class refactor
New component class layer moving component data off the Network object, easing future features.
Optimisation expressions
New n.optimize.expressions module builds constraint expressions with the same grouping and filtering as the statistics module.
Active component flag
New active attribute toggles assets in or out of optimisation, power flow and statistics as a global filter.
Interactive map exploration
n.explore() opens interactive folium/geopandas network maps.
HiGHS becomes default solver
The open-source HiGHS solver is now PyPSA's default.
Legacy LOPF removed
The old Pyomo and nomopyomo LOPF implementations were removed.
Network merging
New n.merge() (also n + m) combines the components and time series of two networks into one.
Geographic shapes component
New n.shapes component to attach geographic geometries to a network.
Modular capacity expansion
Discrete, modular (block-size) capacity expansion for components.
Rolling-horizon optimisation
Solve long time series in sequential overlapping windows.
Modelling to generate alternatives
MGA explores near-optimal solution spaces beyond the single least-cost result.
Spatial clustering accessor
Refactored clustering exposed on the network via n.cluster.* with consistent strategies and better performance.
Quadratic marginal costs
Quadratic marginal cost terms for generators, links, stores and storage units (needs a QP-capable solver).
Energy-balance statistics
Statistics module gains energy balances, dispatch, time series and market values per bus.
n.optimize() replaces n.lopf()
The legacy n.lopf() is deprecated in favour of the Linopy-based n.optimize(), with a migration guide.
Transmission losses
Piecewise-linear approximation of transmission losses in the LOPF.
Linearised unit commitment
Linear relaxation of unit commitment for faster large-scale solves.
Linopy optimisation backend
New n.optimize() built on Linopy — faster model build and a cleaner extra-functionality API.
Statistics module
New n.statistics module for system metrics like capex, opex, capacity and curtailment.
Hierarchical network clustering
Hierarchical agglomerative clustering (HAC) for spatial network aggregation.
Multi-period pathway optimisation
Investment optimisation across multiple periods/decades.
Custom objective functions
Pyomo-free LOPF gains custom objective terms via extra_functionality and parsed shadow prices.
Pyomo-free optimisation
In-house LOPF framework (pyomo=False) cutting memory use and solve time for large networks.
Distributed slack power flow
Non-linear power flow can spread the slack across many generators by dispatch or custom weights instead of a single slack bus.
Multi-output links
Links with multiple outputs at fixed ratios, e.g. CHP units producing both power and heat.
Line flow limits (s_max_pu)
New s_max_pu caps passive-branch flow as a share of rating — usable as an n-1 contingency factor or time-varying dynamic line rating.
Bulk component creation
New n.madd() adds many components at once, far faster than repeated n.add() calls.
HDF5 network I/O
Export and import whole networks as single HDF5 files via n.export_to_hdf5() / n.import_from_hdf5().
Global constraints (CO₂ limits)
New GlobalConstraint component for system-wide limits such as CO₂ emissions.
Unit commitment (MILP)
MILP unit commitment for generators: binary online status, minimum part loads, min up/down times, start-up and shut-down costs.
Generator ramp limits
Ramp-up and ramp-down rate limits implemented for all generators.
Faster cycle-flow LOPF
Mathematically-equivalent cycle-flow LOPF formulations solving up to 20× faster than the angle-based formulation.
Standard line & transformer types
Built-in pandapower-based standard types — set a type and length instead of computing electrical parameters by hand.
Overhauled transformer model
More accurate T-model equivalent circuit with discrete tap steps and consistent phase-shift handling.
Time-varying attributes
Any component attribute can be static or vary per snapshot, storing only the columns that change — the time-series foundation for the whole framework.
Store component
New fundamental Store component for energy storage, inheriting the carrier of its bus.
Sector-coupling models
Link-based models for CHP, heat pumps, resistive power-to-heat, power-to-gas and battery electric vehicles.
Link component
New controllable directed Link component — the primitive behind power-to-X and sector coupling.
Multi-energy carriers
Generic bus carrier attribute (heat, gas, …) replacing AC/DC-only buses, enabling multi-energy networks.
Security-constrained LOPF
N-1 security-constrained optimisation keeping the network feasible under single-element outages.
Power flow engine
Full non-linear Newton-Raphson AC power flow and fast linear power flow over the network — the analysis core PyPSA is named for.
First commit
The first commit of Python for Power System Analysis.