diff options
author | 2019-05-22 20:38:53 -0400 | |
---|---|---|
committer | 2019-05-22 20:38:53 -0400 | |
commit | b7ed3353ba34dd837bfc15f7e48c30a2cdc7ce75 (patch) | |
tree | 53e966837f2403b47e62f978bc777d6fe93ce10a /Domains/hu.bme.mit.inf.dslreasoner.domains.cps/xtend-gen/hu/bme/mit/inf/dslreasoner/domains/cps/mdeo/ExcludedOptimisationInterpreter.java | |
parent | VIATRA DSE and COIN-OR CBC implementations of CPS case study (diff) | |
download | VIATRA-Generator-b7ed3353ba34dd837bfc15f7e48c30a2cdc7ce75.tar.gz VIATRA-Generator-b7ed3353ba34dd837bfc15f7e48c30a2cdc7ce75.tar.zst VIATRA-Generator-b7ed3353ba34dd837bfc15f7e48c30a2cdc7ce75.zip |
MDEOptimiser implementation of CPS benchmark
Diffstat (limited to 'Domains/hu.bme.mit.inf.dslreasoner.domains.cps/xtend-gen/hu/bme/mit/inf/dslreasoner/domains/cps/mdeo/ExcludedOptimisationInterpreter.java')
-rw-r--r-- | Domains/hu.bme.mit.inf.dslreasoner.domains.cps/xtend-gen/hu/bme/mit/inf/dslreasoner/domains/cps/mdeo/ExcludedOptimisationInterpreter.java | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.cps/xtend-gen/hu/bme/mit/inf/dslreasoner/domains/cps/mdeo/ExcludedOptimisationInterpreter.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.cps/xtend-gen/hu/bme/mit/inf/dslreasoner/domains/cps/mdeo/ExcludedOptimisationInterpreter.java new file mode 100644 index 00000000..90641d73 --- /dev/null +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.cps/xtend-gen/hu/bme/mit/inf/dslreasoner/domains/cps/mdeo/ExcludedOptimisationInterpreter.java | |||
@@ -0,0 +1,31 @@ | |||
1 | package hu.bme.mit.inf.dslreasoner.domains.cps.mdeo; | ||
2 | |||
3 | import hu.bme.mit.inf.dslreasoner.domains.cps.mdeo.ExcludedMoeaOptimisation; | ||
4 | import java.util.List; | ||
5 | import org.eclipse.emf.ecore.EPackage; | ||
6 | import org.eclipse.emf.henshin.model.Unit; | ||
7 | import org.moeaframework.Instrumenter; | ||
8 | import uk.ac.kcl.inf.mdeoptimiser.languages.mopt.Optimisation; | ||
9 | import uk.ac.kcl.inf.mdeoptimiser.libraries.core.optimisation.IModelProvider; | ||
10 | import uk.ac.kcl.inf.mdeoptimiser.libraries.core.optimisation.OptimisationInterpreter; | ||
11 | import uk.ac.kcl.inf.mdeoptimiser.libraries.core.optimisation.executor.SolutionGenerator; | ||
12 | |||
13 | @SuppressWarnings("all") | ||
14 | public class ExcludedOptimisationInterpreter extends OptimisationInterpreter { | ||
15 | private final Optimisation model; | ||
16 | |||
17 | public ExcludedOptimisationInterpreter(final String projectPath, final Optimisation model) { | ||
18 | super(projectPath, model); | ||
19 | this.model = model; | ||
20 | } | ||
21 | |||
22 | @Override | ||
23 | public Instrumenter start() { | ||
24 | List<Unit> _breedingOperators = this.getBreedingOperators(); | ||
25 | List<Unit> _mutationOperators = this.getMutationOperators(); | ||
26 | IModelProvider _modelProvider = this.getModelProvider(); | ||
27 | EPackage _metamodel = this.getMetamodel(); | ||
28 | SolutionGenerator solutionGenerator = new SolutionGenerator(this.model, _breedingOperators, _mutationOperators, _modelProvider, _metamodel); | ||
29 | return new ExcludedMoeaOptimisation().execute(this.model.getSolver(), solutionGenerator); | ||
30 | } | ||
31 | } | ||