Makefile
2.54 KB
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
74
75
76
77
78
79
80
81
82
83
84
DISTS = {1000..3000..1000}
CHOCO_HOME = $(HOME)/IdeaProjects/Modfire/modfire/MODFIRE-Prototype
CHOCO_HOME = .
CHOCO = $(CHOCO_HOME)/$(wildcard choco-solver-4.*-jar-with-dependencies.jar)
CLASSES = $(shell find -name \*.class | sed -e 's;[^/]*$$;;' | sort -u | tr '\n' :)
JFLAGS = -cp $(CHOCO):$(CLASSES)
all: make
#Multi runs for 8 hours
#MainWithSpecific [AREALIMIT] res [MINIMUM BORDER] [TYPE(MULTI, SINGLE)] [REGION FILE] [CRITERIA FLAGS]
#AREALIMIT is the maximum ammount of forest area that can be contiguously harvested in a single year
#res is the folder with the input files
#[MINIMUM BORDER] is the minimum border lenght between adjacent Management Units for the adjacency to be taken into account
#[Multi, Single] Whether the software does multi or single criteria optimization
#[REGION FILE] Filename in the subregions folder with the MUs that are taken into account
#[CRITERIA FLAGS] List on by one which criteria should be optimized, in single criteria optimization only the first criteria is used
#Criteria flags
#0-Wood Yield
#1-Soil Loss
#2-Perc_r
#3-Biodiversity
#4-Cashflow
#5-Carbon Stock
#6-NPV
#7-Perc_rait
#8-R
#9-Rait
#10-Sbiom
make:
java $(JFLAGS) MainWithSpecific 50 res 50 Multi PaivaEast 0 1 2
sequence:
java $(JFLAGS) MainWithSpecific 50 res 50 Multi PaivaIslands 0 1 2
java $(JFLAGS) MainWithSpecific 50 res 50 Multi PaivaWest 0 1 2
java $(JFLAGS) MainWithSpecific 50 res 50 Multi PaivaEast 0 1 2
java $(JFLAGS) MainWithSpecific 50 res 50 Multi ParPen 0 1 2
verify:
java $(JFLAGS) VerifySolution 50 res 50 work-3.vmt
paredesSingle:
java $(JFLAGS) MainWithSpecific 50 res 50 Single Paredes 0 1 2
paredesMulti:
java $(JFLAGS) MainWithSpecific 50 res 50 Multi Paredes 0 1 2
penafielSingle:
java $(JFLAGS) MainWithSpecific 50 res 50 Single Penafiel 0 1 2
penafielMulti:
java $(JFLAGS) MainWithSpecific 50 res 50 Multi Penafiel 0 1 2
paivaWSingle:
java $(JFLAGS) MainWithSpecific 50 res 50 Single PaivaWest 0 1 2
paivaWMulti:
java $(JFLAGS) MainWithSpecific 50 res 50 Multi PaivaWest 0 1 2
paivaESingle:
java $(JFLAGS) MainWithSpecific 50 res 50 Single PaivaEast 0 1 2
paivaEMulti:
java $(JFLAGS) MainWithSpecific 50 res 50 Multi PaivaEast 0 1 2
paivaISingle:
java $(JFLAGS) MainWithSpecific 50 res 50 Single PaivaIslands 0 1 2
paivaIMulti:
java $(JFLAGS) MainWithSpecific 50 res 50 Multi PaivaIslands 0 1 2
parpenSingle:
java $(JFLAGS) MainWithSpecific 50 res 50 Single ParPen 0 1 2
parpenMulti:
java $(JFLAGS) MainWithSpecific 50 res 50 Single ParPen 0 1 2
time:
java $(JFLAGS) MainTime 50 res 50 28800000 Paredes 0 1 2