Hi Gamze, I will share my limited knowledge on the topic. Maybe some other guys would like to add more details.
The contraints are treated in the file opf_consfcn.m. The lines with "flow_max" are interesting for you. As you can see, your constraint will be taken from the value "RATE_A" of your mpc.branch input matrix. So this is where you could put your maximum current, for each branch individually. You cannot impose a minimum current, if I see that correctly. You can also see, how the current is calculated afterwards, the mpopt(24) == 2 is checking that 'OPF_FLOW_LIM' is 2. Hope that helps. Best Regards, Patrick ________________________________________ Von: [email protected] [[email protected]]" im Auftrag von "Gamze Dogan [[email protected]] Gesendet: Mittwoch, 16. Juli 2014 09:03 An: [email protected] Betreff: OPF with current limit Hi, I want to implement the OPF with current limit of the branches, I did using the option 'OPF_FLOW_LIM',2 If I understand well, this will limit my current in all branches (exept one involving the slack bus) to 1 pu? Is this right? How can I modify it to have a limit at 1.2 pu? Then I wanted to know if this was the right way to calculate my current: Sf(d,1) = (results.branch(d, 14)/results.baseMVA) + 1j * (results.branch(d, 15)/results.baseMVA); Vf(d,1) = results.bus(results.branch(d,1), 8) * exp(1j * results.bus(results.branch(d,1), 9)*pi/180); If(d,1) = conj( Sf(d,1) / Vf(d,1) ); Thank you for your help; Gamze
