| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → SimElectronics |
| Contents | Index |
| Learn more about SimElectronics |
| On this page… |
|---|
To trade off accuracy and simulation time, adjust one or more of the following parameters:
Relative tolerance (in the Configuration Parameters block dialog box)
Absolute tolerance (in the Configuration Parameters block dialog box)
Max step size (in the Configuration Parameters block dialog box)
Constraint Residual Tolerance (in the Solver Configuration block dialog box)
In most cases, the default tolerance values produce accurate results without sacrificing unnecessary simulation time. The parameter value that is most likely to be inappropriate for your simulation is Max step size, because the default value, auto, depends on the simulation start and stop times rather than on the amount by which the signals are changing during the simulation. If you are concerned about the solver's missing significant behavior, change the parameter to prevent the solver from taking too large a step.
The Simulink documentation describes the following parameters in more detail and provides tips on how to adjust them:
The Solver Configuration block reference page in the Simscape documentation explains when to adjust the Constraint Residual Tolerance parameter value.
![]() | Selecting a Solver | Avoiding Simulation Issues | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |