(* 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 = { II[t], IIa[t], M[t], P2[t] }; initialValues = { II[0] == 1.0, IIa[0] == 0.0, M[0] == 0.0, P2[0] == 0.0 }; rates = { r1, r2, r3, r4 }; rateEquations = { r1 -> compartment*r1\[LetterSpace]k1*II[t], r2 -> compartment*r2\[LetterSpace]k1*M[t], r3 -> compartment*r3\[LetterSpace]k1*II[t], r4 -> compartment*r4\[LetterSpace]k1*P2[t] }; parameters = { r1\[LetterSpace]k1 -> 0.005, r2\[LetterSpace]k1 -> 0.01, r3\[LetterSpace]k1 -> 1*^-05, r4\[LetterSpace]k1 -> 2.5*^-05, compartment -> 1.0 }; assignments = { }; events = { }; speciesAnnotations = { II[t]->"http://identifiers.org/uniprot/P00734", IIa[t]->"http://identifiers.org/uniprot/P00734" }; reactionAnnotations = { }; units = { {"time" -> "", "metabolite" -> "", "extent" -> ""} }; (* Time evolution *) odes = { II'[t] == -1.0*r1 -1.0*r3, IIa'[t] == 1.0*r2 +1.0*r4 , M'[t] == 1.0*r1 -1.0*r2, P2'[t] == 1.0*r3 -1.0*r4 }; 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]}]