Scenario presets (from the assignment)
Normal fasting adult: gains = 1, QL = 8400 mg/hr, no glucose load. Steady state ≈ 0.81 mg/ml glucose, 0.057 IU/ml insulin.
Patient & test parameters
OGTT positivity criteria used in the assignment: glucose ≥ 2.0 mg/ml at 1 hr or ≥ 1.4 mg/ml at 2 hr after the 75 g load. Fasting levels are found automatically by pre-running the model to steady state before the test begins (the load is given at t = 0.5 hr).
Pharmacokinetics used (one-compartment oral/subcutaneous models)
Metformin: dose 1 g, Vd = 15 L, ka = 0.275/hr, ke = 0.25/hr, F = 0.95.
Bateman concentration C(t) = F·D·ka/[Vd(ka−ke)]·(e−ket−e−kat).
Hepatic output is scaled as QL(t) = QL0·[1 − 0.5·C(t)/Cmax,1g].
Humulin: Vd = 30 L, ka = 1.55/hr, ke = 0.43/hr, F = 0.65 (peak at ≈1.1 hr, duration ≈5 hr,
matching the Lilly data quoted in the assignment). With the course units a 30 IU dose produces a small plasma concentration relative
to the model’s fasting insulin of 0.057 IU/ml — raise the dose slider to explore a clear hypoglycemic nadir.