Simscape model can't run by configuration solver but can run by local solver

2 ビュー (過去 30 日間)
Chiang
Chiang 2022 年 5 月 28 日
回答済み: Avadhoot 2024 年 1 月 18 日
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.

回答 (1 件)

Avadhoot
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.

カテゴリ

Help Center および File ExchangeSimulation Setup についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by