You can turn off the warning with ...
warning('off', 'MATLAB:nearlySingularMatrix');
--
Ray Zimmerman
Senior Research Associate
211 Warren Hall, Cornell University, Ithaca, NY 14853
phone: (607) 255-9645
On Mar 2, 2011, at 8:29 PM, Kai Zou wrote:
> Dear Sir,
>
> I used MATPOWER function 'runopf' to solve some opf problems and I found that
> the MATLAB always shows the warning as indicated below when the MATPOWER
> cannot find a feasible solution (which means some constraints are violated
> and accordingly result.success=0).
>
> Warning: Matrix is close to singular or badly scaled.
> Results may be inaccurate. RCOND = 4.287473e-029.
> > In mips at 392
> In mipsopf_solver at 134
> In opf at 507
> In runopf at 73
>
> Can you advise me some possible solutions to avoid such warning?
>
> Thanks
>