Creating the Equilibrium Manifold

For the mass conservation approach of [OMYS17] there are multiple ways that one can form the equilibrium manifold, H (\alpha, c, k). In the approach we have constructed, we have chosen the equilibrium manifold that will result in two characteristics. The first of which is that the decision vector ultimately chosen will consist of only kinetic constants and species’ concentrations. The reason for this is that we would like to remove the need for the user to provide bounds on the so called deficiency parameters, \alpha. These bounds in practice can be somewhat difficult to find as they are not tied to any physical aspect of the network. The second characteristic we impose is that the manifold will be as close as possible to being linear with respect to the deficiency parameters and those species not in the decision vector. If the manifold is close to being linear in these variables, then solving for them is much simpler, resulting in a shorter solve time for SymPy’s solve function and the avoidance of unsolvable instances of the problem.

We now describe the process taken to find the decision vector and resulting equilibrium manifold. As stated in [OMYS17], the choice of the decision vector is as follows:

x = (k_1, ..., k_R, \alpha_1, ..., \alpha_\lambda) for proper and over-dimensioned networks

and

x = (k_1, ..., k_R, \alpha_1, ..., \alpha_\delta, c_1, ..., c_{\lambda - \delta}) for under-dimensioned networks.

Although these decision vectors can be used, it is apparent that if they are chosen then the user will need to provide bounds for the deficiency parameters, \alpha. However, as can be inferred by the statement on the bottom of page 7 in the S1 Appendix of [OMYS17], as long as the parameters \alpha and k are fixed and we can form equation (2.7), then the results of Proposition 1 of page 8 follow. This allows one to choose the decision vector to be as follows for proper and over/under - dimensioned networks:

x = (k_1, ..., k_R, \theta_1, ..., \theta_\lambda),

where the \theta values are nonidentical choices of the species’ concentrations, c.

Now that we have reformed the decision vector to be in terms of just kinetic constants and species’ concentrations, the next step is to choose the \theta values such that the equilibrium manifold is as close to being linear as possible. To do this, we first generate \frac{N!}{s! (N-s)!} choices of \theta values using {N \choose s}, where N is the number of species and s is the rank of the stoichiometric matrix. Using each of these sets of \theta values, we then test how many rows of (9) in [OMYS17] are linear in those species’ concentrations that are not in \theta by testing if the second order derivatives of the expression in the row is zero. This is essentially testing if the expression is jointly linear with respect to a given set of species’ concentrations not in \theta.

In practice going through all \frac{N!}{s! (N-s)!} choices can be expensive for large networks, to reduce this runtime we exit this routine if all rows of (9) are linear in those species’ concentrations not in \theta and choose this set of \theta variables for our decision vector. After choosing the set of \theta variables, we then choose H (\alpha, c, k) by selecting M - \ell independent rows of (9). This process of selecting H (\alpha, c, k) is reflected in the run of crnt4sbml by the following output produced by crnt4sbml.CRNT.get_mass_conservation_approach()

Creating Equilibrium Manifold ...
Elapsed time for creating Equilibrium Manifold: xx

Once we have selected the equilibrium manifold, we then use the manifold to solve for all the deficiency parameters and species’ concentrations not in \theta using SymPy’s solve function. This allows us to create expressions for each species’ concentration. This process may take several minutes.