Dear Alireza SalimAmini

Thank you for your care and blessing. I think I have implemented this using 
runuopf(), a built-in function of matpower to do mixed unit commitment and OPF. 
In such cases where geneators are used to model shunt capacitors and reactors, 
just add a few generators whose real power generation Pg is zero and reactive 
power generation Qg set at a constant value. The Qmax and Qmin in generator 
data has to be identical with the set Qg. Notably, the Pmax and Pmin cannot be 
set to zero because runuopf() will merely deal with generators whose Pmin is 
greater than zero (see source codes of uopf() ). To get "shunt" generators 
involved as candidates of unit commitment programming only calls for Pmin and 
Pmax set at a very small number numerically, say, 1e-6 and 1e-5. This minor 
active power injection will hardly affect the power flow but can get "shunt" 
generators involved.




------------------ ???????? ------------------
??????:                                                                         
                                               "MATPOWER discussion forum"      
                                                                              
<[email protected]&gt;;
????????:&nbsp;2020??9??9??(??????) ????2:22
??????:&nbsp;"MATPOWER discussion forum"<[email protected]&gt;;

????:&nbsp;Re: optimal power flow with unit commitment using mixed integer 
programming



hi&nbsp;i wish u are healthy at this conditions( Covid19)
i think if you adjust Qmin and Qmax of capacitors at 'gen' matrix equal to 
6Mvar, it will help , and you can use status&nbsp;( it is a column in gen 
matrix as came below)&nbsp; &nbsp;of that capacitor a variable for reactive 
power balance.&nbsp;


'8 &nbsp;GEN_STATUS &nbsp;status, &gt; 0 - in service, <= 0 - out of service'



On Wed, Sep 9, 2020 at 6:34 AM yangyang <[email protected]&gt; wrote:

Dear all,
I am working on optimal power flow whose objective is the cost of generation 
plus the quadratic deviation of voltage magnitudes to 1.0.&nbsp; The special 
part of the optimization lies in it that it has to include shunt capacitors and 
reactors in this network apart from conventional generators, which can control 
reactive power and voltages. In this network, the capacitors and reactors are 
modelled as discrete constant reactive power loads, whose values are like 0, 
-6MVar, -12MVar, -18MVar, etc.&nbsp; I think a practical implementation is to 
take these shunt capacitors as a bunch of generators whose active power 
generation is set to 0 and reactive power generation set to constant values. 
Say, a chain of 6*6MVar shunt capacitors at one bus can be viewed as 6 
generators at this bus whose active gen is 0 and reactive gen is 6MVar. On my 
opinion, these shunt capacitor or reactor generators should not change their 
active and reactive generation in OPF but only decide which generators should 
be on, just like unit commitment, while other conventional generators will 
change their active and reactive generation continously as conventional OPF. I 
dont know if it is practical using matpower. Despite the miqps_matpower 
function and the new-released mp-opt-model, it seems that no one has done so 
ever. Would you please help me with it? Thank you for you kind patience and 
consideration.

Reply via email to