diff options
author | 2020-05-19 22:38:21 +0200 | |
---|---|---|
committer | 2020-05-19 22:38:21 +0200 | |
commit | fd2fa1e12353b5cf905358d1446d6469ac04be72 (patch) | |
tree | 1969da2a4e739435340dc5d74fbd8a428f3c0a88 /Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme | |
parent | Merge branch 'master' of https://github.com/viatra/VIATRA-Generator (diff) | |
download | VIATRA-Generator-fd2fa1e12353b5cf905358d1446d6469ac04be72.tar.gz VIATRA-Generator-fd2fa1e12353b5cf905358d1446d6469ac04be72.tar.zst VIATRA-Generator-fd2fa1e12353b5cf905358d1446d6469ac04be72.zip |
option to calculate object creation costs in fitness
Diffstat (limited to 'Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme')
-rw-r--r-- | Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/execution/SolverLoader.xtend | 6 |
1 files changed, 6 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 e1d01cb5..48d4fbb4 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 | |||
@@ -124,6 +124,12 @@ class SolverLoader { | |||
124 | c.unfinishedWFWeight = Integer.parseInt(stringValue) | 124 | c.unfinishedWFWeight = Integer.parseInt(stringValue) |
125 | } catch(Exception e) {} | 125 | } catch(Exception e) {} |
126 | } | 126 | } |
127 | if(config.containsKey("fitness-objectCreationCosts")) { | ||
128 | val stringValue = config.get("fitness-objectCreationCosts") | ||
129 | try { | ||
130 | c.calculateObjectCreationCosts = Boolean.parseBoolean(stringValue) | ||
131 | } catch(Exception e) {} | ||
132 | } | ||
127 | ] | 133 | ] |
128 | } else { | 134 | } else { |
129 | throw new UnsupportedOperationException('''Unknown solver: «solver»''') | 135 | throw new UnsupportedOperationException('''Unknown solver: «solver»''') |