(* 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 = { x[t], xD[t], y[t], yD[t] }; initialValues = { x[0] == 500000.0, xD[0] == 55000.0, y[0] == 0.0, yD[0] == 0.0 }; rates = { v1, v2, v3, v4, v5, v6, v7 }; rateEquations = { v1 -> lambda*x[t], v2 -> a*x[t], v3 -> mu*x[t], v4 -> lambda*p*y[t], v5 -> mu*q*y[t], v6 -> gamma*xD[t], v7 -> gamma*yD[t] }; parameters = { a -> 0.0, gamma -> 0.00785, lambda -> 0.026, mu -> 0.000764, p -> 1.0, q -> 100.0, default -> 1.0 }; assignments = { v -> (x[t] + y[t])/(x[t] + xD[t] + y[t] + yD[t]) }; events = { }; speciesAnnotations = { }; reactionAnnotations = { }; units = { {"time" -> "", "metabolite" -> "", "extent" -> ""} }; (* Time evolution *) odes = { x'[t] == 1.0*v1 -1.0*v2 -1.0*v3, xD'[t] == 1.0*v3 -1.0*v6, y'[t] == 1.0*v2 +1.0*v4 -1.0*v5, yD'[t] == 1.0*v5 -1.0*v7 }; 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]}]