opf_current_balance_hess

opf_current_balance_hess(x, lambda, mpc, Ybus, mpopt)

opf_current_balance_hess() - Evaluates Hessian of current balance constraints.

D2G = OPF_CURRENT_BALANCE_HESS(X, LAMBDA, OM, YBUS, MPOPT)

Hessian evaluation function for AC real and imaginary current balance
constraints.

Inputs:
  X : optimization vector
  LAMBDA : column vector of Lagrange multipliers on real and imaginary
           current balance constraints
  MPC : MATPOWER case struct
  YBUS : bus admittance matrix
  MPOPT : MATPOWER options struct

Outputs:
  D2G : Hessian of current balance constraints.

Example:
    d2G = opf_current_balance_hess(x, lambda, mpc, Ybus, mpopt);

See also opf_current_balance_fcn().