diff options
author | Oszkar Semerath <semerath@mit.bme.hu> | 2020-05-17 20:53:49 +0200 |
---|---|---|
committer | Oszkar Semerath <semerath@mit.bme.hu> | 2020-05-17 20:53:49 +0200 |
commit | 3c8c3c84b7160b26ceb6e9daf0d6638c5ec3fecb (patch) | |
tree | 270c3f29b7d0445f9129539bb7586690767a5f6f /Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/execution/SolverLoader.xtend | |
parent | detailed runtimes + counting defined objects only (diff) | |
download | VIATRA-Generator-3c8c3c84b7160b26ceb6e9daf0d6638c5ec3fecb.tar.gz VIATRA-Generator-3c8c3c84b7160b26ceb6e9daf0d6638c5ec3fecb.tar.zst VIATRA-Generator-3c8c3c84b7160b26ceb6e9daf0d6638c5ec3fecb.zip |
TransformationExecutionTime + weights can be controlled from config
Diffstat (limited to 'Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/execution/SolverLoader.xtend')
-rw-r--r-- | Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/execution/SolverLoader.xtend | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/execution/SolverLoader.xtend b/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/execution/SolverLoader.xtend index ca272381..e1d01cb5 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/execution/SolverLoader.xtend +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/execution/SolverLoader.xtend | |||
@@ -94,6 +94,36 @@ class SolverLoader { | |||
94 | c.runIntermediateNumericalConsistencyChecks= false | 94 | c.runIntermediateNumericalConsistencyChecks= false |
95 | } | 95 | } |
96 | } | 96 | } |
97 | if(config.containsKey("fitness-punishSize")) { | ||
98 | val stringValue = config.get("fitness-punishSize") | ||
99 | try { | ||
100 | c.punishSize = Boolean.parseBoolean(stringValue) | ||
101 | } catch(Exception e) {} | ||
102 | } | ||
103 | if(config.containsKey("fitness-scope")) { | ||
104 | val stringValue = config.get("fitness-scope") | ||
105 | try { | ||
106 | c.scopeWeight = Integer.parseInt(stringValue) | ||
107 | } catch(Exception e) {} | ||
108 | } | ||
109 | if(config.containsKey("fitness-missing-containent")) { | ||
110 | val stringValue = config.get("fitness-missing-containent") | ||
111 | try { | ||
112 | c.conaintmentWeight = Integer.parseInt(stringValue) | ||
113 | } catch(Exception e) {} | ||
114 | } | ||
115 | if(config.containsKey("fitness-missing-noncontainent")) { | ||
116 | val stringValue = config.get("fitness-missing-noncontainent") | ||
117 | try { | ||
118 | c.nonContainmentWeight = Integer.parseInt(stringValue) | ||
119 | } catch(Exception e) {} | ||
120 | } | ||
121 | if(config.containsKey("fitness-missing-wf")) { | ||
122 | val stringValue = config.get("fitness-missing-wf") | ||
123 | try { | ||
124 | c.unfinishedWFWeight = Integer.parseInt(stringValue) | ||
125 | } catch(Exception e) {} | ||
126 | } | ||
97 | ] | 127 | ] |
98 | } else { | 128 | } else { |
99 | throw new UnsupportedOperationException('''Unknown solver: «solver»''') | 129 | throw new UnsupportedOperationException('''Unknown solver: «solver»''') |