(* 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 = { Enz[t], Ts[t] }; initialValues = { Enz[0] == 0.0, Ts[0] == 0.0 }; rates = { Enzyme\[LetterSpace]dilution, Enzyme\[LetterSpace]synthesis, tryptophan\[LetterSpace]consumption, tryptophan\[LetterSpace]dilution, tryptophan\[LetterSpace]synthesis }; rateEquations = { Enzyme\[LetterSpace]dilution -> compartment*Enzyme\[LetterSpace]dilution\[LetterSpace]mu*Enz[t], Enzyme\[LetterSpace]synthesis -> (compartment*Enzyme\[LetterSpace]synthesis\[LetterSpace]k1*Enzyme\[LetterSpace]synthesis\[LetterSpace]ki1^Enzyme\[LetterSpace]synthesis\[LetterSpace]nH*Enzyme\[LetterSpace]synthesis\[LetterSpace]Ot)/(Enzyme\[LetterSpace]synthesis\[LetterSpace]ki1^Enzyme\[LetterSpace]synthesis\[LetterSpace]nH + Tt^Enzyme\[LetterSpace]synthesis\[LetterSpace]nH), tryptophan\[LetterSpace]consumption -> (compartment*tryptophan\[LetterSpace]consumption\[LetterSpace]g*Ts[t])/(tryptophan\[LetterSpace]consumption\[LetterSpace]Kg + Ts[t]), tryptophan\[LetterSpace]dilution -> compartment*tryptophan\[LetterSpace]dilution\[LetterSpace]mu*Ts[t], tryptophan\[LetterSpace]synthesis -> (compartment*tryptophan\[LetterSpace]synthesis\[LetterSpace]k2*tryptophan\[LetterSpace]synthesis\[LetterSpace]Ki2*Enz[t])/(tryptophan\[LetterSpace]synthesis\[LetterSpace]Ki2 + Tt) }; parameters = { Tex -> 0.14, Tomax -> 100.0, e\[LetterSpace]val -> 0.9, f\[LetterSpace]val -> 380.0, Enzyme\[LetterSpace]synthesis\[LetterSpace]k1 -> 65.0, Enzyme\[LetterSpace]synthesis\[LetterSpace]ki1 -> 3.53, Enzyme\[LetterSpace]synthesis\[LetterSpace]nH -> 1.92, Enzyme\[LetterSpace]synthesis\[LetterSpace]Ot -> 0.0033, Enzyme\[LetterSpace]dilution\[LetterSpace]mu -> 0.01, tryptophan\[LetterSpace]synthesis\[LetterSpace]k2 -> 25.0, tryptophan\[LetterSpace]synthesis\[LetterSpace]Ki2 -> 810.0, tryptophan\[LetterSpace]consumption\[LetterSpace]g -> 25.0, tryptophan\[LetterSpace]consumption\[LetterSpace]Kg -> 0.2, tryptophan\[LetterSpace]dilution\[LetterSpace]mu -> 0.01, compartment -> 1.0 }; assignments = { To\[LetterSpace]norm -> To/82, Tt\[LetterSpace]norm -> Tt/82, Ts\[LetterSpace]norm -> Ts[t]/82, Enz\[LetterSpace]norm -> Enz[t], Tt -> To + Ts[t], To -> (Tex*Tomax)/(e\[LetterSpace]val + Tex*(1 + Ts[t]/f\[LetterSpace]val)) }; events = { }; speciesAnnotations = { Enz[t]->"http://identifiers.org/uniprot/P00895", Ts[t]->"http://identifiers.org/chebi/CHEBI:27897", Ts[t]->"http://identifiers.org/kegg.compound/C00806", Tt[t]->"http://identifiers.org/chebi/CHEBI:27897", Tt[t]->"http://identifiers.org/kegg.compound/C00806" }; reactionAnnotations = { }; units = { {"time" -> "", "metabolite" -> "", "extent" -> ""} }; (* Time evolution *) odes = { Enz'[t] == 1.0*Enzyme\[LetterSpace]synthesis -1.0*Enzyme\[LetterSpace]dilution, Ts'[t] == 1.0*tryptophan\[LetterSpace]synthesis -1.0*tryptophan\[LetterSpace]consumption -1.0*tryptophan\[LetterSpace]dilution }; 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]}]