Skip to content

Commit

Permalink
add scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Kei18 committed Jan 27, 2021
1 parent b2ca10e commit 1b2fe89
Show file tree
Hide file tree
Showing 3 changed files with 153 additions and 0 deletions.
51 changes: 51 additions & 0 deletions exp_scripts/exp_init-efficient_refine_arena.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
#!/bin/bash

set -e

scen_start=1
scen_end=25
force=0

map="arena.map"
agents_list="300"
well_formed=0

solvers=(
"IR_SINGLE_PATHS"
"IR_FIX_AT_GOALS"
"IR -S 10"
"IR -S 30"
"IR_FOCUS_GOALS"
"IR_MDD"
"IR_BOTTLENECK"
"IR_HYBRID")

refine_limit=500
refine_cnt=10000000
comp_time_limit=30000
refine_option="-x ECBS -X \"-w 1.1\""

for solver in "${solvers[@]}"
do
bash `dirname $0`/run.sh \
$map \
"$agents_list" \
"$solver ${refine_option} -n ${refine_cnt} -t ${refine_limit} -T ${comp_time_limit}" \
$scen_start \
$scen_end \
$well_formed \
$force
done


# send message
str_solvers="solvers="
for solver in "${solvers[@]}"
do
str_solvers=$str_solvers"\n-"$solver
done

MESSAGE="*-----------------------------------
fin experiment\nmap=${map}\nagents=${agents_list}\nwell_formed=${well_formed}\n${str_solvers}
-----------------------------------*"
bash `dirname $0`/slack_notification.sh "$MESSAGE"
51 changes: 51 additions & 0 deletions exp_scripts/exp_init-efficient_refine_lak503d.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
#!/bin/bash

set -e

scen_start=1
scen_end=25
force=0

map="lak503d.map"
agents_list="500"
well_formed=0

solvers=(
"IR_SINGLE_PATHS"
"IR_FIX_AT_GOALS"
"IR -S 10"
"IR -S 30"
"IR_FOCUS_GOALS"
"IR_MDD"
"IR_BOTTLENECK"
"IR_HYBRID")

refine_limit=500
refine_cnt=10000000
comp_time_limit=30000
refine_option="-x ECBS -X \"-w 1.1\""

for solver in "${solvers[@]}"
do
bash `dirname $0`/run.sh \
$map \
"$agents_list" \
"$solver ${refine_option} -n ${refine_cnt} -t ${refine_limit} -T ${comp_time_limit}" \
$scen_start \
$scen_end \
$well_formed \
$force
done


# send message
str_solvers="solvers="
for solver in "${solvers[@]}"
do
str_solvers=$str_solvers"\n-"$solver
done

MESSAGE="*-----------------------------------
fin experiment\nmap=${map}\nagents=${agents_list}\nwell_formed=${well_formed}\n${str_solvers}
-----------------------------------*"
bash `dirname $0`/slack_notification.sh "$MESSAGE"
51 changes: 51 additions & 0 deletions exp_scripts/exp_init-efficient_refine_random-32-32-20.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
#!/bin/bash

set -e

scen_start=1
scen_end=25
force=0

map="random-32-32-20.map"
agents_list="110"
well_formed=0

solvers=(
"IR_SINGLE_PATHS"
"IR_FIX_AT_GOALS"
"IR -S 10"
"IR -S 30"
"IR_FOCUS_GOALS"
"IR_MDD"
"IR_BOTTLENECK"
"IR_HYBRID")

refine_limit=500
refine_cnt=10000000
comp_time_limit=30000
refine_option="-x ECBS -X \"-w 1.2\""

for solver in "${solvers[@]}"
do
bash `dirname $0`/run.sh \
$map \
"$agents_list" \
"$solver ${refine_option} -n ${refine_cnt} -t ${refine_limit} -T ${comp_time_limit}" \
$scen_start \
$scen_end \
$well_formed \
$force
done


# send message
str_solvers="solvers="
for solver in "${solvers[@]}"
do
str_solvers=$str_solvers"\n-"$solver
done

MESSAGE="*-----------------------------------
fin experiment\nmap=${map}\nagents=${agents_list}\nwell_formed=${well_formed}\n${str_solvers}
-----------------------------------*"
bash `dirname $0`/slack_notification.sh "$MESSAGE"

0 comments on commit 1b2fe89

Please sign in to comment.