pwrs.core.dImis_dV#

pwrs.core.dImis_dV.dImis_dV(Sbus, Ybus, V, vcart=0)[source]#

Compute partial derivatives of current mismatch w.r.t. voltage.

Parameters:
  • Sbus (array_like) – Complex bus power injections.

  • Ybus (array_like or sparse matrix) – Bus admittance matrix.

  • V (array_like) – Complex bus voltage vector.

  • vcart (int, optional) – Coordinate selector. 0 uses polar derivatives with respect to voltage angle and magnitude, 1 uses cartesian derivatives with respect to real and imaginary voltage parts.

Returns:

(dImis_dV1, dImis_dV2) in MATLAB-compatible form.

Return type:

tuple