pwrs.core.radial_pf#
- pwrs.core.radial_pf.radial_pf(mpc, mpopt=None)[source]#
Solve a power flow using a backward-forward sweep method.
- Parameters:
mpc (dict) – MATPOWER case dict using internal bus numbering.
mpopt (MatpowerConfig or dict, optional) – MATPOWER options configuration. A legacy dictionary is accepted at the compatibility boundary. It can be used to select the radial solver algorithm, output options, termination tolerances and related settings.
- Returns:
(mpc, success, iterations)wherempcis the updated results dict,successis a success flag anditerationsis the number of sweep iterations performed.- Return type:
tuple
Notes
This routine supports only radial networks. It orders the case for the sweep solution, dispatches to the selected radial algorithm, then maps the solved results back to the original bus and branch ordering.
See also
caseformat,loadcase,mpoption