Skip to content

Menu

WorksComputer Science

manylp: reproducible, exact, and batched linear programming for genome-scale dynamic flux balance analysis

Download PDFView on arXiv

Ask your agent about this work

Your agent reads this work through Valency, with its citations and similar works. Paste this at the start of a chat.

Use the Valency MCP. Work: W_qe53szwt. Fetch it with get_paper_by_id, then find its nearest works with find_similar_papers and tell me what it adds.

Works with any MCP client. Not connected yet? Connect your agent

Abstract

Dynamic flux balance analysis (dFBA) and its community, spatial and ensemble variants predict microbial metabolism by solving one linear program (LP) per species and time step, often 10^6 to 10^8 LPs per study. These LPs share their constraint matrix and objective and differ only in their bounds, yet general-purpose solvers treat each one independently, and GPU first-order solvers struggle with the degenerate, badly scaled matrices of genome-scale models. Moreover, metabolic optima are usually faces rather than vertices, so solvers return arbitrary flux vectors and dFBA predictions depend on the solver used. We present manylp, a batched solver for such bounds-parametric LP families that returns certified vertex solutions. Building on the bunching technique of stochastic programming, manylp caches optimal bases and certifies whole batches with one dense matrix product per basis on CPUs or GPUs; LPs outside the cached critical regions are re-solved by a warm-started lexicographic dual simplex, and new bases are propagated across the batch. Each LP is certified optimal and unique under a lexicographic flux rule, or infeasible, in independent double-precision arithmetic. On a genome-scale dFBA workload, manylp certified 47,889 LPs per second on a CPU, 12 to 33 times faster than HiGHS, Gurobi, FICO Xpress, GLPK and OR-Tools (32 processes), and reached 682,000 LPs per second on one GPU for community ensembles, needing 76 simplex solves for 94.6 million LPs. Integrated into the muODE simulator, it accelerated single trajectories 84-fold and 16-member ensembles 635-fold, and made adaptive Runge-Kutta integration affordable, reducing biomass errors 83-fold. Integrating 49 equally optimal flux policies in one batched run showed that alternative optima change predicted acetate 4.2-fold and shift community composition. manylp is open source: https://github.com/cumbof/manylp.

Image not extracted

Figure 1.

MAIN

Flux balance analysis (FBA) is the mathematical and computational cornerstone for predicting the metabolic states of cellular systems [1, 2, 3]. The method operates by resolving a linear program (LP) over a genome-scale metabolic network (GEM): it maximizes a defined biological objective, typically biomass production, subject to the constraints of steady-state mass balance and specific flux bounds. Dynamic flux balance analysis (dFBA) elevates this paradigm by coupling these static metabolic LPs to ordinary differential equations (ODEs) that explain the concentrations of extracellular metabolites and biomass over time [4, 5]. Under the standard static optimization approach, a simulator must advance time by discretely resolving one LP per species at every integration step, with the metabolic uptake bounds dynamically updated to reflect current environmental concentrations [5, 6, 7].

As modern computational biology scales from single-species bioreactors to spatially resolved microbial communities, this requirement generates a massive computational bottleneck [8, 9, 10]. Spatial and community simulators are particularly demanding. For instance, COMETS resolves one LP per microbial species per spatial grid cell at every step [11, 12, 13], while the μODE [14] engine integrates complex, multi-species communities reconstructed directly from metagenome-assembled genomes [15, 16]. The burden is multiplied further by the necessity of parameter sweeps, Monte Carlo ensembles modeling dietary and kinetic variations, and rigorous uncertainty analyses [17]. Consequently, a single comprehensive systems biology study easily requires the evaluation of 10610^{6} to 10810^{8} independent LPs.

Despite this staggering volume, these LPs exhibit a rigid, highly exploitable mathematical structure: they are relatively small, typically containing 10310^{3} to 10410^{4} variables, and all LPs generated for a single species share the exact same stoichiometric matrix and objective function [18, 19, 20]. They differ only in a narrow subset of exchange variable bounds. Furthermore, these shifting bounds exhibit profound temporal coherence (changing only marginally from one integration time step to the next) and ensemble coherence (varying slightly across parallel simulation members).

Current general-purpose LP solvers utilize this inherent biological structure poorly. Classical CPU-based algorithms, whether utilizing the dual simplex or interior point methods, are architected to solve one LP at a time [21, 22, 23, 24]. While they attempt to exploit temporal coherence through warm starts, they still incur severe computational overhead by executing matrix factorization and pricing operations during every independent solve.

Recent advancements in GPU-accelerated optimization have not resolved this specific bottleneck. Modern GPU LP solvers, largely based on the primal-dual hybrid gradient (PDHG) method (e.g., PDLP, cuPDLP, cuOpt, and MPAX), target single, large-scale problems at moderate accuracy [25, 26, 27, 28]. First-order methods like these struggle with the degenerate, ill-conditioned matrices typical of genome-scale FBA, resulting in slow convergence or complete failures [29, 30]. Similarly, batched optimization layers such as OptNet, cvxpylayers, and OSQP [31, 32, 33, 34, 35] are designed to tackle small problems up to ADMM or interior-point accuracy, lacking the capacity to reliably yield the exact vertex solutions required by FBA.

Beyond pure computational throughput, these bounds-parametric LPs mask a deeper scientific vulnerability. While FBA successfully pins the optimal maximal growth rate of a cell, it generally fails to uniquely identify the internal flux vector. The biological optimum is typically a high-dimensional face of the feasible polytope rather than a single, unique vertex [36, 37]. Because the exchange fluxes that drive the dFBA differential equations are extracted directly from whichever optimal vertex the solver happens to return, the resulting biological trajectories depend on the choice of solver and its internal pivoting rules [38, 39]. The biological impact of this solver ambiguity can be vast, particularly in models of the human gut microbiome. Our driving application in this study is a community model of the human gut: twelve genome-scale metabolic reconstructions of prevalent gut species [16] (including Bacteroides thetaiotaomicron, Bacteroides fragilis, Faecalibacterium prausnitzii, Roseburia intestinalis, Eubacterium rectale, Segatella copri [40], and Akkermansia muciniphila) growing together on a Western diet [41] for 48 hours. The quantities such simulations are used to predict are the short-chain fatty acids (acetate, propionate, butyrate) and gases the community releases, and how its composition shifts, because these mediate most of the microbiome’s effects on the host [42]. Acetate is the central currency of this network: it is secreted by saccharolytic Bacteroides and Bifidobacterium species and consumed by butyrate producers [43, 44, 45] such as F. prausnitzii and R. intestinalis. A prediction of acetate is therefore also a prediction of cross-feeding, and of butyrate.

Because a species can achieve the same optimal growth rate while secreting drastically different amounts of acetate, the arbitrary vertex chosen by the solver directly dictates the availability of these critical nutrients. This divergence alters what neighboring species can consume, allowing initial solver-induced variations to persist and compound over time, fundamentally shifting the predicted community composition and total metabolic output [46, 47]. To complement this complex network dynamics test, we also use the classical E. coli diauxic shift reference [5, 48, 49]. Its sharp metabolic switch serves as a standard stress test for evaluating dFBA adaptive integrators.

Historically, the community has utilized flux variability analysis (FVA) to measure the extent of these alternative optima, or mixed-integer methods to enumerate the vertices [36, 37]. To enforce a unique solution for a single trajectory, various rules have been proposed, including parsimonious FBA (pFBA), geometric FBA, lexicographic priority lists, L2 regularization (as seen in MICOM), or the application of secondary objectives [7, 47, 50, 51, 52, 53, 54]. However, in dFBA, handling non-uniqueness remains fiercely debated. While some studies select a single trajectory calibrated to empirical data [55], others propagate several trajectories generated via varying regularization weights, treating them as scenarios for robust model-predictive control [56, 57]. The biological impact of this solver ambiguity can be vast: while reordering lexicographic objectives had negligible effects in some single-species spatial models [58], community models of the human gut demonstrate that optimal acetate secretion can span an alarmingly wide range [46, 47], drastically altering cross-feeding predictions.

The mathematical foundation for overcoming both the throughput bottleneck and the alternative optima crisis lies in classical parametric programming. As a function of its right-hand side, the solution to an LP is piecewise affine over polyhedral critical regions [59, 60, 61, 62], with one region corresponding to each optimal basis. Multiparametric programming attempts to enumerate these regions offline, while explicit model-predictive control evaluates the stored affine law online [61, 63].

Stochastic programming has exploited this property without relying on explicit enumeration [64]. Because second-stage LPs differ only in their right-hand sides, an optimal basis for one scenario remains dual feasible for all others [65]. The classical technique of bunching checks primal feasibility for every remaining scenario and utilizes a warm-started dual simplex to solve the rest. However, applying these concepts to genome-scale dFBA requires handling general variable bounds rather than just non-negative right-hand sides, certifying lexicographic degeneracy, caching infeasibility, and scaling the matrix operations for modern hardware architectures. Furthermore, existing batched tools do not reuse bases across instances or provide rigorous mathematical certificates for their answers.

Several methods already reuse optimal bases or critical regions, but each covers only part of what dFBA ensembles require. Ji et al. (2017) generate critical regions on demand during Monte Carlo simulation of power-system dispatch, solving a new optimization problem only when a sampled scenario falls outside every region found so far [66]. Akbari and Barton [62] apply multiparametric programming to FBA itself and compute the critical regions of a metabolic network explicitly, an approach whose cost in general grows rapidly with the number of varying bounds [62]. Bertsimas and Stellato [67], as well as Misra et al. [68], show that learning approaches predict the optimal active set of a new instance instead, but the prediction is not a certificate and must still be checked or repaired by a solver [67, 68]. Within dFBA, Höffner et al. (2013) and Brunner and Chia [10] keep the optimal basis along a trajectory and re-solve the LP only when that basis stops being valid, which greatly reduces the number of LPs per trajectory but still integrates each trajectory separately [10, 53]. On GPUs, Gurung and Ray (2019) run a separate simplex method for each LP of a batch [35], and Blin et al. [33] solve batches of LPs with first-order methods that return ε\varepsilon-approximate rather than vertex solutions [33]; neither shares optimal bases between the LPs of a batch. No existing method combines on-demand critical regions shared across an entire batch of species, time steps and ensemble members, batched evaluation on CPUs and GPUs, and per-LP certificates of optimality, uniqueness, and infeasibility.

To bridge this gap, we propose manylp, a batched LP solver engineered specifically for the bounds-parametric LP families generated by dFBA. manylp translates the classical bunching concept into a highly scalable, certified solver tailored for modern dFBA workflow. Our primary contributions are:

  1. manylp maintains a dynamic pool of cached optimal bases that certify entire batches of LPs using a single dense matrix product per basis, executing on GPUs or through fused multi-threaded CPU kernels. The certificate covers lexicographic optimality, uniqueness of the optimum, and infeasibility through Farkas rays [69]. LPs falling outside cached regions are resolved by a warm-started dual simplex, producing vertex solutions whose validity is rigorously checked in double-precision arithmetic independently of the simplex solver.

  1. Affine laws are computed lazily, restricting operations exclusively to parametric variables that actively shift. Progressive repair algorithms propagate newly discovered bases to the entire batch, while a yield guard bounds the worst-case performance on highly incoherent batches. Crucially, persistent basis atlases carry cached bases across independent simulations; under a unique flux rule, these atlases can never alter a biological result.

  1. manylp extends scenario trajectories by evaluating dozens of systematic, reproducible selection policies over the optimal face in lockstep. This generates an envelope of whole simulations, effectively quantifying how much of a dFBA prediction the model itself leaves undetermined, a vital metric that conventional solvers silently collapse into a single arbitrary point.

  1. We integrated manylp into the μ\muODE community simulator and conducted an exhaustive audit of every returned solution of 11 solvers across a panel of 25 different configurations (including HiGHS, Gurobi, FICO Xpress, GLPK, OR-Tools, OSQP, NVIDIA cuOpt, and MPAX) [23, 28, 34]. The evaluation encompasses genome-scale workloads, Netlib LPs under right-hand-side uncertainty [70], models spanning 95 to 10,600 reactions, and direct comparisons against classical bunching, native lexicographic modes, exact rational solving [71, 72], and alternative dFBA trajectory simulators [10, 73].

RESULTS

We evaluated manylp against 25 configurations of 10 state-of-the-art exact and first-order solver packages across a range of workloads (Supplementary Tables S1 and S2), spanning recorded genome-scale temporal dynamics, end-to-end community spatial simulations, and generic linear systems under right-hand-side uncertainty. The findings demonstrate that decoupling rigorous mathematical certification from exploratory simplex optimization yields massive throughput gains. Furthermore, we show that this microsecond-level computational efficiency enables high-order adaptive integration and systematically resolves the biological ambiguity inherent to alternative optimal states in dFBA.

