Hi Sarmad,
I spent a few minutes looking at this, but not enough to come to a definitive
conclusion. However, it seems to me that the sensitivities computed from the
power flow assume fixed voltage magnitude at the PV buses, while the OPF
solution has no such assumption. Furthermore, the OPF solution does include
binding real and reactive power limits on generators, which also affect the
LMPs.
Ray
> On Apr 18, 2017, at 9:36 AM, Sarmad Hanif <[email protected]>
> wrote:
>
> Dear MATPOWER users,
>
> I have a question regarding MATPOWER's ACOPF calculations.
>
> I tried decomposing the nodal mismatch values from ACOPF of MATPOWER as the
> sum of energy + loss components (for the uncongested case).
>
> The procedure adopted was:
> 1) to perform ACOPF and obtain nodal mismatch.
> 2) use generation setpoints from ACOPF to run AC power flow and calculate
> loss sensitivities using get_losses function
>
> I am a bit confused, as per my understanding, without the congestion and
> nonbinding voltages, the only separation from the reference marginal cost is
> due to loss contribution of each node. So at the exact operating point of the
> grid (power flow with fixed generation from OPF), aren't the loss
> sensitivities the true representatives of loss contributions ?
> I have attached the example to show the approach and difference in MATPOWER's
> ACOPF with my manual decomposition.
>
> It will be great if I can have some help regarding it.
>
> Best,
> Sarmad
>
>
>
>
> <MWE.M><case33_Example.m>