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

add bad job list

This commit is contained in:
oblonski 2014-08-09 22:48:51 +02:00
parent 632a889c4b
commit 62331ccfd9
15 changed files with 167 additions and 117 deletions

View file

@ -93,6 +93,7 @@ public class SolutionPrinter {
System.out.format("+---------------+------------------------------------------+%n");
System.out.format(leftAlignSolution, "costs",solution.getCost());
System.out.format(leftAlignSolution, "nVehicles",solution.getRoutes().size());
System.out.format(leftAlignSolution, "badJobs", solution.getBadJobs().size());
System.out.format("+----------------------------------------------------------+%n");
if(print.equals(Print.VERBOSE)){
@ -130,6 +131,10 @@ public class SolutionPrinter {
}
System.out.format("+*:=PenaltyVehicle+%n");
System.out.format("+--------------------------------------------------------------------------------------------------------------------------------+%n");
System.out.format("+*:=badJobs+%n");
for(Job j : solution.getBadJobs()){
System.out.println(j.getId());
}
}
private static String getVehicleString(VehicleRoute route) {