Skip to content

Commit 2d39993

Browse files
committed
up
1 parent 38001a8 commit 2d39993

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

benchmarks/Jumps/EGFR_Benchmark.jmd

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ We will benchmark the aggregators of JumpProcesses on a epidermal growth factor
1212
Let's first look at how the model equilibriates to make sure we get consistent results for all the methods. Let's plot the dimer concentration as a function of time using each of the different stochastic simulation algorithms.
1313

1414
```julia
15-
tf = 10.
15+
tf = 12.
1616
rng = StableRNG(53124)
1717
algs = [NRM(), CCNRM(), DirectCR(), RSSACR()]
18-
egfr_net= loadrxnetwork(BNGNetwork(), joinpath(@__DIR__, "Data/egfr_net.net"));
18+
egfr_net = loadrxnetwork(BNGNetwork(), joinpath(@__DIR__, "Data/egfr_net.net"));
1919
dprob = DiscreteProblem(complete(egfr_net.rn), egfr_net.u0, (0., tf), egfr_net.p)
2020
dprob = remake(dprob,u0=Int64.(dprob.u0))
2121

@@ -37,7 +37,7 @@ We define a function to benchmark the model and then plot the results in a bench
3737
```julia
3838
function benchmark_and_bar_plot(model, end_time, algs)
3939
times = Vector{Float64}()
40-
alg_names = ["$s"[1:end-2] for s in algs]
40+
alg_names = ["$s"[15:end-2] for s in algs]
4141

4242
benchmarks = Vector{BenchmarkTools.Trial}(undef, length(algs))
4343
for (i, alg) in enumerate(algs)
@@ -58,12 +58,11 @@ end
5858

5959
Now we benchmark the EGFR network on the four algorithms and plot the results.
6060
```julia
61-
tf = 10.
61+
tf = 12.
6262
rng = StableRNG(53124)
6363
algs = [NRM(), CCNRM(), DirectCR(), RSSACR()]
64-
EGFR_net = loadrxnetwork(BNGNetwork(), joinpath(@__DIR__, "Data/egfr_net.net"));
6564

66-
plt = benchmark_and_bar_plot(EGFR_net, tf, algs)
65+
plt = benchmark_and_bar_plot(egfr_net, tf, algs)
6766
plt
6867
```
6968

0 commit comments

Comments
 (0)