Skip to content
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

Fix problem in state estimation #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aldalahmeh
Copy link

In test_se.m file solves problem 6.6 in the book "Computational Methods for Electric Power Systems"
by Mariesa Crow, which seems to be the first edition of the book. In the 2nd edition the problem's number
changed to 9. Since the solution is not available, I tried using the code on example 6.17,
which is a 3-bus system similar to problem 9 previously mentioned. However, the code is hardwired
for problem 9 and needs to be changed in several places. For example, real and reactive power demands
at bus 3 (P3, Q3) are not defiend as measurements, so they need to be added. Consequently,
the files:
test_se.m
run_se.m
doSE.m
outputsesoln.m

should be modified to include the new parameters, which is simple to do.

Unfortunately, just accommodating the new parameters in the code does not yield the same intermediate
calus in the solution steps of example 6.17. This is because the derivative matrix (H) has
some wrong values. This is traced back to computing the complex power matrix S.

As such, I created a new function to compute it (cmptSmat.m). So, the code is expanded to accommodate any sets of measurements. A test file "test_se_Ex_6_17.m" is provided that solves example 6.17 in the above 2nd edit of the book. The file shows the difference in computing H between the original, which is edited to allow more measurements, and the modified code. The modified code produced results that coincide with the solution of example 6.17 in the book. I can provide snapshots of example 6.17 solution upon request, since I cannot upload them here.

It seems that there is a bug in computing the S matrix that affects the
compulation of the derivative matrix H. As, such a new function has
been developed to compute S. Moreover, the code is hardwired to solve
the problem 6.7 in the book "Computational Methods for Electric Power
Systems" by Mariesa Crow, 1st edition. In particular, it only accepts
the measurements in that problem. So, the code is expanded to
accommodate any sets of measurements. A test file "test_se_Ex_6_17.m"
is provided that solves example 6.17 in the above 2nd edit of the book.
The file shows the difference in computing H between the original,
which is edited to allow more measurements, and the modified code.
The modified code produced results that coincide with the solution of
example 6.17 in the book.
@rdzman
Copy link
Member

rdzman commented Apr 18, 2024

Since the se directory is a subrepo here in matpower-extras, I've moved this to the master repo. Let's take the discussion to MATPOWER/mx-se#1.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants