(* 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 = { Biom[t], Sext[t], Sint[t], Xint[t] }; initialValues = { Biom[0] == 0.03, Sext[0] == 0.0, Sint[0] == 0.0, Xint[0] == 0.0 }; rates = { v\[LetterSpace]1, v\[LetterSpace]2, v\[LetterSpace]3, v\[LetterSpace]4, v\[LetterSpace]5, v\[LetterSpace]6 }; rateEquations = { v\[LetterSpace]1 -> Dil*Sr, v\[LetterSpace]2 -> (Vm2*Biom[t]*Sext[t])/(K2S*(1 + Sext[t]/K2S + (10000.*Sint[t])/K2Sin)), v\[LetterSpace]3 -> Dil*Sext[t], v\[LetterSpace]4 -> (Vm4*Biom[t]*(10000.*Sint[t] - (10000.*Xint[t])/Keq4))/(K4Sint*(1 + (10000.*Sint[t])/K4Sint + (10000.*Xint[t])/K4X)), v\[LetterSpace]5 -> (10000.*Vm5*Biom[t]*Xint[t])/(K5X*(1 + (10000.*Xint[t])/K5X)), v\[LetterSpace]6 -> Dil*Biom[t] }; parameters = { Dil -> 0.1, K2S -> 0.1, K2Sin -> 0.1, K4Sint -> 1.0, K4X -> 1.0, K5X -> 2.0, Keq4 -> 100.0, Vm2 -> 9.0, Vm4 -> 10.0, Vm5 -> 0.52, Sr -> 20.0, p -> 0.0, default\[LetterSpace]compartment -> 1.0 }; assignments = { }; events = { }; speciesAnnotations = { }; reactionAnnotations = { }; units = { {"time" -> "", "metabolite" -> "", "extent" -> ""} }; (* Time evolution *) odes = { Biom'[t] == 1.0*v\[LetterSpace]5 -1.0*v\[LetterSpace]6, Sext'[t] == 1.0*v\[LetterSpace]1 -1.0*v\[LetterSpace]3 -1.0*v\[LetterSpace]2, Sint'[t] == 1.0*v\[LetterSpace]2 -1.0*v\[LetterSpace]4, Xint'[t] == 1.0*v\[LetterSpace]4 -1.0*v\[LetterSpace]5 }; 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]}]