A human gut community as the driving use case

Every biological workload evaluated in this study derives from either a 12-species human gut community model or a classic E. coli core diauxic shift. The gut community integrates genome-scale metabolic reconstructions growing on a simulated Western diet. To benchmark solver performance across diverse operational extremes, we derived specific simulation workloads from these baselines:

  • Coherent workload: 185,088 LPs recorded sequentially along the first 24 hours of the gut community trajectory, representing the highly coherent access pattern of standard dFBA.

  • Snapshot workload: 23,808 LPs generated by sampling the community trajectory every 1.6 hours (every 16th time step), serving as a stress test that removes temporal coherence to force solver cold starts.

  • Ensembles: parallel simulation members generated by applying log-normal perturbations to the dietary input bounds, testing structural reuse across slightly varying environments.

  • E. coli diauxie: a 12-hour single-species simulation of glucose consumption and subsequent acetate reuse, providing a standard reference for adaptive integration across sharp metabolic switches.

Batched certification delivers order-of-magnitude throughput gains

To establish baseline performance on real-world biological access patterns, we first benchmarked solvers on a recorded, temporally coherent dFBA workload comprising 185,088 genome-scale LPs. On this workload, manylp achieved a steady-state throughput of 47,889 LPs per second on a single 16-thread process. This performance establishes a 12- to 33-fold speedup over state-of-the-art general-purpose solvers running across 32 worker processes, including warm-started HiGHS (12.0x), Gurobi (16.2x), FICO Xpress (17.7x), GLPK (26.1x), and OR-Tools GLOP (32.7x) [23].

The true capacity of the certify-and-repair architecture is realized as ensemble size scales. In community dFBA experiments tracking a 12-species microbiome over 48 hours, we scaled the ensemble (EE) from a single trajectory to 16,384 diet-perturbed members. Batching efficiency allowed the GPU implementation to overtake the CPU starting at EE=256. At the maximum scale, evaluating 94.6 million LPs required merely 76 simplex solves, as the vast majority of biological states fell into shared optimal critical regions. Consequently, the GPU scaled to 682,000 LPs per second, an 8.6-fold increase over the CPU’s plateau (Figure 1). These throughput levels are achieved while returning certified, vertex-exact answers. In contrast, alternative GPU solvers (NVIDIA cuOpt, MPAX) were orders of magnitude slower than manylp on the identical NVIDIA A100 GPU, completing under 1–8% of the coherent workload within a 15-minute budget. Their limitations varied strictly by algorithm: while cuOpt PDLP successfully converged to 10−610^{-6} accuracy on the fraction of the workload it reached (0.24%), solvers like MPAX, cuOpt barrier with crossover, and our custom batched PDHG [26, 27, 28] overwhelmingly failed to converge, solving between 0% and 12% of the LPs they processed (Table 1).

SolverPlatformNative batchingPer-LP certificationSteady-state throughput (LP/s)Max relative objective error
manylp (plain FBA)CPUYesYes47,8890 (reference)
manylp (pFBA-unique)GPUYesYes22,8272.6×10−112.6 \times10^{-11}
HiGHS (dual simplex)CPUNoNo (status flag)3,9863.3×10−113.3 \times10^{-11}
Gurobi 13 (dual simplex)CPUNoNo (status flag)2,9582.1×10−92.1 \times10^{-9}
FICO Xpress (dual simplex)CPUNoNo (status flag)2,7122.1×10−92.1 \times10^{-9}
GLPKCPUNoNo (status flag)1,8353.4×10−103.4 \times10^{-10}
MPAX (batched PDHG)GPUYesNo (ε\varepsilon-optimal)2.502.5×10−22.5 \times10^{-2} (12% solved)
NVIDIA cuOpt (PDLP)GPUYesNo (ε\varepsilon-optimal)0.401.0×10−61.0 \times10^{-6}
NVIDIA cuOpt (PDLP + crossover)GPUYesNo (status flag)0.211.1×10−111.1 \times10^{-11}

Table 1. Table 1: Speed, accuracy, and capability of evaluated LP solvers on a coherent genome-scale FBA workload. Performance metrics are recorded over 185,088 LPs derived from consecutive dFBA time steps. Throughput represents steady-state evaluations per second. Exact solvers verify the optimum, while first-order GPU solvers (cuOpt PDLP, MPAX) struggle with the degenerate biological matrices, requiring crossover to achieve exactness. manylp uniquely provides rigorous per-LP mathematical certification for optimality, uniqueness, and infeasibility.

To define the boundary conditions of the solver, we subjected manylp to a weakly coherent snapshot stress-test workload consisting of 23,808 LPs (Supplementary Table S2). On this workload, classical bunching utilizing 8 processes achieved 4,414 LPs [65], outpacing the plain-FBA manylp CPU implementation (3,477 LP/s) and operating at roughly 0.9x the speed of the GPU implementation (4,930 LP/s). However, manylp’s most significant advantage emerges under the strict pFBA-unique rule: when generating certified unique fluxes, manylp sustained 4,860 LP/s, outperforming the equivalent HiGHS lexicographic implementation (732 LP/s) [23, 74] by 6.6-fold.

Resolving the alternative optima crisis in microbiome modeling

While exact solvers mathematically agree on the optimal biological growth rate for a given time step, they routinely disagree on the specific flux distribution required to achieve it. Because the biological optimum typically forms a high-dimensional face rather than a single vertex, exact solvers return divergent, equally valid exchange fluxes [36] that differ by up to 2.7 mmol gDW−1gDW^{-1} h−1h^{-1} for the exact same LP.

To quantify the downstream biological consequences of this solver-induced ambiguity, we integrated a 12-species gut community model over 48 hours using an alternative-optima envelope. This approach evaluated 49 distinct flux-selection policies simultaneously (including the pFBA-unique rule, 32 random directions on the optimal face, and extreme secretion profiles for eight fermentation products) in a single batched run. All 282,828 LPs generated during this envelope simulation were computationally certified as optimal and unique under their respective policies.

The results reveal that mathematically equivalent FBA optima dictate profoundly divergent biological predictions (Figure 2, Table 2). Across the 49 policies, predicted short-chain fatty acid concentrations varied massively: acetate exhibited a 4.2-fold divergence (ranging from 0.209 to 0.883 mM), while butyrate varied 3.0-fold (0.115 to 0.343 mM). Furthermore, this uncertainty propagated beyond metabolite pools into the fundamental community composition. As the cross-feeding metabolite availability shifted across different solver trajectories, the final relative abundance of keystone species such as B. fragilis fluctuated between 15.7% and 20.6%. Even within a single, conventional exact solver configuration (e.g., COBRApy with GLPK [75]), the arbitrary vertex selected by the solver resulted in final biomass differences of up to 1.4% when compared to a systematic uniqueness rule.

Biological divergence driven by alternative optima in dynamic FBA

Figure 2. Biological divergence driven by alternative optima in dynamic FBA. Simulated concentrations of butyrate (left) and acetate (right) for a 12-species gut community over 48 hours. The shaded band represents the alternative-optima envelope spanning 49 equally valid flux-selection policies, computed simultaneously via a single manylp batched run. Dashed lines illustrate that three conventional exact solvers (GLPK, HiGHS, and SciPy linprog) running standard plain FBA land on entirely divergent, arbitrary trajectories within the envelope. The solid line indicates the reproducible, certified trajectory enforced by the pFBA-unique rule.

Simulation configurationTotal LPsOriginal backend time (s)manylp GPU time (s)SpeedupTotal simplex solves (manylp)
Ensemble (E=1E=1)5,772653.67.784x27
Ensemble (E=16E=16)92,35210,92017.2635x72
Ensemble (E=256E=256)1,477,632167,318188.7~890x72
Ensemble (E=1,024E=1{,}024)5,910,528669,273776.1~860x72
Spatial grid (8x8)7,680868.58.7~100x–
Spatial grid (16x16)30,7203,47416.9~206x–
Spatial grid (32x32)122,88013,89750.8~274x–

Table 2. Table 2: Extreme bounds of biological predictions across 49 equally optimal flux policies. Final trajectory values at 48 hours for a 12-species gut community model. Min and max values span the entirety of the alternative-optima envelope, demonstrating the severe variability hidden within standard FBA vertex solutions.

manylp resolves this reproducibility crisis by strictly enforcing a pFBA-unique lexicographic rule, which isolates a single, geometrically consistent vertex. This ensures deterministic, platform-independent trajectories. When benchmarking 48-hour biological simulations, manylp’s trajectories matched an independent HiGHS implementation applying the same rule to within 4×10−154 \times10^{-15} gDW L−1L^{-1} for biomass and 9×10−139 \times10^{-13} mM for extracellular metabolites.

Finally, manylp ensures these trajectories are numerically safe. To verify the internal double-precision certificates, we sampled 200 LPs and solved them using SoPlex in exact rational mode [71, 72], confirming that manylp’s certified optima perfectly matched rational arithmetic to within 1.7×10−111.7 \times10^{-11}. In contrast, commercial solvers proved alarmingly unreliable when tasked with this level of lexicographic precision natively: running FICO Xpress under its default settings resulted in non-lexicographically optimal fluxes for 29% of the tested genome-scale LPs, a silent mathematical failure entirely caught by manylp’s per-LP certification.

End-to-end acceleration of community and spatial simulations

To measure the practical impact of batched certification within a production environment, we integrated manylp as the core optimization backend for the μ\muODE simulator. This allowed us to benchmark end-to-end biological simulations, inclusive of all kinetic evaluations, ODE updates, and internal bookkeeping, against μ\muODE’s per-LP backend [14] (COBRApy coupled with GLPK [75]).

The integration of manylp yielded massive wall-clock reductions for both single-trajectory and lockstep ensemble simulations tracking a 12-species gut community over 48 hours (Table 3). For a single biological trajectory, evaluating 5,772 LPs dropped from 11 minutes (653.6 seconds) to just 7.7 seconds, an 89-fold acceleration. The gains compound aggressively as ensemble size (E) increases: simulating a 16-member diet-perturbed ensemble accelerated 635-fold, dropping from over 3 hours (10,920 seconds) to 17.2 seconds on the GPU. Strikingly, a 1,024-member uncertainty ensemble, requiring the resolution of nearly 5.9 million LPs, completed in just 13 minutes (776.1 seconds). Executing this exact experiment using the original solver path would take approximately one week.

Biological scenarioIntegration schemeTotal LPsWall time (s)Max relative biomass errorMax relative product error
Gut community (48 h)Euler, dt=0.1hdt=0.1\mathrm{h}5,7726.04.5×10−34.5 \times10^{-3}1.5×10−21.5 \times10^{-2}
Euler, dt=0.05hdt=0.05\mathrm{h}11,5329.12.2×10−32.2 \times10^{-3}7.1×10−37.1 \times10^{-3}
Euler, dt=0.01hdt=0.01\mathrm{h}57,61233.44.0×10−44.0 \times10^{-4}1.3×10−31.3 \times10^{-3}
RK45, rtol 10−410^{-4}15,86414.45.4×10−55.4 \times10^{-5}1.4×10−31.4 \times10^{-3}
RK45, rtol 10−610^{-6}20,61614.64.4×10−54.4 \times10^{-5}3.8×10−43.8 \times10^{-4}
E. coli diauxie (12 h)Euler, dt=0.1hdt=0.1\mathrm{h}2420.137.5×10−27.5 \times10^{-2}6.5
Euler, dt=0.01hdt=0.01\mathrm{h}2,4020.927.9×10−37.9 \times10^{-3}0.21
RK45, rtol 10−610^{-6}1,4080.778.1×10−58.1 \times10^{-5}1.9×10−31.9 \times10^{-3}
RK45, rtol 10−610^{-6} + regime events2,5861.968.1×10−58.1 \times10^{-5}2.0×10−32.0 \times10^{-3}

Table 3. Table 3: End-to-end acceleration of dynamic community and spatial simulations in µODE. All runtimes include the simulator’s full kinetic evaluation, ODE integration, and bookkeeping overhead. Ensemble simulations model a 12-species gut community for 48 hours (dt=0.1hdt=0.1\mathrm{h}). Spatial simulations model 1 hour of diffusion across 2D grids.

Because ensemble members share the vast majority of their critical regions, manylp required only 72 simplex solves to discover the 30 distinct critical regions that certify the entire 1,024-member ensemble. Beyond these 30 regions, over 5.9 million LPs were evaluated purely through matrix certification from the basis pool. At this scale, the LP optimization is no longer the computational bottleneck: while the end-to-end 1,024-member simulation took 776 seconds, manylp’s standalone certification required only 23 seconds for the identical LPs, indicating that over 95% of the total runtime is now consumed by the simulator’s native Python engine overhead.

We observed comparable throughput leaps in spatial FBA configurations. Using μ\muODE’s COMETS-style spatial engine [11, 12], which solves one LP per species per grid cell per step, manylp batches all cells of a step together for each respective organism. On an 8x8 spatial grid simulating 1 hour of diffusion dynamics, manylp accelerated the integration 100-fold compared to the historical backend (8.7 seconds versus 868.5 seconds). As grid resolution scales, neighboring cells share critical regions much like ensemble members do, driving extrapolated speedups to 206-fold on a 16x16 grid and 274-fold on a 32x32 grid.

Enabling higher-order adaptive integration

Historically, dFBA simulators have relied on simple, fixed-step explicit Euler integration schemes [5, 10, 53] because the computational cost of evaluating the LP at intermediate stage points was prohibitive. Because manylp reduces the cost of a certified LP evaluation to the microsecond regime, higher-order adaptive integration methods, such as embedded Runge-Kutta (RK45) [76, 77], become computationally affordable for routine genome-scale modeling.

We compared μ\muODE’s standard production scheme (explicit Euler at a fixed time step of 0.1 hours) against an RK45 adaptive integrator on both the 12-species gut community (over 48 hours) and an E. coli core diauxic shift model (glucose to acetate, over 12 hours). Errors were measured as the maximum relative deviation against an exceptionally fine reference Euler simulation (dt=10−410^{-4} hours for diauxie and 10−310^{-3} hours for the gut community), which was only possible to compute because nearly every LP was a certified cache hit.

The integration of RK45 yielded massive accuracy improvements (Table 4). On the 48-hour gut community model, utilizing RK45 at a relative tolerance (rtol) of 10−410^{-4} reduced the maximum relative biomass error 83-fold compared to the production Euler scheme. This precision required only 2.75 times the number of LP evaluations (15,864 LPs versus 5,772 LPs).

PlatformEnsemble size (EE)StrategyTotal solve time (s)Simplex solvesRepair time (s)Certify time (s)
CPU64Eager20.486413.24.82
CPU64Progressive11.0763.604.91
CPU64Progressive + atlas8.3600.025.49
GPU1,024Eager37.886417.18.16
GPU1,024Progressive23.9763.767.30
GPU1,024Progressive + atlas21.100.037.50

Table 4. Table 4: Integration accuracy and computational cost across fixed and adaptive schemes. Maximum relative errors for biomass and metabolic products (acetate, butyrate, and H2 for the gut model); glucose and acetate for the diauxie model) are calculated against highly refined Euler reference trajectories. The RK45 adaptive schemes leverage manylp’s microsecond evaluation speeds to deliver multiple orders of magnitude of error reduction.

The adaptive integrator is especially critical during rapid metabolic transitions. During the E. coli diauxic shift, the standard fixed-step Euler scheme (dt=0.1h) yielded a relative error of 6.5 in predicted glucose and acetate concentrations. Even when the Euler step size was reduced 10-fold (dt=0.01h), the RK45 integrator (rtol 10−610^{-6}) proved 97 times more accurate in tracking biomass while actually requiring fewer total LP evaluations (1,408 versus 2,402).

Finally, we explicitly evaluated the utility of regime-event splitting, an algorithmic technique designed to precisely locate the exact timestamps where uptake bounds shift and bind [53, 78]. While manylp successfully located eight regime switches during the diauxic shift at rtol 10−610^{-6}, the technique did not meaningfully improve overall integration accuracy. Instead, the event-location overhead increased the required LP evaluations by 84% (from 1,408 to 2,586) and more than doubled the integration wall time (from 0.77 to 1.96 seconds). The accuracy gains observed in our benchmarks stem entirely from the adaptive step sizing, demonstrating that explicit regime-event tracking is an unnecessary computational burden given manylp’s evaluation speeds.

Algorithmic optimization: progressive repair, basis atlases, and sparsity

While manylp achieves unprecedented steady-state throughput via cache hits, initiating a novel simulation presents a cold-start penalty where the basis pool is entirely empty. To mitigate this, we engineered three optimization layers (progressive repair, persistent basis atlases, and lazy affine law evaluation) that collectively minimize the computational footprint of simplex solvers and device memory.

We first conducted a cold-start ablation study on the 12-species community model to isolate the cost of warming up the cache (Table 5). Under a naive eager repair strategy, the engine attempts to solve every uncertified ensemble member simultaneously. By implementing progressive repair, where representative LPs are iteratively chosen via farthest-point sampling [79] in normalized bound space and newly discovered bases are immediately propagated across the batch, we observed an 11-fold reduction in required simplex solves (dropping from 864 to 76 for both 64- and 1,024-member ensembles). This intelligent sampling reduced active repair time from 13-17 seconds down to 3.6-6.1 seconds, cutting total solve time by nearly half (1.8-1.9x) for a 64-member batch. It is important to note that progressive repair and atlases introduce Python dispatch and management overhead; on the CPU at E=1,024, eager repair actually completed the batch slightly faster (70 seconds) than progressive repair (79 seconds) and the atlas (75 seconds). However, on the GPU, where matrix multiplication operations dominate and throughput scales massively, progressive repair and atlases maintain a strict advantage.

To bypass the cold-start penalty entirely across independent studies, manylp introduces a persistent basis atlas. Because FBA critical regions depend strictly on the network topology and objective, a pool of certified bases can be saved and reused. When initiating a simulation of a completely unseen diet ensemble using a pre-computed basis atlas, simplex solves were eliminated entirely. Repair time fell to a negligible 20-40 milliseconds. In practice, this enables a paradigm shift in open science: laboratories can distribute lightweight basis atlases alongside their community models, ensuring that downstream uses never incur simplex optimization costs for biological regimes that have been previously explored.

Finally, we optimized the memory footprint of the cached bases by exploiting biological limiting-nutrient sparsity. A given basis’s affine law mathematically requires only the parametric columns that are nonbasic at a bound. Because microbial growth is typically limited by only a handful of nutrients simultaneously, the vast majority of exchange bounds do not actively constrain the solution at any one time. By evaluating a lazy parameter-sparse affine law, we found that only 21.4 out of 234 nonbasic parametric columns (9.1%) were ever activated per basis on average. This sparsity reduced the required GPU device memory for 33 certified bases 7.5-fold (from 87.1 MiB down to 11.6 MiB) without negatively impacting throughput. At a fixed memory budget, this allows the manylp pool to cache 7.5 times more critical regions, a crucial scaling factor for massive genome-scale models featuring thousands of exchange reactions.

Generalization and boundary conditions

To test the algorithmic boundaries of manylp, we benchmarked it against conceptually related baseline methods (i.e., classical bunching and trajectory-based event simulators) and evaluated its scalability across varying model sizes and non-biological domains.

Comparisons to classical and trajectory-based baselines – The certify-and-repair architecture builds upon the classical bunching method of stochastic programming, which tests primal feasibility of cached bases using sparse LU factors [65]. While our optimized bunching implementation captured reuse efficiently on coherent workloads (requiring 279 simplex solves across 8 processes for 185,088 LPs), manylp proved 6.8-fold faster on the CPU. This speedup is driven by manylp’s parameterized, lazy affine laws and dense matrix products, which bypass the expensive sparse triangular solves required by classical bunching. Furthermore, traditional bunching cannot cache Farkas infeasibility certificates or certify lexicographic uniqueness.

We also compared manylp against trajectory-based simulators like dfba, which utilizes the Harwood-Barton event method [53, 73, 74] to minimize the sheer number of LPs solved. On an E. coli diauxic shift, dfba required only 17 LPs per trajectory, whereas manylp’s batched RK45 integrator evaluated roughly 8,500 LPs per trajectory across a timed 32-member ensemble. However, because manylp reduces the cost per LP to microseconds, it still executed the simulation 4.6 to 6.6 times faster per trajectory despite the drastically higher evaluation count.

Trajectory-based event simulators struggled with stability on larger networks. On the genome-scale iJO1366 model [19] (simulated for 0.5 hours), dfba’s event method took 229–495 seconds to complete and yielded an artificially low growth rate (0.62 h−1\mathrm{h}^{-1} against the true 0.70 h−1\mathrm{h}^{-1}), resulting in a 20% biomass error. Furthermore, several dfba runs halted prematurely upon encountering infeasible LPs, whereas manylp correctly navigated these infeasibilities to complete the full integration horizon.

Nevertheless, manylp does possess performance boundaries when compared to trajectory simulators. When evaluating an 8-member iJO1366 ensemble on a single core at an extremely tight adaptive tolerance (rtol 10−810^{-8}), manylp required 32.7 seconds per trajectory, ultimately losing to dfba’s fallback fixed-interval mode, which completed the integration in 25.6 seconds.

Algorithmic boundaries: scaling by distinct bases, not model size – To define when the certify-and-repair paradigm breaks down, we simulated 1,024-member ensembles across eight metabolic models ranging from 95 to 10,600 reactions [16, 18, 19, 20, 49, 80, 81, 82] (Figure 3A). manylp outperformed 32-process HiGHS on 13 of the 16 tested configurations by 1.9- to 29-fold. The algorithm’s advantage was not dictated by the raw size of the model, but exclusively by the number of distinct optimal bases present in the batch. manylp only lost to HiGHS on three highly incoherent batches where the required distinct bases exceeded the solver’s default pool capacity of 512 (e.g., the Recon3D model, which features 1,560 independently perturbed exchange reactions).

Two-panel scatter plots showing speedup against distinct optimal bases

Figure 3. Algorithmic boundaries dictated by critical region sparsity rather than model size. Panel A – Speedup of manylp over 32-process HiGHS for genome-scale models ranging from 95 to 10,600 reactions (reaction counts in brackets), plotted against the number of distinct optimal bases required by a 1,024-member batch. Panel B –

This fundamental boundary extends universally to non-biological systems (Figure 3B). We evaluated manylp on 44 generic Netlib LPs, perturbing right-hand-side bounds [70, 83] to generate 1,024 scenarios per problem (Supplementary Table S3). When the scenarios fell into fewer than 100 distinct bases, manylp proved faster than HiGHS on 20 of 21 problems, achieving up to a 291-fold speedup (geometric mean 12.9x). Against classical bunching on these highly coherent problems, manylp outperformed the best bunching variant on 14 of 21 matrices, yielding a more modest geometric mean speedup of 1.3x.

Conversely, on highly incoherent problems where nearly every scenario required its own distinct basis (100 or more distinct bases), manylp incurred the overhead of repeated simplex solves and certification. In these sparse regimes, both HiGHS and classical bunching proved superior, with bunching operating roughly 1.9x faster than manylp. Therefore, manylp is optimally deployed for massively batched, bounds-parametric workloads (time integration, ensembles, parameter sweeps), whereas conventional simplex codes remain superior for streams of highly incoherent, unrelated LPs.

DISCUSSION

dFBA requires solvers built for its specific workload: millions of linear programs that share a matrix, differ strictly in their bounds, and fall into a limited number of critical regions. By shifting the computational cost from a per-LP basis to a per-critical-region basis, manylp fundamentally circumvents the bottleneck that cripples general-purpose simplex codes. The certify-and-repair architecture demonstrates that a single warm-started lexicographic simplex solve, when coupled with highly parallelized dense matrix certifications, yields orders-of-magnitude throughput gains for temporally and compositionally coherent biological models.

The imperative of vertex exactness and reproducibility

The results expose a systemic vulnerability in modern metabolic modeling: solver ambiguity is not a trivial numerical artifact, but a major driver of biological divergence. As demonstrated by the alternative-optima envelope, equally optimal flux choices alter predicted cross-feeding metabolites like acetate by over 4-fold, cascading into profound shifts in predicted community composition. While exact CPU simplex codes reach the optimal face reliably, they return solver-specific vertices [38, 39]. Conversely, state-of-the-art GPU first-order methods (PDHG) are architected for massive single LPs and consistently fail to converge to exact vertices on the degenerate [27, 29], badly scaled matrices typical of genome-scale FBA. Even native lexicographic modes in commercial solvers occasionally fail silently, returning non-optimal fluxes while reporting successful status flags. By decoupling rigorous double-precision vertex certification from exploratory simplex optimization, manylp provides a mathematically guaranteed pFBA-unique rule. This capability transforms flux uncertainty from an unmeasured artifact into a measurable, controllable variable at the cost of a single batched run.

Hardware optimization and paradigm shift for open science

manylp efficiently democratizes massive-scale dFBA by operating efficiently across hardware tiers. While GPU acceleration proves transformative for massive ensembles (E>256E>256), reaching up to 682,000 LPs per second, the fused CPU kernels remain highly competitive for smaller batches due to lower kernel launch latencies. Even strictly on a CPU, manylp operates an order of magnitude faster than commercial simplex codes for coherent workloads.

