mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
plot solution as well
This commit is contained in:
parent
8d04e90725
commit
b3cc891cc5
1 changed files with 6 additions and 8 deletions
|
|
@ -215,13 +215,11 @@ public class TransportOfDisabledPeople {
|
||||||
problemPlotter.plotShipments(true);
|
problemPlotter.plotShipments(true);
|
||||||
problemPlotter.setLabel(jsprit.analysis.toolbox.Plotter.Label.SIZE);
|
problemPlotter.setLabel(jsprit.analysis.toolbox.Plotter.Label.SIZE);
|
||||||
problemPlotter.plot("output/transportOfDisabledPeopleExample_problem.png", "disabled people tp");
|
problemPlotter.plot("output/transportOfDisabledPeopleExample_problem.png", "disabled people tp");
|
||||||
//
|
|
||||||
// /*
|
Plotter solutionPlotter = new Plotter(problem,Solutions.bestOf(solutions));
|
||||||
// * plot problem with solution
|
solutionPlotter.plotShipments(true);
|
||||||
// */
|
solutionPlotter.setLabel(jsprit.analysis.toolbox.Plotter.Label.SIZE);
|
||||||
// Plotter solutionPlotter = new Plotter(problem,Arrays.asList(Solutions.bestOf(solutions).getRoutes().iterator().next()));
|
solutionPlotter.plot("output/transportOfDisabledPeopleExample_solution.png", "disabled people tp");
|
||||||
// solutionPlotter.plotShipments(true);
|
|
||||||
// solutionPlotter.plot("output/enRoutePickupAndDeliveryWithMultipleLocationsExample_solution.png", "en-route pickup and delivery");
|
|
||||||
|
|
||||||
new GraphStreamViewer(problem).labelWith(Label.ID).setRenderDelay(100).setRenderShipments(true).display();
|
new GraphStreamViewer(problem).labelWith(Label.ID).setRenderDelay(100).setRenderShipments(true).display();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue