Documentation

8.14 ADDL, steady state, resets and model events

ADDL expands a dose into pending events separated by II. Each added event inherits compartment, bioavailable amount and infusion specification; its scheduled time includes the interval multiple and lag.

Steady-state modes

SS=1 resets the existing system before applying steady state. SS=2 superimposes the steady-state state on the current system. A repeated steady-state dose requires II > 0, except the special constant-infusion form AMT=0, RATE>0, II=0.

For linear systems whose lag and infusion duration fit within the interval, nlmx solves the periodic state with a closed-form linear system involving (I-e^{MII}). For nonlinear, overlapping or longer-lag cases, it iterates dosing cycles up to 5,000 intervals and tests convergence at a tolerance related to the ODE solver. A saturable system above elimination capacity can have no steady state and fails with a specific hint.

Constant-infusion equilibrium is solved directly for a nonsingular linear system. Nonlinear equilibrium integrates over expanding horizons and refuses a state that does not converge.

Resets and A_0

EVID=3/4 clears amounts, active infusions, pending doses and model-event history. $PK-assigned A_0(n) is then applied. A_0 is also applied at subject initialization.

Model events

MTIME(n) schedules internal event times; MPAST(n) indicates whether the event has been crossed and MNEXT can expose next-event context. When a model time is crossed, the engine marks it past and reruns $PK. Resets clear the MPAST flags.

Output compartment and negative CMT

The output compartment accumulates delivered amount minus current model amounts. A negative CMT can turn off/reset the output compartment after prediction, supporting collection intervals. Turning off ordinary model compartments is not implemented and is refused.

Common mistakes

  • Treating SS=2 as a reset.
  • Assuming every nonlinear regimen has a steady state.
  • Forgetting resets clear pending lagged doses and model events.

Checklist

  • Distinguish ADDL expansion, SS initialisation and ordinary dosing.
  • Test convergence and capacity limits.
  • Verify reset and tied-time behavior.

Further reading

See subject timelines, dose modifiers and simulation.