pwrs.core.order_radial#

pwrs.core.order_radial.order_radial(mpc)[source]#

Order a radial network for backward/forward sweep methods.

Mirrors MATPOWER’s order_radial helper. It derives bus and branch orderings for radial power flow algorithms, detects loops and disconnected branches, and stores the ordering metadata back into the case struct.

Parameters:
  • mpc (dict) – MATPOWER case struct.

  • nargout (int, optional) – MATLAB compatibility flag.

Returns:

Updated MATPOWER case struct with radial ordering metadata.

Return type:

dict