Regarding your last question. You are correct. Unless you want an explicit cost 
on a newly added variable, there is no need to add any cost. The objective of 
minimizing the generation cost will still be valid, just constrained in new 
ways by your user-defined constraints and variables.

    Ray



> On Mar 22, 2019, at 9:57 PM, Jubeyer Rahman <[email protected]> wrote:
> 
> I am sorry, please ignore the first two questions.
> 
> On Fri, Mar 22, 2019 at 12:47 PM Jubeyer Rahman <[email protected] 
> <mailto:[email protected]>> wrote:
> Hi,
> 
> I was trying to understand the documentation for extending the OPF in section 
> 7, when I came across the code for adding reserves on page 86, I got kind of 
> confused regarding the addition of linear constraints. I have several 
> questions regarding that,
> 
> a. How to define the 'Pg_plus_R' thing which refers to equation 7.4, should I 
> write an equation using  the 'syms' of matlab and it's not an equation with 
> equal sign.
> 
> b. I don't see how this incorporation of reserve affect the real power 
> column(at least in the code snippet), can you explain how does it affect?  I 
> was expecting to see some line like mpc.gen(:,PG)=mpc.gen(:,PG)+r or 
> expecting something mpc.gen(:, Ramp_10)=r; but there is nothing similar there.
> 
> c. In case of incorporating some variables which may not explicitly affect 
> the objective function of OPF, how necessary is it to incorporate the cost in 
> that case. To be precise, if I want to vary the shunt susceptance which 
> affects the reactive power and might affect the real power, is it necessary 
> to add some cost function to the objective of OPF. I guess since the OPF 
> already takes care of real power cost, it is not necessary. Let me know if I 
> am thinking correctly.
> 
> Regards,
> Jubeyer 

Reply via email to