Examples of Plotter


Examples of jsprit.analysis.toolbox.Plotter

    SolutionPrinter.print(bestSolution);
   
    /*
     * plot
     */
    Plotter plotter = new Plotter(problem,bestSolution);
    plotter.setLabel(Label.SIZE);
    plotter.plot("output/solution.png", "solution");

  }
View Full Code Here

Examples of jsprit.analysis.toolbox.Plotter

    vra.getAlgorithmListeners().addListener(new AlgorithmSearchProgressChartListener("output/progress.png"));
    Collection<VehicleRoutingProblemSolution> solutions = vra.searchSolutions();
   
    SolutionPrinter.print(Solutions.bestOf(solutions));
   
    new Plotter(vrp, Solutions.bestOf(solutions)).plot("output/p01_solution.png", "p01");
   
    new GraphStreamViewer(vrp, Solutions.bestOf(solutions)).setRenderDelay(100).display();
   
  }
View Full Code Here

Examples of jsprit.analysis.toolbox.Plotter

    SolutionPrinter.print(problem, bestSolution, SolutionPrinter.Print.VERBOSE);
   
    /*
     * plot problem without solution
     */
    Plotter problemPlotter = new Plotter(problem);
    problemPlotter.plotShipments(true);
    problemPlotter.setLabel(jsprit.analysis.toolbox.Plotter.Label.SIZE);
    problemPlotter.plot("output/transportOfDisabledPeopleExample_problem.png", "disabled people tp");

        Plotter solutionPlotter = new Plotter(problem,Solutions.bestOf(solutions));
        solutionPlotter.plotShipments(true);
        solutionPlotter.setLabel(jsprit.analysis.toolbox.Plotter.Label.SIZE);
        solutionPlotter.plot("output/transportOfDisabledPeopleExample_solution.png", "disabled people tp");

    new GraphStreamViewer(problem).labelWith(Label.ID).setRenderDelay(100).setRenderShipments(true).display();
   
    new GraphStreamViewer(problem,Solutions.bestOf(solutions)).labelWith(Label.ACTIVITY).setRenderDelay(100).setRenderShipments(true).display();
   
View Full Code Here

Examples of jsprit.analysis.toolbox.Plotter

    VehicleRoutingProblemSolution best = Solutions.bestOf(solutions);
   
    SolutionPrinter.print(vrp, best, SolutionPrinter.Print.VERBOSE);
   
   
    Plotter plotter = new Plotter(vrp,best);
    plotter.plot("output/cn14.png", "cn14");
   
    new GraphStreamViewer(vrp, best).setRenderDelay(100).display();
  }
View Full Code Here

Examples of jsprit.analysis.toolbox.Plotter

    SolutionPrinter.print(bestSolution);
   
    /*
     * plot problem without solution
     */
    Plotter problemPlotter = new Plotter(problem);
    problemPlotter.plotShipments(true);
    problemPlotter.plot("output/enRoutePickupAndDeliveryWithMultipleLocationsExample_problem.png", "en-route pickup and delivery");
   
    /*
     * plot problem with solution
     */
    Plotter solutionPlotter = new Plotter(problem,Arrays.asList(Solutions.bestOf(solutions).getRoutes().iterator().next()));
    solutionPlotter.plotShipments(true);
    solutionPlotter.plot("output/enRoutePickupAndDeliveryWithMultipleLocationsExample_solution.png", "en-route pickup and delivery");
   
    new GraphStreamViewer(problem,Solutions.bestOf(solutions)).labelWith(Label.ACTIVITY).setRenderDelay(100).setRenderShipments(true).display();
   
  }
View Full Code Here

Examples of jsprit.analysis.toolbox.Plotter

        Collection<VehicleRoutingProblemSolution> solutions = vra.searchSolutions();
        VehicleRoutingProblemSolution solution = Solutions.bestOf(solutions);

        SolutionPrinter.print(skillProblem, solution, SolutionPrinter.Print.VERBOSE);

        new Plotter(skillProblem,solution).plot("output/skill_solution","solomon_with_skills");

        new VrpXMLWriter(skillProblem,solutions).write("output/solomon_with_skills");
    }
View Full Code Here

Examples of jsprit.analysis.toolbox.Plotter

    SolutionPrinter.print(bestSolution);
   
    /*
     * plot
     */
    Plotter problemPlotter = new Plotter(problem);
    problemPlotter.plotShipments(true);
    problemPlotter.plot("output/simpleMixedEnRoutePickupAndDeliveryExample_problem.png", "en-route pd and depot bounded deliveries");
   
    Plotter solutionPlotter = new Plotter(problem,Solutions.bestOf(solutions));
    solutionPlotter.plotShipments(true);
    solutionPlotter.plot("output/simpleMixedEnRoutePickupAndDeliveryExample_solution.png", "en-route pd and depot bounded deliveries");
   
  }
View Full Code Here

Examples of jsprit.analysis.toolbox.Plotter

        Collection<VehicleRoutingProblemSolution> solutions = vra.searchSolutions();

        SolutionPrinter.print(vrp, Solutions.bestOf(solutions), SolutionPrinter.Print.VERBOSE);

        new Plotter(vrp, Solutions.bestOf(solutions)).plot("output/plot","plot");
    }
View Full Code Here

Examples of jsprit.analysis.toolbox.Plotter

    /*
     * Finally, the problem can be built. By default, transportCosts are crowFlyDistances (as usually used for vrp-instances).
     */
    VehicleRoutingProblem vrp = vrpBuilder.build();
   
    new Plotter(vrp).plot("output/solomon_C101_open.png", "C101");
   
    /*
     * Define the required vehicle-routing algorithms to solve the above problem.
     *
     * The algorithm can be defined and configured in an xml-file.
View Full Code Here

Examples of jsprit.analysis.toolbox.Plotter

    SolutionPrinter.print(bestSolution);
   
    /*
     * plot
     */
    new Plotter(problem,bestSolution).plot("output/solution.png", "solution");
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.