Run Multiple Simulations
batchsimfunction, or the Multiple Simulations panel in Simulink®
For workflows that involve multiple parallel simulations and logging of
large data, you can use the command line API for
batchsim commands, or run the simulations with the
Multiple Simulations panel in the Simulink Editor.
With a Parallel Computing Toolbox™ license, you can use the
parsim function to run the
simulations in parallel. The function distributes multiple simulations to
parallel workers to speed up overall simulation time. Using the
parsim function with
Parallel Computing Toolbox allows you to automate the creation of parallel pools,
identifies file dependencies, and manages build artifacts for accelerator
and rapid accelerator simulations. The
run multiple simulations in serial if Parallel Computing Toolbox license is not available.
In addition, you can use the
batchsim function with Parallel Computing Toolbox and MATLAB®
Parallel Server™ licenses. When you use the
function, simulations are offloaded onto a compute cluster. You can open a
separate MATLAB session to access the job and the results.
To get started, see Running Multiple Simulations and Run Parallel Simulations for a Thermal Model of a House Using parsim.
|Offload simulations to run on a compute cluster|
|Simulate dynamic system multiple times in parallel or serial|
|Apply changes to the model specified through a |
|Set block parameters to be used for a specific
simulation through |
|Set model parameters to be used for a specific
simulation through |
|Set external inputs for a simulation through |
|Set variables for a simulation through
|Validate the contents of the |
|Specify a MATLAB function to run before start of each simulation through
| Specify a MATLAB function to run after each simulation is complete through
|Load variables from MAT-file into a |
|Get all |
|View the contents of the |
|Variables in |
|Block parameters in |
| Create |
| Execute |
- Running Multiple Simulations
Run multiple simulations from the
batchsimcommands, and the Multiple Simulations panel in Simulink Editor.
- Run Parallel Simulations for a Thermal Model of a House Using parsim
Simulink.SimulationInputobject to run multiple parallel simulations command line workflow.
- Run Parallel Simulations
Programmatically run model simulations in parallel.
- Configure and Run Simulations with Multiple Simulations Panel
Learn about the Multiple Simulations panel in the Simulink Editor.
- Comparison Between Multiple Simulation Workflows
Understand the similarities and differences between
- Analyze Results Using Simulation Manager
Use the Simulation Manager to visualize simulation data, analyze simulation results and trends.