Beyond pure throughput, the introduction of the persistent basis atlas initiates a paradigm shift for open systems biology. Because FBA critical regions depend entirely on network topology and biological objectives, researchers can now compute the metabolic critical regions of a novel community model once and distribute the lightweight atlas alongside the model. Downstream users can entirely bypass simplex optimization costs for regimes already explored, relying strictly on microsecond matrix certification. Under a certified unique flux rule, loading an atlas mathematically guarantees identical, reproducible biological predictions regardless of the user’s local hardware.

Boundary conditions and limitations

While manylp dominates bounds-parametric, coherent workloads, it is constrained by several specific boundary conditions. As demonstrated by the Netlib stress tests and the highly perturbed Recon3D ensembles, highly incoherent batches, where nearly every LP requires its own distinct optimal basis, neutralize the cache. In these sparse scenarios, the algorithm pays the overhead of Python dispatch, certification, and individual simplex solves, rendering a conventional compiled simplex code the faster alternative. A natural algorithmic extension would be the inclusion of early incoherent detection to hand off such batches entirely to conventional solvers.

Additionally, while manylp’s embedded Runge-Kutta integrator drastically improves accuracy, its batched nature currently forces a single, shared step size across all members of an ensemble. At tight error tolerances, the stiffest ensemble member dictates the integration pace for the entire batch, artificially inflating simulation times. Future iterations incorporating per-member step control or stiffness grouping would eliminate this bottleneck [77]. Finally, it must be noted that manylp’s certificates are numerical, computed in double precision with tolerances of roughly 10−910^{-9}, rather than rigorous interval or rational proofs. While they prove significantly more reliable than standard solver status flags, studies requiring absolute rigorous guarantees must still layer an exact rational check over the returned bases [39, 71, 84].

CONCLUSIONS

dFBA does not require a faster general-purpose linear programming solver; it requires a solver fundamentally architected for its specific computational workload, millions of LPs that share a matrix, differ strictly in their bounds, and collapse into a limited number of critical regions. manylp exploits this structural reality through a batched certify-and-repair methodology, yielding certified, geometrically exact vertex solutions an order of magnitude faster than conventional CPU solvers, and several times faster than classical bunching techniques. When scaling to large ensembles on a GPU, these throughput gains extend to multiple orders of magnitude over both exact and first-order competitors.

Crucially, manylp resolves a systemic vulnerability in metabolic systems biology: the silent reproducibility crisis driven by alternative optima. By enforcing a unified, per-LP certified lexicographic rule, the solver guarantees biological trajectories across different environments and platforms. Furthermore, it elevates flux uncertainty from an unmeasured artifact into a measurable, controllable variable. While engineered specifically to eliminate the bottleneck in dynamic microbiome and spatial modeling, the underlying certify-and-repair mechanism is not exclusive to metabolism; it accelerates any scenario analysis or parameter sweep where bounded LPs share critical regions. manylp is fully open source and designed to deploy either as a standalone optimization library or as a drop-in acceleration backend for existing dFBA simulators.

ACKNOWLEDGMENTS

We acknowledge the use of Google’s Gemini 3.1 Pro model to enhance the clarity and readability of this manuscript; this assistance was limited to text editing. We also acknowledge the use of Claude Code powered by Claude Opus 5.5 to assist with the implementation of manylp, its integration into μODE, and the execution of the benchmarks.

The AI played no role in data analysis, research design, or the interpretation of results; all conclusions and insights remain entirely those of the author.

FUNDING

No funding was received for the conception or writing of this manuscript.

COMPETING INTERESTS

No conflicts to disclose.

FIGURES

Throughput scaling of batched linear programming in community dFBA

Figure 1 (PDF p. 13). Throughput scaling of batched linear programming in community dFBA. Panel A – Steady-state throughput (LPs solved per second) scaling with ensemble size E for a 48-hour 12-species gut community simulation. The GPU implementation of manylp surpasses the CPU plateau at E=256, reaching 682,000 LP/s at maximum scale. Panel B – Certification throughput (excluding model loading and bounding overhead) on a single genome-scale model (B. thetaiotaomicron), demonstrating kernel limits where device-resident GPU execution exceeds 5 million certified LPs per second.

Generalization to 44 non-biological Netlib LPs (1,024 scenario problem). In both biological and generic systems, manylp dominates when scenarios share critical regions (left of the dotted 512 pool-capacity threshold) but incurs overhead when highly incoherent scenarios mandate unique simplex solves.

TABLES

Biological quantityMinimumpFBA-uniqueMaximumVariation (max/min)
Acetate (mM)0.2090.4360.8834.2x
Butyrate (mM)0.1150.1720.3433.0x
H2 (mM)1.171.251.791.5x
Propionate (mM)4.4×10−64.4 \times10^{-6}7.0×10−57.0 \times10^{-5}1.6×10−31.6 \times10^{-3}364x
B. fragilis biomass (gDW L−1^{-1})6.57×10−36.57 \times10^{-3}–9.38×10−39.38 \times10^{-3}1.43x
B. thetaiotaomicron biomass (gDW L−1^{-1})1.80×10−21.80 \times10^{-2}–2.13×10−22.13 \times10^{-2}1.18x
B. fragilis relative abundance15.7%–20.6%1.31x

Table 5.

METHODS

Problem formulation and the bounds-parametric class

Dynamic simulators generate large families of closely related linear programs. manylp organizes these structurally identical problems into a group where the stoichiometric matrix AA (dimensions m×nm \times n) and the ordered list of biological objectives c1,…,cKc_1,\ldots,c_K remain constant. Individual members within a batch supply specific upper and lower bounds. To standardize the problem, structural constraints are converted into unified row logicals s=Axs=Ax, isolating all member-specific variation strictly into the variable bounds. The problem is evaluated in a normalized zz-space:

Aˉz=0,Aˉ=[A,−I],z=(x,s),lb≤z≤ub(1)\bar{A}z = 0,\qquad\bar{A} = [A,-I],\qquad z = (x,s),\qquad l^b \le z \le u^b \tag*{(1)}

This transformation ensures the core matrix Aˉ\bar{A} retains full row rank mm. A basis B is defined by selecting mm linearly independent columns of Aˉ\bar{A} and assigning each nonbasic variable to its lower bound, upper bound, or a free state at zero [21].

Mathematical certification conditions

The certify-and-repair architecture relies on validating a cached basis against new environmental bounds. When bounds shift, the values of the basic variables zBz_B adjust as an affine function of the nonbasic variables zNz_N, anchored at a template bound state z^N\hat{z}_N:

zB=h+T(zN−z^N)(2)z_B = h + T\left(z_N - \hat{z}_N\right) \tag*{(2)}

where T=−B−1AˉNT=-B^{-1}\bar{A}_N, and hh is the anchor point. Conversely, the lexicographic reduced costs dkd_k for stage kk depend entirely on the matrix and objectives, completely unaffected by the shifting bounds [60]:

dk=ck−AˉTBˉ−Tck,B(3)d_k = c_k - \bar{A}^{\mathsf{T}}\bar{B}^{-\mathsf{T}}c_{k,B} \tag*{(3)}

manylp certifies lexicographic optimality by computationally verifying two conditions per LP in double-precision arithmetic:

  1. Primal feasibility: The resulting basic variables must strictly respect the member bounds: lB≤zB≤uBl_B \le z_B \le u_B.

  2. Lexicographic dual feasibility: For every nonbasic variable jj, the first non-zero entry in the vector (d1j,…,dKj)(d_{1j},\ldots,d_{Kj}) must possess a sign matching its bound status (e.g., ≤0\le0 at the lower bound, ≥0\ge0 at the upper bound) [52, 74].

Uniqueness condition – The solution is verified as geometrically unique if, for every nonbasic variable jj not fixed at a bound (lj<zj<ujl_j<z_j<u_j), the lexicographic reduced-cost vector contains at least one non-zero entry.

Farkas infeasibility test – For biological states that trigger infeasibility (e.g., severe nutrient starvation), the solver caches Farkas vectors [69] yy. For r=AˉTyr=\bar{A}^{\mathsf{T}}y, any feasible zz requires rTz=0r^{\mathsf{T}}z=0. A state is mathematically certified as infeasible if the maximum possible value of rTzr^{\mathsf{T}}z over the bound box is strictly negative:

max⁡(rTz)<−τ(4)\max\left(r^{\mathsf{T}}z\right)<-\tau \tag*{(4)}

where the tolerance τ\tau is not a static epsilon, but a dynamic rounding-error bound of the test itself (with a relative floor of 10−1110^{-11}) [85].

For additional mathematical details on lazy sparse matrix updates, active nonbasic column identification, and dynamic double-precision error tolerances, see Supplementary Material (Lazy parameter-sparse affine laws and dynamic certification bounds).

Batched hardware acceleration and lazy evaluation

To process massive batches efficiently across hardware accelerators, manylp avoids calculating the full affine transformation TT for every reaction. It evaluates a parameter-sparse, lazy affine law, computing only the columns of TT corresponding to parametric variables that actively deviate from the template. Because microbial organisms are typically constrained by only a handful of limiting nutrients simultaneously, only a small fraction of exchange bounds activate per basis.

By isolating these active columns, checking an entire batch of BgB_g members against a basis is reduced to a single dense matrix product. On a GPU, this product executes via cuBLAS, enclosed by custom CUDA kernels that fuse the element-wise primal feasibility checks and trigger atomic operations only upon mathematical failure. For CPU-bound execution, equivalent Numba kernels run concurrently across members alongside BLAS [86].

Cached bases are maintained in a dynamic pool (default capacity of 512 bases) ordered by recent certification activity so that the most frequently visited metabolic regimes are tested first. When a new basis enters the pool, its sparse LU factorization is retained on the host while its active transformation columns are materialized lazily on the target device as new environmental bounds activate them. Because optimal bases and their associated critical regions depend strictly on the stoichiometry and objective vectors rather than the transient bounds, manylp supports serializing this pool to disk as a persistent basis atlas. When loaded into subsequent simulations of the same organism or community under unseen environmental perturbations, the pre-populated atlas allows the solver to immediately certify known metabolic regimes via matrix multiplication, bypassing cold-start simplex exploration entirely.

Progressive repair and yield guarding

When new biological states fall outside the regions covered by the currently cached bases, manylp isolates the uncertified members and identifies a representative subset to solve. To ensure diverse geometric coverage of the bounding space, these representatives are selected using farthest-point sampling in normalized bound space. The selected linear programs are then routed to a lexicographic dual simplex algorithm (HiGHS), which is warm-started from the most mathematically proximate cached basis. To properly handle biological degeneracy, the simplex carves out the exact optimal face by sequentially fixing nonbasic variables with non-zero reduced costs at their bounds between optimization stages [7, 23, 74].

To handle numerical instability gracefully, the solver utilizes a fallback retry ladder, escalating from warm starts to cold starts, and finally to cold starts enhanced with advanced presolve mechanics [22]. Once a new basis is successfully verified, it is immediately propagated against all remaining uncertified members in the batch. To prevent performance degradation on highly incoherent batches where caching fails, a yield guard continuously monitors propagation efficiency. If a repair round resolves fewer than 1.5 members per newly discovered basis, the batched propagation is halted, and remaining members are solved individually in a direct mode.

This process is summarized in Algorithm 1 below.

Algorithm 1: Batched Certify-and-Repair
Input: Batch of LPs with varying bounds, Pool of cached bases B, Farkas cache F
Output: Certified vertex solutions for all LPs

1:  while uncertified LPs remain in Batch do
2:      // Phase 1: matrix certification
3:      Evaluate z_B = h + T(z_N - \hat z_N) for all uncertified LPs across bases in B
4:      Mark LPs satisfying bounds (l ≤ z_B ≤ u) as certified optimal
5:
6:      // Phase 2: Farkas infeasibility check
7:      Evaluate max(r^T z) for remaining LPs across vectors in F
8:      Mark LPs where max(r^T z) < -τ as certified infeasible
9:
10:     // Phase 3: progressive repair
11:     Sample representative LPs from the remaining uncertified batch
12:     for each representative LP do
13:         Solve via warm-started lexicographic dual simplex
14:         Verify new basis internal status in double-precision arithmetic
15:         Add verified basis to pool B
16:     end for
17:
18:     // Phase 4: yield guarding
19:     if newly discovered bases certify < 1.5 LPs on average then
20:     Switch remaining LPs to direct mode (solve independently)
21:     end if
22: end while

Rather than solving uncertified LPs in an arbitrary order, farthest-point sampling selects representative problems whose normalized bound vectors are maximally separated from one another and from previously sampled points. In a biological ensemble or spatial grid, this ensures that the repair phase probes distinct environmental extremes (such as different nutrient-depletion regimes) simultaneously rather than redundantly solving neighboring trajectories that share the same critical region. Each selected representative is then warm-started using the cached basis whose template bounds are closest in bound space, minimizing the number of dual simplex pivots required to reach the new optimal face.

