Why is changing input values of a function may lead ode23 to a infinity loop?

Greetings. I have a mathematical function that receives a vector of numerical values as input and has ode23 as some part of its code. The problem is that for each numerical value in this input vector there ia a range of values that will lead to infinity loops in ode23. My main concern is that I don't know how to stop this loop once it happens, so I could identify these ranges for each vector element. I know it is hard to tell where is the problem without the code, but at first I just want to know if is this usual and known issue that have a simples fix.

2 commentaires

An ode integrator usually can't get into an infinite loop. So why does it happen in your case ?
I still have to find out why, but as a evidence I can tell you that at one point the dependent variables stuck in a "circle" value changes. The usual code process takes less than 1 minute and the last time I got stuck in this loop I waited a couple of hours to see and no, it didn't end. Like I said before, the integration is faster and a result is possible for certain values in the vector, but if a value is out of this range, then it won't calculate at all.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Programming dans Centre d'aide et File Exchange

Produits

Version

R2021b

Question posée :

le 2 Avr 2022

Commenté :

le 2 Avr 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by