what to do if we get Singularity error in Simscape model?

조회 수: 18 (최근 30일)
kintali narendra
kintali narendra 2016년 9월 7일
답변: kintali narendra 2016년 9월 21일
There may be a singularity in the solution. If not, try reducing the step size. Is the error which I am got which ran my model which contains both simulink and simscape models. plot(tout,xout) shows one of the parameters is increasing at drastic rate(don't know which parameter). Please help me to solve the issue.
Thanks in advance
.
  댓글 수: 1
Swarooph
Swarooph 2016년 9월 9일
This is a generic error that could arise due to a number of different things in your model. Refer to the documentation to see the best practices when modeling using Simscape. The best approach is incremental modeling. According to this, start with a relatively simple model. Simulate it, see if that works. Then add the 'next' small effect to make the model better. Simulate it, see if it works. Then add the next etc. You may decide to break down your model in smaller chunks so that each time when you add an effect you know what caused the issue rather than trying to fish for it in a large model. Some documentation links to help with these best practices:

댓글을 달려면 로그인하십시오.

채택된 답변

kintali narendra
kintali narendra 2016년 9월 21일
If we get a singularity error we need to add delay to the feedback loop, adding delay is not recommend sometimes so try adding transfer function equivalent to unit delay.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Troubleshooting에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by