Simscape model can't run by configuration solver but can run by local solver
조회 수: 2 (최근 30일)
이전 댓글 표시
need to use the Model Linearizer function in this model, So have to run by configuration solver.
I tried the suggestion to solve this problem, but it still can't run successfully.
댓글 수: 0
답변 (1개)
Avadhoot
2024년 1월 18일
Hi Chiang,
From you question I understand that you are facing an error in simulating your physical system using a configuration solver. And as you have used a model linearizer in the system, you have to use the configuration solver. This error is caused as the solver is unable to converge. This can happen due to many reasons. As your model runs perfectly using a local solver, it might be the case that the local solver is using a variable step solver. If the configuration solver is using a fixed step solver then it might throw such an error as fixed step solvers have limitations in accuracy and stability. You can try decreasing the step size to a very low value to fix this error.
Another cause of this error may be that the number of iterations could be insufficient to converge. You can try to increase the number of iterations to see if the model converges. Also check for the tolerance settings in the configuration solver and increase it to see if convergence is possible.
In summary, the error is caused as the local solvers are more flexible in handling the constraints and also focus on accuracy as they often are variable step solvers. Whereas the configuration solver has to take into account all the blocks in the model(even the non-Simscape ones) so it loses some flexibility in the process.
For more information about this issue, refer to a similar question below:
I hope it helps.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Simulation Setup에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!