(* 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 = { x1[t], x2[t], x3[t] }; initialValues = { x1[0] == 0.05625738310526, x2[0] == 0.76876151899652, x3[0] == 4.23123848100348 }; rates = { v1, v2, v3, v4, v5 }; rateEquations = { v1 -> (v1\[LetterSpace]e1*(v1\[LetterSpace]p1*y1*x2[t] - x1[t]*x3[t]))/(1 + y1 + x1[t] + x2[t] + y1*x2[t] + x3[t] + x1[t]*x3[t]), v2 -> (v2\[LetterSpace]e2*(-(y5*x2[t]) + v2\[LetterSpace]p2*y4*x3[t]))/(1 + y4 + y5 + x2[t] + y5*x2[t] + x3[t] + y4*x3[t]), v3 -> (v3\[LetterSpace]e3*(-y2 + v3\[LetterSpace]p3*x1[t]))/(1 + y2 + x1[t]), v4 -> (v4\[LetterSpace]e4*(-y3 + v4\[LetterSpace]p4*x1[t]))/(1 + y3 + x1[t]), v5 -> v5\[LetterSpace]e5*v5\[LetterSpace]p5*x3[t] }; parameters = { y1 -> 10.0, y2 -> 0.0, y3 -> 0.0, y4 -> 1.0, y5 -> 1.0, y6 -> 0.0, v1\[LetterSpace]e1 -> 1.0, v1\[LetterSpace]p1 -> 10.0, v2\[LetterSpace]e2 -> 1.0, v2\[LetterSpace]p2 -> 10.0, v3\[LetterSpace]e3 -> 1.0, v3\[LetterSpace]p3 -> 50.0, v4\[LetterSpace]e4 -> 1.0, v4\[LetterSpace]p4 -> 10.0, v5\[LetterSpace]e5 -> 1.0, v5\[LetterSpace]p5 -> 0.0, cell -> 1.0 }; assignments = { }; events = { }; speciesAnnotations = { }; reactionAnnotations = { }; units = { {"time" -> "", "metabolite" -> "", "extent" -> ""} }; (* Time evolution *) odes = { x1'[t] == 1.0*v1 -1.0*v3 -1.0*v4, x2'[t] == 1.0*v2 -1.0*v1, x3'[t] == 1.0*v1 -1.0*v2 -1.0*v5 }; 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]}]