The losses are line losses, so they are naturally computed per line. If you
want to allocate the line losses to buses, there are multiple ways of doing
that. You will have to decide what criteria you want to use and then implement
it yourself.
Ray
> On Jan 28, 2015, at 6:17 AM, nivedita arunachalam
> <[email protected]> wrote:
>
> Dear Ray,
> The t_get losses file and the get_loss files calculate losses
> at each line. I need to calculate the losses for every bus what are the
> changes I need to do?
>
> On 21 Jan 2015 20:25, "nivedita arunachalam" <[email protected]
> <mailto:[email protected]>> wrote:
> Thank you very much Ray, that your reply is detailed. I will work with it and
> let you know the results.
>
> On 21 Jan 2015 20:20, "Ray Zimmerman" <[email protected]
> <mailto:[email protected]>> wrote:
> 1. The get_losses function itself is pretty clearly documented (see Section
> 9.2.4 in the User’s Manual
> <http://www.pserc.cornell.edu/matpower/manual.pdf>) so hopefully there’s no
> confusion there. The LSF calculations in t/t_get_losses.m are specific to the
> power flow, not the OPF, in that they assume fixed generator voltages and a
> specific slack bus, etc.
>
> 2. There should be no difference, simply that get_losses() is more convenient
> than pulling code out of printpf() to compute it yourself.
>
> 3. In t/t_get_losses.m I compute the loss sensitivities numerically, by doing
> small (epsilon) perturbations of the load at each bus and recording the
> corresponding proportional change in losses. That’s what a “sensitivity
> factor” means. Then I compare this LSF matrix computed by numerical
> perturbation with the one I computed analytically to test that the latter is
> correct.
>
> Ray
>
>
>> On Jan 20, 2015, at 12:22 PM, nivedita arunachalam
>> <[email protected] <mailto:[email protected]>> wrote:
>>
>> Dear Ray,
>> I have some doubts regarding the loss sensitivity factor
>> calculations you sent me.
>> 1. Is it for opf calculation alone?
>> 2. I work with normal runpf operations and I get power loss by calling them
>> from printpf (sum(real losses)). Then what is the difference in your get
>> loss file and direct values.
>> 3. Why do you use epsilon values in lsf caculation, what formula does it
>> represents?
>>
>> Kindly reply me...
>>
>