Hi Dominic, Yes, it can be done, but you will need to introduce some new variables, say fp and fn, to represent the positive and negative components of the branch flows. Then you can construct the constraints you want on those variables, rather than directly on the flows themselves (the p_i from (7.6) in the User’s Manual <http://www.pserc.cornell.edu/matpower/docs/MATPOWER-manual-5.1.pdf>) as is done by the current implementation.
You will need additional constraints to define these new variables, such as … fp – fn = p_i(theta) fp >= 0 fn >= 0 With zero cost on fp and fn, it’s still possible that both would be positive at the same time for flows where your constraints aren’t binding. It shouldn’t really affect anything, but if it bothers you, you could add a very tiny cost to them. Ray > On May 4, 2015, at 11:21 AM, Hewes, Dominic <[email protected]> wrote: > > Dear Matpower Community, > > The ‚Interface Flow Limits‘ extension allows me to limit the sum of all line > flows between two areas to within a set range. However, I want to instead > apply two limits – one to the sum of the positive flows, and one to the > negative flows. For example, whilst the sum of the flow between area 1 and > area 2 can be set as 1200MW using the existing iflims extension, I want to > ensure that the flow from area 1 to area 2 = 1400MW and the flow from area 2 > to area 1 = 200MW. My question is the following: is it possible using user > defined constraints to achieve my aim in matpower? > > I would need to apply one constraint to the sum of positive flows from area 1 > to 2, whilst applying another constraint to the sum of negative flows from > area 1 to 2 – but I cannot work out how to write this as a matpower > constraint. Any help with this problem would be appreciated. > > Regards, > > Dom
