parsim
或者是batchsim
函数为工作流涉及大数据的多个并行模拟和日志记录,您可以使用一个数组创建模拟集金宝appSimulink.SimulationInput
对象。SimulationInput
对象帮你运行多个模拟变异而不改变模型。数组的SimulationInput
使您能够运行多个模拟对象。
与并行计算工具箱™的许可证,您可以使用parsim
函数运行并行模拟。函数分配多个模拟并行工人加快整体仿真时间。parsim
与并行计算工具箱还自动创建并行池,标识文件的依赖关系,并管理为加速器和快速构建工件加速器模拟。的parsim
命令运行多个模拟串行如果并行计算工具箱许可不可用。
此外,您可以使用batchsim
与并行计算工具箱MATLAB®并行服务器™许可证。当你使用batchsim
模拟被卸到计算集群。您可以打开一个单独的MATLAB会话访问工作和结果。
首先,明白了运行多个模拟和使用parsim运行并行模拟。
applyToModel |
申请更改通过指定的模型SimulationInput 对象,在 |
setBlockParameter |
设置块参数用于一个特定的仿真SimulationInput 对象,在 |
setModelParameter |
设置模型参数用于一个特定的仿真SimulationInput 对象,在 |
setInitialState |
设置初始状态用于一个特定的仿真SimulationInput 对象,在 |
setExternalInput |
为模拟通过设置外部输入SimulationInput 对象,在 |
setVariable |
通过设置变量的模拟SimulationInput 对象,在 |
验证 |
验证的内容SimulationInput 对象,在 |
setPreSimFcn |
指定一个MATLAB函数每次仿真通过之前开始运行SimulationInput 对象,在 |
setPostSimFcn |
指定一个MATLAB函数运行每个仿真完成后通过SimulationInput 对象,在 |
loadVariablesFromMATFile |
从MAT-file负载变量金宝appSimulink.SimulationInput 对象,在 |
getSimulationJobs |
得到所有金宝appSimulink.Simulation.Job 对象从集群 |
内容 |
视图的内容金宝appSimulink.SimulationInput 对象 |
金宝appSimulink.SimulationInput |
创建SimulationInput 多个对象更改模型或个人模拟 |
金宝appSimulink.Simulation.Variable |
变量金宝appSimulink.SimulationInput 对象 |
金宝appSimulink.Simulation.BlockParameter |
块参数金宝appSimulink.SimulationInput 对象 |
金宝appSimulink.Simulation.Future |
创建未来 为模拟对象 |
金宝appSimulink.Simulation.Job |
执行batchsim 创建一个金宝appSimulink.Simulation.Job 对象,simJob |
仿真管理器 |
监视多个模拟和可视化仿真数据 |
直接运行多个模拟的parsim
和batchsim
命令。
多个并行模拟工作流的例子。
并行编程运行模型模拟。
理解之间的异同parsim
,parsim
与RunInBackground
,batchsim。
使用仿真管理器可视化仿真数据,分析仿真结果,仿真趋势。