MATLAB: Warning: Matrix is close to singular or badly scaled ( simulink model with simscape blocks simpowersystems)

controlMATLABpower_electronics_controlsimpowersystemsSimscapeSimscape Electricalsimulink

I have my model having simpower systems generating the follwoing warnings. solutions are availalbe for matlab code but none for simulink model containing simscape blocks.
———————————————————————————————————-
Warning: Matrix is close to singular or badly scaled. Results may be inaccurate. RCOND = 1.667047e-18.
Warning: Matrix is close to singular or badly scaled. Results may be inaccurate. RCOND = 1.667047e-18.
———————————————————————————————————-
Thanks in Advance

Best Answer

Hello Sreeraj,
there is the chance you can get good results even with this warning, so you might be able to ignore it. The main issue is likely that you have an area where resistances are too low. I see this warning the most when using specialized power systems and having breakers in the system. In those cases, increasing the breaker resistance will make the error go away. If you have other components with very low resistance, you could also try increasing the resistance of them.
Regards,
Joel
Related Question