Re: [julia-users] ode-sundials-events option as in deSolve (R)

2015-08-24 Thread Martin J
Thanks for your reply. I used your code with some changes. using Sims, Winston function model() # note that the time scale is in hours D = Unknown(10.0, D) A1 = Unknown(A1) rateConstant1 = 3.0 rateConstant2 = 5.0 Equation[ der(D) = -rateConstant1*D

Re: [julia-users] ode-sundials-events option as in deSolve (R)

2015-08-24 Thread Tom Short
It's hard to tell from that. Rather than clog this mailing list with debugging emails, please file an issue at the Sims repo. Provide your Julia version in that, too. On Mon, Aug 24, 2015 at 9:27 AM, Martin J jmalph...@gmail.com wrote: Thanks for your reply. I used your code with some

Re: [julia-users] ode-sundials-events option as in deSolve (R)

2015-08-21 Thread Tom Short
One way is with the Sims package. I'm not sure I got everything right with your model. https://tshort.github.io/Sims.jl/ using Sims, Winston function model() # note that the time scale is in hours D = Unknown(10.0, D) A1 = Unknown(A1) rateConstant1 = 3.0 rateConstant2 = 5.0

[julia-users] ode-sundials-events option as in deSolve (R)

2015-08-20 Thread Martin J
Hi all, I am trying to use julia ode or sundials for the following simple differential equation. dD = -rateConstant1*D dA1 = rateConstant1*D - rateConstant2*A1 This differential equations explain the disposition of drug in human system. *My question is related to resetting state variable