Tutorials › Optimal Design and Model-Informed Dosing › Enforcing Dose Bounds and Rate Limits

Clinical Utility and Safety Nets · Tutorial 482 of 497

Enforcing Dose Bounds and Rate Limits

Learn to convert dose bounds and rate limits into a feasible dose set, then select and verify a recommendation without rounding or boundary errors.

Advanced 12 min read

What You'll Learn

  • Express minimum and maximum doses and permitted dose changes as intervals in consistent units.
  • Combine absolute bounds with upward and downward rate limits to find the feasible dose set.
  • Derive the closest feasible dose when recommendations are based on squared distance.
  • Apply dose increments without rounding to a value that violates a bound or rate limit.
  • Diagnose empty feasible sets and boundary, unit, and numerical-tolerance errors.
  • Distinguish simple projection from optimizing the original clinical decision objective under constraints.

Why Dose Bounds and Rate Limits Need Explicit Enforcement

A model can produce a numerical dose recommendation that is useful as a starting point but not eligible to prescribe as written. A minimum or maximum dose may restrict the permissible range, and a rate limit may restrict how far the dose can change at one decision time. These rules answer different questions: absolute bounds define which doses are permitted overall, while rate limits define which changes are permitted from the current dose.

The distinction matters when the unconstrained recommendation lies outside either range. It also matters when a dose must be selected from a discrete set, such as multiples of 5 mg. Merely rounding a model output, or clipping it to one limit without checking the others, can produce a dose that still violates a rule. The reliable approach is to define the full feasible set first, choose a dose from that set, and verify the final value against every constraint.

Definition: Let \(d_{\mathrm{raw}}\) be a model's numerical recommendation, \(d_0\) the current dose, and \(L\) and \(U\) the permitted absolute minimum and maximum doses. Let \(r_{\downarrow}\) and \(r_{\uparrow}\) be the maximum permitted decrease and increase at the current decision, respectively. The feasible interval is the intersection of the absolute-dose interval and the rate-limited interval: $$ \mathcal{F}=[L,U]\cap[d_0-r_{\downarrow},\,d_0+r_{\uparrow}]. $$ A final recommendation must belong to \(\mathcal{F}\). If doses are restricted to a grid \(\mathcal{G}\), it must belong to \(\mathcal{F}\cap\mathcal{G}\).

This formulation assumes that all doses use the same quantity and time basis—for example, mg per day throughout—and that the bounds and rate limits are in force at this decision time. Intervals are taken as inclusive: a dose equal to a specified minimum, maximum, or permitted change is allowed. Upward and downward limits need not be equal. They may represent absolute dose changes or be derived from a stated percentage rule; in either case, calculate their dose-unit equivalents before intersecting intervals.

Finding and Using the Feasible Interval

Write each rule as an interval before altering the model output. The absolute range is \([L,U]\). A permitted decrease no greater than \(r_{\downarrow}\) means \(d\geq d_0-r_{\downarrow}\); a permitted increase no greater than \(r_{\uparrow}\) means \(d\leq d_0+r_{\uparrow}\). Thus the combined limits can be written compactly as

$$ d_{\min,\mathrm{feas}}=\max(L,d_0-r_{\downarrow}),\qquad d_{\max,\mathrm{feas}}=\min(U,d_0+r_{\uparrow}). $$

If \(d_{\min,\mathrm{feas}}\leq d_{\max,\mathrm{feas}}\), the feasible interval is \([d_{\min,\mathrm{feas}},d_{\max,\mathrm{feas}}]\). If the lower endpoint exceeds the upper endpoint, no dose satisfies all rules at once. That is a constraint conflict, not a reason to quietly relax a limit or return an out-of-range value.

When the model's recommendation is intended to be the closest feasible dose on the same scale, the usual rule is projection onto the feasible interval: keep \(d_{\mathrm{raw}}\) if it is inside the interval; otherwise select the nearest endpoint. This is the minimizer of squared distance to the raw recommendation. It is not automatically the right rule for every decision model: if the recommendation came from a clinical utility or loss function, the principled constrained decision is to optimize that original objective over the feasible set.

Justification: For a nonempty interval \([a,b]\), minimize \((d-d_{\mathrm{raw}})^2\) subject to \(a\leq d\leq b\). The derivative with respect to \(d\) is \(2(d-d_{\mathrm{raw}})\), so the unconstrained minimum is \(d=d_{\mathrm{raw}}\). If \(d_{\mathrm{raw}}<a\), then \(d-d_{\mathrm{raw}}>0\) throughout \([a,b]\), so the squared distance increases as \(d\) increases and is minimized at \(a\). If \(d_{\mathrm{raw}}>b\), the squared distance decreases as \(d\) increases through \([a,b]\), so it is minimized at \(b\). Therefore the constrained minimizer is \(a\) below the interval, \(b\) above it, and \(d_{\mathrm{raw}}\) within it.

