Tutorials › Optimal Design and Model-Informed Dosing › Minimum Spacing and Clinic-Window Constraints

Optimal Sampling for Individual PK Models · Tutorial 50 of 497

Minimum Spacing and Clinic-Window Constraints

You will learn to construct feasible sampling schedules and quantify the information cost of clinic-window and minimum-spacing constraints.

Advanced 12 min read

What You'll Learn

  • Express visit windows, clinic hours, and minimum gaps as constraints on ordered sampling times.
  • Check schedule feasibility by propagating the earliest allowable time through each visit.
  • Compare a feasible constrained schedule with an unconstrained local D-optimal schedule.
  • Re-optimize within the feasible set rather than simply adjusting an unconstrained schedule.
  • Diagnose infeasible or fragile schedules caused by overlapping windows and tight spacing.

Why operational constraints belong in the design

A sampling schedule can be statistically attractive and still be unusable. A predicted optimal time may fall outside clinic hours, two samples may be scheduled too close together for separate blood draws, or a visit may need to occur within a prespecified window. These are not minor implementation details: they change which schedules can actually be used, and therefore which schedule is optimal among the usable alternatives.

The design task is to choose ordered sample times that satisfy all operational constraints and then compare their information. The feasible schedule may differ from the unconstrained optimum, but its information loss is not necessarily large. It must be calculated for the particular model, nominal parameter values, and error assumptions rather than inferred from how far the times moved.

Definition: For \(n\) ordered samples, a schedule is \(t_1,\ldots,t_n\) with \(t_1\leq \cdots \leq t_n\). A minimum-spacing constraint requires \(t_{i+1}-t_i\geq d_i\), where \(d_i\geq 0\) is the required gap between adjacent samples. A visit-window constraint requires \(t_i\in[a_i,b_i]\). A clinic-hours constraint further restricts the allowed times, for example to \(t_i\in[L,U]\). A schedule is feasible if it satisfies every constraint.

When clinic availability differs by visit, represent the allowed time for visit \(i\) by the intersection of its visit window and the clinic’s open hours: \([a_i,b_i]\cap[L,U]\). If the clinic is open in separate sessions, the allowed set can instead be a union of intervals. Times should use one consistent clock, such as hours after dosing; if actual clock time is used, all windows and gaps must be converted consistently.

Checking whether a schedule can exist

For a single interval per visit and fixed minimum gaps, a simple forward calculation checks feasibility. Begin at the earliest allowed time for the first visit. For every later visit, use the later of its own earliest time and the earliest time allowed by the preceding visit’s gap. If this earliest possible time exceeds the visit’s latest allowed time, the schedule is infeasible.

$$ e_1=a_1,\qquad e_i=\max(a_i,e_{i-1}+d_{i-1})\quad (i=2,\ldots,n). $$

Here \(e_i\) is the earliest time at which visit \(i\) could occur while respecting the windows and all preceding gaps. Feasibility holds exactly when \(e_i\leq b_i\) for every visit. The forward rule is necessary because visit \(i\) cannot precede either its own window or the previous visit plus the required gap. It is sufficient because, if every \(e_i\) lies within its window, choosing each visit at \(e_i\) meets every gap and every window.

This check assumes that visits are ordered and each allowed set is a single closed interval. With disjoint clinic sessions, a feasible early session may lead to an infeasible later visit while a later session works. In that case, retain the possible interval alternatives and propagate feasibility across them, or enumerate the allowed combinations. Do not replace a disjoint set of clinic sessions with its overall minimum and maximum; that would incorrectly treat closed hours as available.

Worked Example: Building a Feasible Clinic-Day Schedule

Suppose dosing occurs at 08:00 and the clinic is open until 12:00. Three post-dose sampling windows are 0.5–1.0 hours, 1.75–2.5 hours, and 3.0–4.0 hours. Adjacent samples must be at least 1.25 hours apart. Construct one feasible schedule and check it.

The clinic-hours restriction allows post-dose times from 0 to 4 hours, so all three stated windows remain unchanged. Propagating the earliest times gives \(e_1=0.5\), \(e_2=\max(1.75,0.5+1.25)=1.75\), and \(e_3=\max(3.0,1.75+1.25)=3.0\). Each is no later than the corresponding window’s endpoint, so the windows are jointly feasible.

One practical schedule is \(t_1=0.75\), \(t_2=2.0\), and \(t_3=3.5\) hours after dosing. The gaps are \(2.0-0.75=1.25\) hours and \(3.5-2.0=1.5\) hours, both at least 1.25 hours. The clock times are 08:45, 10:00, and 11:30, all within the clinic’s 08:00–12:00 hours.

If the second window were instead 1.5–1.7 hours, the earliest possible second sample would be \(\max(1.5,0.5+1.25)=1.75\) hours. Since \(1.75>1.7\), no schedule could meet both the first and second visit constraints. This is a genuine feasibility failure, not a problem that can be solved by choosing a different objective function.

