-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
74 lines (58 loc) · 2.41 KB
/
Makefile
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
ifeq ($(OS),Windows_NT)
py = "python"
else
py = "python3"
endif
JARFILE = "target/mone-article-experiments-1.0.0-jar-with-dependencies.jar"
pathToDataFiles = "data"
.PHONY: build
build:
mvn clean package
.PHONY: download
download:
ifeq ($(OS),Windows_NT)
if not exist target mkdir target
else
mkdir -p target
endif
cd target && curl -O -J -L "https://repo1.maven.org/maven2/org/cicirello/mone-article-experiments/1.0.0/mone-article-experiments-1.0.0-jar-with-dependencies.jar"
# Analyzes data assuming experiments already run
.PHONY: analysis
analysis:
$(py) -m pip install --user pycairo
$(py) -m pip install --user matplotlib
$(py) src/analysis/summarize-stats.py ${pathToDataFiles}/tsp.txt > ${pathToDataFiles}/summary.tsp.txt
$(py) src/analysis/summarize-stats.py ${pathToDataFiles}/atsp.txt > ${pathToDataFiles}/summary.atsp.txt
$(py) src/analysis/summarize-stats.py ${pathToDataFiles}/haystack.em.txt > ${pathToDataFiles}/summary.haystack.em.txt
$(py) src/analysis/summarize-stats.py ${pathToDataFiles}/haystack.tau.txt > ${pathToDataFiles}/summary.haystack.tau.txt
$(py) src/analysis/summarize-stats.py ${pathToDataFiles}/haystack.lee.txt > ${pathToDataFiles}/summary.haystack.lee.txt
.PHONY: epstopdf
epstopdf:
epstopdf ${pathToDataFiles}/tsp.eps
epstopdf ${pathToDataFiles}/atsp.eps
epstopdf ${pathToDataFiles}/haystack.em.eps
epstopdf ${pathToDataFiles}/haystack.tau.eps
epstopdf ${pathToDataFiles}/haystack.lee.eps
# Runs all experiments
.PHONY: experiments
experiments: tsp atsp HaystackEM HaystackTau HaystackLee
.PHONY: tsp
tsp:
java -cp ${JARFILE} org.cicirello.experiments.mone2022.TSPExperiments > ${pathToDataFiles}/tsp.txt
.PHONY: atsp
atsp:
java -cp ${JARFILE} org.cicirello.experiments.mone2022.ATSPExperiments > ${pathToDataFiles}/atsp.txt
.PHONY: HaystackEM
HaystackEM:
java -cp ${JARFILE} org.cicirello.experiments.mone2022.HaystackEMExperiments > ${pathToDataFiles}/haystack.em.txt
.PHONY: HaystackTau
HaystackTau:
java -cp ${JARFILE} org.cicirello.experiments.mone2022.HaystackTauExperiments > ${pathToDataFiles}/haystack.tau.txt
.PHONY: HaystackLee
HaystackLee:
java -cp ${JARFILE} org.cicirello.experiments.mone2022.HaystackLeeExperiments > ${pathToDataFiles}/haystack.lee.txt
# Runs the principal component analysis and fitness distance correlation examples from
# the earlier conference paper in BICT 2019.
.PHONY: bict2019
bict2019:
java -cp ${JARFILE} org.cicirello.experiments.mone2022.BICT2019