Turning off compartment if IPRED < 0 #603
Answered
by
mattfidler
JonKnights
asked this question in
Q&A
-
Hi! In nlmixr, is there a way to specify a zero-order elimination pathway and turn the compartment off when the amount in the compartment is predicted to reach zero? Something like: |
Beta Was this translation helpful? Give feedback.
Answered by
mattfidler
Apr 11, 2022
Replies: 1 comment 1 reply
-
In theory this should work. However, this comparison will not happen when You could also use the Here is the
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
JonKnights
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In theory this should work. However, this comparison will not happen when
A
exactly turns zero. IfA
is negative it will stay negative for the duration with something like this.You could also use the
stateTrim
solving option to handle situations like this.Here is the
rxSolve
option: