(* 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 = { ADP[t], ATP[t], BPG[t], P3G[t], pep[t], phos[t], pyr[t] }; initialValues = { ADP[0] == 0.0, ATP[0] == 10.0, BPG[0] == 0.0, P3G[0] == 4.5, pep[0] == 5.0, phos[0] == 0.0, pyr[0] == 0.1 }; rates = { v1, v2, v3 }; rateEquations = { v1 -> (protPGK*(-((VmrPGK*ADP[t]*BPG[t])/(KpgkADP*KpgkBPG)) + (VmfPGK*ATP[t]*P3G[t])/(KpgkATP*KpgkP3G)))/((1 + ADP[t]/KiADP)*(1 + ((1 + ADP[t]/KpgkADP)*BPG[t])/KpgkBPG + ((1 + ATP[t]/KpgkATP)*P3G[t])/KpgkP3G)), v2 -> kPK*ADP[t]*pep[t], v3 -> kd*BPG[t] }; parameters = { KiADP -> 1.01661161972841, KpgkADP -> 0.374683891073216, KpgkATP -> 9.30939957007288, KpgkBPG -> 0.00824346710166223, KpgkP3G -> 0.567800672197298, VmfPGK -> 17.2125572084323, VmrPGK -> 37.9602642543915, kPK -> 10.0, kd -> 0.736416, protPGK -> 0.0034, default -> 1.0 }; assignments = { }; events = { }; speciesAnnotations = { }; reactionAnnotations = { v2->"http://identifiers.org/ec-code/2.7.1.40" }; units = { {"time" -> "", "metabolite" -> "", "extent" -> ""} }; (* Time evolution *) odes = { ADP'[t] == 1.0*v1 -1.0*v2, ATP'[t] == 1.0*v2 -1.0*v1, BPG'[t] == 1.0*v1 -1.0*v3, P3G'[t] == 1.0*v3 -1.0*v1, pep'[t] == -1.0*v2, phos'[t] == 1.0*v3 , pyr'[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]}]