mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
throw exception
This commit is contained in:
parent
4f3cd5e684
commit
5051b6960b
1 changed files with 12 additions and 9 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue