pwrs.core.opf_branch_ang_hess#

pwrs.core.opf_branch_ang_hess.opf_branch_ang_hess(x, lambda_, Aang, lang, uang, nargout=1)[source]#

Return Hessian of branch angle difference constraints.

Forms the Hessian of the Lagrangian contribution from the branch angle-difference inequality constraints for the cartesian-voltage OPF formulation.

Parameters:
  • x (sequence of array_like) – Cartesian voltage state blocks (Vr, Vi).

  • lambda (array_like) – Multipliers for the stacked lower and upper angle-difference constraints.

  • Aang (sparse matrix) – Linear operator mapping voltage angles to branch angle differences.

  • lang (array_like) – Lower angle-difference limits.

  • uang (array_like) – Upper angle-difference limits.

  • nargout (int, optional) – MATLAB compatibility flag controlling how many outputs are returned.

Returns:

Hessian block for the branch angle-difference constraint contribution to the OPF Lagrangian.

Return type:

scipy.sparse.csc_matrix