(* 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 = { atp[t], fbp[t], phos[t] }; initialValues = { atp[0] == 1.0, fbp[0] == 2.0, phos[0] == 10.0 }; rates = { v1, v2, v3, v4, v5 }; rateEquations = { v1 -> (VMAXPFK*atp[t])/(KMPFKATP + atp[t]*(1 + atp[t]/KiPFKATP)), v2 -> (VMAXLG*(atot - atp[t])*fbp[t]*phos[t])/(KMLGADP*KMLGP*(1 + (atot - atp[t])/KMLGADP)*(KMLGF16P + fbp[t])*(1 + phos[t]/KMLGP)), v3 -> KATPASE*atp[t], v4 -> k6*(pT - phos[t]), v5 -> (VMAXGLYC*fbp[t])/(KMLGF16P + fbp[t]) }; parameters = { KATPASE -> 10.0, KMLGADP -> 0.1, KMLGF16P -> 1.0, KMLGP -> 2.0, KMPFKATP -> 0.1, KiPFKATP -> 3.0, VMAXGLYC -> 0.0, VMAXLG -> 10.0, VMAXPFK -> 10.0, atot -> 5.0, k6 -> 0.3, pT -> 10.0, EtOH -> 0.0, Glycerol -> 0.0, PiVac -> 0.0, g6p -> 0.0, compartment -> 1.0 }; assignments = { }; events = { }; speciesAnnotations = { }; reactionAnnotations = { }; units = { {"time" -> "", "metabolite" -> "", "extent" -> ""} }; (* Time evolution *) odes = { atp'[t] == 4.0*v2 -2.0*v1 -1.0*v3, fbp'[t] == 1.0*v1 -1.0*v2 -1.0*v5, phos'[t] == 1.0*v3 +1.0*v4 +2.0*v5 -2.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]}]