Sounds great. Thank you!
Have a great break -
An example use for this is let’s say I have an antibody based drug in the blood-stream. Sometimes aminoacids get oxidized which result in decrease of antibody binding to target k_on, as the antibody spends more time in the blood it’s k_on lowers more, but when we add a new dose of antibody. The k_on should reset to the original value if all the antibody has been cleared or to a weighted average of the two populations remaining antibody + newly injected, ie:
k_on = k_on_start # not prior AB remaining
k_on = (Cremaing*k_on_remaing + Cnewdose*k_on_start)/(Cremaing + Cnewdose)
I have done some modeling like this using the differential equations suite and callbacks, but I am not a programmer by training and I am not sure how to code populations. I work one patient at a time for sims and fits before Pumas. I'll be happy to share an example of my code by e-mail if you are interested, it's messy, specially when compared to your very nice API, but it does work well
Take care and happy holidays again :)