1
0
Fork 0
mirror of https://github.com/graphhopper/jsprit.git synced 2020-01-24 07:45:05 +01:00
This commit is contained in:
oblonski 2015-09-04 19:05:21 +02:00
parent 036b235d9c
commit 51b2e078ff

View file

@ -84,6 +84,8 @@ public class RegretInsertionConcurrent extends AbstractInsertionStrategy {
*
* <p>Before inserting a job, all unassigned jobs are scored according to its best- and secondBest-insertion plus additional scoring variables.
*
* @throws java.lang.RuntimeException if smth went wrong with thread execution
*
*/
@Override
public Collection<Job> insertUnassignedJobs(Collection<VehicleRoute> routes, Collection<Job> unassignedJobs) {
@ -145,7 +147,7 @@ public class RegretInsertionConcurrent extends AbstractInsertionStrategy {
catch (ExecutionException e) {
e.printStackTrace();
logger.error("Exception", e);
System.exit(1);
throw new RuntimeException(e);
}
return bestScoredJob;