-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun-cp-bb.sh
executable file
·44 lines (28 loc) · 2.86 KB
/
run-cp-bb.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
for filename in `ls in/*.G | sort -V` ; do
name=${filename##*/}
modifiedName=${name//.G/}
if [ "$modifiedName" != "fractionalGraph" ]
then
echo "in/""$modifiedName"
LPFilePath=""
initMembershipFilePath="" #"in/bestSolutionILS_""$modifiedName"".txt"
# ===============================================================================
# Vertex pair formulation F_v(G)
# ===============================================================================
outFolderName="out/""$modifiedName""-vertex"
mkdir -p $outFolderName
# with redundant triangle inequalities & without a threshold value for gap value
#ant -DinFile="in/""$name" -DoutDir="$outFolderName" -DformulationType="vertex" -DenumAll=false -Dcp=true -DMaxTimeForRelaxationImprovement=120 -DlazyCB=false -DuserCutCB=false -DinitSolutionFilePath="$initSolutionFilePath" -DLPFilePath="$LPFilePath" -DonlyFractionalSolution=false -DfractionalSolutionGapPropValue=-1.0 -DnbThread=4 -Dverbose=true -Dtilim=300 -DtriangleIneqReducedForm=false run
# without redundant triangle inequalities (normally more efficient) & without a threshold value for gap value
#ant -DinFile="in/""$name" -DoutDir="$outFolderName" -DformulationType="vertex" -DenumAll=false -Dcp=true -DMaxTimeForRelaxationImprovement=120 -DlazyCB=false -DuserCutCB=false -DinitSolutionFilePath="$initSolutionFilePath" -DLPFilePath="$LPFilePath" -DonlyFractionalSolution=false -DfractionalSolutionGapPropValue=-1.0 -DnbThread=4 -Dverbose=true -Dtilim=300 -DtriangleIneqReducedForm=true run
# without redundant triangle inequalities (normally faster) & with a threshold value for gap value
ant -DinFile="in/""$name" -DoutDir="$outFolderName" -DformulationType="vertex" -DenumAll=false -Dcp=true -DMaxTimeForRelaxationImprovement=120 -DlazyCB=false -DuserCutCB=false -DinitSolutionFilePath="$initSolutionFilePath" -DLPFilePath="$LPFilePath" -DonlyFractionalSolution=false -DfractionalSolutionGapPropValue=0.01 -DnbThread=4 -Dverbose=true -Dtilim=300 -DtriangleIneqReducedForm=true run
# ===============================================================================
# ===============================================================================
# Edge formulation F_e(G)
# ===============================================================================
outFolderName="out/""$modifiedName""-edge"
mkdir -p $outFolderName
ant -DinFile="in/""$name" -DoutDir="$outFolderName" -DformulationType="edge" -DenumAll=false -Dcp=true -DMaxTimeForRelaxationImprovement=120 -DlazyCB=true -DuserCutCB=false -DinitMembershipFilePath="$initMembershipFilePath" -DLPFilePath="$LPFilePath" -DonlyFractionalSolution=false -DfractionalSolutionGapPropValue=-1.0 -DnbThread=4 -Dverbose=true -Dtilim=300 run
fi
done