For the explicit normalized coordinate equations and in-place lexicographic face-carving mechanics, see Supplementary Material (Farthest-point sampling and lexicographic face carving).

Enforcing flux uniqueness and constructing envelopes

Standard FBA leaves internal metabolic fluxes undetermined. To ensure reproducibility, we adopt a lexicographic flux rule: maximize primary biological growth, then minimize the total absolute sum of all fluxes, operating as standard parsimonious FBA (pFBA), and finally maximize a generic, fixed direction vector drawn from a seeded pseudo-random stream to break remaining ties [7, 50, 53]. During the parsimonious stage, reversible reactions are split into strictly non-negative components to maintain structural independence from the variable bounds. This precise sequence mathematically guarantees convergence to a single, certified vertex. We call this rule pFBA-unique. manylp certifies, per LP, that the resulting optimum is unique.

To move beyond single trajectories and quantify biological uncertainty, manylp generates alternative-optima envelopes. Rather than replacing the third uniqueness stage, this is achieved by inserting diverse, targeted selection policies, such as maximizing or minimizing the specific secretion of various fermentation products, before the parsimonious L1_1 minimization stage [36]. This isolates the targeted biological objective while ensuring the subsequent stages still collapse any remaining degeneracy, integrating dozens of extreme boundary trajectories simultaneously to yield the complete envelope of dynamic predictions the biological model permits.

In our human gut microbiome experiments, the 49-policy alternative-optima envelope was constructed by combining the baseline three-stage pFBA-unique policy with 48 four-stage probe policies evaluated in lockstep. Specifically, 16 extremal policies inserted a secondary objective that either maximized or minimized the flux of one of eight major fermentation products (acetate, butyrate, propionate, H2, and four additional cross-feeding byproducts) immediately after primary biomass maximization, followed by parsimonious L1 minimization and random tie-breaking. The remaining 32 policies replaced the metabolite-specific stage with 32 seeded random unit objective vectors to sample the interior boundaries of the optimal growth face before collapsing residual degeneracy.

For the complete mathematical formulation of the split-variable parsimonious hierarchy and the precise composition of the 48 probe policies, see Supplementary Material (Formulation of pFBA-unique and alternative-optima envelopes).

Dynamic integration schemes and benchmark workloads

To evaluate solver performance across realistic and stress-test regimes, we constructed four biological benchmark suites alongside a generic non-biological benchmark. First, a temporally coherent workload (185,088 LPs) was recorded sequentially across the first 24 hours of a 12-species human gut community model reconstructed via gapseq and simulated on a Western diet in μODE. Second, a weakly coherent snapshot workload (23,808 LPs) was extracted by subsampling the trajectory every 1.6 simulated hours (every 16th integration step) to strip away step-to-step temporal locality. Third, diet-perturbed community ensembles (scaling from E=1E=1 to 16,384 members over 48 hours) were generated by applying independent log-normal perturbations to the dietary uptake bounds of each ensemble member. Fourth, 2D spatial reaction-diffusion grids (8×88 \times8, 16×1616 \times16, and 32×3232 \times32 cells simulated for 1 hour) were executed in μODE’s COMETS-style spatial engine by batching all grid cells for a given species into a single manylp evaluation at each time step. Finally, to evaluate generalization outside systems biology, 44 standard problems from the Netlib LP repository were expanded into 1,024-member batches by independently perturbing their right-hand-side bounds.

For time integration benchmarks on the 12-species gut community (48 hours) and the classic E. coli core diauxic shift (12 hours of aerobic growth transitioning from glucose to acetate), we compared standard fixed-step explicit Euler integration (dt=0.1dt=0.1 h, 0.05 h, and 0.01 h) against an adaptive Dormand–Prince embedded Runge–Kutta scheme (RK45, evaluated at relative tolerances of 10−410^{-4}, 10−610^{-6}, and 10−810^{-8}) against ultra-fine reference Euler trajectories (dt=10−3dt=10^{-3} h for the community and 10−410^{-4} h for diauxie). In the regime-event splitting variant, the integrator additionally tracked continuous zero-crossings of the basic variables against their bounds to locate exact basis-switching timestamps during a step.

For the complete ODE mass-balance specifications, batched RK45 stage structures, and zero-crossing event root-finding algorithms, see Supplementary Material (Coupled dFBA integration and regime-event location).

Implementation stack and audit protocol

The manylp software architecture is built in Python, heavily leveraging NumPy and SciPy for core operations, CuPy for GPU arrays, and Numba for fused CPU kernel acceleration [86, 87, 88]. Dynamic integration is handled through SciPy’s embedded Runge–Kutta (Dormand–Prince RK45) wrappers [76], which execute efficiently over the smooth, affine critical regions.

Empirical benchmarking was executed on a shared computational node utilizing an NVIDIA A100-PCIE-40GB GPU alongside four Intel Xeon Platinum 8276L CPUs. General-purpose per-LP baseline solvers, including HiGHS, Gurobi, FICO Xpress, GLPK, and OR-Tools GLOP, were allocated 32 parallel worker processes to maximize their throughput. First-order GPU baselines, including NVIDIA cuOpt and MPAX, were restricted to relative and absolute tolerance of 10−610^{-6} [27].

To guarantee the validity of the findings, every single flux vector generated by any solver was evaluated by a unified, independent audit harness. This harness recomputed primal infeasibility, objective error, status agreement, and exchange-flux derivations against an exact reference. The reference itself was cross-validated on a 400-LP subset using an independent sequential HiGHS implementation chained through objective-bound rows [23, 74], verifying absolute mathematical agreement to within a tolerance of 1.7×10−111.7 \times10^{-11}.

For comprehensive parameter configurations across all 25 solver packages, custom baseline implementations, and exact audit error equations, see Supplementary Material (Baseline solver configurations and independent audit metrics).

CODE AVAILABILITY

manylp is open-source software released under the MIT license at https://github.com/cumbof/manylp. It is written in Python (version 3.10 or later) and depends on NumPy, SciPy, and the HiGHS solver (highspy). GPU execution additionally requires CuPy and a CUDA 12 device, and the fused multi-threaded CPU kernels require Numba. The repository includes a test suite that checks manylp’s certified answers against an independent reference solver on both CPU and GPU. All results in this manuscript can be reproduced from the same repository.

The µODE simulator, used for the community and spatial simulations, is also open-source software released under the MIT license at https://github.com/cumbof/muODE.

REFERENCES

SUPPLEMENTARY MATERIAL

Lazy parameter-sparse affine laws and dynamic certification bounds

For a metabolic network with stoichiometric matrix AA (dimensions m×nm \times n) and KK ordered linear objectives c1,…,cKc_1,\ldots,c_K, manylp converts structural constraints into row logicals s=Axs=Ax and operates in the unified variable space z=(x,s)z=(x,s) of dimension n+mn+m with the augmented matrix Aˉ=[A,−I]\bar{A}=[A,-I]. Across a batch of BgB_g linear programs, each problem instance bb is completely specified by its lower and upper bound vectors (lb,ub)(\mathrm{lb},\mathrm{ub}).

A cached basis partitions the n+mn+m columns of Aˉ\bar{A} into mm basic variables (forming a nonsingular m×mm \times m basis matrix BB) and nn nonbasic variables fixed at their lower bound, their upper bound, or zero (for free variables). For any LP in the batch, the nonbasic vector zNz_N is assembled directly by reading the corresponding entries from that member’s lower or upper bound vectors.

When a new basis BB is discovered from a template LP with nonbasic state z^N\hat{z}_N, the solver stores the sparse LU factorization of BB on the host CPU along with the template basic anchor vector h=−B−1AˉNz^Nh=-B^{-1}\bar{A}_N\hat{z}_N. Rather than computing the full m×nm \times n sensitivity matrix T=−B−1AˉNT=-B^{-1}\bar{A}_N upfront, manylp identifies only the active nonbasic columns that actually change across the current batch (where ∣zN−z^N∣>0\lvert z_N-\hat{z}_N\rvert>0). For any newly activated nonbasic variable not yet present in the basis cache, its sensitivity column in TT is computed on demand via a single sparse triangular solve against the stored LU factors of BB and appended to the dense device-resident submatrix TactT_{\mathrm{act}}. Evaluating the basic variables zBz_B across all BgB_g batch members then reduces to a single dense matrix multiplication: zB=h+Tact(zN−z^N)z_B=h+T_{\mathrm{act}}(z_N-\hat{z}_N), restricted solely to the active columns.

To protect against floating-point accumulation errors in double-precision arithmetic (machine epsilon ε≈2.22×10−16\varepsilon\approx2.22 \times10^{-16}), certification checks apply dynamic, magnitude-scaled tolerances per LP:

  • Primal feasibility: A batch member is certified primal feasible under a cached basis if every basic variable satisfies lB−τP≤zB≤uB+τP\mathrm{l}_B-\tau_P \le z_B \le\mathrm{u}_B+\tau_P, where the component-wise tolerance τP\tau_P scales with the variable and bound magnitudes as τP=10−9×max⁡(1,∣zB∣,∣lB∣,∣uB∣)\tau_P=10^{-9}\times\max(1,\lvert z_B\rvert,\lvert\mathrm{l}_B\rvert,\lvert\mathrm{u}_B\rvert).

  • Lexicographic dual feasibility and uniqueness: For each optimization stage kk, the reduced-cost vector dk=ck−AˉTB−Tck,Bd_k=c_k-\bar{A}^{\mathsf{T}}B^{-\mathsf{T}}c_{k,B} depends only on the network matrix and objectives and is computed once when the basis is cached. Any reduced-cost entry with magnitude ∣dk,j∣≤10−9×(1+max⁡∣ck∣)\lvert d_{k,j}\rvert\le10^{-9}\times(1+\max\lvert c_k\rvert) is treated as numerically zero. A basis is certified dual feasible if, for every nonbasic variable jj, the first numerically non-zero value in its lexicographic tuple (d1j,…,dKj)(d_{1j},\ldots,d_{Kj}) is ≤0\le0 when fixed at its lower bound, ≥0\ge0 when fixed at its upper bound, and zero across all stages if free. The optimal flux vector for a member is certified as geometrically unique if every nonbasic variable with a non-fixed bound interval (lj<uj)(l_j<u_j) has at least one numerically non-zero entry in (d1j,…,dKj)(d_{1j},\ldots,d_{Kj}).

  • Farkas infeasibility certificate: When the simplex repair phase encounters an infeasible LP, a dual Farkas ray yy is extracted and mapped to r=AˉTyr=\bar{A}^{\mathsf{T}}y (normalized so that max⁡∣rj∣=1\max\lvert r_j\rvert=1). Because any feasible solution zz satisfies Aˉz=0\bar{A}z=0 and therefore rTz=0r^{\mathsf{T}}z=0, the maximum possible value of rTzr^{\mathsf{T}}z over a member’s bound box [l,u][l,u] can be evaluated directly without solving an LP by summing rj×ujr_j \times u_j for all positive entries (rj>0r_j>0) and rj×ljr_j \times l_j for all negative entries (rj<0r_j<0). A member is certified infeasible if this sum is strictly less than −τF-\tau_F, where the dynamic rounding-error bound τF\tau_F is set to max⁡(10−11,103×ε×∑(∣rj∣×max⁡(∣lj∣,∣uj∣)))\max(10^{-11},10^3 \times\varepsilon\times\sum(\lvert r_j\rvert\times\max(\lvert l_j\rvert,\lvert u_j\rvert))).

Farthest-point sampling and lexicographic face carving

