-
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 13 replies
-
|
Hi @cavassiGE, Thank you for your questions. Here is my attempt to answer them:
Yes, you should add a load (resp. generator) at every location where you expect an energy consumer (resp. producer) - i.e., the same locations in which you would have a load if you were to run a power flow calculation. In your case, if my assumption is correct, that that would be at the red nodes. However, you do not need to assign The rest of your setup seems to be OK. I hope this helps. Please let us know how it goes! |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for your answer! You are correct, the red nodes are where the voltage and active/reactive power is being measured. So having the loads here makes sense. I have now added the sym_load components, which naturally changed the output. But the results are still not looking very good. The error tolerance need to be minimum 2e-1 for the estimation to be able to run, which I believe is way higher than wanted. To give you as much context as possible, I'll share the file where I create the PowerGridModel object, as well as the config which is now slightly updated. I have tried tweaking some of the constants, but I'm afraid my physics knowledge are not good enough to know what a reasonable value is for most of them. I'll also share the results, but since the data used as input is classified, I've had to round/remove/modify some of the output values. But the overall picture is still the same. Not sure if these points are interesting, but some things to notice are:
I've added some TODOs in the code for things that I'm not sure about. Thank you again! |
Beta Was this translation helpful? Give feedback.
-
|
Changing the
using p.u gave me a Max deviation of 110
I tried doing the ID changes without reverting from 1. and got that there were Then I also tried changing the ID's with all the voltage sensors. with both p.u values and Volt. Volt gave me a max deviation of 1.7 |
Beta Was this translation helpful? Give feedback.
-
|
Hello again! @mgovers @figueroa1395 I'm still getting results that I find somewhat suspicious. There are clear improvements! For example, my residuals are much smaller, the estimated voltage looks accurate, and the max deviation is extremely small (could too small be bad?). However, I’m seeing values like: and which seem quite high to me. To make things easier to debug, I’ve extracted a minimal dataset. Everything can be find in my repository:
I've also included an interactive graph (graph.html) generated by the current configuration, which should make it much easier for you to see the values for different components (just hover over a node or edge). I've been playing around a lot with the parameters in One important question is whether I am constructing the Voltage and P/Q tables correctly. The voltage for each connection point is measured on three phases, like this: I take the mean of these three values and use it as the voltage for that connection point. For the P and Q values, I have data like this: First, I sum the current on each power flow. This gives me 4 different values. Then, I add a direction with this dictionary: Then I take the sum for the P's and Q's. I may be getting the direction wrong, but I've tried all the combinations, and the results does not differ too much. As mentioned earlier, can a too small max deviation mean something bad? I tried setting the error tolerance to You are still collaborators on my repository, so feel free to test it yourselves if that makes things easier. It's public in any case. |
Beta Was this translation helpful? Give feedback.
-
|
Hello @cavassiGE, we are a bit occupied at the moment, but we expect to take a look at this sometime next week. We'll let you know as soon as we have feedback. |
Beta Was this translation helpful? Give feedback.

Hi @cavassiGE,
Thank you for your questions. Here is my attempt to answer them:
Yes, you should add a load (resp. generator) at every location where you expect an energy consumer (resp. producer) - i.e., the same locations in which you would have a load if you were to run a power flow calculation. In your case, if my assumption is correct, that that would be at the red nodes.
However, you do not need to assign
p_specifiedandq_specified, as the power consumption will be calculated from the sensor measurements. The reason you need to specify the loads is so that the Power Grid Model knows wher…