Use exp(700) as an exit sign

Anything that doesn't fit elsewhere.
Post Reply
Posts: 6
Joined: Mon May 30, 2011 4:53 pm

Use exp(700) as an exit sign

Post by erick_valpo » Fri Nov 28, 2014 2:20 pm

I'm fitting a model in a very broad space parameter, and I'm getting a lot of
out of range, returning exp(700)
I think this error is because the model goes towards very 'non physiological values'
So I'm interested in finishing the simulation any time a variable is out of range.
Any suggestion?

Site Admin
Posts: 5511
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine

Re: Use exp(700) as an exit sign

Post by ted » Sat Nov 29, 2014 6:34 pm

The error message is quite nonspecific. It would be a good idea to check the mod files you are using with modlunit and fix whatever problems you find. Also, look for rate constants or "tau,inf" values that are calculated by formulas in which a 0/0 singularity may occur, and replace those formulas with code that uses l'Hospital's rule or truncated Taylor series approximations in the vinity of the singularity.

Post Reply