That is also a good idea and closer to reality because shunt capacitors and 
reactors will actually change the Ybus instead of performing as constant 
reactive power. But I dont know how to include the 6th column of bus as a 
variable and modify the objective function. Would you please share your code 
with me? Thank you for your kind consideration. Here is my code.




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

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



and how about bus matrix column&nbsp; 6 ?&nbsp;
&nbsp; &nbsp; " 6 &nbsp;BS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Bs, shunt 
susceptance (MVAr injected at V = 1.0 p.u.)"
but in this case you have to define an objective function and solve an 
optimization problem.&nbsp;
i used that for ieee 33 bus and the result was good.&nbsp;




On Wed, Sep 9, 2020 at 5:20 PM yangyang <[email protected]&gt; wrote:

Dear&nbsp;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.

Attachment: case30wind.m
Description: Binary data

Attachment: shunt_OPF.m
Description: Binary data

Reply via email to