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

Merge branch 'bad-job-list'

This commit is contained in:
oblonski 2014-08-26 20:35:14 +02:00
commit 264dafd06a
31 changed files with 528 additions and 460 deletions

View file

@ -30,8 +30,10 @@ import jsprit.core.problem.vehicle.PenaltyVehicleType;
* Printer to print the details of a vehicle-routing-problem solution.
*
* @author stefan schroeder
* @deprecated use jsprit.core.reporting.SolutionPrinter instead
*
*/
@Deprecated
public class SolutionPrinter {
/**
@ -93,6 +95,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, "unassignedJobs", solution.getUnassignedJobs().size());
System.out.format("+----------------------------------------------------------+%n");
if(print.equals(Print.VERBOSE)){
@ -130,6 +133,10 @@ public class SolutionPrinter {
}
System.out.format("+*:=PenaltyVehicle+%n");
System.out.format("+--------------------------------------------------------------------------------------------------------------------------------+%n");
System.out.format("+*:=badJobs+%n");
for(Job j : solution.getUnassignedJobs()){
System.out.println(j.getId());
}
}
private static String getVehicleString(VehicleRoute route) {