Page 1 of 1

Use exp(700) as an exit sign

Posted: Fri Nov 28, 2014 2:20 pm
by erick_valpo
Hi,
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?

Re: Use exp(700) as an exit sign

Posted: Sat Nov 29, 2014 6:34 pm
by ted
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.