Package pypower :: Module polycost
[hide private]
[frames] | no frames]

Module polycost

source code

Evaluates polynomial generator cost & derivatives.

Functions [hide private]
 
polycost(gencost, Pg, der=0)
Evaluates polynomial generator cost & derivatives.
source code
Variables [hide private]
  __package__ = 'pypower'
Function Details [hide private]

polycost(gencost, Pg, der=0)

source code 

Evaluates polynomial generator cost & derivatives.

f = polycost(gencost, Pg) returns the vector of costs evaluated at Pg

df = polycost(gencost, Pg, 1) returns the vector of first derivatives of costs evaluated at Pg

d2f = polycost(gencost, Pg, 2) returns the vector of second derivatives of costs evaluated at Pg

gencost must contain only polynomial costs Pg is in MW, not p.u. (works for Qg too)

Authors:
Ray Zimmerman (PSERC Cornell), Richard Lincoln