pwrs.core.dSbr_dV#
- pwrs.core.dSbr_dV.dSbr_dV(branch, Yf, Yt, V, vcart=0)[source]#
Compute partial derivatives of branch power flows w.r.t. voltage.
- Parameters:
branch (ndarray) – Branch matrix.
Yf (array_like or sparse matrix) – Branch admittance matrices for the from and to ends.
Yt (array_like or sparse matrix) – Branch admittance matrices for the from and to ends.
V (array_like) – Complex bus voltage vector.
vcart (int, optional) – Coordinate selector.
0uses polar derivatives with respect to voltage angle and magnitude,1uses cartesian derivatives with respect to real and imaginary voltage parts.nargout (int, optional) – Number of outputs to emulate from the MATLAB interface.
- Returns:
(dSf_dV1, dSf_dV2, dSt_dV1, dSt_dV2, Sf, St)in MATLAB-compatible form.- Return type:
tuple