(* 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 = { v50[t], vRNA[t], x[t], y[t] }; initialValues = { v50[0] == 43.1, vRNA[0] == 9150000.0, x[0] == 6550000.0, y[0] == 647.0 }; rates = { v1, v10, v11, v12, v2, v3, v4, v5, v6, v7, v8, v9 }; rateEquations = { v1 -> beta50*v50[t]*x[t], v10 -> rI*v50[t], v11 -> rRNA*v50[t], v12 -> rc*v50[t], v2 -> d*x[t], v3 -> delta*x[t], v4 -> a*y[t], v5 -> delta*y[t], v6 -> k*y[t], v7 -> rRNA*vRNA[t], v8 -> rc*vRNA[t], v9 -> k50*y[t] }; parameters = { a -> 1.18, beta50 -> 4.95*^-05, d -> 0.21, delta -> 0.057, k -> 26100.0, k50 -> 0.22, rI -> 0.93, rRNA -> 0.039, rc -> 7.31, default -> 1.0 }; assignments = { }; events = { }; speciesAnnotations = { }; reactionAnnotations = { }; units = { {"time" -> "", "metabolite" -> "", "extent" -> ""} }; (* Time evolution *) odes = { v50'[t] == 1.0*v9 -1.0*v12 -1.0*v11 -1.0*v10, vRNA'[t] == 1.0*v6 -1.0*v8 -1.0*v7, x'[t] == -1.0*v1 -1.0*v2 -1.0*v3, y'[t] == 1.0*v1 -1.0*v5 -1.0*v4 }; 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]}]