[R] Using odesolve to produce non-negative solutions

2007-07-03 Thread dave fournier
If you didn't get this solved. I have done parameter estimation with models defined by ODE's where negative solutions are a problem and one can only avoid them with great difficulty if the standard explicit methods for solving the ODE are used. I found that using implicit methods could be a great

Re: [R] Using odesolve to produce non-negative solutions

2007-06-14 Thread Thomas Petzoldt
Dear Jeremy, a few notes about your model: The equations of your derivatives are designed in a way that can lead to negative state variables with certain parameter combinations. In order to avoid this, you are using if constructions which are intended to correct this. This method is however

[R] Using odesolve to produce non-negative solutions

2007-06-06 Thread Jeremy Goldhaber-Fiebert
Hello, I am using odesolve to simulate a group of people moving through time and transmitting infections to one another. In Matlab, there is a NonNegative option which tells the Matlab solver to keep the vector elements of the ODE solution non-negative at all times. What is the right way to