By the looks of it, you may have bad data (or a badly formed) input case. You seem to have one or more NaNs somewhere in bus columns PD, QD, or BUS_TYPE.
Note that, unless you have wacky errors of this kind, the technique mentioned in FAQ 5 (v) should always give you at least some solutions, at some scaling. -- Jose L. Marin Grupo AIA 2017-03-31 16:49 GMT+02:00 Gamze Dogan <gamgam...@hotmail.com>: > Hi, > > I am running a load flow on a very large grid but I cannot make it > converge using Matpower. > I have looked at all the discussions on the subject and test various > things but neither the pf nor the opf function converge. > > When I look at the results (of the non-convergent solution) I see that > Matpower could not compute the following values which are assigned to NaN: > > - Voltage magnitude and angle of buses > > - Reactive power output of generators > > - Reactive and active power injections at node from and to of each line > > When I tried to check the scaling factor (using the solution proposed on > the website:5. Why does MATPOWER power flow not converge? > <http://www.pserc.cornell.edu/matpower/#pfconvergence> v.) I got the > following error: > > ??? NaN's cannot be converted to logicals. > > Error in ==> printpf at 177 > nzld = find((bus(:, PD) | bus(:, QD)) & bus(:, BUS_TYPE) ~= NONE); > > Error in ==> runcpf at 392 > printpf(results, 1, mpopt); > > > Given this, if anybody has an idea of what I should try, check, change to > make the computation converge? > > Thank you, > > Gamze > >