Information comparison under constraints

Operational constraints apply independently of the pharmacokinetic model. To illustrate how they can alter information, consider a one-compartment IV bolus concentration model \(C(t)=C_0e^{-kt}\), where \(C_0\) is the concentration at time zero and \(k\) is the elimination rate constant. Suppose two concentrations are measured with independent additive normal errors of common variance \(\sigma^2\). For this illustration, the nominal values are \(C_0=100\) concentration units, \(k=0.20\) per hour, and \(\sigma=5\) concentration units. These assumptions are specific to the calculation; different error assumptions or nominal values can change the comparison.

Use the parameter vector \((\log C_0,k)\). At time \(t_i\), the sensitivity vector is \((C_i,-t_iC_i)\), where \(C_i=C_0e^{-kt_i}\). The individual Fisher information matrix is the sum of the sensitivity outer products divided by \(\sigma^2\). For two samples, its determinant simplifies as follows.

$$ I=\frac{1}{\sigma^2}\sum_{i=1}^2 \begin{pmatrix}C_i\\-t_iC_i\end{pmatrix} \begin{pmatrix}C_i&-t_iC_i\end{pmatrix}, \qquad \det I= \left(\frac{C_0}{\sigma}\right)^4 e^{-2k(t_1+t_2)}(t_2-t_1)^2. $$

To justify the determinant expression, put the two sensitivity vectors into the rows of a matrix \(G\). Then \(I=G^\mathsf{T}G/\sigma^2\), so \(\det I=(\det G)^2/\sigma^4\). The determinant of \(G\) is \(C_1C_2(t_1-t_2)\). Squaring it and substituting \(C_i=C_0e^{-kt_i}\) yields the stated formula. With two parameters, a larger determinant corresponds to a larger local D-criterion, provided the same parameterization, model, error assumptions, and nominal values are used for both schedules.

The expression shows why moving a sample later does not have a one-directional effect. Increasing the gap \((t_2-t_1)\) can improve separation of sensitivities, while moving both samples later reduces the concentrations and hence the information under this constant-variance error model. The operationally constrained design must be assessed by the full expression, not by the time gap alone.

Worked Example: A Clinic Window Forces a Later Second Sample

Suppose the first sample is fixed at \(t_1=0.5\) hours. The unconstrained second-sample optimum for this two-sample example is \(t_2=5.5\) hours. A clinic-window requirement instead restricts the second sample to 5.8–6.2 hours, and the minimum gap is 5.5 hours. Find the feasible optimum and compare its information with the unconstrained schedule.

For fixed \(t_1=0.5\), the log of the time-dependent determinant is \(-0.4(0.5+t_2)+2\log(t_2-0.5)\), up to a constant. Its derivative with respect to \(t_2\) is \(-0.4+2/(t_2-0.5)\), which is zero at \(t_2=5.5\) hours. The derivative is negative for \(t_2>5.5\). The minimum-gap rule requires \(t_2\geq 6.0\), and the clinic window allows 5.8–6.2; together they leave 6.0–6.2 hours. Since the objective decreases throughout this feasible interval, the constrained optimum is \(t_2=6.0\) hours.

The numerical factor \((C_0/\sigma)^4=(100/5)^4=20^4=160{,}000\). For the unconstrained schedule:

$$ \det I_{\mathrm{unconstrained}} =160{,}000e^{-0.4(0.5+5.5)}(5.5-0.5)^2 =160{,}000e^{-2.4}(25) \approx 362{,}872. $$

For the constrained schedule:

$$ \det I_{\mathrm{constrained}} =160{,}000e^{-0.4(0.5+6)}(6-0.5)^2 =160{,}000e^{-2.6}(30.25) \approx 359{,}484. $$

The constrained-to-unconstrained determinant ratio is approximately \(359{,}484/362{,}872=0.9907\). With \(p=2\) parameters, the D-efficiency is the \(p\)th root of the determinant ratio: \(\sqrt{0.9907}\approx0.9953\). Thus the constrained schedule has about 0.5% lower D-efficiency in this local comparison. This comparison is conditional on the assumed model and error variance; it is not a universal measure of clinical schedule quality.

Worked Example: Choosing Within a Restricted Window

Keep \(t_1=0.5\) hours, \(C_0=100\), \(k=0.20\) per hour, and \(\sigma=5\). Now suppose the second sample must be in the interval 4.0–5.2 hours and the minimum gap is 3.5 hours. Which endpoint maximizes the determinant, and how does it compare with the unconstrained schedule at 5.5 hours?

The minimum gap requires \(t_2\geq 0.5+3.5=4.0\), so the whole clinic window is feasible. The derivative of the log determinant is \(-0.4+2/(t_2-0.5)\), which is positive for \(t_2<5.5\). The determinant therefore increases across the allowed interval, and its maximum occurs at \(t_2=5.2\) hours.

