运行仿真时出错,仿真终止
原因: Simulink cannot solve the algebraic loop containing 'Gain' at time 1.0000000000000142 due to one of the following reasons: the model is ill-defined i.e., the system equations do not have a solution; or the nonlinear equation solver failed to converge due to numerical issues. To rule out solver convergence as the cause of this error, follow either of the suggested actions. If the error persists in spite of the above changes, then the model is likely ill-defined and requires modification.
(由于以下原因之一,Simulink无法求解时间为1.0000000000000142的包含“增益”的代数环:模型定义不清,即系统方程没有解;或者由于数值问题,非线性方程求解器不能收敛。要排除求解器收敛是导致此错误的原因,请遵循建议的操作之一。如果尽管进行了上述更改,错误仍然存在,则模型可能定义不清,需要修改。)
建议的操作
Reduce the RelTol parameter so that the solver takes smaller time steps.