pwrs.core.opf_vlim_hess#

pwrs.core.opf_vlim_hess.opf_vlim_hess(x, lambda_, mpc, idx, mpopt, nargout=1)[source]#

Return Hessian of cartesian voltage magnitude limit constraints.

Forms the Hessian of the Lagrangian contribution from the lower and upper voltage magnitude inequality constraints in the cartesian OPF formulation.

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

  • lambda (array_like) – Multipliers for the stacked lower and upper voltage magnitude constraints.

  • mpc (dict) – Internal MATPOWER case struct.

  • idx (array_like) – One-based indices of buses with active voltage magnitude limits.

  • mpopt (dict) – MATPOWER options struct.

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

Returns:

Hessian block for the voltage magnitude limit constraint contribution to the OPF Lagrangian.

Return type:

scipy.sparse.csc_matrix