-
Notifications
You must be signed in to change notification settings - Fork 0
/
run-cp-only.sh
executable file
·22 lines (13 loc) · 1.03 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
for filename in `ls in/*.G | sort -V` ; do
name=${filename##*/}
modifiedName=${name//.G/}
if [ "$modifiedName" != "fractionalGraph" ]
then
echo "in/""$modifiedName"
mkdir -p "out/""$modifiedName"
LPFilePath="in/strengthedModelAfterRootRelaxation.lp"
initMembershipFilePath="in/bestSolutionILS_""$modifiedName"".txt"
ant -DinFile="in/""$name" -DoutDir="out/""$modifiedName" -DenumAll=false -Dcp=true -DMaxTimeForRelaxationImprovement=20 -DuserCutInBB=false -DinitMembershipFilePath="$initMembershipFilePath" -DLPFilePath="$LPFilePath" -DonlyFractionalSolution=true -DfractionalSolutionGapPropValue=-1.0 -DnbThread=2 -Dverbose=true -Dtilim=60 run
#ant -DinFile="in/""$name" -DoutDir="out/""$modifiedName" -DenumAll=false -Dcp=true -DMaxTimeForRelaxationImprovement=20 -DuserCutInBB=false -DinitMembershipFilePath="$initMembershipFilePath" -DLPFilePath="$LPFilePath" -DonlyFractionalSolution=true -DfractionalSolutionGapPropValue=0.01 -DnbThread=2 -Dverbose=true -Dtilim=60 run
fi
done