 Software
 Open access
 Published:
DFBAlab: a fast and reliable MATLAB code for dynamic flux balance analysis
BMC Bioinformatics volume 15, Article number: 409 (2014)
Abstract
Background
Dynamic Flux Balance Analysis (DFBA) is a dynamic simulation framework for biochemical processes. DFBA can be performed using different approaches such as static optimization (SOA), dynamic optimization (DOA), and direct approaches (DA). Few existing simulators address the theoretical and practical challenges of nonunique exchange fluxes or infeasible linear programs (LPs). Both are common sources of failure and inefficiencies for these simulators.
Results
DFBAlab, a MATLABbased simulator that uses the LP feasibility problem to obtain an extended system and lexicographic optimization to yield unique exchange fluxes, is presented. DFBAlab is able to simulate complex dynamic cultures with multiple species rapidly and reliably, including differentialalgebraic equation (DAE) systems. In addition, DFBAlab’s running time scales linearly with the number of species models. Three examples are presented where the performance of COBRA, DyMMM and DFBAlab are compared.
Conclusions
Lexicographic optimization is used to determine unique exchange fluxes which are necessary for a welldefined dynamic system. DFBAlab does not fail during numerical integration due to infeasible LPs. The extended system obtained through the LP feasibility problem in DFBAlab provides a penalty function that can be used in optimization algorithms.
Background
The acceleration in the process of genome sequencing in recent years has increased the availability of genomescale metabolic network reconstructions for a variety of species. These genomebased networks can be used within the framework of flux balance analysis (FBA) to predict steadystate growth and uptake rates accurately [1]. Dynamic flux balance analysis (DFBA) enables the simulation of dynamic biological systems by assuming organisms reach steady state rapidly in response to changes in the extracellular environment. Then, the rates predicted by FBA are used to update the extracellular environment. There exist three approaches to simulate DFBA models: the static optimization approach (SOA) [2], the dynamic optimization approach [2] (DOA), and the direct approach (DA). The static optimization approach uses the Euler forward method, solving the embedded LPs at each time step. Since most DFBA models are stiff, small time steps are required for stability, making this approach computationally expensive. Meanwhile, the DOA approach discretizes the time horizon and optimizes simultaneously over the entire time period of interest by solving a nonlinear programming problem (NLP). The dimension of this NLP increases with time discretization, therefore it is limited to smallscale metabolic models [3]. Finally, a DA has been proposed recently by including the LP solver in the righthand side evaluator for the ordinary differential equations (ODEs) and taking advantage of reliable implicit ODE integrators with adaptive step size for error control. At present, the DOA is rarely used due to the intractability of the resulting NLP. DFBA can be easily performed on MATLAB using the constraintbased reconstruction and analysis (COBRA) toolbox [1],[4], which implements the SOA. Recently, the DA has been implemented by Hanly and Henson [5], Mao and Verwoerd in the ORCA toolbox [6], Zhuang et al. in the dynamic multispecies metabolic modeling (DyMMM) framework [7],[8], and others. A comprehensive list of DFBA implementations can be found in Table I of [3]. COBRA, DyMMM and ORCA codes are available on the Web. Of these, only DyMMM allows community simulations. Since ORCA and DyMMM are extremely similar, only COBRA and DyMMM were implemented in the case studies presented.
These implementations present several shortcomings. The COBRA Toolbox uses a fixed time step and does not take advantage of the high quality builtin integrators provided by MATLAB. Simulation stability and accuracy are closely linked to a uniformly small step size which can greatly increase simulation time. It can fail if the extracellular conditions are close to the FBA model becoming infeasible. In addition, it uses a simple exchange flux bounding scheme that does not allow the implementation of MichaelisMenten kinetics or other more complex dynamic behaviors such as day/night shifts for photosynthetic organisms or system feed and discharge rates. It does not allow community simulations.
The ORCA toolbox and the DyMMM framework use the MATLAB builtin integrators. ORCA simulates monocultures only, whereas DyMMM can simulate cocultures. The ORCA toolbox allows the implementation of MichaelisMenten and Hill kinetics only, whereas DyMMM provides the flexibility to implement more complex dynamics such as day/night shifts for photosynthetic organisms or system feed and discharge rates. Both attempt to carry on with simulations when the FBA model is infeasible by setting the growth rate and exchange fluxes equal to zero and displaying a death phase message. This message may be displayed even though the system is not infeasible.
None of these implementations (COBRA, ORCA, and DyMMM) account for the solution of a linear program (LP) being a nonsingleton set. Therefore, exchange fluxes are not necessarily unique and the dynamic system is not welldefined. Nonunique optimal fluxes have been discussed elsewhere in [9] and [5]. If no effort is made to obtain unique fluxes, different integrators could yield different results.
Höffner et al. have designed a fast and reliable community simulator that has the flexibility of implementing complex dynamics, does not fail, identifies precisely when a system becomes infeasible, and performs lexicographic optimization to render unique exchange fluxes [3]. In particular, it avoids numerical failure by reformulating the LP as an algebraic system and integrating an index1 differentialalgebraic equation (DAE) system. Despite these advantages, this simulator has not been widely used due to being coded in FORTRAN. In this paper, we implement the LP feasibility problem combined with lexicographic optimization in our Dynamic Flux Balance Analysis laboratory (DFBAlab), a MATLAB code that performs fast, reliable and flexible community simulations.
Implementation
DFBAlab provides a solution to two major difficulties in existing implementations: nonunique exchange fluxes in the solution vector of an LP and the LP becoming infeasible when evaluating the ODE righthand side close to the boundary of feasibility. DFBAlab implements lexicographic optimization to obtain unique exchange fluxes [3] and uses the LP feasibility problem to avoid obtaining infeasible LPs while running the simulation. DFBAlab runs using the commercial linear program solvers CPLEX [10], Gurobi [11], and MOSEK [12] and is compatible with the COBRA toolbox model format.
Lexicographic optimization
Dynamic flux balance analysis is defined in the following way. Consider a vector x _{0} containing the initial concentrations of metabolites and biomass in a culture and assume there are n _{ s } microbial species in the culture. Given some uptake and production rates of metabolites for each species (exchange fluxes), feed and discharge rates from the culture, mass transfer rates, and other dynamic processes, a rate of change function f can be obtained for each of the components of x _{0}. The function f can then be integrated to find the concentration profiles with respect to time, x(t). Each species has a metabolic network represented by a stoichiometry matrix {\mathbf{S}}^{k}\in {\mathbb{R}}^{{n}_{q}^{k}\times {n}_{r}^{k}} where {n}_{q}^{k} are the number of metabolites and {n}_{r}^{k} are the number of reactions in the metabolic network of species k. Consider that each species k has {n}_{h}^{k} exchange fluxes. Then,
where h ^{k} is a vector containing the exchange fluxes of species k and is obtained by solving a linear program:
where {\mathbf{c}}^{k}\in {\mathbb{R}}^{{n}_{r}^{k}} is the cost vector that maximizes growth fluxes, and {\mathbf{v}}_{\mathit{\text{LB}}}^{k},{\mathbf{v}}_{\mathit{\text{UB}}}^{k} are lower and upper bounds as functions of the extracellular concentrations. The vector h ^{k} then takes the solution of this linear program to find the values of the exchange fluxes (e.g. biomass production rate, O _{2} consumption rate, ethanol production rate, etc.). This definition of DFBA has a serious problem: the solution set of the LP (2) can be nonunique (e.g. different flux distributions v can attain the maximum growth rate) and it is not clear which flux distribution should h ^{k} take to carryon with the integration.
Höffner and coworkers [3] use lexicographic optimization to render unique exchange fluxes. Lexicographic optimization works in the following way. First, it orders a number of objectives in a priority list. The highest priority objective is optimized first; then its optimum value is added as a constraint and the next objective in priority is optimized, and so on. Lexicographic optimization can be implemented in DFBA systems: the first objective is maximization of biomass; then all other exchange fluxes that appear in the righthand side of (1) are added to the priority list. Note that the choice of the objective functions and their ordering are part of the model description and must be provided by the user. Although LPs don’t necessarily have a unique flux distribution that attains the optimal objective function value, they do have a unique optimal objective function value. This optimal objective function value changes continuously with changes in {\mathbf{v}}_{\mathit{\text{LB}}}^{k},{\mathbf{v}}_{\mathit{\text{UB}}}^{k}. By making all the exchange fluxes that appear in the righthand side of (1) optimization objectives ordered by priority, unique exchange fluxes are obtained, these exchange fluxes change continuously with respect to time and the integrator is able to carryon integration reliably. Additional file 1 presents all the mathematical details pertaining to lexicographic optimization.
Harwood et al. (Harwood, S.M., Höffner, K. and Barton, P.I.: Solution of ordinary differential equations with a linear program embedded: the righthand side case, Submitted) present an efficient algorithm to compute a basis that contains optimal bases for all LPs in the priority list. This algorithm was not implemented in DFBAlab because of difficulties in extracting the optimal basis information with no artificial variables from LP solvers in MATLAB, but will be implemented in future releases.
LP feasibility problem
A major problem for DFBA simulators is that the LP in (2) may become infeasible as time progresses. There are two situations where the LP may become infeasible:

1.
The problem is truly infeasible and the solution cannot be continued: in this case the integration should be terminated.

2.
The problem is not infeasible but the LP becomes infeasible while the numerical integrator performs various operations to take a time step in (1): in this case the DFBA simulator in COBRA may fail to continue the simulation and ORCA and DyMMM will erroneously display death phase messages. In particular, the MATLAB’s builtin integrators will have a hardtime obtaining reliable righthand side information as the system changes abruptly from being defined by the solution to (2), to being defined by an artificial solution that sets growth rates and exchange fluxes equal to zero.
In this paper we use the LP feasibility problem [13] combined with lexicographic optimization to generate an extended dynamic system for which the LP always has a solution. An LP feasibility problem finds a feasible point or identifies an LP as infeasible. It has two main characteristics: it is always feasible and its optimal objective function value is zero if and only if the original LP is feasible. Several different versions of the LP feasibility problem can be constructed by adding some slack variables to the constraints. For the LP formulation in (2), the following is an LP feasibility problem:
Let S _{ i } be the i ^{th} row of S. When an LP is constructed in this form, a feasible solution is obtained by finding a v such that {\mathbf{v}}_{\mathit{\text{UB}}}^{k}\left(\mathbf{x}\right(t\left)\right)\ge \mathbf{v}\ge {\mathbf{v}}_{\mathit{\text{LB}}}^{k}\left(\mathbf{x}\right(t\left)\right) and then letting {s}_{+i}={\mathbf{S}}_{i}^{k}\mathbf{v} and s _{−i}=0 if {\mathbf{S}}_{i}^{k}\mathbf{v}<0, or {s}_{i}={\mathbf{S}}_{i}^{k}\mathbf{v} and s _{+i}=0 otherwise. DFBAlab transforms LP (2) to standard form and then obtains the LP feasibility problem for an LP in standard form [13]; however, the principles are the same. A detailed explanation can be seen in the Additional file 1.
DFBAlab uses the LP feasibility problem (3) instead of (2) to find the growth rates and exchange fluxes for each species in the culture. It sets the feasibility cost vector as the top priority objective in the lexicographic optimization scheme. Then, the secondpriority linear program maximizes biomass and the subsequent lowerpriority LPs obtain unique exchange fluxes. The order of the exchange fluxes in the priority list is userdefined. The priority list order is fixed throughout the simulation. This order has to be defined carefully or unrealistic simulation results may be obtained (as illustrated in Example 2). This approach has the following advantages:

