opf_branch_flow_hess

opf_branch_flow_hess(x, lambda, mpc, Yf, Yt, il, mpopt)

opf_branch_flow_hess() - Evaluates Hessian of branch flow constraints.

D2H = OPF_BRANCH_FLOW_HESS(X, LAMBDA, OM, YF, YT, IL, MPOPT)

Hessian evaluation function for AC branch flow constraints.

Inputs:
  X : optimization vector
  LAMBDA : column vector of Kuhn-Tucker multipliers on constrained
           branch flows
  MPC : MATPOWER case struct
  YF : admittance matrix for "from" end of constrained branches
  YT : admittance matrix for "to" end of constrained branches
  IL : vector of branch indices corresponding to branches with
       flow limits (all others are assumed to be unconstrained).
       YF and YT contain only the rows corresponding to IL.
  MPOPT : MATPOWER options struct

Outputs:
  D2H : Hessian of AC branch flow constraints.

Example:
    d2H = opf_branch_flow_hess(x, lambda, mpc, Yf, Yt, il, mpopt);

See also opf_branch_flow_fcn().