Dear MATPOWER team, I'd like to clarify some things about the piecewise linear generator cost function.
*Question 1*: Suppose I have a cost function as shown: [image: image.png] Is the following the right gencost for the graph above: mpc.gencost = [1 0 0 3 0 0 20 400 30 750]; ? *Question 2*: >From Section 6.4.1 of the MATPOWER manual v7.1, it is mentioned that a helper variable y based on the piecewise linear cost function c(x) is being formed. Is the cost function c(x) being removed and totally replaced by the helper variable y in the objective function F (that is, F = y1+y2+y3+... instead of F = c1(x)+c2(x)+c3(x)+...)? *Question 3*: Is it okay to concurrently use piecewise linear costs for some generators and polynomial costs for the other generators? Cheers, Ronald
