Fix the maximum number of iterations while using ode solvers

조회 수: 5 (최근 30일)
Deepa Maheshvare
Deepa Maheshvare 2019년 3월 5일
편집: Torsten 2019년 3월 5일
Could someone let me know to fix the maximum number of ierations while solving a set of differential equation using ode15s?
I couldn't find which flag has to be selected in the 'options' .

채택된 답변

Torsten
Torsten 2019년 3월 5일
https://de.mathworks.com/matlabcentral/answers/94739-is-it-possible-to-specify-the-maximum-amount-of-time-or-number-of-function-evaluations-to-be-used-by
  댓글 수: 2
Deepa Maheshvare
Deepa Maheshvare 2019년 3월 5일
Hi ,
I had a look at the odeset function given here .
From the link that has been shared above, I could understand OutputFcn:
has to be altered. I couldn't understand how it has to be set.
Could you please explain?
I couldn't open web([docroot,'/techdoc/ref/odeset.html']). from command prompt.
It shows page not found.
Torsten
Torsten 2019년 3월 5일
편집: Torsten 2019년 3월 5일
The file to use is included in the link given (odeRun.m).
Why don't you just take it and modify the numbers 100 and 25 in the line
if numMajorTimeStep > 100 || numDiffEqEval > 25
according to your needs ?

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by