Hi all, I have a question wrt. odeint(func, y0, t, args=(), Dfun=None, col_deriv=0, full_output=0, ml=None, mu=None, rtol=None, atol=None, tcrit=None, h0=0.0, hmax=0.0, hmin=0.0, ixpr=0, mxstep=0, mxhn il=0, mxordn=12, mxords=5, printmessg=0) h0 : float, (0: solver-determined) The step size to be attempted on the first step. hmax : float, (0: solver-determined) The maximum absolute step size allowed. hmin : float, (0: solver-determined) The minimum absolute step size allowed. Is it really useful to start with the default values h0=0.0, hmax= 0.0 and hmin=0.0 ? Nils
Is it really useful to start with the default values h0=0.0, hmax= 0.0 and hmin=0.0 ?
AFAIK these are just special values used to tell the integrator to work out the appropriate initial stepsize and limits from its own calculations. So there might be a tiny bit more lead time for an integration with these settings. I guess it's meant to be more of a "general purpose" setup so the user doesn't have to work on problem-specific settings. -Rob
participants (2)
-
Nils Wagner
-
Rob Clewley