opf_power_balance_hess

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

opf_power_balance_hess() - Evaluates Hessian of power balance constraints.

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

Hessian evaluation function for AC active and reactive power balance
constraints.

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

Outputs:
  D2G : Hessian of power balance constraints.

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

See also opf_power_balance_fcn().