pwrs.core.find_islands#

pwrs.core.find_islands.find_islands_full(mpc)[source]#

Return (groups, isolated) with explicit Python semantics.

pwrs.core.find_islands.find_islands_list(mpc)[source]#

Return only the list of connected bus groups.

pwrs.core.find_islands.find_islands(mpc, *, nargout=None)[source]#

Find electrical islands in a MATPOWER case.

Builds the active-branch incidence matrix for the case and uses connected_components to identify connected bus groups and, when requested, isolated buses.

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

  • nargout (int, optional) – MATLAB compatibility flag controlling whether isolated buses are also returned.

Returns:

List of island bus groups, and optionally isolated bus indices.

Return type:

list or tuple