(* 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 = { a[t], b[t] }; initialValues = { a[0] == 10.0, b[0] == 10.0 }; rates = { v\[LetterSpace]1, v\[LetterSpace]2, v\[LetterSpace]3 }; rateEquations = { v\[LetterSpace]1 -> Piecewise[{{(s*V1*(1 + s/Ks + a[t]/Ka)^(-1 + n)*(1 - a[t]/(Keq1*s)))/(Ks*(L0*((1 + p/Kp)/(1 + (Cp*p)/Kp))^n + (1 + s/Ks + a[t]/Ka)^n)), eq > 0}}, (s*V1*(s/s05 + a[t]/a05)^(-1 + h)*(1 - a[t]/(Keq1*s)))/(s05*((1 + (p/p05)^h)/(1 + alfa*(p/p05)^h) + (s/s05 + a[t]/a05)^h))], v\[LetterSpace]2 -> (V2*(a[t] - b[t]/Keq2))/(a[t] + K2a*(1 + b[t]/K2b)), v\[LetterSpace]3 -> (V3*(-(p/Keq3) + b[t]))/(K3b*(1 + p/K3p) + b[t]) }; parameters = { Cp -> 0.026, K2a -> 1.0, K2b -> 1.0, K3b -> 1.0, K3p -> 1.0, Ka -> 1000.0, Keq1 -> 400.0, Keq2 -> 10.0, Keq3 -> 10.0, Kp -> 0.1, Ks -> 0.01, L0 -> 10000.0, V1 -> 200.0, V2 -> 100.0, V3 -> 100.0, a05 -> 10000.0, alfa -> 0.01, eq -> 1.0, h -> 4.0, n -> 4.0, p05 -> 1.0, s05 -> 1.0, p -> 1.0, s -> 1.0, default\[LetterSpace]compartment -> 1.0 }; assignments = { }; events = { }; speciesAnnotations = { }; reactionAnnotations = { }; units = { {"time" -> "", "metabolite" -> "", "extent" -> ""} }; (* Time evolution *) odes = { a'[t] == 1.0*v\[LetterSpace]1 -1.0*v\[LetterSpace]2, b'[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]}]