-
Notifications
You must be signed in to change notification settings - Fork 0
/
run-cp-only.sh
executable file
·33 lines (21 loc) · 2.07 KB
/
run-cp-only.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
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=60 -DuserCutInBB=false -DinitMembershipFilePath="$initMembershipFilePath" -DLPFilePath="$LPFilePath" -DonlyFractionalSolution=true -DfractionalSolutionGapPropValue=0.01 -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=60 -DuserCutInBB=false -DinitMembershipFilePath="$initMembershipFilePath" -DLPFilePath="$LPFilePath" -DonlyFractionalSolution=true -DfractionalSolutionGapPropValue=-1.0 -DnbThread=4 -Dverbose=true -Dtilim=300 -DtriangleIneqReducedForm=true run
# without redundant triangle inequalities (normally more efficient) & with a threshold value for gap value
ant -DinFile="in/""$name" -DoutDir="$outFolderName" -DformulationType="vertex" -DenumAll=false -Dcp=true -DMaxTimeForRelaxationImprovement=60 -DuserCutInBB=false -DinitMembershipFilePath="$initMembershipFilePath" -DLPFilePath="$LPFilePath" -DonlyFractionalSolution=true -DfractionalSolutionGapPropValue=0.01 -DnbThread=4 -Dverbose=true -Dtilim=300 -DtriangleIneqReducedForm=true run
fi
done