-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optimal solver setting and other ways to improve numerical stability of the models #15
Comments
Great initiative |
Solver implementation
Scale factors
|
Hi @PavelBal , Besides the concern of numerical solver, I believe the failure of 'ideal' solver can result from purely mathematical expression of the right-hand side (RHS). |
Hi All, I think it would be good to have some more details on this in the documentation and some suggestions for optimization. |
@msevestre @Yuri05 @Huan-Yang @StephanSchaller @abdelr @VanessaBa
I am not sure where this discussion belongs to, so I start it here and we can transfer it later.
We should have some kind of a wiki for best practices how to parametrize the solver settings available in PK-Sim/MoBi. Furthermore, we can collect ideas which improvements we can implement, and how to make models more robust. Feel free to edit this post.
Solver settings
AbsTol
Default value is
1e-10
RelTol
Default value is 1e-5
AbsTol
orRelTol
AbsTol
andRelTol
should not have values too far apart - but I do not really know what "too far apart" means and how to set these valuesH0
Default value is 1e-10
HMin
Default value is 0
HMax
Default value is 60
MxStep
Default value is 100000
UseJacobian
Default is TRUE
Modeling
Events
TIME
as condition, use>=
resp<=
istead of=
(or was it the other way around?)Time > 1000 ? X : Y
. Create an event atTime = 1000
and chage the value of the parameter fromX
toY
.The text was updated successfully, but these errors were encountered: