mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
write some report about problem and solution
This commit is contained in:
parent
41018148ef
commit
8566b8cdac
1 changed files with 37 additions and 0 deletions
|
|
@ -16,6 +16,7 @@
|
|||
******************************************************************************/
|
||||
package jsprit.analysis.toolbox;
|
||||
|
||||
import jsprit.core.problem.VehicleRoutingProblem;
|
||||
import jsprit.core.problem.solution.VehicleRoutingProblemSolution;
|
||||
|
||||
/**
|
||||
|
|
@ -50,6 +51,42 @@ public class SolutionPrinter {
|
|||
|
||||
}
|
||||
|
||||
private static class Jobs {
|
||||
int nServices;
|
||||
int nShipments;
|
||||
public Jobs(int nServices, int nShipments) {
|
||||
super();
|
||||
this.nServices = nServices;
|
||||
this.nShipments = nShipments;
|
||||
}
|
||||
}
|
||||
|
||||
public static void print(VehicleRoutingProblemSolution solution, VehicleRoutingProblem problem){
|
||||
System.out.println("##########");
|
||||
System.out.println("Problem:");
|
||||
System.out.println("nJobs: "+problem.getJobs().values().size());
|
||||
Jobs jobs = getNuOfJobs(problem);
|
||||
System.out.println("nServices: "+ getNuOfServices(problem));
|
||||
System.out.println("nShipments: "+ getNuOfShipments(problem));
|
||||
System.out.println("fleetsize: "+problem.getFleetSize().toString());
|
||||
System.out.println("##########");
|
||||
}
|
||||
|
||||
private static Jobs getNuOfJobs(VehicleRoutingProblem problem) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
private static String getNuOfShipments(VehicleRoutingProblem problem) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
private static String getNuOfServices(VehicleRoutingProblem problem) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
// /**
|
||||
// * Prints the details of the solution according to a print-level, i.e. Print.CONCISE or PRINT.VERBOSE.
|
||||
// *
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue