mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
mod solEx
This commit is contained in:
parent
f7378a4401
commit
6796d6ca7b
1 changed files with 2 additions and 2 deletions
|
|
@ -72,7 +72,7 @@ public class SolomonExample {
|
||||||
*/
|
*/
|
||||||
// VehicleRoutingAlgorithm vra = new SchrimpfFactory().createAlgorithm(vrp);
|
// VehicleRoutingAlgorithm vra = new SchrimpfFactory().createAlgorithm(vrp);
|
||||||
VehicleRoutingAlgorithm vra = VehicleRoutingAlgorithms.readAndCreateAlgorithm(vrp, "input/algorithmConfig_solomon.xml");
|
VehicleRoutingAlgorithm vra = VehicleRoutingAlgorithms.readAndCreateAlgorithm(vrp, "input/algorithmConfig_solomon.xml");
|
||||||
vra.setPrematureBreak(10);
|
|
||||||
// vra.getAlgorithmListeners().addListener(new AlgorithmSearchProgressChartListener("output/sol_progress.png"));
|
// vra.getAlgorithmListeners().addListener(new AlgorithmSearchProgressChartListener("output/sol_progress.png"));
|
||||||
/*
|
/*
|
||||||
* Solve the problem.
|
* Solve the problem.
|
||||||
|
|
@ -101,7 +101,7 @@ public class SolomonExample {
|
||||||
|
|
||||||
// GraphStream.display(vrp,100);
|
// GraphStream.display(vrp,100);
|
||||||
|
|
||||||
new GraphStreamViewer(vrp,solution).display();
|
new GraphStreamViewer(vrp,solution).setRenderDelay(100).display();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue