-
Notifications
You must be signed in to change notification settings - Fork 0
/
run07.sh
executable file
·98 lines (84 loc) · 3.6 KB
/
run07.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
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#!/bin/bash
mkdir -p statistics;
mkdir -p solutions;
timeLimit=3600;
echo "LinearRelaxationSolver";
make LinearRelaxationSolverExec;
for instance in grid-m5V25E32B10D05 grid-m5V49E66B10D05 grid-m5V100E140B10D05 \
grid-m10V25E32B10D05 grid-m10V49E66B10D05 grid-m10V100E140B10D05 \
random-m5V25E32B10D05 random-m5V49E66B10D05 random-m5V100E140B10D05 \
random-m10V25E32B10D05 random-m10V49E66B10D05 random-m10V100E140B10D05
do
echo "Instance: "$instance;
echo "Start time: "$(date);
./bin/exec/LinearRelaxationSolverExec \
--instance "instances/"$instance".in" --time-limit $timeLimit \
--statistics "statistics/"$instance"LinearRelaxationSolver.stat" \
--solution "solutions/"$instance"LinearRelaxationSolver.sol";
echo "End time: "$(date);
done
echo "BnBSolver";
make BnBSolverExec;
for instance in grid-m5V25E32B10D05 grid-m5V49E66B10D05 grid-m5V100E140B10D05 \
grid-m10V25E32B10D05 grid-m10V49E66B10D05 grid-m10V100E140B10D05 \
random-m5V25E32B10D05 random-m5V49E66B10D05 random-m5V100E140B10D05 \
random-m10V25E32B10D05 random-m10V49E66B10D05 random-m10V100E140B10D05
do
echo "Instance: "$instance;
echo "Start time: "$(date);
./bin/exec/BnBSolverExec --instance "instances/"$instance".in" \
--time-limit $timeLimit \
--statistics "statistics/"$instance"BnBSolver.stat" \
--solution "solutions/"$instance"BnBSolver.sol";
echo "End time: "$(date);
done
echo "BnCSolver";
make BnCSolverExec;
for instance in grid-m5V25E32B10D05 grid-m5V49E66B10D05 grid-m5V100E140B10D05 \
grid-m10V25E32B10D05 grid-m10V49E66B10D05 grid-m10V100E140B10D05 \
random-m5V25E32B10D05 random-m5V49E66B10D05 random-m5V100E140B10D05 \
random-m10V25E32B10D05 random-m10V49E66B10D05 random-m10V100E140B10D05
do
echo "Instance: "$instance;
echo "Start time: "$(date);
./bin/exec/BnCSolverExec --instance "instances/"$instance".in" \
--time-limit $timeLimit \
--statistics "statistics/"$instance"BnCSolver.stat" \
--solution "solutions/"$instance"BnCSolver.sol";
echo "End time: "$(date);
done
echo "GRASPSolver";
make GRASPSolverExec;
alpha=0.05;
echo "alpha="$alpha;
for instance in grid-m5V25E32B10D05 grid-m5V49E66B10D05 grid-m5V100E140B10D05 \
grid-m10V25E32B10D05 grid-m10V49E66B10D05 grid-m10V100E140B10D05 \
random-m5V25E32B10D05 random-m5V49E66B10D05 random-m5V100E140B10D05 \
random-m10V25E32B10D05 random-m10V49E66B10D05 random-m10V100E140B10D05
do
echo "Instance: "$instance;
echo "Start time: "$(date);
./bin/exec/GRASPSolverExec --instance "instances/"$instance".in" \
--time-limit $timeLimit --alpha $alpha \
--statistics "statistics/"$instance"GRASPSolverAlpha"${alpha//.}".stat" \
--solution "solutions/"$instance"GRASPSolverAlpha"${alpha//.}".sol";
echo "End time: "$(date);
done
echo "LagrangianHeuristicSolver2";
make LagrangianHeuristicSolver2Exec;
N=30;
echo "N="$N;
for instance in grid-m5V25E32B10D05 grid-m5V49E66B10D05 grid-m5V100E140B10D05 \
grid-m10V25E32B10D05 grid-m10V49E66B10D05 grid-m10V100E140B10D05 \
random-m5V25E32B10D05 random-m5V49E66B10D05 random-m5V100E140B10D05 \
random-m10V25E32B10D05 random-m10V49E66B10D05 random-m10V100E140B10D05
do
echo "Instance: "$instance;
echo "Start time: "$(date);
./bin/exec/LagrangianHeuristicSolver2Exec \
--instance "instances/"$instance".in" --time-limit $timeLimit -N $N \
--statistics "statistics/"$instance"LagrangianHeuristicSolver2N"$N".stat" \
--solution "solutions/"$instance"LagrangianHeuristicSolver2N"$N".sol";
echo "End time: "$(date);
done
echo "Finished";