# decreasing input rate

**URL:** <https://forum.certara.com/t/decreasing-input-rate/2257>\
**Category:** Modelling and Simulation\
**Created:** [February 11, 2011, 4:54pm UTC](https://forum.certara.com/t/decreasing-input-rate/2257 "2011-02-11T16:54:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Helmut\_Schuetz](https://avatars.discourse-cdn.com/v4/letter/h/eb8c5e/32.png) [@Helmut\_Schuetz](https://forum.certara.com/u/Helmut_Schuetz)\
**Post date:** [February 11, 2011, 4:54pm UTC](https://forum.certara.com/t/decreasing-input-rate/2257/1 "2011-02-11T16:54:25Z")

</div>

Hi! Any ideas to set up the following model: 1comp, but the input rate is not a constant (zero order), but decreases with time following a simple exponential (like Dose/time=A ·exp(-B ·t). Background: I try to model formulations (like patches, implants), where the release rate decreases with time. Some of these formulations deliver at a constant rate and therefore can be modeled like an infusiuon, but others not…

---

<div class="post-metadata">

**Author:** ![SimonDavis](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@SimonDavis](https://forum.certara.com/u/SimonDavis)\
**Post date:** [February 14, 2011, 3:54pm UTC](https://forum.certara.com/t/decreasing-input-rate/2257/2 "2011-02-14T15:54:45Z")

</div>

I would suggest to consider this as a first-order model with extravascular input. in your formula, the B that’s being estimated is Ka; the A is bioavailability. If there is also a “bolus” component, that can go directly into the central compartment. I hope that makes sense, Simon.

---

<div class="post-metadata">

**Author:** ![Helmut\_Schuetz](https://avatars.discourse-cdn.com/v4/letter/h/eb8c5e/32.png) [@Helmut\_Schuetz](https://forum.certara.com/u/Helmut_Schuetz)\
**Post date:** [February 14, 2011, 4:26pm UTC](https://forum.certara.com/t/decreasing-input-rate/2257/3 "2011-02-14T16:26:26Z")

</div>

Hi Simon! [quote]I would suggest to consider this as a first-order model with extravascular input. in your formula, the B that’s being estimated is Ka; the A is bioavailability.[/quote] Nice to call what I posted a ‘formula’ 😉 I was thinking (in conventional WNL code) of something like:`f = kin*exp(-kdeg*x)/(V*k10)*(1-exp(-k10*x))`which would reduce to `f = kin/(V*k10)*(1-exp(-k10*x))`if kdeg approaches zero.

---

<div class="post-metadata">

**Author:** ![SimonDavis](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@SimonDavis](https://forum.certara.com/u/SimonDavis)\
**Post date:** [February 15, 2011, 11:00am UTC](https://forum.certara.com/t/decreasing-input-rate/2257/4 "2011-02-15T11:00:20Z")

</div>

The suggestion is not to use a closed form solution but to write derivs and choose non-stiff solver to start. e.g. Derivs for compartments, same as whatever regular model you’d choose. Stparm(ka = ka0_exp(-kae_t)) Please let us know how that works out for your problem. DO you perhaps have a snippet of data you could share? Simon
