Problem to resolve algebraic loop
7 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi Mathworkers.. I make a model and appear this error:
Simulink cannot solve the algebraic loop containing 'testestestes/Bateria/Subsystem/Simulink-PS Converter1/EVAL_KEY/SFUN' at time 2126.0 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('testestestes','AlgebraicLoopSolver','LineSearch')
b) reducing the ode23t 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.
I think that the problem is in connection of Simscape and SimPowerSystems, like the image... I know that i need use a tranfer function, but i doní know when i put this... My model is in the next picture: http://img151.imageshack.us/img151/1276/80572262.png
When i put Transfer Fcn?
Réponses (1)
Arnaud Miege
le 20 Juil 2011
Put the transfer function between the voltage measurement block and the Simulink - PS Converter block, or between the PS - Simulink Converter block and the current source. This will help break the algebraic loop. You might want to change the coefficients of the transfer function though to represent a low-pass filter with a cut-off frequency that is above the maximum frequency content that you want to capture.
HTH,
Arnaud
4 commentaires
Voir également
Catégories
En savoir plus sur General Applications dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!