-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.sh
executable file
·24 lines (23 loc) · 1.12 KB
/
run.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
#!/usr/bin/env bash
echo "Generating configuration and platform files ..."
python3 generator.py config.yml platform.xml
echo "Computing the solution ..."
python3 scheduler.py config.yml
scenarios=( "ideal" "transit" "increasing0.25" "increasing0.5" "increasing0.75" "decreasing0.25" "decreasing0.5" "decreasing0.75" )
# scenarios=( "increasing0.5" )
heuristics=( "model_model" "model_even" "even_model" "even_even" )
# heuristics=( "model_model" )
for scenario in "${scenarios[@]}"
do
# mv ${scenario}.err ${scenario}_model_model.err
# mv ${scenario}.log ${scenario}_model_model.log
# rm ${scenario}.conf
for heuristic in "${heuristics[@]}"
do
# cp ${scenario}_${heuristic}.conf ${scenario}_${heuristic}.conf.bak
# mv ${scenario}_${heuristic}.log ${scenario}_${heuristic}.log.bak
# mv ${scenario}_${heuristic}.err ${scenario}_${heuristic}.err.bak
echo "Simulating ${scenario}_${heuristic} case ..."
./insitu-ensemble-simulator ${scenario}_${heuristic}.conf platform.xml --wrench-mailbox-pool-size=50000 1> ${scenario}_${heuristic}.log 2> ${scenario}_${heuristic}.err &
done
done