On Oct 15, 2012, at 1:01 PM, Evangelos Galinas <[email protected]> wrote:

<snip>
> If I had understood correctly from a previous example found here in the 
> mailing list I have to create these extra fields in the mpc struct namely
> 
> mpc.H
> 
> mpc.N
> 
> mpc.Cw 
> 
> in order to formulate eq 5.27. Correct?

Correct, and there is also mpc.fparm matrix as well. See the notes in section 
6.1.

> So If I'm using linear costs mpc.Cw needs to be 0, mpc.N has to have the 
> Voltage part (14, 41) zero and the Power part (14,14) non zero (1) only at 
> the elements 2,2 11,11 and 12,12 in order to refer to the power of the 
> specific generator. Am I right?

The simplest is probably to use an identity matrix for N and then put the 
linear coefficients in the appropriate elements of Cw, which should be ordered 
as first 41 elements are voltage angles, followed by 14 generator real power 
injections. However, since it is just a cost on Pg, you don't even have to use 
this mechanism. You can simply modify gencost accordingly.

> Assuming that I use a standard cost for curtailment, let's say c=0.18 ct/kwh, 
> at which elements of the H matrix should I have this c denoted. The same as 
> the power part of the N? and how I can denote that these cost must come from 
> a subtract from max P of the Pg?

Pmax is a constant, so adding a function of Pmax to the objective will not 
change the solution. The cost of curtailment simply shows up as a negative cost 
on Pg.

> Also, about static general penalty cost to the whole system I have to denote 
> a cost using Cw non zero right?

I'm not sure what you have in mind for "penalty costs for unfeasibility". The 
OPF problem does not allow feasibility violation. Which constraints do you want 
to replace with penalty functions?


-- 
Ray Zimmerman
Senior Research Associate
419A Warren Hall, Cornell University, Ithaca, NY 14853
phone: (607) 255-9645

Reply via email to