Your case file has 1165 generators, but only 3 generator costs. You need to
either remove the gencost matrix or update it to be consistent with the gen
matrix.
--
Ray Zimmerman
Senior Research Associate
211 Warren Hall, Cornell University, Ithaca, NY 14853
phone: (607) 255-9645
On Sep 13, 2010, at 9:45 AM, Xiening wrote:
> Dear all,
>
> When I use matpower4.0b4 to calculate the power flow of a large-scale power
> system (the studied case is attached FYI) and save the results in a
> specified file, a bunch of error messages occur:
>
> %======================================
>>> runpf('caseS1',mpoption,'caseS1_sol_NR.m')
> ??? Error using ==> subsref
> Index exceeds matrix dimensions.
>
> Error in ==> get_reorder at 50
> B = subsref(A, s);
>
> Error in ==> ext2int at 350
> v = get_reorder(val, b+(1:n), dim);
>
> Error in ==> ext2int at 325
> mpc.(field) = ext2int(mpc, mpc.(field), ordering, dim);
>
> Error in ==> ext2int at 291
> mpc = ext2int(mpc, 'gencost', ordering);
>
> Error in ==> runpf at 131
> mpc = ext2int(mpc);
> %======================================
>
> There are no problems when I do the tests with other cases.
>
> Besides, if I run the same case with the same command on the platform of
> matpower3.2, everything is OK.
>
> I would be greatly appreciated if anyone can help me get over this.
>
> Best regards,
>
> Ning Xie
> <caseS1.m>