Examples of plot()


Examples of jsprit.analysis.toolbox.Plotter.plot()

     * Plot solution.
     */
//    SolutionPlotter.plotSolutionAsPNG(vrp, solution, "output/pd_solomon_r101_solution.png","pd_r101");
    Plotter plotter = new Plotter(vrp, solution);
    plotter.setLabel(Label.SIZE);
    plotter.plot("output/pd_christophides_vrpnc1_solution.png","pd_vrpnc1");
 
   
    new GraphStreamViewer(vrp, solution).setRenderDelay(200).display();
   
  }
View Full Code Here

Examples of jsprit.analysis.toolbox.Plotter.plot()

   
    /*
     * plot best
     */
    Plotter plotter = new Plotter(vrp,Solutions.bestOf(dataCollector.getSolutions()));
    plotter.plot("output/bestOf.png", "bestOfR101");
   
  }
 
  private static AlgorithmConfig getAlgorithmConfig(String alpha) {
    AlgorithmConfig config = new AlgorithmConfig();
View Full Code Here

Examples of jsprit.analysis.toolbox.Plotter.plot()

     */
//    vrpBuilder.addProblemConstraint(Constraint.DELIVERIES_FIRST);
    VehicleRoutingProblem vrp = vrpBuilder.build();
   
    Plotter pblmPlotter = new Plotter(vrp);
    pblmPlotter.plot("output/solomon_C101_specifiedVehicleEndLocations_withoutTWs.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.plot()

    /*
     * Plot solution.
     */
//    SolutionPlotter.plotSolutionAsPNG(vrp, solution, "output/solomon_C101_specifiedVehicleEndLocations_solution.png","C101");
    Plotter solPlotter = new Plotter(vrp, solution);
    solPlotter.plot("output/solomon_C101_specifiedVehicleEndLocations_withoutTWs_solution.png","C101");
   
   
    new GraphStreamViewer(vrp, solution).setRenderDelay(50).labelWith(Label.ID).setEnableAutoLayout(true).display();
 
   
View Full Code Here

Examples of jsprit.analysis.toolbox.Plotter.plot()

    /*
     * plot problem without solution
     */
    Plotter problemPlotter = new Plotter(problem);
    problemPlotter.plotShipments(true);
    problemPlotter.plot("output/simpleEnRoutePickupAndDeliveryExample_problem.png", "en-route pickup and delivery");
   
    /*
     * plot problem with solution
     */
    Plotter solutionPlotter = new Plotter(problem,Solutions.bestOf(solutions).getRoutes());
View Full Code Here

Examples of jsprit.analysis.toolbox.Plotter.plot()

    /*
     * plot problem with solution
     */
    Plotter solutionPlotter = new Plotter(problem,Solutions.bestOf(solutions).getRoutes());
    solutionPlotter.plotShipments(true);
    solutionPlotter.plot("output/simpleEnRoutePickupAndDeliveryExample_solution.png", "en-route pickup and delivery");
   
    new GraphStreamViewer(problem, bestSolution).setRenderShipments(true).setRenderDelay(100).display();
  }

}
View Full Code Here

Examples of jsprit.analysis.toolbox.Plotter.plot()

    /*
     * 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.plot()

    //you may want to plot the problem
    Plotter plotter = new Plotter(bicycleMessengerProblem);
//    plotter.setBoundingBox(10000, 47500, 20000, 67500);
    plotter.plotShipments(true);
    plotter.plot("output/bicycleMessengerProblem.png", "bicycleMessenger");
   
    //and the problem as well as the solution
    Plotter plotter1 = new Plotter(bicycleMessengerProblem, Solutions.bestOf(solutions));
    plotter1.setLabel(Plotter.Label.ID);
        plotter1.plotShipments(false);
View Full Code Here

Examples of jsprit.analysis.toolbox.Plotter.plot()

    //and the problem as well as the solution
    Plotter plotter1 = new Plotter(bicycleMessengerProblem, Solutions.bestOf(solutions));
    plotter1.setLabel(Plotter.Label.ID);
        plotter1.plotShipments(false);
//    plotter1.setBoundingBox(5000, 45500, 25000, 66500);
    plotter1.plot("output/bicycleMessengerSolution.png", "bicycleMessenger");
   
    //and write out your solution in xml
//    new VrpXMLWriter(bicycleMessengerProblem, solutions).write("output/bicycleMessenger.xml");
   
View Full Code Here

Examples of net.sourceforge.gpstools.plot.SvgPlot.plot()

            Wpt[] pts) throws IOException {
        OutputStreamWriter ow = new OutputStreamWriter(os, "utf-8");
        try {
            SvgPlot plot = getPlot(x, y, title, pts);
            configurePlot(plot, x, y);
            plot.plot(ow);
            ow.flush();
        } catch (FunctionEvaluationException ex) {
            // should never happen.
            throw new Error(ex);
        }
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.