-
Notifications
You must be signed in to change notification settings - Fork 3
/
demo_three_rxn.sh
executable file
·82 lines (55 loc) · 2.25 KB
/
demo_three_rxn.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#!/bin/bash
clear
# Pure birth process:
printf "=========================================\n"
printf " Analyzing Three-Reaction Network in PRISM\n"
printf "=========================================\n"
printf "[Press Return]\n\n"
#read t
time prism models/three_rxn/three_rxn.pm models/three_rxn/three_rxn.csl
printf "[Press Return]\n\n"
#read t
clear
printf "=========================================\n"
printf " Simulating Three-Reaction Network in PRISM\n"
printf "=========================================\n"
printf "[Press Return]\n\n"
#read t
time prism -sim -simsamples 100000 models/three_rxn/three_rxn.pm models/three_rxn/three_rxn.csl
printf "[Press Return]\n\n"
#read t
clear
printf "===============================================\n"
printf " Simulating Three-Reaction Network with SSA\n 100,000 runs\n"
printf "================================================\n"
printf "[Press Return]\n\n"
#read t
clear
time ./bin/run.sh simulate --model models/three_rxn/three_rxn.pm --Tmax 1 --Nruns 100000
printf "[Press Return]\n\n"
#read t
clear
printf "===============================================\n"
printf " Simulating Three-Reaction Network with Modulo-SSA\n 10,000 paths\n 100 samples per successful path\n"
printf "================================================\n"
printf "[Press Return]\n\n"
#read t
time ./bin/run.sh simulate --model models/three_rxn/three_rxn.pm --Tmax 1 --Nruns 10000 --modulo --numModuloSamples 100
printf "[Press Return]\n\n"
#read t
clear
printf "===============================================\n"
printf " Simulating Three-Reaction Network with Constrained IS\n 10,000 runs\n"
printf "================================================\n"
printf "[Press Return]\n\n"
#read t
time ./bin/run.sh simulate --model models/three_rxn/three_rxn_constrained.pm --Tmax 1 --Nruns 100000
printf "[Press Return]\n\n"
#read t
clear
printf "===============================================\n"
printf " Simulating Three-Reaction Network with Constrained-Modulo-SSA\n 1,000 paths\n 100 samples per successful path\n"
printf "================================================\n"
printf "[Press Return]\n\n"
#read t
time ./bin/run.sh simulate --model models/three_rxn/three_rxn_constrained.pm --Tmax 1 --Nruns 1000 --modulo --numModuloSamples 100