(* Generated by JWS Online *) (* This is an experimental feature of JWS Online. Please report any mistakes.*) (* Note that the following notable SBML entities or features are not supported in notebook outputyet: *) (* Events *) (* Constraints *) (* Units and UnitDefinitions *) (* AlgebraicRules *) (* conversionFactors *) variables = { r[t], v[t], w[t], x[t], y[t], z[t] }; initialValues = { r[0] == 4*^-07, v[0] == 104.0, w[0] == 0.001, x[0] == 1000.0, y[0] == 0.0, z[0] == 1*^-07 }; rates = { v1, v10, v11, v12, v13, v14, v2, v3, v4, v5, v6, v7, v8, v9 }; rateEquations = { v1 -> lambda, v10 -> k*y[t], v11 -> fP*k*muP*y[t], v12 -> mu*v[t], v13 -> r0, v14 -> fT*muT, v2 -> d*x[t], v3 -> r[t]*v[t]*x[t], v4 -> a*y[t], v5 -> p*y[t]*z[t], v6 -> c*w[t]*x[t]*y[t], v7 -> c*q*w[t]*y[t], v8 -> b*w[t], v9 -> h*z[t] }; parameters = { a -> 0.0999, b -> 0.003, c -> 5*^-06, d -> 0.007, fP -> 0.0, fT -> 0.0, h -> 0.01, k -> 300.0, lambda -> 7.0, mu -> 0.2, muP -> 0.7, muT -> 9*^-10, p -> 2.0, q -> 120.0, r0 -> 1*^-09, default -> 1.0 }; assignments = { }; events = { }; speciesAnnotations = { }; reactionAnnotations = { }; units = { {"time" -> "", "metabolite" -> "", "extent" -> ""} }; (* Time evolution *) odes = { r'[t] == 1.0*v13 -1.0*v14, v'[t] == 1.0*v10 -1.0*v11 -1.0*v12, w'[t] == 1.0*v6 -1.0*v8 -1.0*v7, x'[t] == 1.0*v1 -1.0*v2 -1.0*v3, y'[t] == 1.0*v3 -1.0*v5 -1.0*v4, z'[t] == 1.0*v7 -1.0*v9 }; timeCourse = NDSolve[Join[odes, initialValues]//.rateEquations//.assignments//.parameters, variables, {t, 0, 100}]; (* Steady-state solution initialized with result of time evolution *) findRootEquations = odes /.D[_[t],t]->0; findRootVariables = Partition[Flatten[{#, #/.timeCourse/.t->100} &/@variables],2]; steadyStateVariables = FindRoot[findRootEquations//.rateEquations//.assignments//.parameters, findRootVariables, MaxIterations->100] fluxes = #//.assignments//.parameters/.steadyStateVariables&/@rateEquations (* Plot the time evolution of the variables *) plotTable=Table[Plot[variables[[i]]/.parameters/.timeCourse,{t,0,100},PlotLegends->variables[[i]],PlotRange->Full],{i,Length[variables]}]