(* 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 = { h[t], hm[t], hmm[t], hmmm[t] }; initialValues = { h[0] == 0.0, hm[0] == 0.0, hmm[0] == 0.0, hmmm[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 -> gamma, v\[LetterSpace]2 -> dot*k0*h[t], v\[LetterSpace]3 -> dot*k1*hm[t], v\[LetterSpace]4 -> dot*k2*hmm[t], v\[LetterSpace]5 -> mu*h[t], v\[LetterSpace]6 -> mu*hm[t], v\[LetterSpace]7 -> mu*hmm[t], v\[LetterSpace]8 -> mu*hmmm[t] }; parameters = { dot -> 0.00625, k0 -> 0.055, k1 -> 0.019, k2 -> 0.0087, mu -> 0.00483333, s -> 0.0, x -> 0.0, xm -> 0.0, xmm -> 0.0, xmmm -> 0.0, default\[LetterSpace]compartment -> 1.0 }; assignments = { gamma -> 125*mu, HM -> hm[t]/(h[t] + hm[t] + hmm[t] + hmmm[t]), H -> h[t]/(h[t] + hm[t] + hmm[t] + hmmm[t]), HMMM -> hmmm[t]/(h[t] + hm[t] + hmm[t] + hmmm[t]), HMM -> hmm[t]/(h[t] + hm[t] + hmm[t] + hmmm[t]) }; events = { }; speciesAnnotations = { }; reactionAnnotations = { }; units = { {"time" -> "", "metabolite" -> "", "extent" -> ""} }; (* Time evolution *) odes = { h'[t] == 1.0*v\[LetterSpace]1 -1.0*v\[LetterSpace]5 -1.0*v\[LetterSpace]2, hm'[t] == 1.0*v\[LetterSpace]2 -1.0*v\[LetterSpace]6 -1.0*v\[LetterSpace]3, hmm'[t] == 1.0*v\[LetterSpace]3 -1.0*v\[LetterSpace]4 -1.0*v\[LetterSpace]7, hmmm'[t] == 1.0*v\[LetterSpace]4 -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]}]