Let err be the error estimation coming from the comparison of two solutions of order 5 and 4, and let rtol be the specified relative tolerance. ode45 function in Matlab uses the following adaptive time step method:

temp = 1.25*(err/rtol)^pow;

if temp > 0.2

absh = absh / temp;

else

absh = 5.0*absh;

end

Here pow = 1/5 and absh is the current step. My question is about the nature of all these constants like 1.25, 0.2 and 5.0. Can anyone explain to me the origin of them, please? Are they coming from experience or somehow else?

Similar questions and discussions