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 comentarios

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.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Programming en Centro de ayuda y File Exchange.

Productos

Versión

R2021b

Etiquetas

Preguntada:

el 2 de Abr. de 2022

Comentada:

el 2 de Abr. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by