 Research
 Open Access
 Published:
Quantitative analysis of numerical solvers for oscillatory biomolecular system models
BMC Bioinformatics volume 9, Article number: S17 (2008)
Abstract
Background
This article provides guidelines for selecting optimal numerical solvers for biomolecular system models. Because various parameters of the same system could have drastically different ranges from 10^{15} to 10^{10}, the ODEs can be stiff and illconditioned, resulting in nonunique, nonexisting, or nonreproducible modeling solutions. Previous studies have not examined in depth how to best select numerical solvers for biomolecular system models, which makes it difficult to experimentally validate the modeling results. To address this problem, we have chosen one of the wellknown stiff initial value problems with limit cycle behavior as a testbed system model. Solving this model, we have illustrated that different answers may result from different numerical solvers. We use MATLAB numerical solvers because they are optimized and widely used by the modeling community. We have also conducted a systematic study of numerical solver performances by using qualitative and quantitative measures such as convergence, accuracy, and computational cost (i.e. in terms of function evaluation, partial derivative, LU decomposition, and "takeoff" points). The results show that the modeling solutions can be drastically different using different numerical solvers. Thus, it is important to intelligently select numerical solvers when solving biomolecular system models.
Results
The classic BelousovZhabotinskii (BZ) reaction is described by the Oregonator model and is used as a case study. We report two guidelines in selecting optimal numerical solver(s) for stiff, complex oscillatory systems: (i) for problems with unknown parameters, ode45 is the optimal choice regardless of the relative error tolerance; (ii) for known stiff problems, both ode113 and ode15s are good choices under strict relative tolerance conditions.
Conclusions
For any given biomolecular model, by building a library of numerical solvers with quantitative performance assessment metric, we show that it is possible to improve reliability of the analytical modeling, which in turn can improve the efficiency and effectiveness of experimental validations of these models. Also, our study can be extended to study a variety of molecularlevel system models for human disease diagnosis and therapeutic treatment.
Background
Complex biochemical systems have been described by many models [1–4], but these modeling studies have not been used to address biomedical problems of practical or clinical interest. One major hurdle is that when describing a nonobservable biomolecular system, the set of ordinary differential equations (ODEs) often do not have closedform analytical solutions. Even when numerical solutions are proposed, there are no standard quantitative metrics to verify the efficacy of a numerical solution in approximating the true solution. Thus, there is an urgent need to study numerical solver behavior in biomolecular systems modeling using both qualitative and quantitative performance measures.
Biomolecular system modeling is an iterative process that depends on robust and accurate numerical solvers for future experimental validation. We aim to determine the optimal numerical solver(s) for a particular system model, by applying various numerical solvers to the model and then comparing the numerical solutions. The workflow for such a systematic study is shown in Figure 1.

In the application phase, we select the optimal numerical solver(s) (ideally based on a weighted decision from performance measures) to elucidate modelsolver dependency (that is, to determine the characteristics of numerical solvers that can express model behavior reasonably well).

In the design phase, we identify and incorporate significant features of similar biomolecular systems into concrete analytical models. This is to determine a systemmodel correspondence.

Based on specific model characteristics, we apply the optimal numerical solver(s) to obtain the solution that best approximates the true system behavior.

We validate the model through experimentation by comparing empirical results with the simulated model results by using the optimal solver(s).

We improve the optimal numerical solver(s) selection to correct modeling errors by reducing discrepancies between experimental results and modeling simulations.
As a testbed, we have used the BelousovZhabotinskii (BZ) reaction system, which is represented by the Oregonator model [4] as the test system. In the following sections, we first describe the system model and numerical solvers implemented; we then present and discuss the results obtained using qualitative and quantitative performance measures; and we conclude by laying out plans for related future work. Finally, we will determine simple rules to help select the optimal numerical solver(s) given stiff problems. These rules can help researchers decide if there exists an optimal numerical solver(s) for a given system or if there are only suboptimal solvers.
Results
Two sets of simulations were performed under different conditions of error tolerance – (a) relaxed relative error tolerance (RET) i.e. in MATLAB, 'RelTol' = 10^{3} and (b) strict relative error tolerance (SET) i.e. 'RelTol' = 10^{6} ; other invariant conditions are a parameter set {s = 100, w = 3.835, q = 10^{6}, f = 1.1} and initial conditions {α = 20, η = 1.1, ρ = 20}. Simulations were run for 200 time units.
Figures 2 and 3 are visual representations of simulation results under RET. Respectively, Figure 2 shows 2D phase plots of pairs of reactant species and Figure 3 shows timeseries solutions of all three reactant species. These results are based on the assumed ability of the numerical solvers in MATLAB to handle stiff problems as shown in Table 1. In Figure 3, only the phase plots of ρ(Z) vs. η(Y) are presented for brevity; the trends presented are representative of other combination pairs.
Based on these performance measures, we propose two simple guidelines to select the optimal numerical solver(s) for solving models of stiff, complex oscillatory biochemical systems.

