(* 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] == 0.0, x3[0] == 0.0 }; rates = { v\[LetterSpace]1, v\[LetterSpace]2, v\[LetterSpace]3, v\[LetterSpace]4 }; rateEquations = { v\[LetterSpace]1 -> (s*Vm1*(s/K1s + x2[t]/K1x2)^(-1 + h)*(1 - x2[t]/(Keq1*s)))/(K1s*((1 + (p/K1p)^h)/(1 + alpha*(p/K1p)^h) + (s/K1s + x2[t]/K1x2)^h)), v\[LetterSpace]2 -> (Vm2*(x2[t] - x3[t]/Keq2))/(K2x2*(1 + x2[t]/K2x2 + x3[t]/K2x3)), v\[LetterSpace]3 -> (Vm3*(-(p/Keq3) + x3[t]))/(K3x3*(1 + p/K3p + x3[t]/K3x3)), v\[LetterSpace]4 -> (p*Vm4)/(K4p*(1 + p/K4p)) }; parameters = { K1p -> 1.0, K1s -> 1.0, K1x2 -> 10000.0, K2x2 -> 1.0, K2x3 -> 1.0, K3p -> 1.0, K3x3 -> 1.0, K4p -> 0.01, Keq1 -> 400.0, Keq2 -> 10.0, Keq3 -> 10.0, Vm1 -> 200.0, Vm2 -> 1000.0, Vm3 -> 1000.0, Vm4 -> 10.0, alpha -> 0.001, h -> 4.0, p -> 1.0, p2 -> 0.0, s -> 1.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 }; 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]}]