-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsimulations.m
44 lines (31 loc) · 1.51 KB
/
simulations.m
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
addpath('scripts');
% Examples tuned to save the simulations in the AI, Iso, BS, and SZ regimes
% AI
regime_type = 'AI'; % select either AI/Iso/BS/SZ
durtn = 1; % provide the duration of the simulation
outdirpath = './output_dir'; % provide the output directory to save the simulation output;
tic; % for getting runtime of the simulation ~ Elapsed time is ~14.7 seconds.
run_simulation(regime_type, durtn, outdirpath); % run the simulation;
toc;
%Iso
regime_type = 'Iso'; % select either AI/Iso/BS/SZ
durtn = 1; % provide the duration of the simulation
outdirpath = './output_dir'; % provide the output directory to save the simulation output;
tic; % for getting runtime of the simulation ~ Elapsed time is ~13.97 seconds.
run_simulation(regime_type, durtn, outdirpath); % run the simulation;
toc;
% BS
regime_type = 'BS'; % select either AI/Iso/BS/SZ
durtn = 50; % provide the duration of the simulation
outdirpath = './output_dir'; % provide the output directory to save the simulation output;
tic; % for getting runtime of the simulation ~ Elapsed time is ~675.41 seconds.
run_simulation(regime_type, durtn, outdirpath); % run the simulation;
toc;
% SZ
regime_type = 'SZ'; % select either AI/Iso/BS/SZ
durtn = 60; % provide the duration of the simulation
outdirpath = './output_dir'; % provide the output directory to save the simulation output;
tic; % for getting runtime of the simulation ~ Elapsed time is ~784.21 seconds
run_simulation(regime_type, durtn, outdirpath); % run the simulation;
toc;
rmpath("scripts/");