Simscape model can't run by configuration solver but can run by local solver
2 views (last 30 days)
Show older comments
need to use the Model Linearizer function in this model, So have to run by configuration solver.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1013710/image.png)
I tried the suggestion to solve this problem, but it still can't run successfully.
0 Comments
Answers (1)
Avadhoot
on 18 Jan 2024
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 Comments
See Also
Categories
Find more on Configure Simulation Conditions in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!