I posted a bug to the bug-octave mailing list - essentially the ODE
solvers don't correctly identify which event has occurred if I have
multiple terminal events:
http://www-old.cae.wisc.edu/pipermail/bug-octave/2010-February/010451.html.
I need to solve ODEs, but with an arbitrary set of events that will
modify some parameters in the ODEs. I don't know what order the
events are going to occur. I'm trying to stop the ODE solver when
each even occurs, alter the parameters, and then restart the ODE
solver. I think that I could do a work-around by making the
parameters a global array and not actually stopping the ODE solver
when the event occurs. But I'd rather stay away from global variables
if possible. Does anyone have any other suggestions?
ty