Error while using derivative
显示 更早的评论
Hello, I'm getting the following error while trying to compute my simulation. I've tried to change the solver but I didn't really help. The problem is that this model do actually work on Matlab 2009b, but it fails to compute on Matlab 2017a, which is my objective. Could you possibly help me with this error?
Error using test7_poscig_a (line 20)
Simulink cannot solve the algebraic loop containing 'Metody_test7_a/Derivative3' at time
5.4656330917168992E-8 using the TrustRegion-based algorithm 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, either
a) switch to LineSearch-based algorithm using
set_param('Metody_test7_a','AlgebraicLoopSolver','LineSearch')
b) reducing the ode113 solver RelTol parameter so that the solver takes smaller time
steps.
If the error persists in spite of the above changes, then the model is likely ill-defined and
requires modification.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Configure Simulation Conditions 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!