There is no need to check. The slack bus active power will be adjusted to make 
the injections sum to zero. And the DC power flow in MATPOWER is a lossless 
approximation. That is, it assumes the losses are zero.

   Ray


> On Mar 28, 2018, at 2:28 PM, vikram reddy <[email protected]> wrote:
> 
> Hi,
> 
> I am working on a 20000 bus system and running a DC load flow. Now, the power 
> injection vector computed as 
> 
>   Pbus = real(makeSbus(baseMVA, bus, gen)) - Pbusinj - bus(:, GS) / baseMVA;
> 
> In general, the total of the power injection vector should be zero implying 
> generation=load+losses. MATPOWER does not do the checking if the total of 
> injection vector is zero. 
> 
> 1. Why does MATPOWER not check if the total of injection vector goes to zero? 
> Is it not important?
> 2.  What happens if the injection vector is not zero and running the DC load 
> flow? I assume the voltage angles thus obtained will have an error.
> 3. Assuming losses is the total sum of Pbus vector, how should the losses be 
> distributed?
> 
> Thanks,
> Vikram
>  
> 

Reply via email to