Dear Vukonic, Dear Dr.Zimmerman:
This code is about the "N-1" power flow calculation. The asker wants
to know how to save the result for each power calculation results. But he just
get the last result. The reason is that you need to use a 2-dimension matrix to
record the PF calculation results but you just use a vactor p to record the
result! I have provided the correct code as attachment, it is one picture. I
hope you are satisfied. And we can improve together by communicating! Best wish
for you! ------------------ Original ------------------ From: "Dragana Vukovic";<[email protected]>; Date: Fri, Jun 3, 2016 09:19 PM To: "[email protected]"<[email protected]>; Subject: Results structures for every tripped line Hello, dear Matpower community:) I am not quite sure if this is the corrent mailing address for asking questions about Matpower, please let me know. I am using Matpower to test contingencies on IEEE 30 bus system. The defined contingency in this case, is to turn line off. I´ve made a for loop to be able to go through every line, turn it off, run dc pf and then to turn it back on so that in next iteration there are no two lines turned off. This for loop is implemented inside contingency_testing function, which I will send as an attachement. I will also send main_program code as an attachement for better understanding. My question is how to save results from dc pf from every line turned off. Now, when I ran the code, I only get dc pf results when line 41 is turned off. Thank you in advance for reading this and please give me some direction or an idea concerning given problem. All the best, Dragana
procedure.png
Description: Binary data
