Skip to content

Batch mu_max estimate

bioreactor_batch_fit

Estimates µmax from the measured biomass and substrate readings of a batch run.

Runs
Built, not hosted
Level
Checked against a reference: Bioreactor verification 0.9.0, an independent SciPy 1.17.0 script

What it is

Required: scaling (known-sd, balancing-scale). Estimates mu_max (per hour) from biomass and substrate readings of a batch run, every other value of the scenario held fixed: a grid search within your bounds refined by bounded Brent minimisation, judged by numerical rules and practical checks. No estimate when not resolved or withheld; no interval; conditional on the fixed values. Batch runs at constant aeration with no rescue only. Units: g/L or mg/L, h or min, 1/h.

Field: Fermentation. It is the same calculation as Drybench Bioreactor, called by an AI assistant through the server.

What it does

You give

  • preset (required): One of e-coli-fed-batch, s-cerevisiae-fed-batch, pichia-aox1, chemostat, custom, or a published version as <id>@<n>; an id alone takes its current version.
  • biomass (required): Biomass readings.
  • substrate (required): Substrate readings.
  • lower (required): Search bound, above 0.
  • upper (required): Search bound, at most 5.
  • scaling (required): Each scale as an SD or a balancing scale.

and 1 more, listed below

No request is recorded for this tool.

Limits

  • Every computed number a reply returns, other than an integer or an exact decimal, is rounded once to 12 significant figures: to the nearest, a change of at most 5 × 10⁻¹² of its value, except that a lower bound is rounded down and an upper bound up, a change of less than 1 × 10⁻¹¹; the method computes, and decides any pass or fail, on the unrounded value.
  • No other limit is recorded for this tool.
Every input, with its units7 inputs
  • preset (required): One of e-coli-fed-batch, s-cerevisiae-fed-batch, pichia-aox1, chemostat, custom, or a published version as <id>@<n>; an id alone takes its current version.
  • biomass (required): Biomass readings.
  • substrate (required): Substrate readings.
  • lower (required): Search bound, above 0.
  • upper (required): Search bound, at most 5.
  • scaling (required): Each scale as an SD or a balancing scale.
  • changes: By parameter id in drybench://data/bioreactor-presets: a number as { value, unit } in its listed unit, an option by its word, a formula as text, "none" where accepted.

The calculation

4 methods, each with its equations, constants and worked example.

Batch μmax estimate, the other values fixed: model 2.1.0, with α, β, Yps and the product formula held as entered, by the modified Rosenbrock solver at the exact observation times, a 33/65/129-point grid in the scaled bound, Brent's bounded minimisation per basin, a bounded Levenberg-Marquardt cross-check, the numerical rules of Bioreactor verification 0.9.0 and the CSO's practical flags (0.10.0)bioreactor-batch-fit@1.1.0

No equation is recorded for this version.

Kind of method: not recorded.

Worked example: not recorded for bioreactor-batch-fit@1.1.0.

Unstructured growth model: Monod (Haldane and Andrews for methanol), Pirt's maintenance, Luedeking and Piret's product with its own yield, balances with volume changeunstructured-growth-model@2.1.0

No equation is recorded for this version.

Kind of method: not recorded.

Worked example: not recorded for unstructured-growth-model@2.1.0.

unstructured-growth-model@2.1.0

Modified Rosenbrock (W-) formula with an analytic Jacobian, error control, its continuous extension and located eventsmodified-rosenbrock@1.1.0

No equation is recorded for this version.

Kind of method: not recorded.

Worked example: not recorded for modified-rosenbrock@1.1.0.

modified-rosenbrock@1.1.0

Dissolved oxygen by its own balance, dC/dt = kLa(C* − C) − OUR + (Fin/V)(Cfeed − C), with C* from the exhaust gas and Benson and Krause's solubilitydissolved-oxygen-balance@2.0.0

No equation is recorded for this version.

Kind of method: not recorded.

Worked example: not recorded for dissolved-oxygen-balance@2.0.0.

dissolved-oxygen-balance@2.0.0

Sources

No source is recorded for this tool's methods.

How it is checked

Level

Checked against a reference, the lowest of its 4 methods.

Checked against

Batch μmax estimate, the other values fixed: model 2.1.0, with α, β, Yps and the product formula held as entered, by the modified Rosenbrock solver at the exact observation times, a 33/65/129-point grid in the scaled bound, Brent's bounded minimisation per basin, a bounded Levenberg-Marquardt cross-check, the numerical rules of Bioreactor verification 0.9.0 and the CSO's practical flags (0.10.0): Bioreactor verification 0.9.0, an independent SciPy 1.17.0 script (Radau at relative tolerances 1e-9 to 1e-11 with a BDF cross-check, evaluated at the exact observation times; a 33/65/129-point grid, bounded minimisation in every basin and a trf cross-check) on 20 synthetic cases generated from the model's own equations (14 numerically resolved, 2 not resolved, 4 refused), and 0.13.0, the same script with 1.1.0's admission (the 20 cases re-run byte-equal and 13 new initial-state cases): admission outcomes, codes and canonical rows equal exactly; predictions at the oracle's μmax within the two prediction envelopes; μmax within 3 × (the oracle's spread across four integration levels plus the engine's own, at most 1e-4 of μmax); the objective within Σ(2|rᵢ|eᵢ + eᵢ²); verdicts and reasons equal; the practical flags equal to the derived set 0.11.0, computed from 0.9.0's stored values at thresholds fixed before the engine existed (24 and 25 October 2026). The oracle integrates the same equations, so the check shows the fit is computed as specified, not that these data identify μmax or that the model suits a culture; no measured dataset has been fitted. Draft until the independent bioprocess reviewer signs the equations, the presets and the fixtures (Q-19).

