MATLAB Answers

Solver Change From Variable to Fixed Step : Transient initialization, solving for consistent states and modes, failed to converge. ...Nonlinear solver: Linear Algebra error. Failed to solve using iteration matrix.

115 views (last 30 days)
Sreeraj Arole
Sreeraj Arole on 27 Aug 2019
Answered: Steve Miller on 3 Aug 2020
Hello,
When Changed Sovler settings from Variable-step to Fixed-step for Code generation, Follwoing Error reports : Transient initialization, solving for consistent states and modes, failed to converge. Nonlinear solver: Linear Algebra error. Failed to solve using iteration matrix.
Model run fine with Variable-step solver settings. Can you please help me to dianose the issue
Thanks
Arole
  2 Comments

Sign in to comment.

Answers (1)

Steve Miller
Steve Miller on 3 Aug 2020
When you get this error message during simulation, try
  1. Ensure that you are using the local solver (for Simscape models)
  2. Making your step size smaller
  3. Increasing the number of nonlinear iterations
You should make sure your model runs well during variable-step simulation before attempting to run it with a fixed-step solver.

Products


Release

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by