1.
For problems with unknown parameters, ode45 is the optimal choice regardless of relative error tolerance.

2.
For known stiff problems, both ode113 and ode15s are good choices under strict relative error tolerance.
Qualitative metrics
From Figure 2 under RET, we observe that the expected limit cycle (LC) behavior only exists in some solvers. For example, among the nonstiff solvers, only ode45; among the stiff solvers, only ode15s and ode23tb; and the moderately stiff solver ode23t. LC behavior is observed from all solvers under SET.
In Figure 3, the timeseries solutions are logically parallel to the 2D phase plots in Figure 2. In addition, the nonstiff solvers ode23, ode113 and stiff solver ode23s produce solutions that quickly depart from the expected limit cycle behavior and become unstable. For reference purposes, we define a 'takeoff' point as the pivotal timepoint when the numerical solution first departs radically, by visual inspection of timeseries data, from expected stable limit cycle behavior. Furthermore, of these solutions in Figure 3, the stiff solvers ode15s and ode23tb produce oscillations with varying amplitudes and periods with pseudorandom sequence while the oscillations from ode45 and ode23t are relatively uniform throughout the period of simulation. In addition, where limit cycle behavior is observed under SET, the amplitudes of oscillations are similar for α and ρ, ranging between [43.3, 50.7] while the corresponding period ranges between [12.4, 13.6].
From Figures 2 and 3, we observe significant differences in the numerical solutions obtained using different numerical solvers on the same system model under similar operating conditions (e.g. model parameters and initial conditions). These observations are summarized in Tables 2 and 3, together with other qualitative and quantitative performance metrics.
Quantitative metrics
Comparing statistics in Table 2 under RET, ode45 is the only nonstiff solver that produces a convergent solution; ode15s is the least costly stiff solver based on the number of function evaluations. Among all implicit solvers, ode15s is the optimal stiff solver because it had to compute the least number of partial derivatives, LU decompositions and solutions of linear systems. The moderately stiff solver ode23t performs the next best in this group of implicit solvers. Between implicit and explicit solvers, where convergent solutions to LC behavior were determined, the observed period and amplitude of oscillations is significantly different: (13.5, 49.7) from ode45 as opposed to an average of (8.6, 23.6) from ode15s, ode23tb and ode23t. Where numerical solutions do not converge, the 'takeoff' point is consistent for ode113 (25.55 time units) and ode23s (23.05), but varies for ode23 depending on the maximum stepsize allowed. This phenomenon is further examined in Figure 4.
Comparing statistics in Table 3 under SET, in terms of the number of function evaluations, among explicit solvers ode113 is the least costly i.e. it performed the least number of function evaluations. Among implicit solvers, ode15s is optimal in terms of computational costs i.e. computing the least number of partial derivatives, LU decompositions and solutions of linear systems.
Comparing statistics across Tables 2 and 3, only ode45 provided consistent results in terms of the period and amplitude of oscillation – (13.5, 49.7) under RET and (13.6, 50.5) under SET. Among implicit solvers, ode15s performed the best in terms of computational cost. From Table 2, only one of three explicit solvers and 3 of 4 implicit solvers produced convergent numerical solutions under RET. From Table 3, all numerical solvers produced convergent numerical solutions to LC behavior when the relative error tolerance was stricter under SET.
Following the departure of the numerical solution from expected limit cycle behavior, we observe that the 'takeoff' point for nonstiff solver ode23 under RET varies based on the maximum stepsize (i.e. 'MaxStep' in MATLAB) allowed. In all other simulations performed for this study, the simulation option 'MaxStep' is set by default with the rule 'MaxStep' = 0.1*abs(t_{0}  t_{f}) [5] where t_{0} is the simulation start time, set at 0 units; t_{f} is the end time, set at 200 time units. In fact, the period of simulation dictates the maximum stepsize allowed. The actual stepsizes taken are more directly controlled by the relative error tolerance 'RelTol'. The relation of the 'takeoff' point with respect to the 'MaxStep' allowed for ode23 simulations is shown in Figure 4. From Figure 4, the 'takeoff' point varies between ~11 and ~26 time units with 'MaxStep' ≤ 4.2 units. The 'takeoff' point remains constant at ~24.6 if the'MaxStep' is >4.2.
Discussion
Numerical solvers have various theoretical formulations such as single vs. multistep, low vs. highorder, explicit vs. implicit solvers [6–8]. To systematically compare the numerical solvers, we have examined qualitative performance measures such as convergence and accuracy, and quantitative performance measures such as computational cost in terms of function evaluations, partial derivatives, LU decompositions, solutions of linear systems, 'takeoff' points, period and amplitude of oscillation.
Adaptive schemes allow savings in computational cost without compromising accuracy, i.e., the solvers take smaller stepsizes when the results change rapidly, or larger stepsizes when the results move slowly. With a specified tolerance interval for the magnitude of step errors, the stepsize may be adjusted so that smaller steps are taken where the step error is large and vice versa. This adaptive stepsize feature is studied by performing simulations under 2 conditions: (a) relaxed relative error tolerance (RET), i.e. in MATLAB, 'RelTol' = 10^{3}, and (b) strict relative error tolerance (SET), 'RelTol' = 10^{6}.
Singlestep numerical solvers depend only on one preceding timepoint i.e. only y(t_{n1}) is required to obtain y(t_{n}). Hence, trends from additional preceding timepoints do not influence the solution of the immediate step. On the other hand, multistep solvers require multiple preceding timepoints to determine y(t_{n}). As such, multistep methods are less sensitive to initial conditions compared to singlestep methods in general. In the case of singlestep RungeKutta (RK) methods – that form the basis for ode23, ode45 and ode23tb – the interval between t_{n1} and t_{n} are further divided into subintervals based on the order of the RK method. This subdivision also helps to control error propagation at successive steps, leading to increased stability in the solution. Thus, with the exception of ode23 where the solution quickly diverges, RK methods in general are a popular choice for numerical solvers.
The explicit solvers compute y(t_{n}) using other known values, while the implicit solvers require an iterative process to solve y(t_{n}) instead. Convergence is not guaranteed in this iterative process and depends heavily on the termination criteria. On the other hand, because this iterative process refines the solution at each step, implicit solvers are generally more suited to solve stiff problems. An unexpected result occurs with ode23s, where the solution becomes unstable under RET.
The tradeoff for obtaining a high order of accuracy is increased computational cost. For example, the variableorder solver ode113 is capable of accuracy up to the 13th order. However, to achieve this accuracy, it performs extensive function evaluations depending on the highest order of the derivatives required. On the other hand, loworder solvers such as ode23 perform simpler function evaluations that are limited to computing the 3rdorder derivative.
From this comparison, our results suggest ode45 and ode15s are better numerical solvers when dealing with stiff systems of nonlinear ODEs. ode45 is an explicit RK method of order 4 while ode15s is variableorder capable of 1st–5th order accuracy. Furthermore, low to mediumorder methods appear to provide more accurate solutions compared to highorder methods. In addition, results suggest that under relaxed relative error tolerance, implicit solvers may handle stiff problems relatively better than explicit solvers; this is consistent with established guidelines in handling stiff problems. However, when the relative error tolerance is strict, all numerical solutions studied here converge to limit cycle behavior. Under this condition, explicit solvers have an advantage over implicit solvers in terms of computational cost because of the lesser number of operations required. In addition, LC behavior is dependent on the parameter set {s, q, w, f} and initial conditions for the species involved [9–12]. The choice of the parameter set and initial conditions is based on a previous solution [13] that has been verified to exhibit LC behavior. This implies that the parameter set used for this study may not be the best choice. Thus, the characterization of the parameter space for the Oregonator model remains a worthwhile problem.
The key advantage in selecting MATLAB numerical solvers for comparison is that they are widely used in engineering and science and these solvers' reliability is of critical interest to the community. For those experienced users who may implement these solvers individually, it is also critical for them to understand the intrinsic differences in all types of solves, so as to be able to tailor solver algorithms to specific problems. For instance, Cocherová modified the ode23 solver to solve the HodgeHuxley model of electrical conduction through a nerve fiber [14]. Results from her work demonstrate improved accuracy and convergence of solutions even under RET.
The next step is to determine whether there exists an analytical systemmodel dependency, that is, to extract and map features of biological systems to concrete analytical models. This extraction process for biomolecular systems emulates the modeling process of conventional systems such as mechanical, electrical and fluid flow systems. The numerical solver selection results from this work should help in validating the analytical model and also in translating systems biology to clinical treatrment and therapeutic engineering applications.
Conclusion
We have demonstrated that the selection of numerical solvers plays an important role in modeling outcomes. Using both qualitative and quantitative performance measures, we have shown that ode15 is an optimal implicit solver for solving stiff systems of ODEs, and enforcing strict relative error tolerance is a key factor for improving the performance of numerical solvers for convergent solutions. However, enforcing stricter relative error tolereance leads to an increase in computational costs. For explicit numerical solvers, ode45 is found to perform consistently regardless of relative error tolerance. These results reinforce the iterative process of biomolecular systems modeling, and indicate that it is not only possible to improve and ensure reproducibility of the analytical models, and also possible to improve the efficiency and effectiveness of experimental validations of these models.
Methods
Here we discuss: (a) justification for the choice of the BelousovZhabotinskii (BZ) reaction as our test case, (b) the corresponding Oregonator model proposed by Field, Körös and Noyes, (c) stiff problems and (d) an overview of selected numerical solvers.
BelousovZhabotinskii (BZ) reaction
The BelousovZhabotinskii (BZ) [HBrO_{2}BrCe(IV)] reaction [4, 15, 16] was chosen as the test system for three reasons:

