(* 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 = { R[t], Rin[t], x1[t], x1p[t], x2[t], x2p[t], x3[t], x3p[t] }; initialValues = { R[0] == 0.5, Rin[0] == 0.0, x1[0] == 1.0, x1p[0] == 0.0, x2[0] == 1.0, x2p[0] == 0.0, x3[0] == 1.0, x3p[0] == 0.0 }; rates = { v\[LetterSpace]1, v\[LetterSpace]2, v\[LetterSpace]3, v\[LetterSpace]4, v\[LetterSpace]5, v\[LetterSpace]6, v\[LetterSpace]7, v\[LetterSpace]8 }; rateEquations = { v\[LetterSpace]1 -> (Vm1*R[t])/(Km1 + R[t]), v\[LetterSpace]2 -> (Vm2*Rin[t])/(Km2 + Rin[t]), v\[LetterSpace]3 -> (k3*R[t]*x1[t])/(Km3 + x1[t]), v\[LetterSpace]4 -> (Vm4*x1p[t])/(Km4 + x1p[t]), v\[LetterSpace]5 -> (k5*x1p[t]*x2[t])/(Km5 + x2[t]), v\[LetterSpace]6 -> (Vm6*x2p[t])/(Km6 + x2p[t]), v\[LetterSpace]7 -> (k7*x2p[t]*x3[t])/(Km7 + x3[t]), v\[LetterSpace]8 -> (Vm8*x3p[t])/(Km8*(1 + Inh/Ki8 + x3p[t]/Km8)) }; parameters = { Ki8 -> 1.0, Km1 -> 0.1, Km2 -> 0.1, Km3 -> 0.1, Km4 -> 1.0, Km5 -> 0.1, Km6 -> 1.0, Km7 -> 0.1, Km8 -> 1.0, Vm1 -> 1.0, Vm2 -> 0.01, Vm4 -> 0.3, Vm6 -> 0.3, Vm8 -> 0.3, k3 -> 1.0, k5 -> 1.0, k7 -> 1.0, Inh -> 0.0, default\[LetterSpace]compartment -> 1.0 }; assignments = { }; events = { }; speciesAnnotations = { }; reactionAnnotations = { }; units = { {"time" -> "", "metabolite" -> "", "extent" -> ""} }; (* Time evolution *) odes = { R'[t] == 1.0*v\[LetterSpace]2 -1.0*v\[LetterSpace]1, Rin'[t] == 1.0*v\[LetterSpace]1 -1.0*v\[LetterSpace]2, x1'[t] == 1.0*v\[LetterSpace]4 -1.0*v\[LetterSpace]3, x1p'[t] == 1.0*v\[LetterSpace]3 -1.0*v\[LetterSpace]4, x2'[t] == 1.0*v\[LetterSpace]6 -1.0*v\[LetterSpace]5, x2p'[t] == 1.0*v\[LetterSpace]5 -1.0*v\[LetterSpace]6, x3'[t] == 1.0*v\[LetterSpace]8 -1.0*v\[LetterSpace]7, x3p'[t] == 1.0*v\[LetterSpace]7 -1.0*v\[LetterSpace]8 }; 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]}]