Module idx_cost
source code
Defines constants for named column indices to gencost matrix.
Some examples of usage, after defining the constants using the line
above, are:
start = gencost[3, STARTUP] # get startup cost of generator 4
gencost[2, [MODEL, NCOST:COST+2]] = [POLYNOMIAL, 2, 30, 0]
# set the cost of generator 2 to a linear function COST = 30 * Pg
The index, name and meaning of each column of the gencost matrix is
given below:
columns 1-5
-
MODEL
cost model, 1 - piecewise linear, 2 -
polynomial
-
STARTUP
startup cost in US dollars
-
SHUTDOWN
shutdown cost in US dollars
-
NCOST
number of cost coefficients to follow for
polynomial cost function, or number of data points for piecewise
linear
-
COST
1st column of cost parameters cost data
defining total cost function For polynomial cost (highest order coeff
first):
e.g. cn, ..., c1, c0
where the polynomial is c0 + c1*P + ... + cn*P^n
For
piecewise linear cost:
x0, y0, x1, y1, x2, y2, ...
where x0 < x1 < x2 < ...
and the points
(x0,y0), (x1,y1), (x2,y2), ...
are the end- and
break-points of the total cost function.
additional constants, used to assign/compare values in the
MODEL
column
-
PW_LINEAR
piecewise linear generator cost model
-
POLYNOMIAL
polynomial generator cost model
- Authors:
-
Ray Zimmerman (PSERC Cornell),
Richard Lincoln
|
PW_LINEAR = 1
|
|
POLYNOMIAL = 2
|
|
MODEL = 0
|
|
STARTUP = 1
|
|
SHUTDOWN = 2
|
|
NCOST = 3
|
|
COST = 4
|
|
__package__ = None
|