-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbatch
More file actions
executable file
·51 lines (41 loc) · 1.77 KB
/
Copy pathbatch
File metadata and controls
executable file
·51 lines (41 loc) · 1.77 KB
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
#!/usr/bin/env bash
#
# usage: batch < exe file >
# < exe file > = path of the executable file, default ./TUDPS_test
#
# runs the 1UC academic instances across thermal formulations (wf 8..14) under LagrangianDualSolver
# shared CLI/run helpers - - - - - - - - - - - - - - - - - - - - - - - - - -
source "$(dirname "$0")/../../batch_common.sh"
DATADIR=../../UCBlock/data/nc4/1UC_Data
wchg=135 # change fixed + linear + quadratic costs (+128: also regen the
# abstract representation, exercising the Modification path)
#iter=0
TUDPS_test=${1:-./TUDPS_test}
par=BSCfg.txt
# ACAD + Lagrangian - - - - - - - - - - - - - - - - - - - -
# wf is bit-wise: 0-6 select the formulation (3bin/T/pt/DP/SU/SD/SUSD), +8
# (PCuts) adds the perspective cuts. We test every formulation with cuts, i.e.
# wf in 8..14. The interval-based formulations (pt/DP/SU/SD/SUSD, base wf >= 2,
# i.e. wf >= 10) are too expensive on large-horizon instances, so there we skip
# them and keep only 3bin/T (wf 8,9).
for wf in 8 9 10 11 12 13 14; do
for i in 24 96; do
# skip the expensive interval-based formulations on large instances
if [ $wf -ge 10 ] && [ $i -eq 96 ]; then
continue
fi
for j in 1 12 16 23; do
# in CI only 5 of the 100 ramp profiles are run (they are variations of
# the same shape); the local sweep stays exhaustive
if [ -n "$CI" ]; then hlist="1 25 50 75 100"; else hlist=$(seq 1 100); fi
for h in $hlist; do
#for (( seed = 0 ; seed < 20 ; seed++ )); do
seed=0
what=${DATADIR}/${i}/S${j}ramp${h}_${i}.nc4
run_test "$TUDPS_test" "$what" -S "$par" -e "$seed" -k "$wchg" -f "$wf" -n "$iter"
#done
done
done
done
done
# the end - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -