1
0
Fork 0
mirror of https://github.com/graphhopper/jsprit.git synced 2020-01-24 07:45:05 +01:00

throw exception

This commit is contained in:
oblonski 2015-10-06 12:35:50 +02:00
parent 4f3cd5e684
commit 5051b6960b

View file

@ -407,8 +407,7 @@ public class ComputationalLaboratory {
for (final BenchmarkInstance p : benchmarkInstances) {
for (int run = 0; run < runs; run++) {
final int r = run;
// runAlgorithm(p, algorithm, r+1);
try {
executor.submit(new Runnable() {
@Override
@ -418,6 +417,10 @@ public class ComputationalLaboratory {
});
}
catch (Exception e){
throw new RuntimeException(e);
}
}
}
}
try {
@ -425,7 +428,7 @@ public class ComputationalLaboratory {
executor.awaitTermination(Long.MAX_VALUE, TimeUnit.MINUTES);
} catch (InterruptedException e) {
e.printStackTrace();
throw new RuntimeException(e);
}
System.out.println("benchmarking done [time=" + (System.currentTimeMillis() - startTime) / 1000 + "sec]");
informEnd();