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

graph vis

This commit is contained in:
Stefan Schroeder 2014-11-14 16:38:56 +01:00
parent 6a1631fc9a
commit 006aa561cf
4 changed files with 425 additions and 54 deletions

View file

@ -0,0 +1,27 @@
package jsprit.analysis.toolbox;
import jsprit.core.algorithm.VehicleRoutingAlgorithm;
import jsprit.core.algorithm.box.GreedySchrimpfFactory;
import jsprit.core.problem.VehicleRoutingProblem;
import jsprit.core.problem.io.VrpXMLReader;
import java.io.File;
/**
* Created by stefan on 14.11.14.
*/
public class AnotherGraphTest {
public static void main(String[] args) {
VehicleRoutingProblem.Builder vrpBuilder = VehicleRoutingProblem.Builder.newInstance();
new VrpXMLReader(vrpBuilder).read("/Users/stefan/Documents/git-repositories/jsprit/jsprit-examples/input/cordeau01.xml");
VehicleRoutingProblem vrp = vrpBuilder.build();
// GraphStreamEventWriter eventWriter = new GraphStreamEventWriter(new File("output/events.txt"));
VehicleRoutingAlgorithm vra = new GreedySchrimpfFactory().createAlgorithm(vrp);
// vra.addListener(eventWriter);
vra.searchSolutions();
}
}