Table B-3 in the User's Manual (or help caseformat) describes the fields of the branch matrix. RATE_A is the limit used by runopf(). Please note that for an AC power flow model it is an MVA limit, and for DC power flow it is a MW limit. So that saturation percentage as you call it would be …
define_constants; if <AC power flow> saturation = sqrt(results.branch(:, PF).^2 + results.branch(:, PT).^2) ./ results.branch(:, RATE_A); else saturation = abs(results.branch(:, PF)) ./ results.branch(:, RATE_A); end I'm afraid I don't understand your 3rd question. -- Ray Zimmerman Senior Research Associate 419A Warren Hall, Cornell University, Ithaca, NY 14853 phone: (607) 255-9645 On Apr 3, 2013, at 1:18 AM, Yahook K <[email protected]> wrote: > Respected Sir, > > From mpc.branch, I can get the From bus injection and the To bus injection of > each branch. But how can I calculate the saturation percentage of the branch? > For example, the branch has a limit of 15 MW, and there are 5 MW flowing in > this branch. I think to calculate the saturation percentage we do 5/15=1/3 > > Another question is where to find the limit for each branch? > > The third question would be if I wanna set the branch saturation percentage > to 50%, 90% 120%, break. How can I do it? Can you give me some guidance? > > Please shed light on me. Thank you. > >
