运行多个模拟

提供一组输入模型和运行多个模拟这些输入使用parsim或者是batchsim函数

为工作流涉及大数据的多个并行模拟和日志记录,您可以使用一个数组创建模拟集金宝appSimulink.SimulationInput对象。SimulationInput对象帮你运行多个模拟变异而不改变模型。数组的SimulationInput使您能够运行多个模拟对象。

与并行计算工具箱™的许可证,您可以使用parsim函数运行并行模拟。函数分配多个模拟并行工人加快整体仿真时间。parsim与并行计算工具箱还自动创建并行池,标识文件的依赖关系,并管理为加速器和快速构建工件加速器模拟。的parsim命令运行多个模拟串行如果并行计算工具箱许可不可用。

此外,您可以使用batchsim与并行计算工具箱MATLAB®并行服务器™许可证。当你使用batchsim模拟被卸到计算集群。您可以打开一个单独的MATLAB会话访问工作和结果。

首先,明白了运行多个模拟使用parsim运行并行模拟

功能

batchsim 将模拟计算集群上运行
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

工具

仿真管理器 监视多个模拟和可视化仿真数据

主题

运行多个模拟

直接运行多个模拟的parsimbatchsim命令。

使用parsim运行并行模拟

多个并行模拟工作流的例子。

运行并行模拟

并行编程运行模型模拟。

多个模拟工作流

理解之间的异同parsim,parsimRunInBackground,batchsim。

分析结果使用仿真管理器

使用仿真管理器可视化仿真数据,分析仿真结果,仿真趋势。

特色的例子