batchsim
Offload simulations to run on a compute cluster
Description
runs a batch job on a single worker to simulate a model using the inputs specified in thesimJob
= batchsim(in
)SimulationInput
object,in
.
runs a batch job on the cluster identified by the cluster objectsimJob
= batchsim(myCluster
,in
)myCluster
. If a cluster profile is not specified,batchsim
uses a default cluster profile as set up in the parallel preferences. For more information, seeDiscover Clusters and Use Cluster Profiles(Parallel Computing Toolbox).
runs a batch job that simulates a model using the inputs specified in thesimJob
= batchsim(...,Name,Value
)SimulationInput
object and the options specified asName,Value
pair.
batchsim
offloads simulations to a compute cluster, enabling you to carry out other tasks while the batch job is processing, or close the client MATLAB®and access the batch job later. Use the'Pool'
argument to run simulations in parallel.
Thebatchsim
command uses the Parallel Computing Toolbox™ andMATLAB Parallel Server™licenses to run the simulations on compute cluster.batchsim
runs the simulations in serial if a parallel pool cannot be created. If Parallel Computing Toolbox license is not available,batchsim
errors out.
Examples
Input Arguments
Output Arguments
Extended Capabilities
Version History
Introduced in R2018b
See Also
Functions
parsim
|batchsim
|batch
(Parallel Computing Toolbox)|parcluster
(Parallel Computing Toolbox)|取消
|diary
|fetchOutputs
|listAutoAttachedFiles
|wait
|getSimulationJobs
Classes
Topics
- Comparison Between Multiple Simulation Workflows
- Running Multiple Simulations
- Batch Processing(Parallel Computing Toolbox)
- Job Monitor(Parallel Computing Toolbox)