(* 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 = { S1[t], S2[t], S3[t], S4[t], S5[t], S6[t] }; initialValues = { S1[0] == 0.0, S2[0] == 0.0, S3[0] == 0.0, S4[0] == 0.0, S5[0] == 0.0, S6[0] == 0.0 }; rates = { re1, re2, re3, re4, re5, re6 }; rateEquations = { re1 -> k1*S1[t]*S2[t], re2 -> k2*S3[t], re3 -> k3*S3[t], re4 -> k4*S4[t]*S5[t], re5 -> k5*S6[t], re6 -> k6*S6[t] }; parameters = { k1 -> 1.0, k2 -> 1.0, k3 -> 0.1, k4 -> 1.0, k5 -> 1.0, k6 -> 0.1, default -> 1.0 }; assignments = { }; events = { }; speciesAnnotations = { }; reactionAnnotations = { }; units = { {"time" -> "", "metabolite" -> "", "extent" -> ""} }; (* Time evolution *) odes = { S1'[t] == 1.0*re2 +1.0*re3 -1.0*re1, S2'[t] == 1.0*re2 +1.0*re6 -1.0*re1, S3'[t] == 1.0*re1 -1.0*re2 -1.0*re3, S4'[t] == 1.0*re5 +1.0*re6 -1.0*re4, S5'[t] == 1.0*re3 +1.0*re5 -1.0*re4, S6'[t] == 1.0*re4 -1.0*re5 -1.0*re6 }; 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]}]