pwrs.core.make_zpv#

pwrs.core.make_zpv.make_zpv(pv, nb, nl, f, Zb, Yd)[source]#

Build the PV sensitivity matrix for radial PF correction.

Mirrors MATPOWER’s make_zpv helper. It computes the matrix relating PV-bus reactive corrections to voltage changes for the radial backward/forward sweep methods.

Parameters:
  • pv (array_like) – One-based PV bus indices.

  • nb (int) – Number of buses.

  • nl (int) – Number of branches.

  • f (array_like) – One-based parent-bus indices for each branch.

  • Zb (array_like) – Branch series impedances.

  • Yd (array_like) – Bus shunt admittances.

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

Returns:

Complex PV sensitivity matrix.

Return type:

numpy.ndarray