It appears you are using an older version of MATPOWER. Could you try it with 
the latest released version and see if you still get an error.

    Ray

> On Mar 1, 2015, at 3:46 PM, Bijay Hughes <[email protected]> wrote:
> 
> Hi All,
> 
> When I remove some branches in case5, two islands are formed. First island 
> with slack bus (bus_type 3) and second island with no slack bus. I want to 
> extract the second island extract_islands(mpc,2) and run power flow. It 
> doesn't work obviously because there is imbalance in load and supply due to 
> the lack of slack bus. However, I try to change the bus type of one of the 
> busses in second island to 3 to have the slack bus, but my power flow still 
> doesn't work. It gives me the following error message:
> 
> Subscript indices must either be real positive integers or logicals.
> 
> Error in ext2int (line 185)
>                 as = bs(n2i(mpc.areas(:, PRICE_REF_BUS)));
> 
> Error in runpf (line 130)
> mpc = ext2int(mpc);
> 
> Error in rough (line 12)
> results=runpf(ccr)
> 
> Am I missing something here? Does all islands need to have slack bus 
> (bus_type 3) to run power flow? Why does my island still not run power flow 
> even though I made one of the buses into the slack bus? Could anyone please 
> help me out?
> 
> Thanks,
> 
> Bijay

Reply via email to