memorize the attained minimum over time in ODE

*To*: mathgroup at smc.vnet.net*Subject*: [mg90721] memorize the attained minimum over time in ODE*From*: Joerg Schaber <schaber at molgen.mpg.de>*Date*: Mon, 21 Jul 2008 04:29:07 -0400 (EDT)

Hi, I have an ODE that solves at each time step n something like y'(n)=f(y(n-1),Min(y(n),y(n-1)) i.e., y' depends on the Minimum of y attained so far. How do I implement that usind NDSolve? I cannot use algebraic equations, because I used Method->StiffnessSwitching. Thanks, joerg