From 458b3cfc8784f5a7daafc3bb66042e8f21ef3707 Mon Sep 17 00:00:00 2001 From: oblonski <4sschroeder@gmail.com> Date: Fri, 21 Jun 2013 11:35:57 +0200 Subject: [PATCH] modify example according to changes in VehicleTypeImpl --- jsprit-examples/input/algorithmConfig.xml | 29 ++++++++++--------- .../java/examples/MultipleDepotExample.java | 2 -- ...ltipleDepotExampleWithPenaltyVehicles.java | 2 -- 3 files changed, 15 insertions(+), 18 deletions(-) diff --git a/jsprit-examples/input/algorithmConfig.xml b/jsprit-examples/input/algorithmConfig.xml index 19d8d042..dd27c419 100755 --- a/jsprit-examples/input/algorithmConfig.xml +++ b/jsprit-examples/input/algorithmConfig.xml @@ -22,7 +22,7 @@ - 2000 + 10000 @@ -31,31 +31,32 @@ 1 - + - - 0.0 - 100 + + 0.1 + 100 - 0.15 + 0.3 - + - 0.0 + 0.2 - + + - - 0.1 + + 0.15 @@ -69,14 +70,14 @@ - - 0.025 + + 0.05 - 0.8 + 0.6 diff --git a/jsprit-examples/src/main/java/examples/MultipleDepotExample.java b/jsprit-examples/src/main/java/examples/MultipleDepotExample.java index de1db00f..c05183bb 100644 --- a/jsprit-examples/src/main/java/examples/MultipleDepotExample.java +++ b/jsprit-examples/src/main/java/examples/MultipleDepotExample.java @@ -80,8 +80,6 @@ public class MultipleDepotExample { * solve the problem */ VehicleRoutingAlgorithm vra = VehicleRoutingAlgorithms.readAndCreateAlgorithm(vrp, "input/algorithmConfig.xml"); - vra.setNuOfIterations(10000); - vra.setPrematureBreak(100); vra.getAlgorithmListeners().addListener(new StopWatch(),Priority.HIGH); vra.getAlgorithmListeners().addListener(new AlgorithmSearchProgressChartListener("output/progress.png")); Collection solutions = vra.searchSolutions(); diff --git a/jsprit-examples/src/main/java/examples/MultipleDepotExampleWithPenaltyVehicles.java b/jsprit-examples/src/main/java/examples/MultipleDepotExampleWithPenaltyVehicles.java index acd61039..dc43639e 100644 --- a/jsprit-examples/src/main/java/examples/MultipleDepotExampleWithPenaltyVehicles.java +++ b/jsprit-examples/src/main/java/examples/MultipleDepotExampleWithPenaltyVehicles.java @@ -106,8 +106,6 @@ public class MultipleDepotExampleWithPenaltyVehicles { * solve the problem */ VehicleRoutingAlgorithm vra = VehicleRoutingAlgorithms.readAndCreateAlgorithm(vrp, "input/algorithmConfig.xml"); - vra.setNuOfIterations(10000); - vra.setPrematureBreak(1000); vra.getAlgorithmListeners().addListener(new StopWatch(),Priority.HIGH); vra.getAlgorithmListeners().addListener(new AlgorithmSearchProgressChartListener("output/progress.png")); Collection solutions = vra.searchSolutions();