运行多个模拟
Parsim
功能,函数Batchsim.
simulink中的函数或多个模拟面板金宝app®
对于涉及多个并行仿真和日志记录大数据的工作流程,您可以使用命令行APIParsim
orBatchsim.
命令,或使用模拟多重模拟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。
职能
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 | 监控多个模拟并可视化模拟数据 |
话题
- 运行多个模拟
Run multiple simulations from the
Parsim
andBatchsim.
Simulink编辑器中的命令和多模拟面板。金宝app - 运行并行模拟for a Thermal Model of a House Using parsim
用一个
金宝appsimulink.simulationInput.
对象运行多个并行模拟命令行工作流。 - 运行并行模拟
Programmatically run model simulations in parallel.
- 使用多个模拟面板配置和运行模拟
Learn about the Multiple Simulations panel in the Simulink Editor.
- 比较多个模拟工作流
了解相似之处和差异
Parsim
那Parsim
和RuninBackground.
那andBatchsim.
。 - 使用模拟管理器分析结果
使用模拟管理器可视化仿真数据,分析模拟结果和趋势。