Main Content

运行多个模拟

提供要模拟的输入集合,并使用这些输入运行多个模拟Parsim功能,函数Batchsim.simulink中的函数或多个模拟面板金宝app®

对于涉及多个并行仿真和日志记录大数据的工作流程,您可以使用命令行APIParsimorBatchsim.命令,或使用模拟多重模拟panel in the Simulink Editor.

With a Parallel Computing Toolbox™ license, you can use theParsim函数并行运行模拟。该函数将多个模拟分发到并行工人以加速整体模拟时间。使用Parsim使用并行计算工具箱的功能允许您自动创建并行池,标识文件依赖项,并管理用于加速器和快速加速器仿真的构建工件。这Parsim如果不可用并行计算工具箱许可证,则命令在串行运行多个模拟。

In addition, you can use theBatchsim.使用并行计算工具箱和马铃薯草®并行服务器™licenses. When you use theBatchsim.function, simulations are offloaded onto a compute cluster. You can open a separate MATLAB session to access the job and the results.

要开始,看到运行多个模拟and运行并行模拟for a Thermal Model of a House Using parsim

职能

Batchsim. 卸载模拟以在计算群集中运行
Parsim Simulate dynamic system multiple times in parallel or serial
ApplyTomodel. 将更改应用于通过A指定的模型SimulationInput目的那
setBlockParameter. 设置块参数以用于特定模拟SimulationInput目的那
setmodelparameter. 设置模型参数以用于特定模拟SimulationInput目的那
setInitialstate. Configure金宝appsimulink.simulationInput.对象设置模拟的初始状态
年代etExternalInput Set external inputs for a simulation throughSimulationInput目的那
可遗憾的 Set variables for a simulation throughSimulationInput目的那
证实 验证内容SimulationInput目的那
年代etPreSimFcn 指定A.马铃薯草在开始每个模拟之前运行的功能SimulationInput对象,在
年代etPostSimFcn 指定A.马铃薯草每次模拟完成后运行的功能SimulationInput目的那
loadvariablesfrommatfile. 将来自mat文件的加载变量金宝appsimulink.simulationInput.目的那
getsimulationjobs. 得到所有Simulink.Simulation.Job来自群集的对象
内容 View the contents of the金宝appsimulink.simulationInput.目的

课堂

金宝appsimulink.simulationInput. 创造SimulationInput对象to make changes to a model for multiple or individual simulations
金宝appsimulink.simulation.variable. 变量in.金宝appsimulink.simulationInput.对象
金宝appsimulink.simulation.blockparameter. 块参数金宝appsimulink.simulationInput.对象
金宝appsimulink.simulation.future. CreateFuture目的for simulation
Simulink.Simulation.Job ExecuteBatchsim.创建一个Simulink.Simulation.Job目的那年代imJob

Tools

多重模拟 Run multiple simulations from the金宝app编辑
Simulation Manager 监控多个模拟并可视化模拟数据

话题