Skip to content

Commit

Permalink
added support to provide optimizables
Browse files Browse the repository at this point in the history
  • Loading branch information
rsfzi committed Jan 10, 2025
1 parent 903531b commit a3c0704
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public void execute() {
}

private void runOptimization(IEAOptimizer optimizer) {
IOptimizableProvider optimizableProvider = new OptimizableProvider();
IOptimizableProvider optimizableProvider = new OptimizableProvider(smodel);
IEAFitnessEvaluator fitnessEvaluator = new EAFitnessEvaluator();

try {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
package org.palladiosimulator.simexp.dsl.ea.launch;

import java.util.Collection;
import java.util.Collections;

import org.palladiosimulator.simexp.dsl.ea.api.IOptimizableProvider;
import org.palladiosimulator.simexp.dsl.smodel.api.IExpressionCalculator;
import org.palladiosimulator.simexp.dsl.smodel.smodel.Optimizable;
import org.palladiosimulator.simexp.dsl.smodel.smodel.Smodel;

public class OptimizableProvider implements IOptimizableProvider {
private final Smodel smodel;

public OptimizableProvider(Smodel smodel) {
this.smodel = smodel;
}

@Override
public Collection<Optimizable> getOptimizables() {
// TODO Auto-generated method stub
return null;
return Collections.unmodifiableList(smodel.getOptimizables());
}

@Override
Expand Down

0 comments on commit a3c0704

Please sign in to comment.