opf_hessfcn(x,
lmbda,
om,
Ybus,
Yf,
Yt,
ppopt,
il=None,
cost_mult=1.0)
| source code
|
Evaluates Hessian of Lagrangian for AC OPF.
Hessian evaluation function for AC optimal power flow, suitable for
use with pips.
Examples:
Lxx = opf_hessfcn(x, lmbda, om, Ybus, Yf, Yt, ppopt)
Lxx = opf_hessfcn(x, lmbda, om, Ybus, Yf, Yt, ppopt, il)
Lxx = opf_hessfcn(x, lmbda, om, Ybus, Yf, Yt, ppopt, il, cost_mult)
- Parameters:
x - optimization vector
lmbda - eqnonlin - Lagrange multipliers on power balance
equations. ineqnonlin - Kuhn-Tucker multipliers on
constrained branch flows.
om - OPF model object
Ybus - bus admittance matrix
Yf - admittance matrix for "from" end of constrained
branches
Yt - admittance matrix for "to" end of constrained branches
ppopt - PYPOWER options vector
il - (optional) vector of branch indices corresponding to branches
with flow limits (all others are assumed to be unconstrained).
The default is range(nl) (all branches).
Yf and Yt contain only the rows
corresponding to il .
cost_mult - (optional) Scale factor to be applied to the cost (default = 1).
- Returns:
- Hessian of the Lagrangian.
See Also:
opf_costfcn, opf_consfcn
- Authors:
-
Ray Zimmerman (PSERC Cornell),
Carlos E. Murillo-Sanchez (PSERC Cornell & Universidad
Autonoma de Manizales),
Richard Lincoln
|