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 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 options specified using one or more
name-value arguments.
The batchsim
function 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
function requires Parallel Computing Toolbox™ and MATLAB
Parallel Server™ licenses to run the simulations on compute cluster. The
batchsim
function runs the simulations in serial if a parallel pool
cannot be created. If Parallel Computing Toolbox license is not available, the batchsim
function issues an
error.
Examples
Input Arguments
Output Arguments
Extended Capabilities
Version History
Introduced in R2018b
See Also
Functions
parsim
|batch
(Parallel Computing Toolbox) |parcluster
(Parallel Computing Toolbox) |cancel
|diary
|fetchOutputs
|listAutoAttachedFiles
|wait
|getSimulationJobs
Objects
Topics
- Comparison Between Multiple Simulation Workflows
- Running Multiple Simulations
- Batch Processing (Parallel Computing Toolbox)
- Job Monitor (Parallel Computing Toolbox)