margcost
- margcost(gencost, Pg)
margcost()
- Computes marginal cost for generators at given output level.MARGINALCOST = MARGCOST(GENCOST, PG) computes marginal cost for generators given a matrix in gencost format and a column vector of generation levels. The return value has the same dimensions as PG. Each row of GENCOST is used to evaluate the cost at the points specified in the corresponding row of PG.