求解器Pane
The求解器类别包括用于配置模型求解器的参数。求解器在连续的时间内计算动态系统的状态在指定的时间范围内。您还使用这些参数来指定仿真开始和停止时间。
一旦模型编译,求解器信息工具提示显示
Compiled solver name
Step size (Max step size或者Fixed step size)
Once the model compiles, the status bar displays the solver used for compiling and a carat (^) when:
金宝app®selects a different solver during compilation.
You set the step size to
汽车
. The Solver Information tooltip displays the step size that Simulink calculated.
When configuring the solver, note that:
模拟time is not the same as clock time. For example, running a simulation for 10 seconds usually does not take 10 seconds. Total simulation time depends on factors such as model complexity, solver step sizes, and computer speed.
Fixed-step
求解器类型是代码生成所需的,除非您使用S函数或RSIM目标。可变步骤
求解器类型可以大大缩短模拟模型所需的时间,在该模型中迅速变化或包含不连续性所需的时间。
Parameter | 描述 |
---|---|
Specify the start time for the simulation or generated code as a double-precision value, scaled to seconds. |
|
Specify the stop time for the simulation or generated code as a double-precision value, scaled to seconds. |
|
选择要使用的求解器的类型来模拟模型。 |
|
在模拟或代码生成过程中选择要使用的求解器来计算模型的状态。 |
|
Specify the largest time step that the solver can take. |
|
Specify the integration order of the奥登 solver |
|
Specify the size of the first time step that the solver takes. |
|
指定求解器可以采取的最小时间步骤。 |
|
Specify the largest acceptable solver error, relative to the size of each state during each time step. If the relative error exceeds this tolerance, the solver reduces the time step size. |
|
指定最大的可接受求解器误差,因为测得的状态的值接近零。如果绝对误差超过此公差,则求解器会降低时间步长。 |
|
在每个时间步骤,使用衍生信息来提高集成精度。 |
|
Select the order of the numerical differentiation formulas (NDFs) used in the |
|
Select how the solver behaves during a reset, such as when it detects a zero crossing. |
|
指定模拟过程中允许的最大连续最小步长违规数量。 |
|
指定为隐式求解器计算Jacobian矩阵的方法。 |
|
微调 |
|
Specify whether Simulink executes blocks with periodic sample times individually or in groups. |
|
指定Simulink软件是否会自金宝app动插入具有不同采样率的块之间的隐藏率转换块以确保:任务之间数据传输的完整性;以及可选的数据传输的可选决定。 |
|
Control whether the Rate Transition block parameter确保确定性数据传输(最大延迟)is set for auto-inserted Rate Transition blocks. |
|
在实现异步数据传输时,指定模型针对的实时系统是否将更高或更低的优先级值分配给更高的优先级任务。 |
|
Enables zero-crossing detection during model simulation. For most models, this speeds up simulation by enabling the solver to take larger time steps. |
|
指定一个公差因素,该因子控制了必须将其视为连续的零交叉事件的近距离事件。 |
|
Specify the number of consecutive zero crossings that can occur before Simulink software displays a warning or an error. |
|
Specifies the algorithm to detect zero crossings when a variable-step solver is used. |
|
Specifies the deadband region used during the detection of zero crossings. Signals falling within this region are defined as having crossed through zero. |
|
选择该模型定义的样本时间的约束。如果模型在模拟过程中不满足指定的约束,则Simulink软件将显示错误消息。金宝app |
|
指定所选固定步骤求解器使用的步长。 |
|
指定并将优先级分配给该模型实施的样本时间。 |
|
选择由 |
|
Specify the number of Newton's method iterations used by the |
|
Enable concurrent tasking behavior for model. |
|
启用自动绝对耐受性适应 | |
Enable Branched Input Multiple Outputs in rate-based models |
|
使用固定步骤启用零交叉检测 | |
Specify maximum number of bracketing iterations that will be performed when locating a zero crossing | |
指定最大零交叉数量Simulink将位于一个固定步骤中金宝app | |
Speed up simulation in model references using local solvers |
These configuration parameters are in the高级参数部分。
Parameter | 描述 |
---|---|
Removes the coupling between continuous and discrete rates. |
|
Minimizes the impact of zero-crossings on the integration of continuous states. |