pwrs.core.opf_veq_hess#
- pwrs.core.opf_veq_hess.opf_veq_hess(x, lambda_, mpc, idx, mpopt, nargout=1)[source]#
Return Hessian of cartesian fixed-voltage equality constraints.
Forms the Hessian of the Lagrangian contribution from the fixed-voltage magnitude equality constraints in the cartesian OPF formulation.
- Parameters:
x (sequence of array_like) – Cartesian voltage state blocks
(Vr, Vi).lambda (array_like) – Multipliers for the fixed-voltage equality constraints.
mpc (dict) – Internal MATPOWER case struct.
idx (array_like) – One-based indices of buses with fixed voltage magnitude constraints.
mpopt (dict) – MATPOWER options struct.
nargout (int, optional) – MATLAB compatibility flag controlling how many outputs are returned.
- Returns:
Hessian block for the fixed-voltage equality constraint contribution to the OPF Lagrangian.
- Return type:
scipy.sparse.csc_matrix