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

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.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Programming에 대해 자세히 알아보기

제품

릴리스

R2021b

질문:

2022년 4월 2일

댓글:

2022년 4월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by