1.
The dynamic system in (1) is defined for all simulation time.

2.
The integrator does not encounter infeasible LPs while taking a step and is able to obtain reliable righthand side information speeding up the integration process.

3.
The objective function value of (3) provides a distance from feasibility and can be integrated providing a penalty function that can be useful for optimization purposes. Only trajectories with penalty function value equal to zero (within some tolerance ε) are feasible.
Results and discussion
The following examples demonstrate the reliability and speed of DFBAlab compared to existing implementations of the SOA and DA. SOA is represented by the COBRA dFBA implementation and DA by the DyMMM implementation. In the first example, a monoculture of E. coli is simulated with all three methods. In the second example, a coculture of algae and yeast is simulated using DFBAlab and DyMMM. In the third example, this same coculture is simulated considering the pH balance. Finally, the last example shows how DFBAlab running time increases linearly with the number of FBA models in the system. All running times are for a 3.20 GHz Intel®; Xeon®; CPU in MATLAB 7.12 (R2011a), Windows 7 64bit operating system using LP solver CPLEX. All running times are for the integration process only (preprocessing times are not reported). DFBA models are usually stiff; therefore, ode15s, MATLAB’s integrator for stiff systems, was used for all simulations.
Example 1
This is Example 6.2 in (Harwood, S.M., Höffner, K. and Barton, P.I.: Solution of ordinary differential equations with a linear program embedded: the righthand side case, Submitted) which is based on [5]. Here we compare the performance of COBRA, DyMMM and DFBAlab simulating an E. coli monoculture. The metabolic network reconstruction used was iJR904 published in [14]. This metabolic model contains 2191 reactions and 1706 metabolites. Initial conditions were 0.03 g/L of inoculum, 15.5 g/L of glucose and 8 g/L of xylose. Oxygen concentration was kept constant at 0.24 mmol/L. MichaelisMenten expressions with inhibition terms were implemented to bound the uptake of glucose, xylose and oxygen using the parameters presented in Table I and Equations (3), (4) and (5) in [5]. DFBAlab obtained unique fluxes by minimizing ethanol production, and then glucose and xylose consumption, after maximizing biomass, using lexicographic optimization. The COBRA simulator performed poorly. Since COBRA does not have the flexibility to implement MichaelisMenten expressions, the simulation results were incorrect. In addition, the fixed step size slowed down the integration process. Nonnegativity constraints for all states variables were enforced in both DyMMM and DFBAlab, by using the ‘Nonnegative’ option. DyMMM and DFBAlab obtained the same concentration profiles presented in Figure 1. DyMMM has a good performance recovering from a frequent failure point occurring when growth switches from glucosebased to xylosebased. DFBAlab performs a little bit slower than DyMMM due to the four additional LPs being solved to perform lexicographic optimization, obtaining at least the same level of accuracy. Finally, the penalty function indicates that the system becomes infeasible after approximately 8.1 hours (Figure 1).
Example 2
This is an example from [15] of a coculture of the microalgae Chlamydomonas reinhardtii and Saccharomyces cerevisiae (yeast) in a continuous stirredtank reactor (CSTR) reactor. The genomescale metabolic network reconstructions used were iRC1080, comprising 2191 reactions and 1706 metabolites from [16], and iND750, comprising 1266 reactions and 1061 metabolites from [17], for algae and yeast, respectively. In this simulation, yeast consumes glucose to produce CO_{2} while algae consumes mainly CO_{2} to produce O_{2} during the day, and acetate to produce CO_{2} during the night. The dynamic mass balance equations of the extracellular environment for this system are:
where y ^{i}, g, o, c, e, and a correspond to the concentrations of biomass of species i, glucose, oxygen, carbon dioxide, ethanol and acetate, respectively. The superscripts Y,A refer to yeast and algae, x= [y ^{Y}y ^{A}g o c e a], μ ^{i} is the growth rate of species i, {v}_{{s}_{c}}^{i} and {v}_{{s}_{p}}^{i} are the consumption and production rates of substrate s for species i determined through lexicographic optimization, s _{0} is the concentration of s in the feed, F _{ in } and F _{ out } are the inlet and outlet flows, V is the volume of the system, and M T _{ s } is the mass transfer rate of s given by the following expression:
where K _{ Hs } refers to Henry’s constant of component s at 25°C, k _{ sL }θ is the mass transfer coefficient for component s obtained from [18], and s ^{(g)} is the concentration of s in the atmosphere. The maximum concentration of oxygen and carbon dioxide in the culture is bounded by Henry’s constant:
Initial concentrations and other parameters are presented in Table 1. The uptake kinetics are bounded above by the MichaelisMenten expression:
for i=Y,A and s=a,o,c with {v}_{s,\mathit{\text{max}}}^{i} and {K}_{s}^{i} obtained from [19], [20] and [21] for acetate, carbon dioxide and oxygen. Production of oxygen by algae, ethanol by yeast, and carbon dioxide by algae and yeast were not bounded.
In addition to the extracellular concentrations, algae growth is affected by light availability because it is a photosynthetic organism. Day and night shifts were simulated using the following surface light function:
This light function simulates daylight from 5:00 to 19:00. The prefactor was obtained from [22]. The BeerLambert law was used to average the light available to algae cells considering that higher biomass densities block light and deeper sections of the pond receive less sunlight:
where K _{ e }(x(t)) is a linear function of the concentration of biomass in the culture and L is the pond depth [21]. Concentration variations of biomass for different pond depths were neglected.
This complex community simulation cannot be carried out using the DFBA simulator in COBRA. Nonnegativity constraints were enforced for all state variables in both, DyMMM and DFBAlab, by using the ‘Nonnegative’ option. After more than 10,000 seconds of running time using MATLAB implicit integrator ode15s, the simulation on DyMMM was stopped. Using explicit integrator ode45 instead, DyMMM took more than 3900 seconds to simulate one hour of the cyclic steadystate of this coculture and the results are inaccurate. This is expected because explicit integrators can calculate new steps as long as they are able to evaluate the righthand side of the ODE. The results obtained by DyMMM using ode45 are inaccurate because explicit integrators should not be used for stiff systems, and the righthand side is nonunique. In Figure 2, it can be seen that the acetate curve presents several points of nonsmoothness which are expected in systems with nonunique fluxes. Numerical integrators are unable to handle these systems as they encounter discontinuous exchange fluxes when decreasing stepsize. Therefore, computation time is excessive and the results are incorrect. This shortcoming is addressed by DFBAlab using six lexicographic optimizations for yeast and five for algae. It took only 82 seconds to simulate accurately 24 hours of this coculture using the lexicographic objectives shown in Table 2, and 74 seconds to simulate this same system with Objective 4 for algae inverted. Simulation results can be seen in Figure 3.
Lexicographic optimization is very important in this example; if the negative of Objective 4 for algae is used, oxygen, acetate and yeast concentration profiles vary significantly. In particular, notice the large difference in the O _{2} concentration profile between the two simulations. Since the O _{2} flux is nonunique, selecting different fluxes will lead to different trajectories. Without a rule on how to choose a flux from the optimal solution set, DyMMM can choose different elements of this set while cutting its time step, obtaining unreliable righthand side information. Therefore, it is not surprising that the DyMMM simulator was unable to simulate this system.
It must be noted that in reality, this difference is not observed in nature. When Objective 4 for algae is inverted (maximizing O _{2} consumption and minimizing O _{2} production), the model is able to uptake unlimited H ^{+} ions from the environment and produce water until the O _{2} uptake bound is reached. This behavior will change the pH of the system and the overconsumption of O _{2} would be unsustainable. Increased modeling efforts can bound the uptake of other substrates such as nitrogen, phosphorus and iron and use pH dependent uptakes. In this context, a pH balance will be necessary. This balance is implemented in Example 3. Finally, biologically relevant lexicographic objectives must be selected because some objectives may lead to unrealistic systems as the one just presented.
Example 3
This example illustrates the modeling flexibility DFBAlab provides. The growth rate of autotrophic microalgae such as C. reinhardtii is dependent on CO _{2} concentration. This concentration is affected by pH, as the following equilibrium reactions are present in the extracellular environment:
Using the equilibrium constants presented in Table one in [21] and the equilibrium model in Equations (14a) and (14b) in [21], a pH balance was introduced to Example 2. The pH balance introduces algebraic equations that have to be satisfied at all times. This kind of system is called a DifferentialAlgebraic Equation system (DAE) where some variables are algebraic variables (their time derivative is not calculated explicitly) and others are differential variables. To our knowledge, no one has introduced the pH equilibrium equations in a DFBA simulation before. To add the pH balance to the system, total carbon and total nitrogen were added to the differential variables, CO _{2} concentration was transformed into an algebraic variable, and new algebraic variables for NH{}_{4}^{+}, NH _{3}, HCO{}_{3}^{}, CO{}_{3}^{2}, and H ^{+} concentrations were introduced. Total nitrogen in the system was assumed to be constant at 0.1643 mmol/L, which is the concentration present in the Charles River in Cambridge [23], the effect of H ^{+} exchange by algae on pH was considered negligible, and ionic valency of the solution was assumed to be equal to zero.
If the Jacobian of the algebraic equations with respect to the algebraic variables is nonsingular, the DAE is index1 and can be solved with MATLAB ode15s. Table 3 shows the initial conditions and parameters used. No nonnegativity constraints were enforced; however, the uptake kinetics were specified so that negative concentrations could not occur. Concentration profiles are presented in Figures 4 and 5. Simulation results with a pH balance are close to those without a pH balance. However, the information obtained from this simulation enables using pH dependent uptake kinetics and ionic species uptake kinetics leading to more accurate simulations. It took only 162 seconds to simulate accurately 24 hours of this coculture with a pH balance.
Example 4
In this example a monoculture of Chlamydomonas reinhardtii was simulated to illustrate how DFBAlab performs for simulations with a large number of species models. The parameters implemented in Example 2 were used with different initial conditions. No nonnegativity constraints were enforced, but the uptake kinetics were specified so that negative concentrations could not happen. Algae biomass was split among several LPs and running times were compared. Table 4 shows the running times for 24 hours of simulation for different numbers of models in the system.
Discussion
In these examples, the reliability and speed of DFBAlab has been shown compared to current open MATLAB benchmarks in DFBA simulation. COBRA lacks flexibility when implementing MichaelisMenten kinetics and the use of a fixed time step decreases the accuracy of these simulations, or increases the integration time for very small time steps. DyMMM provides a flexible framework that allows the implementation of community simulations. However, if any of the exchange fluxes are nonunique, simulation results will be incorrect. DFBAlab uses lexicographic optimization to obtain a welldefined system, but it requires specification of lowerpriority objective functions. Biologically relevant lowerpriority objectives must be sought to restrict the solution set of (2) to a more realistic set. For instance, it has been suggested by a reviewer that maximization of ATP is a biologically relevant objective that should follow maximization of biomass. In DFBAlab, this objective can be added right after maximization of biomass. Then, the unique exchange fluxes obtained are guaranteed to maximize biomass first, and then maximize ATP. If other biologically relevant objectives are found, they can be added in the same way to the priority list (after maximization of biomass, but before the exchange fluxes), such that the exchange fluxes obtained are more realistic.
The DFBAlab framework is flexible enough to allow DAEs, which could result from performing pH balances in the culture. Furthermore, in community simulations, the running time of DFBAlab increases linearly with the number of species. The LP feasibility objective function in DFBAlab serves two purposes: it helps to distinguish between feasible and infeasible trajectories and it can serve as a penalty function in optimization algorithms. Future work will present the implementation of this penalty function in the context of DFBA optimization.
Conclusions
The objective of this work is to provide an easy to use implementation that minimizes troubleshooting of numerical issues and facilitates focus on the analysis of simulation results. DFBAlab, a reliable DFBA simulator in MATLAB, is presented. DFBAlab uses lexicographic optimization to obtain unique exchange fluxes and a welldefined dynamic system. DFBAlab uses the LP feasibility problem to generate an extended dynamic system and a penalty function. DFBAlab performs better than its counterpart DyMMM in complex community simulations: it is faster and more accurate because the unique fluxes provided by lexicographic optimization are necessary for numerical integration. In addition, DFBAlab can integrate the DAEs resulting from implementing pH balances. Biologically relevant lowerpriority objectives must be sought to perform lexicographic optimization. The penalty function provided by DFBAlab can be used to optimize DFBA systems. However, it should be noted that the FORTRAN code referred in [3] has advantages since it only takes about 30 seconds for Example 2 [15].
Availability and requirements
The DFBAlab code is available, without charge, for both education and nonprofit research purposes, at http://yoric.mit.edu/dfbalab.
Project name: DFBAlab
Project homepage: http://yoric.mit.edu/dfbalab
Operating system(s): Any operating system that supports MATLAB
Programming language: MATLAB’s programming language
Other requirements: An LP solver among CPLEX, Gurobi, or MOSEK
License: Terms of use need to be accepted before being able to download the code.
Any restrictions to use by nonacademics: Not available for nonacademics.
Additional file
Abbreviations
 COBRA:

