1
0
Fork 0
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:
oblonski 2013-12-05 09:57:10 +01:00
parent 41018148ef
commit 8566b8cdac

View file

@ -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.
// *