Simulating the Model
You can simulate the dynamic behavior of your system and view the results as the simulation runs. To ensure simulation speed and accuracy, Simulink provides fixed-step and variable-step ODE solvers, a graphical debugger, and a model profiler.
Choosing a Solver
Solvers are numerical integration algorithms that compute the system dynamics over time using information contained in the model. Simulink provides solvers to support the simulation of a broad range of systems, including continuous-time (analog), discrete-time (digital), hybrid (mixed-signal), and multirate systems of any size.
Configuration Parameters dialog box showing the Solver pane.
These solvers can simulate stiff systems and systems with discontinuities. You can specify simulation options, including the type and properties of the solver, simulation start and stop times, and whether to load or save simulation data. You can also set optimization and diagnostic information. Different combinations of options can be saved with the model.
Running the Simulation
You can run your simulation interactively from the Simulink Editor or systematically from the MATLAB command line. The following simulation modes are available:
- Normal (the default), which interpretively simulates your model
- Accelerator, which increases simulation performance by creating and executing compiled target code but still provides the flexibility to change model parameters during simulation
- Rapid Accelerator, which can simulate models faster than Accelerator mode by creating an executable that can run outside Simulink on a second processing core
To reduce the time required to run multiple simulations, you can run those simulations in parallel on a multi-core computer or computer cluster.
Next: Analyzing Simulation Results