(* 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 = { y1[t], y2[t], y3[t], y4[t], y5[t], y6[t] }; initialValues = { y1[0] == 0.014, y2[0] == 0.006, y3[0] == 0.0, y4[0] == 0.0, y5[0] == 0.0001, y6[0] == 0.0 }; rates = { R1, R10, R11, R12, R13, R14, R15, R2, R3, R4, R5, R6, R7, R8, R9 }; rateEquations = { R1 -> (emax*k1*y1[t])/(k1*y1[t] + (k1\[LetterSpace]prime + k1\[LetterSpace]double\[LetterSpace]prime*y1[t])*y2[t]), R10 -> k4a*y5[t], R11 -> phi4i*y4[t], R12 -> phi4a*y5[t], R13 -> k6*y1[t], R14 -> F6, R15 -> phi6*y6[t], R2 -> phi1*y1[t], R3 -> k2*y1[t], R4 -> k3*y2[t]*y5[t], R5 -> phi2*y2[t], R6 -> phi3*y3[t], R7 -> k4*y1[t], R8 -> k4\[LetterSpace]double\[LetterSpace]prime*y6[t], R9 -> k4i*y4[t]*y5[t] }; parameters = { emax -> 2.0, k1 -> 1.0, k1\[LetterSpace]double\[LetterSpace]prime -> 10.0, k1\[LetterSpace]prime -> 1.0, k2 -> 1.0, k3 -> 0.4, k4 -> 0.09, k4\[LetterSpace]double\[LetterSpace]prime -> 0.1, k4a -> 2.0, k4i -> 1.0, k6 -> 0.0, phi1 -> 0.1, phi2 -> 0.01, phi3 -> 0.1, phi4a -> 0.01, phi4i -> 0.01, phi6 -> 0.1, compartment -> 1.0 }; assignments = { F6 -> Piecewise[{{0.044, t <= 60}}, 0] }; events = { }; speciesAnnotations = { }; reactionAnnotations = { }; units = { {"time" -> "", "metabolite" -> "", "extent" -> ""} }; (* Time evolution *) odes = { y1'[t] == 1.0*R1 -1.0*R2, y2'[t] == 1.0*R3 -1.0*R4 -1.0*R5, y3'[t] == 1.0*R4 -1.0*R6, y4'[t] == 1.0*R7 +1.0*R8 +1.0*R10 -1.0*R9 -1.0*R11, y5'[t] == 1.0*R9 -1.0*R10 -1.0*R12, y6'[t] == 1.0*R13 +1.0*R14 -1.0*R15 }; 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]}]