Re: How to fix generation in for loop?

2013-12-13 Thread Nirav Shah
I am working on a fuzzy logic program which reduces the tie-line power flow and frequency deviation. I have made line 4-5 a tie-line. What I'm trying to do right now is, I'm decreasing the load on bus 5 manually, and then I want to decrease the generation of gen-3 by for loop. I did find my that

Re: How to fix generation in for loop?

2013-12-13 Thread Shri
Pass the casestruct 'mpc' instead of the filename 'case92' to runpf runpf(mpc); What problem are you trying to solve by decreasing the line flow? Maybe we could suggest a better for what you are trying to do. Shri On Dec 13, 2013, at 11:25 AM, Nirav Shah wrote: > I have saved as case9 file wit

How to fix generation in for loop?

2013-12-13 Thread Nirav Shah
I have saved as case9 file with the new name case92. I am using this code to decrease my line flow of 4-5. For that I need to decrease the generation 3, but it's not decreasing with this code. Please help me. mpc= loadcase (case92) [MVAbase, bus, gen, branch, success, et]=runpf (case92) a=branch(