-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Transformer taps and phases #16
base: master
Are you sure you want to change the base?
Conversation
First, thank you very much for this contribution and I'm sorry for the extremely long delay in responding. 😜 😞 It seems like a very straightforward implementation. Nice job! 👍 There are a few changes I would like to see before merging, which is always to be expected. I'll start with some higher level comments.
And, a few smaller items.
Finally, everything here is up for discussion, so don't be shy if you have alternative ideas. And please don't hesitate to ask if you have any questions, either here for things specific to this pull request or on MATPOWER-DEV-L for more general MATPOWER development help questions. |
1534cca
to
c35c670
Compare
Also, before doing any more commits to this branch, make sure you force pull the latest to your local repo since I just rebased it on the current MATPOWER master branch so that it's up-to-date. |
c35c670
to
a39ff9b
Compare
Rebased again. |
Hi Gorazd and Dr.Ray Zimmerman I implemented first equation in my code. It is important to calculate sensitivity in form of matrix calculation in MatPower. |
> > Four files added, one of them is an example file. > Call taps_and_phases_analysis to execute. > > Files sensit_to_taps_and_phases and shiftJac_taps_phases must be > included in the same folder or in path.
> > Four files added, one of them is an example file. > Call taps_and_phases_analysis to execute. > > Files sensit_to_taps_and_phases and shiftJac_taps_phases must be > included in the same folder or in path.
a39ff9b
to
f75d11b
Compare
Rebased again on latest master (release 7.0). |
This branch has the transformer calculations included. Run taps_and_phases_analysis() or run the example file provided. For use the three files, apart from the example file must be in same folder or included in path. The method of modelling is based on power system sensitivity of regulation criterion (line active powers and voltage amplitudes) to taps and phases that are to be calculated. Newton's method is used to find the zero of the control mismatch vector.
It is made so that MatPower provided files for the Ybus and the Jacobi matrix are used. The function sensit_to_taps_and_phases is not optimized for systems with a very large number of transformers, because I figured nobody will want to calculate more than a few hundred transformers. If the performance is slow or it runs out of memory, the function should be adapted so that sparse() is used on matrices and that inputting the values into the matrices is done only once, and not in a for loop as it is now.