What we do with discontinuities due to dosing is to is to run the
integrator between dosing events. I hope somebody else can comment
on issues your system may bring up. It might help to see more of it,
or maybe what you sent is enough for someone to help out.
We don't yet have a way to control tolerances, but we'll
be adding that. It's not much implementation, but it's a whole
bunch of testing and doc.
The current integrator is indeed prone to hang,
http://headmyshoulder.github.io/odeint-v2/doc/boost_numeric_odeint/odeint_in_detail/steppers.html
http://en.wikipedia.org/wiki/Dormand–Prince_method
As far as we can tell, what's going on is that the parameters are moving
into spaces where the current integrator requires enough steps to reach
tolerance that it effectively hangs. We haven't figured out an easy way
to limit the max number of steps and also Michael's warning us that may just
bias the results.
We'll be introducing a stiff integrator, hopefully soon, but we're
pretty backed up on issues and feature requests and I'm not sure how
that one's being prioritized.
- Bob
> --
> You received this message because you are subscribed to the Google Groups "Stan users mailing list" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
stan-users+...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.