-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_experiments.bat
More file actions
38 lines (30 loc) · 913 Bytes
/
run_experiments.bat
File metadata and controls
38 lines (30 loc) · 913 Bytes
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
@echo off
:: define some useful vars
set circles=circles-release.exe
set sim_time=120000
set repetitions=10
set formations=circle rectangle triangle cross
:: number of robots we want to test with
set min_robots=50
set max_robots=500
set robot_inc=50
:: print intro message
echo ------------------------------
echo running circles experiments...
:: iterate over our formations
for %%f in (%formations%) do (
echo ----RUNNING FORMATION %%f----
:: vary the number of robots
for /l %%r in (%min_robots%, %robot_inc%, %max_robots%) do (
:: and now our repetitions
for /l %%s in (1, 1, %repetitions%) do (
::echo %circles% 0 %%r %sim_time% formations/%%f.form stats/%%f_r%%r.csv
%circles% 0 %%r %sim_time% formations/%%f.form stats/%%f_r%%r.csv
)
)
)
:: and...we're done!
echo ----------------------------
echo circles experiments complete
echo ----------------------------
exit /B %ERRORLEVEL%