1.
The longterm objective of our research is to study biochemical systems modeling for human disease diagnosis and treatment. So, we want to choose a model that can be easily extended to clinical applications. Clinical disease conditions are often the consequence of cellular metabolite accumulations or deficiencies that arise from faulty cellular metabolite recycling mechanisms. Metabolites exhibit temporal oscillations in healthy cells as a result of consistent metabolite recycling. The BZ reaction model demonstrates similar sustained temporal oscillations i.e. limit cycle behavior that may be observed as a continuous progression of concentric waves in a benchtop flask. Furthermore, there is a correlation of the BZ reaction model and cell behavior. For instance, sustained temporal oscillations in a biochemical system are possible only if the system is maintained far from equilibrium i.e. the system is open and mass transfer occurs freely across the boundaries between the system and its surroundings. In cells, the cellular cytoplasm may be considered an open system to a limited extent because metabolic reactions occur in localized regions within the cytoplasm. Thus, the BZ reaction is a reasonable model to investigate that is readily extensible to clinical applications.

2.
The BZ reaction is readily reproducible with materials found easily in classroom laboratories. As such, analytical or numerical predictions regarding the amplitude and frequency of oscillations can be easily verified. Furthermore, because the BZ reaction may be replicated in multiple settings [17] using different reactants with slightly different settings, there is a large variability, or a diverse family, of BZ reactions that are suitable and useful for validation of numerical solutions.