At the earliest allowed time \(t_2=4.0\):

$$ \det I(0.5,4.0) =160{,}000e^{-0.4(0.5+4.0)}(4.0-0.5)^2 =160{,}000e^{-1.8}(3.5)^2 \approx 323{,}986. $$

At the maximizing endpoint \(t_2=5.2\):

$$ \det I(0.5,5.2) =160{,}000e^{-0.4(0.5+5.2)}(5.2-0.5)^2 =160{,}000e^{-2.28}(4.7)^2 \approx 361{,}513. $$

The ratio to the unconstrained determinant at \((0.5,5.5)\) is \(361{,}513/362{,}872\approx0.9963\), giving D-efficiency \(\sqrt{0.9963}\approx0.9981\). The restricted-window optimum is close in local D-efficiency to the unconstrained optimum, even though the second sample is 0.3 hours earlier.

Optimizing and diagnosing a constrained schedule

The proper comparison is between the unconstrained optimum and the best feasible schedule under the same information criterion. Do not take an unconstrained schedule and shift each visit independently until it appears operational: shifting one time can violate a minimum gap, leave a visit window, or create a new clinic conflict. Instead, define the feasible set first and optimize over that set. Candidate-time searches can discard infeasible schedules before ranking the remaining ones; continuous optimization must enforce the same constraints directly.

Useful checks include:

  • Check every adjacent gap. Verify \(t_{i+1}-t_i\geq d_i\) using the final, rounded schedule. Rounding a time can turn a barely feasible gap into a violation.
  • Check windows and clinic hours together. A time can satisfy its visit window but fall outside clinic hours, or vice versa.
  • Inspect boundary solutions. If an optimum repeatedly lands at a window endpoint or exactly at a minimum gap, confirm that this is allowed by the protocol and not an artifact of a coarse candidate grid.
  • Recalculate information at the implemented times. A schedule that is feasible before rounding or administrative adjustment may have different information after those changes.

A common mistake is to assume that the nearest feasible schedule to the unconstrained optimum must also be the best feasible design. That is not generally true: the determinant depends jointly on all sampling times and the sensitivity structure. The correction is to compare feasible schedules using the chosen information criterion—or optimize directly over the feasible set—rather than ranking them by distance from the unconstrained schedule.

A simple constrained optimization may be adequate when the feasible intervals are continuous and the model objective behaves smoothly. Enumerating candidate times is often convenient when clinic visits are available only at discrete slots, but the grid must be fine enough to avoid missing a better schedule between candidates. A penalty method can discourage constraint violations during numerical search, but a small penalty may leave violations and a large penalty may impair optimization. Whatever method is used, independently verify feasibility and recompute the objective at the final times.

The determinant comparison is local: it uses the specified nominal parameter values and the assumed error model. A schedule that is D-efficient at one nominal value may not retain the same ranking elsewhere. Also, a high determinant does not guarantee that every individual parameter is estimated precisely; it summarizes joint information about the parameter vector. Operational constraints can therefore motivate a feasible schedule, but the information calculation does not replace clinical judgment about visit burden, assay limitations, or the intended use of the estimates.

Key takeaway: First establish the feasible set by combining visit windows, clinic availability, ordering, and minimum gaps. Then optimize and compare information within that set. A feasible schedule is not automatically close to optimal, and an unconstrained design cannot be made valid merely by ignoring its violations.

Check Your Understanding

Answer each question, then compare with the solutions below.

  1. For windows \([1,2]\), \([2.5,3.5]\), and \([4,5]\) hours, with minimum gaps of 1.5 hours, calculate the earliest feasible time for each visit. Is the schedule feasible?
  2. With \(t_1=0.5\) hours and a required gap of 2 hours, what is the smallest feasible \(t_2\)? If the second visit window is \([2.0,2.4]\), is the design feasible?
  3. Why must information be recalculated after moving a sample to satisfy clinic hours?
  4. In the two-sample example, the constrained-to-unconstrained determinant ratio is 0.9907. Calculate the D-efficiency for two parameters and interpret it.

Solutions. (1) \(e_1=1\), \(e_2=\max(2.5,1+1.5)=2.5\), and \(e_3=\max(4,2.5+1.5)=4\). Each is within its window, so the schedule is feasible. (2) The minimum gap requires \(t_2\geq0.5+2=2.5\) hours. Since the window ends at 2.4 hours, the schedule is infeasible. (3) Moving a sample changes the model sensitivities and can change both the time separation and predicted concentrations; hence it changes the information matrix and its determinant. (4) \(\sqrt{0.9907}\approx0.9953\). Under the stated local comparison, the constrained schedule has about 0.5% lower D-efficiency than the unconstrained schedule.

Clinical Biostats