graphhopper / jsprit

jsprit is a java based, open source toolkit for solving rich vehicle routing problems
https://www.graphhopper.com/open-source/
Apache License 2.0
1.64k stars 605 forks source link

Plot bug #485

Closed AmayaSasaki closed 4 years ago

AmayaSasaki commented 4 years ago

Hello,

I am running Jsprit on Windows 10 with Eclipse IDE.

In SimpleExample.java, the line new Plotter(problem,bestSolution).plot("output/plot.png","simple example"); leads to the following exception

Exception in thread "main" java.lang.NoSuchMethodError: com.graphhopper.jsprit.analysis.toolbox.Plotter$MyActivityRenderer.setBaseItemLabelGenerator(Lorg/jfree/chart/labels/XYItemLabelGenerator;)V
    at com.graphhopper.jsprit.analysis.toolbox.Plotter.getProblemRenderer(Plotter.java:383)
    at com.graphhopper.jsprit.analysis.toolbox.Plotter.createPlot(Plotter.java:414)
    at com.graphhopper.jsprit.analysis.toolbox.Plotter.plot(Plotter.java:302)
    at com.graphhopper.jsprit.analysis.toolbox.Plotter.plot(Plotter.java:280)
    at SimpleExample.main(SimpleExample.java:110)

Thanks for the help!