diff options
author | Aren Babikian <aren.babikian@mail.mcgill.ca> | 2021-01-06 12:41:48 -0500 |
---|---|---|
committer | Aren Babikian <aren.babikian@mail.mcgill.ca> | 2021-01-06 12:41:48 -0500 |
commit | 82bbdc37fc4dd829a84a849a3e3ffb2467217526 (patch) | |
tree | 25d94a598f162cec0eba8c2d5534ce3a6498806c /Tests/MODELS2020-CaseStudies/case.study.pledge.run/src/run/RunGeneratorConfig.xtend | |
parent | prepping measurement setup w/ dreal (diff) | |
download | VIATRA-Generator-82bbdc37fc4dd829a84a849a3e3ffb2467217526.tar.gz VIATRA-Generator-82bbdc37fc4dd829a84a849a3e3ffb2467217526.tar.zst VIATRA-Generator-82bbdc37fc4dd829a84a849a3e3ffb2467217526.zip |
fine-tune measurement setup
Diffstat (limited to 'Tests/MODELS2020-CaseStudies/case.study.pledge.run/src/run/RunGeneratorConfig.xtend')
-rw-r--r-- | Tests/MODELS2020-CaseStudies/case.study.pledge.run/src/run/RunGeneratorConfig.xtend | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.run/src/run/RunGeneratorConfig.xtend b/Tests/MODELS2020-CaseStudies/case.study.pledge.run/src/run/RunGeneratorConfig.xtend index e1d9b9d9..e1232040 100644 --- a/Tests/MODELS2020-CaseStudies/case.study.pledge.run/src/run/RunGeneratorConfig.xtend +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.run/src/run/RunGeneratorConfig.xtend | |||
@@ -38,6 +38,7 @@ class RunGeneratorConfig { | |||
38 | static var MODELS = 10 | 38 | static var MODELS = 10 |
39 | static var RUNTIME = 1500 | 39 | static var RUNTIME = 1500 |
40 | static var NUM_SOLVER = "z3" | 40 | static var NUM_SOLVER = "z3" |
41 | static var SCOPE_PROPAGATOR = "typeHierarchy" | ||
41 | 42 | ||
42 | static var DOMAIN = "FamilyTree" // "FamilyTree", "Satellite", "Taxation" | 43 | static var DOMAIN = "FamilyTree" // "FamilyTree", "Satellite", "Taxation" |
43 | static val QUERIES = true | 44 | static val QUERIES = true |
@@ -69,6 +70,9 @@ class RunGeneratorConfig { | |||
69 | 70 | ||
70 | val ns = new Option("ns", "numericSolver", true, "what numeric solver to use") | 71 | val ns = new Option("ns", "numericSolver", true, "what numeric solver to use") |
71 | options.addOption(ns) | 72 | options.addOption(ns) |
73 | |||
74 | val sp = new Option("sp", "scopePropagator", true, "scope Propagator") | ||
75 | options.addOption(sp) | ||
72 | 76 | ||
73 | val d = new Option("d", "domain", true, "domain") | 77 | val d = new Option("d", "domain", true, "domain") |
74 | options.addOption(d) | 78 | options.addOption(d) |
@@ -100,6 +104,8 @@ class RunGeneratorConfig { | |||
100 | if(rtIn !== null) RUNTIME = Integer.parseInt(rtIn) | 104 | if(rtIn !== null) RUNTIME = Integer.parseInt(rtIn) |
101 | val nsIn = cmd.getOptionValue("numericSolver") | 105 | val nsIn = cmd.getOptionValue("numericSolver") |
102 | if(nsIn !== null && nsIn.equals("dreal")) NUM_SOLVER = "dreal" | 106 | if(nsIn !== null && nsIn.equals("dreal")) NUM_SOLVER = "dreal" |
107 | val spIn = cmd.getOptionValue("scopePropagator") | ||
108 | if(spIn !== null ) SCOPE_PROPAGATOR = spIn | ||
103 | val dIn = cmd.getOptionValue("domain") | 109 | val dIn = cmd.getOptionValue("domain") |
104 | if(dIn !== null) DOMAIN = dIn | 110 | if(dIn !== null) DOMAIN = dIn |
105 | val hhIn = cmd.getOptionValue("household") | 111 | val hhIn = cmd.getOptionValue("household") |
@@ -118,11 +124,20 @@ class RunGeneratorConfig { | |||
118 | // ///////////////////////// | 124 | // ///////////////////////// |
119 | // BEGIN RUN | 125 | // BEGIN RUN |
120 | println( | 126 | println( |
121 | "<<DOMAIN: " + DOMAIN + ", NumSolver=" + NUM_SOLVER + ", SIZE=" + SIZE_LB + "to" + SIZE_UB + ", Runs=" + RUNS + ", ModelsPerRun=" + | 127 | "<<DOMAIN: " + DOMAIN + |
122 | MODELS + ", Runtime=" + RUNTIME + ">>") | 128 | ", NumSolver=" + NUM_SOLVER + |
129 | ", scopeProp=" + SCOPE_PROPAGATOR + | ||
130 | ", SIZE=" + SIZE_LB + "to" + SIZE_UB + | ||
131 | ", Runs=" + RUNS + | ||
132 | ", ModelsPerRun=" + MODELS + | ||
133 | ", Runtime=" + RUNTIME + ">>") | ||
123 | if (isTaxation) println("<<Households: " + HOUSEHOLD + ">>") | 134 | if (isTaxation) println("<<Households: " + HOUSEHOLD + ">>") |
124 | 135 | ||
125 | var naming = DOMAIN + "/size" + toStr(SIZE_LB) + "to" + toStr(SIZE_UB) + "r" + RUNS + "n" + MODELS + "rt" + RUNTIME | 136 | var naming = DOMAIN + "/size" + toStr(SIZE_LB) + "to" + toStr(SIZE_UB) + |
137 | "r" + RUNS + | ||
138 | "n" + MODELS + | ||
139 | "rt" + RUNTIME + | ||
140 | "ns" + NUM_SOLVER | ||
126 | if (isTaxation) naming = naming + "hh" + HOUSEHOLD | 141 | if (isTaxation) naming = naming + "hh" + HOUSEHOLD |
127 | val outputPath = "measurements/" + "models/" + naming + "_" + formattedDate | 142 | val outputPath = "measurements/" + "models/" + naming + "_" + formattedDate |
128 | val debugPath = "measurements/" + "debug/" + naming + "_" + formattedDate | 143 | val debugPath = "measurements/" + "debug/" + naming + "_" + formattedDate |
@@ -188,6 +203,8 @@ class RunGeneratorConfig { | |||
188 | runtimeEntry.millisecLimit = RUNTIME | 203 | runtimeEntry.millisecLimit = RUNTIME |
189 | val numSolverEntry = configScope.entries.get(1) as CustomEntry | 204 | val numSolverEntry = configScope.entries.get(1) as CustomEntry |
190 | numSolverEntry.value = NUM_SOLVER | 205 | numSolverEntry.value = NUM_SOLVER |
206 | val scopePropEntry = configScope.entries.get(2) as CustomEntry | ||
207 | scopePropEntry.value = SCOPE_PROPAGATOR | ||
191 | 208 | ||
192 | // Output locations | 209 | // Output locations |
193 | val debug = genTask.debugFolder as FileSpecification | 210 | val debug = genTask.debugFolder as FileSpecification |