You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Constructively compute whether a kinetic system (a reaction network with a set of rate constants) will admit detailed-balanced equilibrium
744
744
solutions, using the Wegscheider conditions, [Feinberg, 1989](https://www.sciencedirect.com/science/article/pii/0009250989851243). A detailed-balanced solution is one for which the rate of every forward reaction exactly equals its reverse reaction. Accepts a dictionary, vector, or tuple of variable-to-value mappings, e.g. [k1 => 1.0, k2 => 2.0,...].
@@ -782,7 +782,6 @@ function isdetailedbalanced(rs::ReactionSystem, parametermap::Dict)
782
782
rxn_idxs = [edgeindex(D, Graphs.src(e), Graphs.dst(e)) for e in spanning_forest]
783
783
S_F =netstoichmat(rs)[:, rxn_idxs]
784
784
sols =nullspace(S_F)
785
-
@assertsize(sols, 2) ==deficiency(rs)
786
785
787
786
for i in1:size(sols, 2)
788
787
α = sols[:, i]
@@ -797,19 +796,20 @@ function isdetailedbalanced(rs::ReactionSystem, parametermap::Dict)
0 commit comments