3.
The BZ reaction is wellstudied and modeled since the early 1970s when Field and Noyes first proposed the classic Oregonator [4, 17] model to model the BZ reaction. As such, a wide array of literature [9–13] is readily available to provide an additional means to verify our results. While the Oregonator model may not be perfect, the model parameters and initial conditions are sufficiently wellcharacterized, making the Oregonator model an ideal choice for case study.
Oregonator model [17]
From Field, Körös and Noyes, the Oregonator model is a set of 5 kinetic reactions with 2 substrates, 3 intermediates and 2 products as follows:
A + Y → X (1)
X +Y → P (2)
B + X → 2X + Z (3)
2X → Q (4)
Z → fY (5)
where A, B are substrates; P, Q are products; X, Y and Z are intermediates; f is a stoichiometric factor.
The intermediates X, Y and Z, representing HBrO_{2}, Br, and Ce(IV) respectively, exhibit limit cycle behavior under suitable conditions. Assuming irreversible reactions (1–5), we express the rate of change of these intermediates as follows, in physical dimensions of concentration per time:
where the ki's represent reaction rate constants in equations (1–5).
Furthermore, Field and Noyes cast this system of nonlinear ODEs into a physically dimensionless system in terms of α, η and ρ. By removing physical dimensions from the systems of ODEs, the associated analytical difficulties in manipulating these physical dimensions of the Oregonator model are resolved as:
where
and f remains the stoichiometric factor (physically dimensionless). Thus, under a prescribed set of parameters {s, w, q, f}, the solutions to this physically dimensionless system, equations (9–11), derived from a variety of numerical solvers are of particular interest.
Stiff problems
Stiff problems are problems where the speed of computing the numerical solution is restricted by the smallest stepsize constrained by the parameter with smallest magnitude and dynamic range. As a result, it has significantly increased computational cost and potentially compromised the accuracy of the computed numerical solution. For example, in a previous study [13], a parameter set {s = 100, w = 3.835, q = 1 × 10^{6}, f = 1.1} and initial conditions {α = 20, η = 1.1, ρ = 20} were verified to lead the Oregonator model to exhibit limit cycle behavior. This set of parameters {s, w, q, f} differs significantly in orders of magnitude (i.e. q is in the order of 10^{6} in comparing to s in the order of 10^{2}), which makes the system stiff where the solution stepsize is constrained by the smallest parameter q.
To obtain a strong, unambiguous basis for comparison of numerical solvers, we use MATLAB to simulate this model with adaptive stepsizes for 200 time units using this a priori set of prescribed parameters and initial conditions.
Numerical solvers
A variety of numerical solvers are available in MATLAB to deal with stiff, coupled, nonlinear systems of differential equations such as the physically dimensionless Oregonator model in terms of α, η and ρ. A brief overview of the available numerical solvers is summarized in Table 1[5, 18–20].
From Table 1, there is a broad selection of numerical solvers, ranging from low to high order, single and multistep as well as explicit and implicit solvers implemented to deal with both stiff and nonstiff problems. The 3 explicit and 4 implicit numerical solvers selected for comparison represent key analytical and practical components of numerical solvers across the board.
A systematic study of the formulation and practical implementation constraints of these numerical solvers is conducted using specific performance measures such as convergence, accuracy and computational cost to summarize the efficacy of these numerical solvers. Evident from Table 1, there are multiple ways to characterize numerical solvers; here, the numerical solvers examined in this work are primarily organized and compared by the basis of ability to deal with stiff problems.
Abbreviations
 BZ:

BelousovZhabotinskii
 LC:

Limit cycle
 RK:

RungeKutta
 RET:

Relaxed relative error tolerance
 SET:

Strict relative error tolerance
 ODE:

Ordinary differential equation.
References
 1.
Hendriks BS, Opresko LK, S WH, Lauffenburger D: Quantitative analysis of HER2mediated effects on HER2 and epidermal growth factor receptor endocytosis – distribution of homo and heterodimers depends on relative HER2 levels. J Biol Chem. 2003, 278 (26): 2334323351. 10.1074/jbc.M300477200.
 2.
Larter R, Bush CL, Lonis TR, Aguda BD: Multiple steadystates, complex oscillations, and the devil's staircase in the peroxidaseoxidase reaction. J Chem Phys. 1987, 87 (10): 57655771. 10.1063/1.453550.
 3.
Fitzhugh R: Thresholds and plateaus in the HodgkinHuxley nerve equations. Journal of General Physiology. 1960, 43 (5): 867896. 10.1085/jgp.43.5.867.
 4.
Field RJ, Körös R, Noyes RM: Oscillations in chemical systems. II. Thorough analysis of temporal oscillation in the bromateceriummalonic acid system. J Amer Chem Soc. 1972, 94 (25): 86498664. 10.1021/ja00780a001.
 5.
