Offload simulations to run on a compute cluster
runs a batch job on a single worker to simulate a model using the inputs specified in the
simJob
= batchsim(in
)SimulationInput
object, in
.
runs a batch job on the cluster identified by the cluster object
simJob
= 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, see Discover Clusters and Use Cluster Profiles (Parallel Computing Toolbox).
runs a batch job that simulates a model using the inputs specified in the simJob
= batchsim(...,Name,Value
)SimulationInput
object and the options specified as
Name,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.
The batchsim
command uses the Parallel Computing Toolbox™ and MATLAB
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.
batchsim
| cancel
| diary
| fetchOutputs
| getSimulationJobs
| listAutoAttachedFiles
| parsim
| wait
| batch
(Parallel Computing Toolbox) | parcluster
(Parallel Computing Toolbox)