1. Yes.
2. Yes. It is simply a sum of the y variables, but the y variables are 
constrained to lie above c(x).
3. Yes.

On Nov 10, 2023, at 4:32 AM, Ronald Cabaoig <[email protected]> wrote:

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.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

Reply via email to