Skip to content

Commit

Permalink
exceptions must pass through to handle them correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
rsfzi committed Jan 11, 2025
1 parent bf46d9a commit fc186c4
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,9 @@ public void execute() {

private void runOptimization(IEAOptimizer optimizer) {
IOptimizableProvider optimizableProvider = new OptimizableProvider(smodel);
try {
LOGGER.info("EA optimization running...");
optimizer.optimize(optimizableProvider, fitnessEvaluator, this);
LOGGER.info("EA optimization finished...");
} catch (Exception e) {
LOGGER.info("Failure during EA optimization", e);
}
LOGGER.info("EA optimization running...");
optimizer.optimize(optimizableProvider, fitnessEvaluator, this);
LOGGER.info("EA optimization finished...");
}

@Override
Expand Down

0 comments on commit fc186c4

Please sign in to comment.