(* 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 = { x2[t], x3[t] }; initialValues = { x2[0] == 20.0, x3[0] == 5.0 }; rates = { v\[LetterSpace]1, v\[LetterSpace]2, v\[LetterSpace]3, v\[LetterSpace]4 }; rateEquations = { v\[LetterSpace]1 -> (e1*kcat1*x)/(kmxe1*(1 + x/kmxe1 + x2[t]/kpx2e1)), v\[LetterSpace]2 -> (e2*kcat2*x2[t])/(kmx2e2*(1 + x2[t]/kmx2e2 + x3[t]/kpx3e2)), v\[LetterSpace]3 -> (e3*kcat3*x3[t])/(kmx3e3*(1 + x2[t]/kix2e3)*(1 + x3[t]/kmx3e3)), v\[LetterSpace]4 -> (e4*kcat4*x3[t])/(kmx3e4 + x3[t]) }; parameters = { EXTERNAL -> 1.0, e1 -> 0.377217564947699, e2 -> 0.527217564100357, e3 -> 0.0, e4 -> 0.519563193566709, kcat1 -> 3.0, kcat2 -> 2.0, kcat3 -> 8.0, kcat4 -> 2.0, kix2e3 -> 4.0, kmx2e2 -> 0.5, kmx3e3 -> 8.0, kmx3e4 -> 0.5, kmxe1 -> 5.0, kpx2e1 -> 20.0, kpx3e2 -> 5.0, x -> 100.0, default\[LetterSpace]compartment -> 1.0 }; assignments = { }; events = { }; speciesAnnotations = { }; reactionAnnotations = { }; units = { {"time" -> "", "metabolite" -> "", "extent" -> ""} }; (* Time evolution *) odes = { x2'[t] == 1.0*v\[LetterSpace]1 -1.0*v\[LetterSpace]2, x3'[t] == 1.0*v\[LetterSpace]2 -1.0*v\[LetterSpace]3 -1.0*v\[LetterSpace]4 }; 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]}]