MATLAB ver 7.0.4 Help Documentation. MATLAB.
 6.
Atkinson KE: An Introduction to Numerical Analysis. 1989, USA: John Wiley & Sons
 7.
Faires JD, Burden R: Numerical Methods. 2003, USA: Brooks/Cole – Thomson Learning
 8.
Press WH, Flannery BP, Teukolsky SA, Vetterling WT: Numerical Recipes in C. 1990, USA: Cambridge University Press
 9.
Murray JD: On a model for the temporal osciallations in the BelousovZhabotinskii reaction. J Chem Phys. 1974, 61 (9): 36103613. 10.1063/1.1682542.
 10.
Tyson JJ: Analytic representation of oscillations, excitability, and traveling waves in a realistic model of the BelousovZhabotinskii reaction. J Chem Phys. 1977, 66 (3): 905915. 10.1063/1.433997.
 11.
Murase C, Sakanoue S: Unstable and stable limit cycle in the Oregonator model for the BelousovZhabotinskii reaction. Prog Theor Phys. 1983, 69 (3): 742755. 10.1143/PTP.69.742.
 12.
Noyes RM: An alternative to the stoichiometric factor in the Oregonator model. J Chem Phys. 1984, 80 (12): 60716078. 10.1063/1.446689.
 13.
Simulink implementation of the Oregonator model. [http://www.mathworks.com/matlabcentral/]
 14.
Cocherová E: Modification of ordinary differential equations MATLAB solver. Radioengineering. 2003, 12 (4): 6366.
 15.
Field RJ, Noyes RM: Explanation of spatial band propagation in the Belousov reaction. Nature. 1972, 237: 390392. 10.1038/237390a0.
 16.
BelousovZhabotinskii Model. [http://math.fullerton.edu/mathews/n2003/BelousovZhabotinskiiBiB.html]
 17.
Field RJ, Noyes RM: Oscillations in chemical systems. IV. Limit cycle behavior in a model of a real chemical reaction. J Chem Phys. 1974, 60 (5): 18771884. 10.1063/1.1681288.
 18.
Shampine LF, Reichelt MW: The MATLAB ODE suite. SIAM Jour Sci Comput. 1984, 18 (1): 122. 10.1137/S1064827594276424.
 19.
Shampine LF, Reichelt MW, Kierzanka JA: Solving IndexI DAEs in MATLAB and SIMULINK. SIAM Review. 1999, 41 (3): 538552. 10.1137/S003614459933425X.
 20.
Hosea ME, Shampine LF: Analysis and implementation of TRBDF2. Appl Num Math. 1996, 20: 2137. 10.1016/01689274(95)001158.
Acknowledgements
This research has been supported by grants from The Parker H. Petit Institute for Bioengineering and Bioscience (IBB), Johnson & Johnson, Bio Imaging Mass Spectrometry Initiative at Georgia Tech, National Institutes of Health (Bioengineering Research Partnership R01CA108468, Center for Cancer Nanotechnology Excellence U54CA119338), Georgia Cancer Coalition (Distinguished Cancer Scholar Award to MW), and Microsoft Research.
This article has been published as part of BMC Bioinformatics Volume 9 Supplement 6, 2008: Symposium of Computations in Bioinformatics and Bioscience (SCBB07). The full contents of the supplement are available online at http://www.biomedcentral.com/14712105/9?issue=S6.
Author information
Affiliations
Corresponding author
Additional information
Competing interests
The authors declare that they have no competing interests.
Authors' contributions
CQ implemented the Oregonator model, gathered results and prepared the original draft. MW directs the whole project and publication.
Rights and permissions
This article is published under license to BioMed Central Ltd. This is an open access article distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/by/2.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
About this article
Cite this article
Quo, C.F., Wang, M.D. Quantitative analysis of numerical solvers for oscillatory biomolecular system models. BMC Bioinformatics 9, S17 (2008). https://doi.org/10.1186/147121059S6S17
Published:
Keywords
 Numerical Solver
 Stiff Problem
 Implicit Solver
 Biomolecular System
 Explicit Solver