-
Notifications
You must be signed in to change notification settings - Fork 0
/
run-bb-enum-all.sh
executable file
·43 lines (28 loc) · 2.79 KB
/
run-bb-enum-all.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
for filename in `ls in/*.G | sort -V` ; do
name=${filename##*/}
modifiedName=${name//.G/}
if [ "$modifiedName" != "fractionalGraph" ]
then
echo "in/""$modifiedName"
LPFilePath=""
initSolutionFilePath="in/bestSolutionILS_""$modifiedName"".txt"
# ===============================================================================
# Vertex pair formulation F_v(G)
# ===============================================================================
outFolderName="out/""$modifiedName""-vertex"
mkdir -p $outFolderName
# with redundant triangle inequalities
#ant -DinFile="in/""$name" -DoutDir="$outFolderName" -DformulationType="vertex" -DenumAll=true -Dcp=false -DinitSolutionFilePath="$initSolutionFilePath" -DLPFilePath="$LPFilePath" -DnbThread=4 -Dverbose=true -Dtilim=120 -DtilimForEnumAll=-1 -DsolLim=100 -DtriangleIneqReducedForm=false run
#ant -DinFile="in/""$name" -DoutDir="$outFolderName" -DformulationType="vertex" -DenumAll=true -Dcp=false -DinitSolutionFilePath="$initSolutionFilePath" -DLPFilePath="$LPFilePath" -DnbThread=4 -Dverbose=true -Dtilim=-1 -DtilimForEnumAll=120 -DsolLim=100 -DtriangleIneqReducedForm=false run
# without redundant triangle inequalities (more efficient)
#ant -DinFile="in/""$name" -DoutDir="$outFolderName" -DformulationType="vertex" -DenumAll=true -Dcp=false -DinitSolutionFilePath="$initSolutionFilePath" -DLPFilePath="$LPFilePath" -DnbThread=4 -Dverbose=true -Dtilim=120 -DtilimForEnumAll=-1 -DsolLim=100 -DtriangleIneqReducedForm=true run
ant -DinFile="in/""$name" -DoutDir="$outFolderName" -DformulationType="vertex" -DenumAll=true -Dcp=false -DinitSolutionFilePath="$initSolutionFilePath" -DLPFilePath="$LPFilePath" -DnbThread=4 -Dverbose=true -Dtilim=-1 -DtilimForEnumAll=120 -DsolLim=100 -DtriangleIneqReducedForm=true run
# ===============================================================================
# Edge formulation F_e(G)
# ===============================================================================
outFolderName="out/""$modifiedName""-edge"
mkdir -p $outFolderName
#ant -DinFile="in/""$name" -DoutDir="$outFolderName" -DformulationType="edge" -DenumAll=true -Dcp=false -DlazyCB=true -DinitMembershipFilePath="$initMembershipFilePath" -DLPFilePath="$LPFilePath" -DnbThread=4 -Dverbose=true -Dtilim=120 -DtilimForEnumAll=-1 -DsolLim=100 run
ant -DinFile="in/""$name" -DoutDir="$outFolderName" -DformulationType="edge" -DenumAll=true -Dcp=false -DlazyCB=true -DinitMembershipFilePath="$initMembershipFilePath" -DLPFilePath="$LPFilePath" -DnbThread=4 -Dverbose=true -Dtilim=-1 -DtilimForEnumAll=120 -DsolLim=100 run
fi
done