(* 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 = { y[t], z[t] }; initialValues = { y[0] == 5.0, z[0] == 5.0 }; rates = { v1, v2 }; rateEquations = { v1 -> (-0.1 + 4.8/(1 + 16807/y[t]^5) - 6/(1 + 32768/y[t]^5))*z[t], v2 -> mu*(M - y[t]*z[t]) }; parameters = { M -> 25.0, lambdaMinus -> 0.5, mu -> 0.25, default -> 1.0 }; assignments = { lambdaPlus -> y[t]/10 }; events = { }; speciesAnnotations = { }; reactionAnnotations = { }; units = { {"time" -> "", "metabolite" -> "", "extent" -> ""} }; (* Time evolution *) odes = { y'[t] == 1.0*v2 , z'[t] == 1.0*v1 }; 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]}]