带有状态流图的Matlab Simulink未在范围内输出并发出警告



我有一个带有输出数组/矢量变量的流出范围的状态流程图的Simulink模型。我使用的是最新版本的Matlab 2013a。当我运行模拟时,这可能与此警告有关:

Warning: The model 'xxx' does not have continuous states, hence
Simulink is using the solver 'FixedStepDiscrete' instead of solver
'ode3'. You can disable this diagnostic by explicitly specifying a
discrete solver in the solver tab of the Configuration Parameters
dialog, or by setting the 'Automatic solver parameter selection'
diagnostic to 'none' in the Diagnostics tab of the Configuration
Parameters dialog 

我在Simulink中寻找了这些选项,将"自动求解器参数选择"诊断设置为"无"。有人能帮我找到Simulink详细菜单导航来解决这个问题吗?由于

您需要选择合适的求解器。为此,右键单击模型中的空白区域,并选择Configuration Parameters。求解器设置列在左窗格的 solver 条目中。

从警告中可以看出,您当前选择了一个可变步长ode3求解器。然而,你的模型中没有一个块支持连续状态,所以Simulink默认返回到一个固定步长离散解算器。

设置TypeFixed-stepSolverDiscrete;警告应该会消失。如果你确实希望最终有一个可变步长求解器,那么也许你现在应该忽略这个警告,直到你添加了支持连续状态的块到模型中,这将阻止Simulink自动切换求解器。

另一个选项是禁用发出警告的诊断。这可以通过在Configuration Parameters窗口的左窗格中选择Diagnostics来完成。

最新更新