When a subset of LPs in a batch remains uncertified after testing all cached bases and Farkas rays, manylp selects representative problems for simplex repair using Gonzalez’s farthest-point sampling in normalized bound space. First, each varying bound coordinate across the uncertified LPs is linearly rescaled to the [0,[0, 1] interval using (bound − min_bound) / (max_bound − min_bound + 10−1210^{-12}). The first representative LP is chosen as the uncertified member with the smallest maximum primal bound violation against the cached basis pool, and subsequent representatives are selected iteratively by picking the uncertified member with the largest Euclidean distance to the already-sampled set. Each selected representative is warm-started using the cached basis whose template bounds are closest in Euclidean distance.

To keep the row dimension mm constant across all KK lexicographic optimization stages, manylp avoids appending objective-constraint rows (ckTx≥zk∗\mathbf{c}_k^{\mathsf{T}}\mathbf{x} \ge z_k^*) to the stoichiometric matrix during basis repair. Instead, after stage kk is solved to optimality via dual simplex, the optimal face is carved out in place by locking every nonbasic variable with a non-zero reduced cost to its active bound (setting lj=ujl_j = u_j) before solving stage k+1k+1. Once the final stage KK converges, the original member bounds are restored and the terminal basis is verified in double-precision arithmetic and added to the basis pool.

Formulation of pFBA-unique and alternative-optima envelopes

To express the parsimonious L1 flux minimization objective as a purely linear function that does not change when variable bounds shift, reversible reactions are split into non-negative forward and backward components (x=x+−x−\mathbf{x} = \mathbf{x}^{+} - \mathbf{x}^{-}, with x+,x−≥0\mathbf{x}^{+}, \mathbf{x}^{-} \ge0) during model initialization. The three-stage pFBA-unique hierarchy then executes sequentially on the same basis structure:

  1. Stage 1 (Primary biological objective): Maximize primary cellular growth (biomass production).

  2. Stage 2 (Parsimonious L1 minimization): Minimize the sum of all split internal and exchange fluxes (x++x−\mathbf{x}^{+} + \mathbf{x}^{-}) over the Stage 1 optimal face.

  3. Stage 3 (Deterministic tie-breaking): Maximize a fixed, dense objective vector drawn from a seeded pseudo-random stream over the Stage 2 optimal face to isolate a unique vertex.

To construct the 49-policy alternative-optima envelope, 48 four-stage probe policies are evaluated in lockstep alongside the baseline three-stage pFBA-unique policy. Each four-stage policy inserts a probe objective at Stage 2 immediately after primary biomass maximization, shifting parsimonious L1 minimization to Stage 3 and random tie-breaking to Stage 4. The 48 probe objectives consist of 16 extremal metabolite policies (maximizing and minimizing exchange fluxes for eight fermentation products, including acetate, butyrate, propionate, and H2) and 32 seeded random unit objective vectors that sample alternative directions across the optimal growth face.

Coupled dFBA integration and regime-event location

In community dFBA simulations within μODE, extracellular metabolite concentrations C(t)C(t) and microbial species biomasses X(t)X(t) evolve over time for each ensemble member according to standard mass-balance differential equations: the biomass of species ii grows at rate dXi/dt=μi(t)×Xi(t)\mathrm{d}X_i/\mathrm{d}t = \mu_i(t) \times X_i(t), and the concentration of extracellular metabolite mm changes at rate dCm/dt=∑i(vi,m(t)×Xi(t))\mathrm{d}C_m/\mathrm{d}t = \sum_i (v_{i,m}(t) \times X_i(t)), where μi(t)\mu_i(t) and vi,m(t)v_{i,m}(t) are the certified growth rate and exchange flux returned by manylp under concentration-dependent uptake bounds. During adaptive Dormand-Prince RK45 integration, all ensemble members (or all 49 envelope policies) are grouped into a single batched manylp call at each internal Runge-Kutta stage evaluation. In the regime-event splitting configuration (Table 4), the integrator additionally monitors continuous zero-crossing functions measuring the distance of basic variables to their lower and upper bounds (zB(t)−lB(t)=0z_B(t) - l_B(t) = 0 and uB(t)−zB(t)=0u_B(t) - z_B(t) = 0) to pinpoint exact basis-switching timestamps via root-finding.

Baseline solver configurations and independent audit metrics

General-purpose CPU baselines (HiGHS, Gurobi 13, FICO Xpress, GLPK, OR-Tools GLOP, SciPy linprog, and OSQP) were benchmarked using 32 parallel worker processes (p32), with warm-started modes reusing the optimal basis from the preceding time step along each trajectory. For the classical bunching baselines (Table 6), we implemented the Haugland-Wallace procedure across 8 and 32 worker processes, storing sparse LU factorizations of optimal bases and testing primal feasibility via per-LP forward and backward triangular solves before falling back to warm-started dual simplex. First-order GPU baselines (NVIDIA cuOpt PDLP, MPAX, and our custom batched primal-dual hybrid gradient solver ourpdhg) were executed on the NVIDIA A100-PCIE-40GB GPU with relative and absolute tolerances set to 10−610^{-6} (and 10−410^{-4} for the snapshot sensitivity test in Table S2) under a 15-minute wall-clock timeout per workload.

Workloadmanylp metricBest baseline metricBaseline method
Coherent FBA (185,088 LPs)47,889 LP/s7,058 LP/sPer-LP bunching (8 proc.)
dFBA ensemble (E=1,024)140,527 LP/s20,903 LP/sPer-LP bunching (32 proc.)
E. coli diauxie (E=32)0.41 s / trajectory1.9 s / trajectorydfba (event method)
iJO1366 (E=8, single core, rtol 10−810^{-8})32.7 s / trajectory25.6 s / trajectorydfba (fixed interval)
iJO1366 (Event method, 0.5 h)Stable integration229-495 s (20% biomass error)dfba (event method)

Table 6. Performance baseline comparison against classical bunching and trajectory-based event simulators. Throughput and per-trajectory timings evaluate the limits of structural reuse methodologies. While classical bunching captures reuse efficiently for single-threaded plain FBA, it fails to match manylp’s parallelized dense matrix throughput. Trajectory simulators minimize LP calls but cannot compete with manylp’s microsecond evaluation speed during ensemble processing.

highs-pdlp-cold-p32CPU51–100%0%0%4.5e-200.04/3.5
cuopt-concurrent-e1e-6GPU + CPU17–64.0%100%100%5.2e-72.0e-70.83/2.6
cuopt-barrier-xover-e1e-6GPU101038.4%0.04%0.04%4.5e-24.0e-30.03/3.5
cuopt-barrier-e1e-6GPU10–38.2%0.06%0.06%4.5e-26.3e-50.03/3.5
cuopt-dual-simplex-e1e-6CPU7.107.1126.9%100%100%9.6e-102.6e-70.83/2.6
osqp-p32CPU3.333.5612.6%18.1%18.1%4.5e-22.3e-60.54/3.4
mpax-e1e-6GPU1.90–7.3%11.7%11.7%4.4e-21.3e-20.64/2.1
mpax-e1e-4GPU1.88–7.3%22.1%22.1%4.4e-21.2e-20.63/2.1
ortools-pdlp-p32CPU1.661.506.5%95.8%95.8%2.0e-59.6e-70.60/2.1
cuopt-pdlp-batch-e1e-6GPU0.48–1.9%100%100%1.0e-61.4e-60.09/1.8
cuopt-pdlp-e1e-4GPU0.340.271.9%100%100%1.0e-45.3e-40.01/1.8
cuopt-pdlp-warm-e1e-6GPU0.27–1.9%100%100%1.0e-61.4e-60.09/1.8
cuopt-pdlp-e1e-6GPU0.27–1.9%100%100%1.0e-61.4e-60.09/1.8
cuopt-pdlp-xover-e1e-6GPU0.270.211.9%100%100%1.1e-119.0e-80.16/2.0

Table S2. Complete solver performance on the weakly coherent snapshot workload (23,808 LPs). A looser tolerance (ε=10−4\varepsilon=10^{-4}) yields minimal improvements for first-order GPU solvers, allowing cuOpt PDLP to reach 0.34 LP/s and MPAX to solve 22% of LPs.

Every flux vector x\mathbf{x} returned by any solver configuration was verified offline by an independent double-precision audit harness against the cross-validated reference solution xref\mathbf{x}_{\mathrm{ref}} (with optimal objective zref=c1Txrefz_{\mathrm{ref}} = \mathbf{c}_1^{\mathsf{T}}\mathbf{x}_{\mathrm{ref}}) using three primary accuracy metrics (reported in Table 1, Table S1, Table S2, and S3):

ConfigurationDeviceLP/s (overall)LP/s (steady)DoneSolvedStatus agreementMax obj. errorMax infeasibilityExchange dev. median / max
manylp-gpu-fbaGPU4,930–100%100%100%2.7e-111.0e-100.73/1.6
manylp-cpu-pfba-uniqueCPU4,860–100%100%100%1.6e-114.2e-120/1.1e-11
manylp-gpu-pfba-uniqueGPU4,252–100%100%100%1.6e-114.2e-120/1.1e-11
highs-simplex-warm-p32CPU3,491–100%100%100%1.6e-111.3e-110.83/2.7
manylp-cpu-fbaCPU3,477–100%100%100%2.7e-111.0e-100.73/1.6
gurobi-dual-warm-p32CPU2,5943,032100%100%100%7.6e-102.2e-70.80/1.8
xpress-dual-p32CPU2,3262,811100%100%100%7.6e-102.6e-70.87/2.1
glpk-p32CPU1,3031,818100%100%100%3.4e-102.6e-70.72/1.7
glop-p32CPU1,2711,306100%100%100%4.7e-92.2e-80.70/2.0
highs-lex-pfba-unique-p32CPU731869100%100%100%1.6e-117.7e-121.3e-13/9.5e-12
manylp-gpu-perlp-fbaGPU687–100%100%100%9.9e-121.0e-100.72/1.6
highs-simplex-cold-p32CPU622–100%100%100%1.6e-111.4e-110.89/2.7
scipy-p32CPU512524100%100%100%1.6e-111.4e-110.89/2.7
highs-ipm-cold-p32CPU449–100%100%100%1.6e-119.4e-110.85/2.7
gurobi-barrier-cold-p32CPU142142100%100%100%1.6e-81.0e-60.57/2.6
ourpdhg-e1e-6GPU61–100%0%0%0.710.263.2/26

Table S1. Complete solver performance on the temporally coherent dFBA workload (185,088 LPs).

  • Maximum objective error (Max obj. error): The maximum across all LPs of the relative objective discrepancy ∣c1Tx−zref∣/max⁡(1,∣zref∣)\lvert\mathbf{c}_1^{\mathsf{T}}\mathbf{x} - z_{\mathrm{ref}}\rvert/ \max(1, \lvert z_{\mathrm{ref}}\rvert).

  • Maximum primal infeasibility (Max infeasibility): The worst-case violation across all LPs of either the steady-state mass balance or the variable bounds, computed as max⁡(∣Ax−s∣,max⁡(0,l−z),max⁡(0,z−u))\max(\lvert A\mathbf{x} - \mathbf{s}\rvert, \max(0, \mathbf{l} - \mathbf{z}), \max(0, \mathbf{z} - \mathbf{u})).

  • Exchange flux deviation (Exchange dev. median / max): The median and maximum across all solved LPs of the largest absolute exchange flux difference max⁡∣xex−xref,ex∣\max\lvert\mathbf{x}_{\mathrm{ex}} - \mathbf{x}_{\mathrm{ref},\mathrm{ex}}\rvert over all extracellular exchange reactions.

SUPPLEMENTARY TABLES

ConfigurationDeviceLP/s (overall)LP/s (steady)DoneSolvedStatus agreementMax obj. errorMax infeasibilityExchange dev. median / max
manylp-cpu-fbaCPU17,91647,889100%100%100%01.0e-100.71/1.6
manylp-gpu-fbaGPU17,76231,844100%100%100%01.0e-100.71/1.6
manylp-cpu-pfba-uniqueCPU15,56924,206100%100%100%2.6e-114.2e-120/0
manylp-gpu-pfba-uniqueGPU14,82122,827100%100%100%2.6e-114.2e-120/0
highs-simplex-warm-p32CPU3,8663,986100%100%100%3.3e-112.6e-110.85/2.7
gurobi-dual-warm-p32CPU2,9262,958100%100%100%2.1e-96.1e-70.89/1.8
xpress-dual-p32CPU2,6942,712100%100%100%2.1e-96.1e-70.86/1.7
glpk-p32CPU1,7711,835100%100%100%3.4e-102.6e-70.70/1.6
glop-p32CPU1,4421,465100%100%100%1.2e-82.0e-70.71/2.5
highs-lex-pfba-unique-p32CPU745816100%100%100%2.6e-112.0e-111.6e-13/6.7e-12
manylp-gpu-perlp-fbaGPU726781100%100%100%4.3e-111.0e-100.71/1.6
scipy-p32CPU584582100%100%100%3.3e-112.5e-110.89/2.7
highs-ipm-cold-p32CPU434438100%100%100%3.3e-111.6e-100.85/2.7
ourpdhg-e1e-6GPU636530.7%0%0%0.710.233.5/26
cuopt-concurrent-e1e-6GPU + CPU17178.2%100%100%1.2e-99.0e-80.83/2.5
mpax-e1e-6GPU1.792.460.9%12.3%12.3%2.5e-26.4e-30.63/2.2
cuopt-pdlp-batch-e1e-6GPU0.480.400.2%100%100%1.0e-61.4e-60.09/1.8
cuopt-barrier-xover-e1e-6GPU9.659.634.7%0.01%0.01%4.4e-28.5e-40.05/3.4

Table 7.

ConfigurationDeviceLP/s (overall)LP/s (steady)DoneSolvedStatus agreementMax obj. errorMax infeasibilityExchange dev. median / max
cuopt-pdlp-xover-e1e-6GPU0.270.210.2%100%100%1.1e-119.0e-80.16/2.0

Table 8.

ProblemmnDistinct basesInfeasibleSimplex solvesCertifiedmanylp CPU LP/smanylp GPU LP/sHiGHS x32 LP/sSpeed-upStatus agreementMax obj. errorErrors HiGHS / manylp
adlittle5697512+85957100%4144027950.52x100%7.3e-110/0
afiro2732307100%53,60835,04871275.3x100%5.1e-160/0
agg488163101,01423100%1,6735,4614,0821.34x100%1.2e-140/0
agg2516302512+0917100%3896087,1250.09x100%2.6e-150/0
agg3516302512+01,024100%2,8552,9598,4100.35x100%1.3e-140/0
bandm305472512+01,024100%2,7583,0315,5240.55x100%2.5e-120/0
blend748313023100%12,8619,73168218.9x100%3.9e-140/0
bnl16431,17547654159999.2%5644015860.96x100%6.7e-1112/7
boeing1351384105919112100%4,6714,7752,4401.96x100%3.7e-150/0
boeing2166143236520237100%1,3971,17316,2800.09x100%2.2e-120/0
brandy220249512+01,024100%3,9543,7197,9470.50x100%5.3e-130/0
capri271353512+171,024100%3,3053,9009,0990.43x100%2.0e-140/0
degen244453401,0243100%12,62911,8531,06011.9x100%00/0
e226223282512+51,024100%4,4074,1548,6170.51x100%7.3e-120/0
etamacro4006884150417100%4404667,0690.07x100%3.2e-110/0
finnis49761401,02415100%11,28111,7334,5512.58x100%00/0
fit1d241,026101100%87,61881,7529,0669.66x100%00/0
grow15300645101100%18,52918,5765,4113.43x100%1.4e-160/0
grow7140301101100%50,07248,31511,4614.37x100%1.6e-160/0
israel174142512+01,023100%4,1464,60410,1560.45x100%3.0e-130/0
kb24341101100%195,329149,731672291x100%2.0e-130/0
lotfi153308512+01,024100%4,7655,22215,2490.34x100%2.0e-140/0
recipe91180101100%138,514120,642887156x100%2.1e-160/0
sc105105103407100%28,02424,10686732.3x100%2.0e-150/0

Table S3.

sc205205203406100%26,06921,90474734.9x100%1.3e-150/0
sc50a5048307100%38,52830,89485844.9x100%1.7e-150/0
sc50b5048101100%189,711144,962810234x100%1.5e-150/0
scagr25471500512+01,023100%2,5462,8887,8030.37x100%1.2e-150/0
scagr71291403580376100%8356006491.29x100%1.4e-150/0
scfxm1330457512+0857100%8249318,7090.11x100%2.0e-130/0
scsd177760101100%97,27578,17916,7265.82x100%1.1e-140/0
scsd61471,3507010100%13,25711,4987,6471.73x100%2.0e-140/0
scsd83972,75062065100%9251,6083,2680.49x100%3.4e-140/0
sctap1300480512+01,024100%3,8164,1298,8210.47x100%3.7e-150/0
sctap21,0901,880512+01,024100%1,7621,9444,4420.44x100%4.0e-160/0
share1b1172253080349100%84965714,1500.06x100%1.7e-130/0
share2b967915019100%13,25111,38676517.3x100%5.3e-130/0
ship04l4022,1181512174100%7497256,0000.12x100%1.3e-150/0
ship04s4021,4581072139100%9919707,4530.13x100%1.2e-150/0
ship08s7782,3872690285100%3833703,9490.10x100%1.2e-150/0
stair356467512+01,024100%1,7131,8862,6800.70x100%5.0e-120/0
standata3591,07517223100%33,06230,85913,5032.45x100%00/0
stocfor1117111101100%81,38776,72999382.0x100%3.3e-150/0
vtp.base19820331,02118100%19,64719,4747,2692.70x100%4.5e-150/0

Table 9.

Table S3 (PDF p. 36). Performance across 44 Netlib LPs (1,024 scenarios per problem). Distinct bases indicate the number of optimal bases required to certify the feasible scenarios (512+ denotes the pool capacity was reached).

References

  1. [1]Varma A, Palsson BO. Metabolic flux balancing: Basic concepts, scientific and practical use. Biotechnology (N Y). 1994;12: 994–998. doi:10.1038/nbt1094-994
  2. [2]Edwards JS, Ibarra RU, Palsson BO. In silico predictions of Escherichia coli metabolic capabilities are consistent with experimental data. Nat Biotechnol. 2001;19: 125–130. doi:10.1038/84379DOI
  3. [3]Orth JD, Thiele I, Palsson BØ. What is flux balance analysis? Nat Biotechnol. 2010;28: 245–248. doi:10.1038/nbt.1614DOI
  4. [4]Varma A, Palsson BO. Stoichiometric flux balance models quantitatively predict growth and metabolic by-product secretion in wild-type Escherichia coli W3110. Appl Environ Microbiol. 1994;60: 3724–3731. doi:10.1128/aem.60.10.3724-3731.1994
  5. [5]Mahadevan R, Edwards JS, Doyle FJ 3rd. Dynamic flux balance analysis of diauxic growth in Escherichia coli. Biophys J. 2002;83: 1331–1340. doi:10.1016/S0006-3495(02)73903-9DOI
  6. [6]Hanly TJ, Henson MA. Dynamic flux balance modeling of microbial co-cultures for efficient batch fermentation of glucose and xylose mixtures. Biotechnol Bioeng. 2011;108: 376–385. doi:10.1002/bit.22954DOI
  7. [7]Gomez JA, Höffner K, Barton PI. DFBalab: a fast and reliable MATLAB code for dynamic flux balance analysis. BMC Bioinformatics. 2014;15: 409. doi:10.1186/s12859-014-0409-8DOI
  8. [8]Gottstein W, Olivier BG, Bruggeman FJ, Teusink B. Constraint-based stoichiometric modelling from single organisms to microbial communities. J R Soc Interface. 2016;13. doi:10.1098/rsif.2016.0627DOI
  9. [9]Zomorrodi AR, Islam MM, Maranas CD. d-OptCom: Dynamic multi-level and multi-objective metabolic modeling of microbial communities. ACS Synth Biol. 2014;3: 247–257. doi:10.1021/sb4001307DOI
  10. [10]Brunner JD, Chia N. Minimizing the number of optimizations for efficient community dynamic flux balance analysis. PLoS Comput Biol. 2020;16: e1007786. doi:10.1371/journal.pcbi.1007786DOI
  11. [11]Harcombe WR, Riehl WJ, Dukovski I, Granger BR, Betts A, Lang AH, et al. Metabolic resource allocation in individual microbes determines ecosystem interactions and spatial dynamics. Cell Rep. 2014;7: 1104–1115. doi:10.1016/j.celrep.2014.03.070DOI
  12. [12]Dukovski I, Bajić D, Chacón JM, Quintin M, Vila JCC, Sulheim S, et al. A metabolic modeling platform for the computation of microbial ecosystems in time and space (COMETS). Nat Protoc. 2021;16: 5030–5082. doi:10.1038/s41596-021-00593-3
  13. [13]Bauer E, Zimmermann J, Baldini F, Thiele I, Kaleta C. BacArena: Individual-based metabolic modeling of heterogeneous microbes in complex communities. PLoS Comput Biol. 2017;13: e1005544. doi:10.1371/journal.pcbi.1005544DOI
  14. [14]Cumbo F, Joshi J, Raubenolt B, Katzenmeyer N, Claesen J, Blankenberg D. Mechanistic prediction of fecal microbiota transplant engraftment and Clostridioides difficile colonization resistance with μODE. bioRxiv. 2026.DOI
  15. [15]Almeida A, Nayfach S, Boland M, Strozzi F, Beracochea M, Shi ZJ, et al. A unified catalog of 204,938 reference genomes from the human gut microbiome. Nat Biotechnol. 2021;39: 105–114. doi:10.1038/s41587-020-0603-3DOI
  16. [16]Zimmermann J, Kaleta C, Waschina S. gapseq: informed prediction of bacterial metabolic pathways and reconstruction of accurate metabolic models. Genome Biol. 2021;22: 81. doi:10.1186/s13059-021-02295-1DOI
  17. [17]Paulson JA, Martin-Casas M, Mesbah A. Fast uncertainty quantification for dynamic flux balance analysis using non-smooth polynomial chaos expansions. PLoS Comput Biol. 2019;15: e1007308. doi:10.1371/journal.pcbi.1007308DOI
  18. [18]King ZA, Lu J, Dräger A, Miller P, Federowicz S, Lerman JA, et al. BiGG Models: A platform for integrating, standardizing and sharing genome-scale models. Nucleic Acids Res. 2016;44: D515–22. doi:10.1093/nar/gkv1049DOI
  19. [19]Orth JD, Conrad TM, Na J, Lerman JA, Nam H, Feist AM, et al. A comprehensive genome-scale reconstruction of Escherichia coli metabolism--2011. Mol Syst Biol. 2011;7: 535. doi:10.1038/msb.2011.65DOI
  20. [20]Monk JM, Lloyd CJ, Brunk E, Mih N, Sastry A, King Z, et al. iML1515, a knowledgebase that computes Escherichia coli traits. Nat Biotechnol. 2017;35: 904–908. doi:10.1038/nbt.3956DOI
  21. [21]Dantzig G. Linear Programming and Extensions. Princeton, NJ: Princeton University Press; 1998. doi:10.1515/9781400884179
  22. [22]Bixby RE. Solving real-world linear programs: A decade and more of progress. Oper Res. 2002;50: 3–15. doi:10.1287/opre.50.1.3.17780DOI
  23. [23]Huangfu Q, Hall JA J. Parallelizing the dual revised simplex method. Math Program Comput. 2018;10: 119–142. doi:10.1007/s12532-017-0130-5DOI
  24. [24]Wright SJ. Primal-dual interior-point methods. Philadelphia, MS: Society for Industrial and Applied Mathematics; 1997. doi:10.1137/1.9781611971453DOI
  25. [25]Chambolle A, Pock T. A first-order primal-dual algorithm for convex problems with applications to imaging. J Math Imaging Vis. 2011;40: 120–145. doi:10.1007/s10851-010-0251-1DOI
  26. [26]Lu H, Yang J. CuPDLP.jl: A GPU implementation of Restarted Primal-Dual Hybrid Gradient for Linear Programming in Julia. Oper Res. 2025;73: 3440–3452. doi:10.1287/opre.2024.1069DOI
  27. [27]Applegate D, Díaz M, Hinder O, Lu H, Lubin M, O’Donoghue B, et al. Practical large-scale linear programming using primal-dual hybrid gradient. arXiv [math.OC]. 2021. doi:10.48550/arXiv.2106.04756DOI
  28. [28]Lu H, Peng Z, Yang J. MPAX: Mathematical Programming in JAX. arXiv [math.OC]. 2024. doi:10.48550/arXiv.2412.09734DOI
  29. [29]Lu H, Yang J. On the geometry and refined rate of primal-dual hybrid gradient for linear programming. Math Program. 2024. doi:10.1007/s10107-024-02109-9DOI
  30. [30]Ge D, Wang C, Xiong Z, Ye Y. From an interior point to a corner point: Smart crossover. INFORMS J Comput. 2025;37: 1670–1688. doi:10.1287/ijoc.2022.0291DOI
  31. [31]Amos B, Zico Kolter J. OptNet: Differentiable Optimization as a Layer in Neural Networks. arXiv [cs.LG]. 2017. doi:10.48550/arXiv.1703.00443DOI
  32. [32]Agrawal A, Amos B, Baratt S, Boyd S, Diamond S, Kolter Z. Differentiable convex optimization layers. arXiv [cs.LG]. 2019. doi:10.48550/arXiv.1910.12430DOI
  33. [33]Blin N, Gualandi S, Maes C, Lodi A, Stellato B. Batched first-order methods for parallel LP solving in MIP. arXiv [math.OC]. 2026. doi:10.48550/arXiv.2601.21990DOI
  34. [34]Stellato B, Banjac G, Goulart P, Bemporad A, Boyd S. OSQP: an operator splitting solver for quadratic programs. Math Program Comput. 2020;12: 637–672. doi:10.1007/s12532-020-00179-2DOI
  35. [35]Gurung A, Ray R. Simultaneous solving of batched linear programs on a GPU. Proceedings of the 2019 ACM/SPEC International Conference on Performance Engineering. New York, NY, USA: ACM; 2019. doi:10.1145/3297663.3310308DOI
  36. [36]Mahadevan R, Schilling CH. The effects of alternate optimal solutions in constraint-based genome-scale metabolic models. Metab Eng. 2003;5: 264–276. doi:10.1016/j.ymben.2003.09.002DOI
  37. [37]Lee S, Phalakornkule C, Domach MM, Grossmann IE. Recursive MILP model for finding all the alternate optima in LP models for metabolic networks. Comput Chem Eng. 2000;24: 711–716. doi:10.1016/S0098-1354(00)00323-9DOI
  38. [38]Ebrahim A, Almaas E, Bauer E, Bordbar A, Burgard AP, Chang RL, et al. Do genome-scale models need exact solvers or clearer standards? Mol Syst Biol. 2015;11: 831. doi:10.15252/msb.20156157DOI
  39. [39]Chindelevitch L, Trigg J, Regev A, Berger B. An exact arithmetic toolbox for a consistent and reproducible structural analysis of metabolic network models. Nat Commun. 2014;5: 4893. doi:10.1038/ncomms5893DOI
  40. [40]Hitch TCA, Bisdorf K, Afrizal A, Riedel T, Overmann J, Strowig T, et al. A taxonomic note on the genus Prevotella: Description of four novel genera and emended description of the genera HallelIa and Xylanibacter. Syst Appl Microbiol. 2022;45: 126354. doi:10.1016/j.syapm.2022.126354DOI
  41. [41]Noronha A, Modamio J, Jarosz Y, Guerard E, Sompairac N, Preciat G, et al. The Virtual Metabolic Human database: integrating human and gut microbiome metabolism with nutrition and disease. Nucleic Acids Res. 2019;47: D614–D624. doi:10.1093/nar/gky992DOI
  42. [42]Koh A, De Vadder F, Kovatcheva-Datchary P, Bäckhed F. From Dietary Fiber to Host Physiology: Short-Chain Fatty Acids as Key Bacterial Metabolites. Cell. 2016;165: 1332–1345. doi:10.1016/j.cell.2016.05.041DOI
  43. [43]Duncan SH, Holtrop G, Lobley GE, Calder AG, Stewart CS, Flint HJ. Contribution of acetate to butyrate formation by human faecal bacteria. Br J Nutr. 2004;91: 915–923. doi:10.1079/BJN20041150DOI
  44. [44]Belenguer A, Duncan SH, Calder AG, Holtrop G, Louis P, Lobley GE, et al. Two routes of metabolic cross-feeding between Bifidobacterium adolescentis and butyrate-producing anaerobes from the human gut. Appl Environ Microbiol. 2006;72: 3593–3599. doi:10.1128/AEM.72.5.3593-3599.2006DOI
  45. [45]Louis P, Flint HJ. Formation of propionate and butyrate by the human colonic microbiota. Environ Microbiol. 2017;19: 29–41. doi:10.1111/1462-2920.13589DOI
  46. [46]Henson MA, Phalak P. Suboptimal community growth mediated through metabolite crossfeeding promotes species diversity in the gut microbiota. PLoS Comput Biol. 2018;14: e1006558. doi:10.1371/journal.pcbi.1006558DOI
  47. [47]Diener C, Gibbons SM, Resendis-Antonio O. MICOM: Metagenome-Scale Modeling To Infer Metabolic Interactions in the Gut Microbiota. mSystems. 2020;5, doi:10.1128/mSystems.00606-19DOI
  48. [48]Monod J. The growth of bacterial cultures. Annu Rev Microbiol. 1949;3: 371–394. doi:10.1146/annurev.mi.03.100149.002103DOI
  49. [49]Orth JD, Fleming RMT, Palsson BØ. Reconstruction and Use of Microbial Metabolic Networks: the Core Escherichia coli Metabolic Model as an Educational Guide. EcoSal Plus. 2010;4. doi:10.1128/ecosalplus.10.2.1DOI
  50. [50]Lewis NE, Hixson KK, Conrad TM, Lerman JA, Charusanti P, Polpitiya AD, et al. Omic data from evolved E. coli are consistent with computed optimal growth from genome-scale models. Mol Syst Biol. 2010;6: 390. doi:10.1038/msb.2010.47DOI
  51. [51]Smallbone K, Simeonidis E. Flux balance analysis: a geometric perspective. J Theor Biol. 2009;258: 311–315. doi:10.1016/j.jtbi.2009.01.027DOI
  52. [52]Isermann H. Linear lexicographic optimization. OR Spectr. 1982;4: 223–228. doi:10.1007/bf01782758DOI
  53. [53]Höffner K, Harwood SM, Barton PI. A reliable simulator for dynamic flux balance analysis. Biotechnol Bioeng. 2013;110: 792–802. doi:10.1002/bit.24748DOI
  54. [54]Schuetz R, Kuepfer L, Sauer U. Systematic evaluation of objective functions for predicting intracellular fluxes in Escherichia coli. Mol Syst Biol. 2007;3: 119. doi:10.1038/msb4100162DOI
  55. [55]Shen X, Budman H. A method for tackling primal multiplicity of solutions of dynamic flux balance models. Comput Chem Eng. 2020;143: 107070. doi:10.1016/j.compchemeng.2020.107070DOI
  56. [56]de Oliveira RD, Jäschke J. Multi-stage Economic Nonlinear Model Predictive Control of bioreactors using dynamic flux balance analysis models. J Process Control. 2026;157: 103595. doi:10.1016/j.jprocont.2025.103595DOI
  57. [57]Jabarivelisdeh B, Carius L, Findeisen R, Waldherr S. Adaptive predictive control of bioprocesses with constraint-based modeling and estimation. Comput Chem Eng. 2020;135: 106744. doi:10.1016/j.compchemeng.2020.106744DOI
  58. [58]Chen J, Gomez JA, Höffner K, Phalak P, Barton PI, Henson MA. Spatiotemporal modeling of microbial metabolism. BMC Syst Biol. 2016;10: 21. doi:10.1186/s12918-016-0259-2DOI
  59. [59]Gal T, Nedoma J. Multiparametric linear programming. Manage Sci. 1972;18: 406–422. doi:10.1287/mnsc.18.7.406DOI
  60. [60]Gal T. Postoptimal analyses, parametric programming, and related topics: Degeneracy, multicriteria decision making, redundancy. 2nd ed. Walter de Gruyter; 1994. doi:10.1515/9783110871203DOI
  61. [61]Borrelli F, Bemporad A, Morari M. Geometric algorithm for multiparametric linear programming. J Optim Theory Appl. 2003;118: 515–540. doi:10.1023/b:jota.0000004869.66331.5cDOI
  62. [62]Akbari A, Barton PI. An improved multi-parametric programming algorithm for flux balance analysis of metabolic networks. J Optim Theory Appl. 2018;178: 502–537. doi:10.1007/s10957-018-1281-xDOI
  63. [63]Bemporad A, Morari M, Dua V, Pistikopoulos EN. The explicit linear quadratic regulator for constrained systems. Automatica (Oxf). 2002;38: 3–20. doi:10.1016/S0005-1098(01)00174-1DOI
  64. [64]Wets RJ-B. Solving stochastic programs with simple recourse. Stochastics. 1983;10: 219–242. doi:10.1080/17442508308833274DOI
  65. [65]Haugland D, Wallace SW. Solving many linear programs that differ only in the righthand side. Eur J Oper Res. 1988;37: 318–324. doi:10.1016/0377-2217(88)90193-2DOI
  66. [66]Ji Y, Thomas RJ, Tong L. Probabilistic forecasting of real-time LMP and network congestion. IEEE Trans Power Syst. 2016; 1–1. doi:10.1109/tp w rs.2016.2592380DOI
  67. [67]Bertsimas D, Stellato B. The voice of optimization. Mach Learn. 2021;110: 249–277. doi:10.1007/s10994-020-05893-5DOI
  68. [68]Misra S, Roald L, Ng Y. Learning for constrained optimization: Identifying optimal active constraint sets. INFORMS J Comput. 2022;34: 463–480. doi:10.1287/ijoc.2020.1037DOI
  69. [69]Farkas J. Theorie der einfachen Ungleichungen. J Reine Angew Math. 1902;1902: 1–27. doi:10.1515/crll.1902.124.1DOI
  70. [70]Koch T. The final NETLIB-LP results. Oper Res Lett. 2004;32: 138–142. doi:10.1016/S0167-6377(03)00094-4DOI
  71. [71]Gleixner AM, Steffy DE, Wolter K. Iterative refinement for linear programming. INFORMS J Comput. 2016;28: 449–464. doi:10.1287/ijoc.2016.0692DOI
  72. [72]Gleixner A, Steffy DE. Linear programming using limited-precision oracles. Math Program. 2020;183: 525–554. doi:10.1007/s10107-019-01444-6DOI
  73. [73]Tourigny D, Muriel J, Beber M. dfba: Software for efficient simulation of dynamic flux-balance analysis models in Python. J Open Source Softw. 2020;5: 2342. doi:10.21105/joss.02342DOI
  74. [74]Harwood SM, Hö?ffner K, Barton PI. Efficient solution of ordinary differential equations with a parametric lexicographic linear program embedded. Numer Math (Heidelb). 2016;133: 623–653. doi:10.1007/s00211-015-0760-3DOI
  75. [75]Ebrahim A, Lerman JA, Palsson BO, Hyduke DR. COBRApy: CONstraints-Based Reconstruction and Analysis for Python. BMC Syst Biol. 2013;7: 74. doi:10.1186/1752-0509-7-74DOI
  76. [76]Dormand JR, Prince PJ. A family of embedded Runge-Kutta formulae. J Comput Appl Math. 1980;6: 19–26. doi:10.1016/0771-050X(80)90013-3DOI
  77. [77]Hairer E, Norsett SP, Wanner G. Solving ordinary differential equations I: Nonstiff problems. 2nd ed. Berlin, Germany: Springer; 1993. doi:10.1007/978-3-540-78862-1
  78. [78]Shampine LF, Thompson S. Event location for ordinary differential equations. Comput Math Appl. 2000;39: 43–54. doi:10.1016/s0898-1221(00)00045-6DOI
  79. [79]Gonzalez TF. Clustering to minimize the maximum intercluster distance. Theor Comput Sci. 1985;38: 293–306. doi:10.1016/0304-3975(85)90224-5DOI
  80. [80]Oh Y-K, Palsson BO, Park SM, Schilling CH, Mahadevan R. Genome-scale reconstruction of metabolic network in Bacillus subtilis based on high-throughput phenotyping and gene essentiality data. J Biol Chem. 2007;282: 28791–28799. doi:10.1074/jbc.M703759200DOI
  81. [81]Mo ML, Palsson BO, Herrgård MJ. Connecting extracellular metabolomic measurements to intracellular flux states in yeast. BMC Syst Biol. 2009;3: 37. doi:10.1186/1752-0509-3-37DOI
  82. [82]Brunk E, Sahoo S, Zielinski DC, Altunkaya A, Dräger A, Mih N, et al. Recon3D enables a three-dimensional view of gene variation in human metabolism. Nat Biotechnol. 2018;36: 272–281. doi:10.1038/nbt.4072DOI
  83. [83]Ben-Tal A, Nemirovski A. Robust solutions of Linear Programming problems contaminated with uncertain data. Math Program. 2000;88: 411–424. doi:10.1007/pl00011380
  84. [84]Neumaier A, Shcherbina O. Safe bounds in linear and mixed-integer linear programming. Math Program. 2004;99: 283–296. doi:10.1007/s10107-003-0433-3DOI
  85. [85]Higham NJ. Accuracy and stability of numerical algorithms: Second edition. 2nd ed. Philadelphia, Pa.: Society for Industrial and Applied Mathematics; 2002. doi:10.1137/1.9780898718027DOI
  86. [86]Lam SK, Pitrou A, Seibert S. Numba. Proceedings of the Second Workshop on the LLVM Compiler Infrastructure in HPC. New York, NY, USA: ACM; 2015. pp. 1–6. doi:10.1145/2833157.2833162
  87. [87]Harris CR, Millman KJ, van der Walt SJ, Gommers R, Virtanen P, Cournapeau D, et al. Array programming with NumPy. Nature. 2020;585: 357–362. doi:10.1038/s41586-020-2649-2DOI
  88. [88]Virtanen P, Gommers R, Oliphant TE, Haberland M, Reddy T, Cournapeau D, et al. SciPy 1.0: fundamental algorithms for scientific computing in Python. Nat Methods. 2020;17: 261–272. doi:10.1038/s41592-019-0686-2DOI

AI tools statement

This work lists 2 AI tools.

  • Gemini 3.1 Pro (bare) · AI tool

    Roles
    Writing — review & editing
    Verification
    self-declared at submission
  • Claude Code · AI tool

    Roles
    Software
    Verification
    self-declared at submission

Recorded on the work at submission, not per version. Names and roles are shown as submitted; roles use the CRediT taxonomy.

How AI tools are recorded

Paper details

Cite this paper

Publication

Published
Version
Latest

Data & code

Code, data, proofs and workflows the authors linked for testing, review and reproduction. These links are part of this work’s metadata and are released under the same license as the rest of that metadata. Valency doesn’t host the files; each keeps the license set where it’s hosted.

Pick where to look, or just type