(* 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 = { Cvar[t], Mvar[t], X[t] }; initialValues = { Cvar[0] == 0.01, Mvar[0] == 0.01, X[0] == 0.01 }; rates = { v\[LetterSpace]1, v\[LetterSpace]2, v\[LetterSpace]3, v\[LetterSpace]4, v\[LetterSpace]5, v\[LetterSpace]6, v\[LetterSpace]7 }; rateEquations = { v\[LetterSpace]1 -> cell*vi, v\[LetterSpace]2 -> cell*kd*Cvar[t], v\[LetterSpace]3 -> (cell*vd*Cvar[t]*X[t])/(Kd + Cvar[t]), v\[LetterSpace]4 -> (cell*V1*(1 - Mvar[t]))/(1 + K1 - Mvar[t]), v\[LetterSpace]5 -> (cell*V2*Mvar[t])/(K2 + Mvar[t]), v\[LetterSpace]6 -> (cell*V3*(1 - X[t]))/(1 + K3 - X[t]), v\[LetterSpace]7 -> (cell*V4*X[t])/(K4 + X[t]) }; parameters = { K1 -> 0.005, K2 -> 0.005, K3 -> 0.005, K4 -> 0.005, Kc -> 0.5, Kd -> 0.02, V2 -> 1.5, V4 -> 0.5, VM1 -> 3.0, VM3 -> 1.0, cell -> 1.0, kd -> 0.01, vd -> 0.25, vi -> 0.025, default\[LetterSpace]compartment -> 1.0 }; assignments = { V1 -> (VM1*Cvar[t])/(Kc + Cvar[t]), V3 -> VM3*Mvar[t] }; events = { }; speciesAnnotations = { }; reactionAnnotations = { }; units = { {"time" -> "", "metabolite" -> "", "extent" -> ""} }; (* Time evolution *) odes = { Cvar'[t] == 1.0*v\[LetterSpace]1 -1.0*v\[LetterSpace]3 -1.0*v\[LetterSpace]2, Mvar'[t] == 1.0*v\[LetterSpace]4 -1.0*v\[LetterSpace]5, X'[t] == 1.0*v\[LetterSpace]6 -1.0*v\[LetterSpace]7 }; 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]}]