Manual Performance Optimization
Achieve faster simulation with your models by manually optimizing the model using one or more of these techniques. For more information, see How Optimization Techniques Improve Performance and Accuracy.
Tools
Simulink Profiler | Analyze distribution of simulation execution time among model components |
Functions
generateReport | Create report of data from profiling simulation run using Simulink Profiler (Since R2023a) |
sldiagnostics | Display diagnostic information of Simulink system |
Objects
Simulink.profiler.Data | Access profiling information created using Simulink Profiler (Since R2020a) |
Model Settings
Topics
- Troubleshoot and Speed Up Simulation Performance
Troubleshoot models and simulation settings to diagnose performance issues and speed up simulations.
- Speed Up Simulation
Techniques for improving simulation speed.
- Check and Improve Simulation Accuracy
How to interpret simulation accuracy and incorrect simulations.
- How Simulink Profiler Captures Performance Data
How the Simulink Profiler identifies parts of your model that slow down simulation.
- How Optimization Techniques Improve Performance and Accuracy
Use optimization techniques to understand model behavior and modify model settings to improve performance and accuracy.
- Modeling Techniques That Improve Performance
Approaches for improving model performance.
- Running Multiple Simulations
Run multiple simulations from the
parsim
andbatchsim
commands, and the Multiple Simulations panel in Simulink® Editor. - Understanding Total Time and Self Time in Profiler Reports
The Simulink Profiler displays the performance of the components of your model and their simulation phases.