pwrs.core.d2Ibr_dV2#
- pwrs.core.d2Ibr_dV2.d2Ibr_dV2(Ybr, V, mu, vcart=0, nargout=1)[source]#
Return 2nd derivatives of complex branch currents.
Computes the Hessian blocks of
mu' * Ibr(V)for current flow expressions formed from the branch admittance matrixYbr.- Parameters:
Ybr (sparse matrix) – Branch admittance matrix for the corresponding terminal.
V (array_like) – Complex bus voltage vector.
mu (array_like) – Multiplier vector for the selected branch current equations.
vcart (int or bool, optional) – Voltage coordinate flag. Use polar coordinates when false and cartesian coordinates when true.
nargout (int, optional) – MATLAB compatibility flag controlling how many Hessian blocks are returned.
- Returns:
Hessian blocks
(H11, H12, H21, H22)for the selected voltage coordinate system, or justH11whennargout == 1.- Return type:
scipy.sparse.csc_matrix or tuple of scipy.sparse.csc_matrix