During simulation, SimMechanics™ employs a Simulink® global solver to determine the configuration of a model as a function of time. You can select the best solver for your application from a list of solvers that Simulink provides. Simulation parameters include the numerical step used to progress through the simulation and the solver tolerance values. Adjust the parameters to optimize speed and accuracy of the simulation.
For solver selection and parameter specification, see:
To select a global solver for your model:
On the Simulink menu bar, click Simulation > Model Configuration Parameters.
On the Tree View pane, select Solver.
In Solver Options, click Type and
For best performance, select
Click Solver and select the appropriate
solver for your application. The default solver is
To modify the global solver parameters for your model:
In the Solver options pane of the Model Configuration Parameters window, enter the desired values for step size and tolerance parameters.
Reducing the values of the step size and tolerance parameters enhances simulation accuracy, but decreases simulation speed. Adjust the parameters to obtain an optimal trade-off between simulation speed and accuracy.