(* 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 = { zd[t], zs[t], zsm[t] }; initialValues = { zd[0] == 1.0, zs[0] == 0.5, zsm[0] == 0.0 }; rates = { v1, v2, v3 }; rateEquations = { v1 -> lp*(-1 + 2*pr)*zs[t], v2 -> lp*(-1 + 2*prm)*zsm[t], v3 -> -(lm*zd[t]) + 2*lp*(1 - pr)*zs[t] + 2*lp*(1 - prm)*zsm[t] }; parameters = { k\[LetterSpace]pr -> 1.0, k\[LetterSpace]prm -> 0.15, lm -> 0.5, lp -> 1.0, default -> 1.0 }; assignments = { pr -> (1 + (k\[LetterSpace]pr*zd[t])^0.5)^(-1), prm -> (1 + (k\[LetterSpace]prm*zd[t])^0.5)^(-1) }; events = { }; speciesAnnotations = { }; reactionAnnotations = { }; units = { {"time" -> "", "metabolite" -> "", "extent" -> ""} }; (* Time evolution *) odes = { zd'[t] == 1.0*v3 , zs'[t] == 1.0*v1 , zsm'[t] == 1.0*v2 }; 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]}]