Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Fig 2.04

Exponential decay

Plot{Plots.GRBackend() n=3}

Fig 2.09

Metabolic network simulation

Build system: 15.179578 seconds (29.23 M allocations: 1.607 GiB, 4.51% gc time, 99.92% compilation time: <1% of which was recompilation)
Loading...
Build problem: 51.580348 seconds (52.14 M allocations: 2.903 GiB, 2.46% gc time, 99.93% compilation time: 59% of which was recompilation)
Solve problem: 4.767445 seconds (10.55 M allocations: 588.479 MiB, 3.18% gc time, 99.90% compilation time)
Plot{Plots.GRBackend() n=4}

Figure 2.11

Intro to model reduction of ODE metabolic networks.

Build system: 0.000548 seconds (1.21 k allocations: 46.633 KiB)
Loading...
Build problem: 1.105892 seconds (1.93 M allocations: 110.081 MiB, 4.90% gc time, 98.22% compilation time: <1% of which was recompilation)
Solve problem: 0.645709 seconds (889.61 k allocations: 49.069 MiB, 99.47% compilation time)
Plot{Plots.GRBackend() n=2}

Figure 2.12

Rapid equilibrium assumption

Build system: 0.519217 seconds (766.23 k allocations: 43.225 MiB, 99.62% compilation time: 34% of which was recompilation)
Loading...
Build problem: 1.673280 seconds (2.03 M allocations: 117.476 MiB, 3.67% gc time, 99.42% compilation time: 45% of which was recompilation)
Solve problem: 0.543222 seconds (757.91 k allocations: 41.664 MiB, 99.77% compilation time)
Plot{Plots.GRBackend() n=4}

Figure 2.13

When another set of parameters breaks rapid equilibrium assumption.

  0.000514 seconds (1.27 k allocations: 63.023 KiB)
  0.000297 seconds (620 allocations: 38.820 KiB)
Plot{Plots.GRBackend() n=4}

Figure 2.14

Quasi-steady state assumption on species A (D(A) ~ 0). You can model this in Catalyst.jl DSL like:

Build system: 0.079404 seconds (72.52 k allocations: 4.030 MiB, 98.41% compilation time)
Loading...

Or use ModelingToolkit.jl equations to set dA ~ 0 directly. The QSS concentrations of A

Build system: 23.090560 seconds (22.45 M allocations: 1.253 GiB, 2.96% gc time, 99.96% compilation time: 88% of which was recompilation)
Build problem: 7.867242 seconds (13.97 M allocations: 804.469 MiB, 2.42% gc time, 99.69% compilation time: 66% of which was recompilation)
ODEProblem with uType Vector{Float64} and tType Float64. In-place: true Initialization status: FULLY_DETERMINED Non-trivial mass matrix: false timespan: (0.0, 3.0) u0: 1-element Vector{Float64}: 7.363636363636363
Loading...
Loading...
Solve problem: 0.703999 seconds (1.18 M allocations: 67.093 MiB, 99.47% compilation time)
Plot{Plots.GRBackend() n=4}

Problem 2.4.6

Plot{Plots.GRBackend() n=1}

This notebook was generated using Literate.jl.