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

add shipment view

This commit is contained in:
Stefan Schroeder 2013-12-11 12:14:44 +01:00
parent f0c6d15852
commit be00d30fde
3 changed files with 70 additions and 18 deletions

View file

@ -20,6 +20,7 @@ import java.io.File;
import java.util.Arrays;
import java.util.Collection;
import jsprit.analysis.toolbox.GraphStreamViewer;
import jsprit.analysis.toolbox.Plotter;
import jsprit.analysis.toolbox.SolutionPrinter;
import jsprit.core.algorithm.VehicleRoutingAlgorithm;
@ -126,6 +127,8 @@ public class SimpleEnRoutePickupAndDeliveryExample {
solutionPlotter.plotShipments(true);
solutionPlotter.plot("output/simpleEnRoutePickupAndDeliveryExample_solution.png", "en-route pickup and delivery");
new GraphStreamViewer(problem).setRenderShipments(true).display();
}
}