Worked Example: An Upper Bound and an Increase Limit

Suppose a hypothetical model recommends 92 mg/day. The current dose is 70 mg/day, the permitted absolute range is 20 to 100 mg/day, and the increase limit for this decision is 15 mg/day. The permitted decrease is 20 mg/day. Find the feasible interval and the closest feasible dose.

The absolute interval is \([20,100]\) mg/day. The rate-limited interval is \([70-20,70+15]=[50,85]\) mg/day. Therefore,

$$ \mathcal{F}=[20,100]\cap[50,85]=[50,85]\ \text{mg/day}. $$

Because 92 mg/day exceeds the feasible upper endpoint, the closest feasible dose is 85 mg/day. It is within the absolute bounds, and its increase from the current dose is \(85-70=15\) mg/day, exactly the permitted maximum. The result is on the boundary, so checking inclusivity and arithmetic is important.

Dose Grids, Rounding, and Boundary Checks

A mathematically feasible real-valued dose may not be an available dose. For instance, a formulation or dosing protocol may permit only multiples of a specified increment. In that case, first intersect the feasible interval with the set of allowed doses, then choose among those doses according to the decision rule. Rounding the raw recommendation first is not generally equivalent: rounding can move the dose outside a rate limit or absolute bound, and subsequent clipping can create a value that is not on the permitted grid.

If the objective is to stay as close as possible to \(d_{\mathrm{raw}}\), select the grid value in \(\mathcal{F}\cap\mathcal{G}\) that minimizes the distance to \(d_{\mathrm{raw}}\). If two grid values are equally close, use a prespecified tie rule; do not let software defaults decide inconsistently. The example below uses multiples of 5 mg/day and has no tie.

Worked Example: A Percentage Rate Limit and a Dose Increment

Suppose a hypothetical recommendation is 52 mg/day, the current dose is 40 mg/day, and the allowed increase is at most 20% of the current dose. The absolute range is 10 to 80 mg/day, and available doses are multiples of 5 mg/day. Decreases of up to 25% are permitted. Find the closest available feasible dose.

The maximum increase is \(0.20\times40=8\) mg/day, and the maximum decrease is \(0.25\times40=10\) mg/day. Thus the rate interval is \([40-10,40+8]=[30,48]\) mg/day. Intersecting it with the absolute interval gives \(\mathcal{F}=[30,48]\) mg/day. The available doses in that interval are 30, 35, 40, and 45 mg/day.

The distances from the raw recommendation of 52 mg/day are 22, 17, 12, and 7 mg/day, respectively. Therefore, 45 mg/day is the closest available feasible dose. Its increase is \(45-40=5\) mg/day, which is no greater than the 8 mg/day limit, and it lies within the absolute range.

Rounding 52 mg/day to the nearest 5 mg/day first would give 50 mg/day. That dose is not feasible: its increase is 10 mg/day, exceeding the 8 mg/day limit. Clipping 50 to the continuous upper endpoint of 48 mg/day would still produce a dose that is not a multiple of 5 mg/day. Choosing from the feasible grid avoids both errors.

The order of operations deserves care. For a continuous interval and a squared-distance objective, intersecting all intervals and then projecting gives a well-defined result. In contrast, clipping to the absolute range and then applying a rate limit can obscure an empty intersection or produce a different answer if the implementation rounds between steps. A robust implementation computes the final lower and upper endpoints from all applicable limits, then applies the dose-grid rule, then checks the result against each original rule.

When the Constraints Conflict

A nonempty absolute range does not guarantee a feasible dose. The current dose may be outside the absolute range, or a strict rate limit may prevent reaching any dose within that range at the current decision. In those cases, do not describe the result as a clipped recommendation: there is no value satisfying all stated requirements. The conflict should be made explicit for resolution under the applicable dosing process.

Worked Example: An Empty Feasible Set

Suppose a hypothetical patient's current dose is 110 mg/day. The absolute maximum is 100 mg/day, and the maximum permitted decrease at this decision is 5 mg/day. The absolute minimum is 20 mg/day, and an increase of up to 10 mg/day is permitted. Determine whether any dose satisfies both types of limits.

The absolute interval is \([20,100]\) mg/day. The rate interval is \([110-5,110+10]=[105,120]\) mg/day. Their intersection is empty because the rate interval requires \(d\geq105\) mg/day while the absolute interval requires \(d\leq100\) mg/day:

