Skip to content

Commit

Permalink
Remove exception
Browse files Browse the repository at this point in the history
  • Loading branch information
dhadka committed May 27, 2024
1 parent dd7c335 commit 9d88a46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
package org.moeaframework.benchmarks;

import org.moeaframework.benchmarks.WDS.WDSInstance;
import org.moeaframework.core.FrameworkException;
import org.moeaframework.core.spi.RegisteredProblemProvider;

public class BenchmarkProvider extends RegisteredProblemProvider {
Expand All @@ -32,18 +31,11 @@ public BenchmarkProvider() {
register("HBV", HBV::new, "./pf/HBV.reference");
register("LRGV", LRGV::new, null);
register("LakeProblem", LakeProblem::new, "./pf/LakeProblem.reference");
register("Radar", Radar::new, null);

for (WDSInstance variant : WDSInstance.values()) {
register("WDS(" + variant.getName() + ")", () -> new WDS(variant), "./pf/WDS/" + variant.getName() + ".reference");
}

register("Radar", () -> {
try {
return new Radar();
} catch (Exception e) {
throw new FrameworkException("failed to start Radar problem", e);
}
}, null);
}

}
2 changes: 1 addition & 1 deletion src/main/java/org/moeaframework/benchmarks/Radar.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

public class Radar extends ExternalProblem {

public Radar() throws Exception {
public Radar() {
super(createBuilder());
}

Expand Down

0 comments on commit 9d88a46

Please sign in to comment.