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® Parallel 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|
|Load variables from MAT-file into a Simulink.SimulationInput object, in|
|Get all Simulink.Simulation.Job objects from cluster|
|Monitor multiple simulations and visualize the simulation data|
Directly run multiple simulations from the
Example of multiple parallel simulations workflows.
Programmatically run model simulations in parallel.
Understand the similarities and differences between
Use the Simulation Manager to visualize the simulation data, analyze the simulation results and the simulation trends.