Unstructured growth model: Monod (Haldane and Andrews for methanol), Pirt's maintenance, Luedeking and Piret's product with its own yield, balances with volume change: State variables checked against SciPy 1.17.0 Radau on 33 scenarios (SciPy's Radau at a relative tolerance of 1e-9, an absolute tolerance a hundredth of the engine's for every state): each point within the larger of 1e-5 of its value, a time shift of max(1e-4 h, 1e-5 of the elapsed time) times its slope, and its floor; inside the window after a change of aeration or feed, the series computed from dissolved oxygen on value alone; events within 1e-3 h; the carbon and electron balances close within 0.5 percent; the right-hand sides agree within 1e-12 relative at 13 states (2026-10-07). Draft until the independent bioprocess reviewer signs the equations, the presets and the fixtures (Q-19).

Modified Rosenbrock (W-) formula with an analytic Jacobian, error control, its continuous extension and located events: SciPy 1.17.0 Radau on the same 33 scenarios, with one step and the linear solve compared with NumPy 2.3.5 and LAPACK, and fixed-step RK4's failure at kLa 1,000 per hour kept as a regression test (2026-10-07). Draft until the independent bioprocess reviewer signs the equations, the presets and the fixtures (Q-19).

Dissolved oxygen by its own balance, dC/dt = kLa(C* − C) − OUR + (Fin/V)(Cfeed − C), with C* from the exhaust gas and Benson and Krause's solubility: Air saturation checked against the USGS DOTABLES program's own output at 9 temperatures and pressures, and the exhaust-gas balance on 3 cases, by SciPy 1.17.0 (2026-10-07). Draft until the independent bioprocess reviewer signs the equations, the presets and the fixtures (Q-19).

Cases

Batch μmax estimate, the other values fixed: model 2.1.0, with α, β, Yps and the product formula held as entered, by the modified Rosenbrock solver at the exact observation times, a 33/65/129-point grid in the scaled bound, Brent's bounded minimisation per basin, a bounded Levenberg-Marquardt cross-check, the numerical rules of Bioreactor verification 0.9.0 and the CSO's practical flags (0.10.0): No case set is linked to this version.

Unstructured growth model: Monod (Haldane and Andrews for methanol), Pirt's maintenance, Luedeking and Piret's product with its own yield, balances with volume change: No case set is linked to this version.

Modified Rosenbrock (W-) formula with an analytic Jacobian, error control, its continuous extension and located events: No case set is linked to this version.

Dissolved oxygen by its own balance, dC/dt = kLa(C* − C) − OUR + (Fin/V)(Cfeed − C), with C* from the exhaust gas and Benson and Krause's solubility: No case set is linked to this version.

Worked example

Worked example constructed by Drybench, not published. Inputs chosen by us; expected values computed by a 129-point grid and bounded scalar minimisation of the scaled sum of squares by SciPy 1.18.1 on Xu 2020's closed form (Eq. 5, brentq), cross-checked with SciPy solve_ivp (Radau) on Eqs. (1) and (4) independently of the tool. Reasoning: docs/progress/library/2026-11-24-d0273-cases-brief-bioreactor_batch_fit.md.

Hostile inputs

Sent 288 malformed, extreme and misspelt calls. None broke it, and every call with an undeclared argument, or with text in place of a number or a true/false value, was declined with a reason.

Run 2026-11-12-2 of 12 November 2026, server 0.11.0.

Same answer

Called twice and with its arguments in another order, it gave the same result.

Run 2026-11-12-2 of 12 November 2026, server 0.11.0.

Not checked

Batch μmax estimate, the other values fixed: model 2.1.0, with α, β, Yps and the product formula held as entered, by the modified Rosenbrock solver at the exact observation times, a 33/65/129-point grid in the scaled bound, Brent's bounded minimisation per basin, a bounded Levenberg-Marquardt cross-check, the numerical rules of Bioreactor verification 0.9.0 and the CSO's practical flags (0.10.0): Not recorded. Its absence does not mean everything was checked.

Unstructured growth model: Monod (Haldane and Andrews for methanol), Pirt's maintenance, Luedeking and Piret's product with its own yield, balances with volume change: Not recorded. Its absence does not mean everything was checked.

Modified Rosenbrock (W-) formula with an analytic Jacobian, error control, its continuous extension and located events: Not recorded. Its absence does not mean everything was checked.

Dissolved oxygen by its own balance, dC/dt = kLa(C* − C) − OUR + (Fin/V)(Cfeed − C), with C* from the exhaust gas and Benson and Krause's solubility: Not recorded. Its absence does not mean everything was checked.

What this project's records still lack5 things
  • A case worked by hand from the source's equation for all four methods.
  • The equation for all four methods.
  • The constants with their sources for all four methods.
  • A case set linked to this version for all four methods.
  • A record of what was not checked for all four methods.
Cite a number from this toolthe cite line

Every reply carries a cite line naming the tool, the server version, each method with its version and level, and the receipt. Quote it with any number taken from the reply.

bioreactor_batch_fit, server 1.0.0; status invalid-input, nothing ran; no method record; receipt <input hash, 12 characters>/<output hash, 12 characters>; methods https://www.drybench.com/methods/bioreactor; page https://www.drybench.com/methods/tools/bioreactor-batch-fit. There is no result to quote; this line identifies the call and its receipt.
Changes to its methods0 changes

No change is logged for these method versions.