1 | package de.uka.ipd.sdq.dsexplore.opt4j.representation; |
2 | |
3 | import org.opt4j.core.IndividualBuilder; |
4 | import org.opt4j.core.optimizer.OptimizerModule; |
5 | import org.opt4j.operator.copy.CopyModule; |
6 | |
7 | import de.uka.ipd.sdq.dsexplore.opt4j.operator.CopyDesignDecisionGenotype; |
8 | import de.uka.ipd.sdq.dsexplore.opt4j.optimizer.PredefinedInstanceEvaluator; |
9 | |
10 | public class GivenInstanceModule extends OptimizerModule { |
11 | |
12 | @Override |
13 | protected void config() { |
14 | bindOptimizer(PredefinedInstanceEvaluator.class); |
15 | |
16 | bind(IndividualBuilder.class).to(DSEIndividualBuilder.class); |
17 | |
18 | CopyModule.addCopy(binder(), CopyDesignDecisionGenotype.class); |
19 | |
20 | } |
21 | |
22 | } |