Constraintbased reconstruction and analysis
 CSTR:

Continous stirredtank reactor
 DA:

Direct approach
 DAE:

Differentialalgebraic equation
 DFBA:

Dynamic flux balance analysis
 DFBAlab:

Dynamic flux balance analysis laboratory
 DOA:

Dynamic optimization approach
 DyMMM:

Dynamic multispecies metabolic modeling
 LP:

Linear program
 NLP:

Nonlinear programming problem
 ODE:

Ordinary differential equation
 SOA:

Static optimization approach
References
Orth JD, Thiele I, Palsson BØ: What is flux balance analysis? . Nat Biotechnol. 2010, 28 (3): 245248. 10.1038/nbt.1614.
Mahadevan R, Edwards JS, Doyle FJ: Dynamic flux balance analysis of diauxic growth in Escherichia coli . Biophys J. 2002, 83: 13311340. 10.1016/S00063495(02)739039.
Höffner K, Harwood SM, Barton PI: A reliable simulator for dynamic flux balance analysis . Biotechnol Bioeng. 2013, 110 (3): 792802. 10.1002/bit.24748.
Schellenberger J, Que R, Fleming RM, Thiele I, Orth JD, Feist AM, Zielinski DC, Bordbar A, Lewis NE, Rahmanian S, Kang J, Hyduke DR, Palsson BØ: Quantitative prediction of cellular metabolism with constraintbased models: the COBRA Toolbox v2.0 . Nat Protoc. 2011, 6: 12901307. 10.1038/nprot.2011.308.
Hanly TJ, Henson MA: Dynamic flux balance modeling of microbial cocultures for efficient batch fermentation of glucose and xylose mixtures . Biotechnol Bioeng. 2011, 108 (2): 376385. 10.1002/bit.22954.
Mao L, Verwoerd WS: ORCA: a COBRA toolbox extension for modeldriven discovery and analysis . Bioinformatics. 2014, 30 (4): 584585. 10.1093/bioinformatics/btt723.
Zhuang K, Izallalen M, Mouser P, Richter H, Risso C, Mahadevan R, Lovley DR: Genomescale dynamic modeling of the competition between Rhodoferax and Geobacter in anoxic subsurface environments . ISME J. 2011, 5: 305316. 10.1038/ismej.2010.117.
Zhuang K, Ma E, Lovley DR, Mahadevan R: The design of longterm effective uranium bioremediation strategy using a community metabolic model . Biotechnol Bioeng. 2012, 109: 24752483. 10.1002/bit.24528.
Mahadevan R, Schilling C: The effects of alternate optimal solutions in constraintbased genomescale metabolic models . Metab Eng. 2003, 5: 264276. 10.1016/j.ymben.2003.09.002.
CPLEX Optimizer, IBM ILOG. http://www01.ibm.com/software/commerce/optimization/cplexoptimizer/.
Gurobi Optimization I: Gurobi optimizer reference manual2014. [http://www.gurobi.com]
ApS M: The MOSEK optimization toolbox for MATLAB manual. Version 7.0 (Revision 128). [http://docs.mosek.com/7.0/toolbox/]
Bertsimas D, Tsitsiklis JN: Introduction to Linear Optimization . 1997, Athena Scientific, Belmont, MA
Reed JL, Vo TD, Schilling CH, Palsson BØ: An expanded genomescale model of Escherichia coli K12 ( i JR904 GSM/GPR) . Genome Biol. 2003, 4 (9): R5410.1186/gb200349r54.
Höffner K, Barton PI: Design of microbial consortia for industrial biotechnology . Proceedings of the Eight International Conference on Foundations of ComputerAided Process Design . Edited by: Eden M, Siirola JD, Towler GP. 2014, Elsevier, Cle Elum, Washington, USA,
Chang RL, Ghamsari L, Manichaikul A, Hom EF, Balaji S, Fu W, Shen Y, Hao T, Palsson BØ, SalehiAshtiani K, Papin JA: Metabolic network reconstruction of Chlamydomonas offers insight into lightdriven algal metabolism . Mol Syst Biol. 2011, 7: 51810.1038/msb.2011.52.
Duarte NC, Herrgård MJ, Palsson BØ: Reconstruction and validation of Saccharomyces cerevisiae iND750, a fully compartmentalized genomescale metabolic model . Genome Res. 2004, 14 (7): 12981309. 10.1101/gr.2250904.
Buhr HO, Miller SB: A dynamic model of the highrate algalbacterial wastewater treatment pond . Water Res. 1983, 17: 2937. 10.1016/00431354(83)90283X.
Zhang XW, Chen F, Johns MR: Kinetic models for heterotrophic growth of Chlamydomonas reinhardtii in batch and fedbatch cultures . Process Biochem. 1999, 35: 385389. 10.1016/S00329592(99)000825.
Balkos KD, Colman B: Mechanism of CO _{2}acquisition in an acidtolerant Chlamydomonas . Plant Cell Environ. 2007, 30: 745752. 10.1111/j.13653040.2007.001662.x.
Yang A: Modeling and evaluation of CO _{2}supply and utilization in algal ponds . Ind Eng Chem Res. 2011, 50: 1118111192. 10.1021/ie200723w.
Gomes de Oliveira Dal’Molin C, Quek LE, Palfreyman RW, Nielsen LK: AlgaGEM  a genomescale metabolic reconstruction of algae based on the Chlamydomonas reinhardtii genome . BMC Genomics. 2011, 12 (Suppl 4): S510.1186/1471216412S4S5.
Charles River Watershed Association: Total Maximum Daily Load for Nutrients in the Upper/Middle Charles River, Massachusetts. http://www.mass.gov/eea/docs/dep/water/resources/nthruy/ucharles.pdf. 190 Park Rd, Weston, MA 02453 2011.
Acknowledgements
The authors thank the reviewers for their insightful comments to improve this paper.
Author information
Authors and Affiliations
Corresponding author
Additional information
Competing interests
The authors declare that they have no competing interests.
Authors’ contributions
JAG prepared the manuscript and the examples, KH provided examples and edited the manuscript, and PIB edited the manuscript. Both KH and PIB conceived the research. All authors read and approved the final manuscript.
Electronic supplementary material
12859_2014_409_MOESM1_ESM.pdf
Additional file 1: Detailed mathematical presentation of lexicographic optimization and the LP feasibility problem. (PDF 188 KB)
Authors’ original submitted files for images
Below are the links to the authors’ original submitted files for images.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made.
The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder.
To view a copy of this licence, visit https://creativecommons.org/licenses/by/4.0/.
The Creative Commons Public Domain Dedication waiver (https://creativecommons.org/publicdomain/zero/1.0/) applies to the data made available in this article, unless otherwise stated in a credit line to the data.
About this article
Cite this article
Gomez, J.A., Höffner, K. & Barton, P.I. DFBAlab: a fast and reliable MATLAB code for dynamic flux balance analysis. BMC Bioinformatics 15, 409 (2014). https://doi.org/10.1186/s1285901404098
Received:
Accepted:
Published:
DOI: https://doi.org/10.1186/s1285901404098