-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
executable file
·30 lines (19 loc) · 1.67 KB
/
run.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
for filename in `ls in/*.G | sort -V` ; do
name=${filename##*/}
modifiedName=${name//.G/}
echo $filename
echo "in/""$modifiedName"
outFolderName="out/""$modifiedName""-vertex"
initMembershipFilePath="$outFolderName/membership0.txt"
LPFilePath="in/strengthedModel_vertex.lp"
#mkdir -p $outFolderName
# Note that user must be aware if the LP file in input has the complete set of triangle constraints or its reduced form. If it is the 2nd one, then one needs to set "triangleIneqReducedForm=true".
# This parameter is just needed for retrieving the membership info, not for other tasks. >> TODO: we can infer this information directly from LP file by counting the nb triangle constraints
ant -v -buildfile build.xml -DformulationType="vertex" -DinFile="in/""$name" -DoutDir="$outFolderName" -DmaxNbEdit=3 -DlazyCB=false -DuserCutCB=false -DinitMembershipFilePath="$initMembershipFilePath" -DLPFilePath="$LPFilePath" -DJAR_filepath_RNSCC="RNSCC.jar" -DnbThread=4 -Dtilim=-1 -DsolLim=50000 -DtriangleIneqReducedForm=false -DlazyCB=false -DuserCutCB=false run
# ==============================================================================================
outFolderName="out/""$modifiedName""-edge"
initMembershipFilePath="$outFolderName/membership0.txt"
LPFilePath="in/strengthedModel_edge.lp"
#mkdir -p $outFolderName
#ant -v -buildfile build.xml -DformulationType="edge" -DinFile="in/""$name" -DoutDir="$outFolderName" -DmaxNbEdit=3 -DlazyCB=true -DuserCutCB=false -DinitMembershipFilePath="$initMembershipFilePath" -DLPFilePath="" -DJAR_filepath_RNSCC="RNSCC.jar" -DnbThread=4 -Dtilim=-1 -DsolLim=50000 run
done