HelloI have a question regarding state estimation code in matpower. As you
know, the system measurements include line power flows, voltage magnitudes and
bus power injections. Bus in the code which is provided in matpower (in se
folder located under the extras), there is only the possibility to define
generated active and reactive power measurement at each bus instead of bus
power injection measurements. So consider we are going to define an active
power injection measurement(P_inj) of - 20 MW for a PQ bus with active power
consumption(P_L) of 18 MW. How should this measurement be define? Should I
define a generator in this bus and set the generated power(P_G) of this bus to
be -2 MW (Because P_inj= P_G-P_L)? Is that true?My other question is about the
concept of state estimation. If we have measurements of the sysytem and then
replace measurement of a part of the system such that the new measurements in
this part of the system obey KCL and KVL, does the value of residual reduce?