$$ \max(20,105)=105>100=\min(100,120). $$

There is no feasible dose under these rules. Selecting 100 mg/day would meet the absolute maximum but decrease the dose by 10 mg/day, twice the permitted decrease. Selecting 105 mg/day would meet the rate limit but violate the absolute maximum. The calculation identifies a conflict; it does not authorize choosing one limit to ignore.

Diagnostics, Alternatives, and Common Errors

A small set of explicit checks makes errors easier to detect. After computing a final dose \(d_{\mathrm{final}}\), verify all inequalities in the original units:

$$ L\leq d_{\mathrm{final}}\leq U,\qquad -r_{\downarrow}\leq d_{\mathrm{final}}-d_0\leq r_{\uparrow}. $$

If there is a dose grid, also verify that the final dose belongs to it. Log the raw recommendation, current dose, each bound, the calculated feasible interval, the selected dose, and whether the feasible set was empty. These values allow a reviewer to locate whether a discrepancy arose in the model output, constraint calculation, or rounding step.

  • Unit mismatch: combining a limit in mg per dose with a current dose in mg/day does not define a valid interval. Convert to a common dose basis before calculation.
  • Sign error: a permitted decrease of \(r_{\downarrow}\) gives the lower rate endpoint \(d_0-r_{\downarrow}\), not \(d_0+r_{\downarrow}\).
  • Boundary error: using a strict comparison where the rule allows an exact maximum can wrongly exclude a boundary dose. Conversely, accepting a value just beyond a limit because it is “close” can violate the rule.
  • Premature rounding: rounding before applying all constraints can create an infeasible dose. Apply the stated grid rule only after establishing the continuous feasible interval.
  • Empty-set concealment: forcing the lower endpoint down to the upper endpoint when they cross invents a feasible value. Report that the intersection is empty instead.

Floating-point calculations can represent decimal values with tiny numerical discrepancies. If the implementation uses a tolerance, it should be specified in dose units, justified by the representation and dose precision, and applied consistently. A tolerance must not silently expand a clinical limit. The displayed and transmitted dose should be checked after formatting as well as before it, since rounding for display can make the communicated value differ from the value that was checked.

The main alternatives are not interchangeable. Sequential clipping is simple but can hide conflicts and becomes fragile when rounding is inserted between steps. Projection onto the intersection is transparent when the goal is the nearest dose on a continuous scale. For discrete doses, direct selection from the feasible grid is safer than rounding and clipping. Finally, if the underlying recommendation maximizes an expected utility or minimizes a clinically defined loss, the constrained optimum should be found by evaluating that objective over feasible doses, rather than assuming closeness to \(d_{\mathrm{raw}}\) is clinically equivalent.

Key takeaway: Compute the intersection of absolute bounds and permitted change limits before selecting a dose. Then apply any dose-grid rule and verify the final value against every original constraint. An empty intersection is a visible constraint conflict, not a dose to be repaired by undocumented clipping.

Check Your Understanding

For each question, use inclusive bounds and show how the constraints determine the answer.

  1. A hypothetical recommendation is 38 mg/day. The current dose is 30 mg/day, absolute bounds are 10 to 40 mg/day, and increases are limited to 6 mg/day. What is the feasible interval and closest feasible dose?

    Solution: The rate interval is \([30,36]\) mg/day. Its intersection with \([10,40]\) is \([30,36]\), so 38 mg/day projects to 36 mg/day.

  2. The current dose is 50 mg/day, the permitted decrease is 12 mg/day, and the permitted increase is 8 mg/day. What is the rate interval?

    Solution: The lower endpoint is \(50-12=38\) mg/day and the upper endpoint is \(50+8=58\) mg/day. The interval is \([38,58]\) mg/day.

  3. A current dose is 25 mg/day and increases are limited to 10%. What is the maximum permitted increase in mg/day?

    Solution: \(0.10\times25=2.5\) mg/day. The rate-limited upper endpoint is \(25+2.5=27.5\) mg/day.

  4. A feasible interval is \([22,37]\) mg/day, and doses must be multiples of 5 mg/day. Which allowed doses are feasible?

    Solution: The multiples of 5 within the inclusive interval are 25 mg/day and 30 mg/day. Neither endpoint is a multiple of 5.

  5. Absolute bounds are \([15,60]\) mg/day. The current dose is 70 mg/day, and a decrease of at most 5 mg/day is permitted. Is the feasible set empty?

    Solution: The rate interval is \([65,70]\) mg/day. It does not intersect \([15,60]\), since 65 is greater than 60. The feasible set is empty; neither 60 nor 65 mg/day satisfies both rules.

Clinical Biostats