Class SolutionPrinter
java.lang.Object
com.graphhopper.jsprit.core.reporting.SolutionPrinter
Enhanced printer to print the details of a vehicle-routing-problem solution.
Supports all job types including EnRoutePickup and EnRouteDelivery.
- Author:
- stefan schroeder, [your name]
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnum to indicate verbose-level. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidprint(VehicleRoutingProblemSolution solution) Prints costs and #vehicles to stdout.static voidprint(VehicleRoutingProblem problem, VehicleRoutingProblemSolution solution, SolutionPrinter.Print print) Prints solution details to stdout.static voidprint(PrintWriter out, VehicleRoutingProblemSolution solution) Prints costs and #vehicles to the given writerstatic voidprint(PrintWriter out, VehicleRoutingProblem problem, VehicleRoutingProblemSolution solution, SolutionPrinter.Print print) Prints solution details to the given writer.
-
Constructor Details
-
SolutionPrinter
public SolutionPrinter()
-
-
Method Details
-
print
Prints costs and #vehicles to stdout.- Parameters:
solution- the solution to be printed
-
print
Prints costs and #vehicles to the given writer- Parameters:
out- the destination writersolution- the solution to be printed
-
print
public static void print(VehicleRoutingProblem problem, VehicleRoutingProblemSolution solution, SolutionPrinter.Print print) Prints solution details to stdout.- Parameters:
problem- the routing problemsolution- the solution to be printedprint- the verbosity level
-
print
public static void print(PrintWriter out, VehicleRoutingProblem problem, VehicleRoutingProblemSolution solution, SolutionPrinter.Print print) Prints solution details to the given writer.- Parameters:
out- the destination writerproblem- the routing problemsolution- the solution to be printedprint- the verbosity level
-