StochasticPowerModels.jl is an extension package of PowerModels.jl for Stochastic Power System Optimization.
Note that development is ongoing, and changes can be breaking without notice. We plan to register the package once we feel comfortable with the state of the implementation.
- Stochastic Optimal Power Flow (SOPF) for AC and AC/DC grids with RES
- Risk-based SOPF for AC and AC/DC grids with RES
- Stochastic Optimal Transmission Switching (SOTS) for AC and AC/DC grids with RES
- Exact
- ACR
- IVR
For now, we only support Polynomial Chaos Expansion. We may add alternative stochastic optimization methods at a later stage.
- Matpower ".m" files, extended to include:
- stochastic germ:
mpc.sdata
, - stochastic bus data:
mpc.bus_sdata
, including:dst_id
,μ
,σ
,λvmin
andλvmax
, - stochastic gen data:
mpc.gen_sdata
, including:λpmin
,λpmax
,λqmin
andλqmax
, and - stochastic branch data:
mpc.branch_sdata
, including:λcmax
.
- stochastic germ:
For an example, the user is referred to /test/data/matpower/case5_spm.m
The latest stable release of StochasticPowerModels can be installed using the Julia package manager:
] add https://github.com/Electa-Git/StochasticPowerModels.jl.git
To test whether the package works, run:
] test StochasticPowerModels
- Tom Van Acker (@timmyfaraday) (Main Developer) , KU Leuven
- SOPF for AC grids, IVR formulation
- Kaan Yurtseven (@kaanyurtseven), KU Leuven
- SOPF for AC/DC grids with RES, IVR formulation
- Risk-based SOPF for AC/DC grids with RES, IVR formulation
- SOTS for AC/DC grids with RES, IVR formulation
- Arpan Koirala (@arpkoirala), KU Leuven
- SOPF for AC Grids, ACR formulation
- Frederik Geth (@frederikgeth), CSIRO
- SOPF for AC grids, reduced IVR formulation
If you find StochasticPowerModels useful in your work, we kindly request that you cite the following publications:
- Stochastic optimal power flow for hybrid AC/DC grids considering continuous non-Gaussian uncertainty
- Yurtseven, K., Ergun, H., & Van Hertem, D (2025, June). Security-Constrained Stochastic Optimal Power Flow For Hybrid AC/DC Grids Considering Non-Gaussian Uncertainty. In 2025 IEEE PowerTech. IEEE.
Presented on 30th June, 2025
This code is provided under a BSD license.