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:
commit
264dafd06a
31 changed files with 528 additions and 460 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue