Thank you so much!  That's exactly what I need!

On Wed, Oct 29, 2014 at 3:59 PM, Ray Zimmerman <[email protected]> wrote:

> Since case14 already has consecutively numbered buses starting at 1, you
> don’t need to worry about conversions to and from internal indexing.
>
> So, for the PTDF matrix …
>
>   mpc = loadcase('case14');
>   PTDF = makePTDF(mpc.baseMVA, mpc.bus, mpc.branch);
>
> For the B matrix …
>
>   [Bbus, Bf, Pbusinj, Pfinj] = makeBdc(mpc.baseMVA, mpc.bus, mpc.branch);
>
> Hope this helps,
>
>     Ray
>
>
> On Oct 29, 2014, at 12:11 PM, Song Tan <[email protected]> wrote:
>
> Hello All,
>   I am new to matpower and was wondering whether someone can give me some
> sample codes to get the DC power flow matrix of IEEE 14 system.
>
>   Specifically, what parameters I should pass to function makeBdc or
> makePTDF?  And how should I get those parameters from the
> loadcase('case14')?
>
>   I really appreciate any hints, thanks!
>
> Best,
>                  Song Tan
>
>
>

Reply via email to