(* 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 = { x[t] }; initialValues = { x[0] == 0.0 }; rates = { v\[LetterSpace]1, v\[LetterSpace]2, v\[LetterSpace]3 }; rateEquations = { v\[LetterSpace]1 -> (Vm1*(s - x[t]/Keq1))/(K1s*(1 + s/K1s + x[t]/K1x)), v\[LetterSpace]2 -> (Vm2*(-(p1/Keq2) + x[t]))/(K2x*(1 + p1/K2p1 + x[t]/K2x)), v\[LetterSpace]3 -> (Vm3*(-(p2/Keq3) + x[t]))/(K3x*(1 + p2/K3p2 + x[t]/K3x)) }; parameters = { K1s -> 1.0, K1x -> 1.0, K2p1 -> 1.0, K2x -> 1.0, K3p2 -> 1.0, K3x -> 1.0, Keq1 -> 1.0, Keq2 -> 1.0, Keq3 -> 1.0, Vm1 -> 1.0, Vm2 -> 1.0, Vm3 -> 1.0, p1 -> 0.0, p2 -> 0.0, s -> 1.0, default\[LetterSpace]compartment -> 1.0 }; assignments = { }; events = { }; speciesAnnotations = { }; reactionAnnotations = { }; units = { {"time" -> "", "metabolite" -> "", "extent" -> ""} }; (* Time evolution *) odes = { x'[t] == 1.0*v\[LetterSpace]1 -1.0*v\[LetterSpace]2 -1.0*v\[LetterSpace]3 }; 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]}]