For workflows that involve multiple parallel simulations and logging of
large data, you can create simulation sets using an array of
SimulationInput objects help you run multiple
simulation variants without changing your model. Arrays of
SimulationInput objects enable you to run multiple
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.
parsim with Parallel
Computing Toolbox also automates the creation of parallel pools, identifies file
dependencies, and manages build artifacts for Accelerator and Rapid
Accelerator simulations. The
parsim command run multiple
simulations in serial if Parallel
Computing Toolbox license is not available.
In addition, you can use
batchsim with Parallel
Computing Toolbox and MATLAB®
Distributed Computing Server™ licenses. When you use
simulations are offloaded onto a compute cluster. You can open a separate
MATLAB session to access the job and the results.
|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 SimulationInput object, in|
|Set block parameters to be used for a specific simulation through SimulationInput object, in|
|Set model parameters to be used for a specific simulation through SimulationInput object, in|
|Set initial state to be used for a specific simulation through SimulationInput object, in|
|Set external inputs for a simulation through SimulationInput object, in|
|Set variables for a simulation through SimulationInput object, in|
|Validate the contents of the SimulationInput object, in|
|Specify a MATLAB function to run before start of each simulation through SimulationInput object, in|
|Specify a MATLAB function to run after each simulation is complete through SimulationInput object, in|
|Monitor multiple simulations in one window|
|Get all Simulink.Simulation.Job objects from cluster|
Directly run multiple simulations from the
Example of multiple parallel simulations workflow.
Programmatically run model simulations in parallel.
Understand the similarities and differences between