Run Multiple Simulations
parsim
function, thebatchsim
函数,或多个Sim仿真面板ulink®
For workflows that involve multiple parallel simulations and logging of large data, you can use the command line API forparsim
或者batchsim
commands, or run the simulations with theMultiple SimulationsSimulink编辑器中的金宝app面板。
使用并行计算工具箱™许可证,您可以使用parsim
function to run the simulations in parallel. The function distributes multiple simulations to parallel workers to speed up overall simulation time. Using theparsim
function with Parallel Computing Toolbox allows you to automate the creation of parallel pools, identifies file dependencies, and manages build artifacts for accelerator and rapid accelerator simulations. Theparsim
command run multiple simulations in serial if Parallel Computing Toolbox license is not available.
此外,您可以使用batchsim
function with Parallel Computing Toolbox andMATLAB®Parallel Server™许可证。当您使用batchsim
功能,将模拟卸载到计算集群上。您可以打开单独的MATLAB会话以访问作业和结果。
To get started, seeRunning Multiple Simulations和使用PARSIM运行房屋热模型的平行模拟.
Functions
applyToModel |
Apply changes to the model specified through a仿真input 目的,in |
setBlockParameter |
Set block parameters to be used for a specific simulation through仿真input 目的,in |
setModelParameter |
Set model parameters to be used for a specific simulation through仿真input 目的,in |
setInitialState |
配置Simulink.SimulationInput object to set initial state for simulation |
setExternalInput |
设置外部输入以通过仿真input 目的,in |
setVariable |
设置变量以通过仿真input 目的,in |
validate |
Validate the contents of the仿真input 目的,in |
setPreSimFcn |
Specify aMATLABfunction to run before start of each simulation through仿真input 目的,in |
setPostsimfcn |
Specify aMATLABfunction to run after each simulation is complete through仿真input 目的,in |
loadVariablesFromMATFile |
Load variables from MAT-file into aSimulink.SimulationInput 目的,in |
getSimulationJobs |
Get all金宝appsimulink.simulation.job objects from cluster |
contents |
查看内容Simulink.SimulationInput object |
Classes
Simulink.SimulationInput |
创造s仿真input 为了更改多个或单个模拟的模型的对象 |
Simulink.Simulation.Variable |
Variables inSimulink.SimulationInput objects |
Simulink.Simulation.BlockParameter |
Block parameters inSimulink.SimulationInput objects |
Simulink.Simulation.Future |
创造未来 模拟对象 |
金宝appsimulink.simulation.job |
执行batchsim to create a金宝appsimulink.simulation.job 目的,simJob |
工具
Multiple Simulations | 运行多个模拟金宝appEditor |
模拟管理器 | Monitor multiple simulations and visualize the simulation data |
Topics
- Running Multiple Simulations
运行多个模拟
parsim
和batchsim
commands, and the Multiple Simulations panel in Simulink Editor. - 使用PARSIM运行房屋热模型的平行模拟
Use a
Simulink.SimulationInput
object to run multiple parallel simulations command line workflow. - Run Parallel Simulations
并行运行编程模型模拟。
- 配置和Run Simulations with Multiple Simulations Panel
了解Simulink编辑器中的多个模拟面板。金宝app
- Comparison Between Multiple Simulation Workflows
Understand the similarities and differences between
parsim
,parsim
withRunInBackground
, 和batchsim
. - Analyze Results Using Simulation Manager
Use the Simulation Manager to visualize simulation data, analyze simulation results and trends.