From b7c75a2e058436f9af2910a5fc5027e86691735b Mon Sep 17 00:00:00 2001 From: oblonski <4sschroeder@gmail.com> Date: Wed, 15 Jan 2014 09:08:44 -0500 Subject: [PATCH] add another algo-config for vrp with heterogeneous fleet --- ...hmConfig_considerFixedCosts_routeLevel.xml | 76 +++++++++++++++++++ .../jsprit/examples/HVRPBenchmarkExample.java | 3 + 2 files changed, 79 insertions(+) create mode 100755 jsprit-examples/input/algorithmConfig_considerFixedCosts_routeLevel.xml diff --git a/jsprit-examples/input/algorithmConfig_considerFixedCosts_routeLevel.xml b/jsprit-examples/input/algorithmConfig_considerFixedCosts_routeLevel.xml new file mode 100755 index 00000000..aa87322e --- /dev/null +++ b/jsprit-examples/input/algorithmConfig_considerFixedCosts_routeLevel.xml @@ -0,0 +1,76 @@ + + + + + 2000 + + + + route + true + + + + + 1 + + + + + 0.05 + 20 + + + + + + 0.5 + + + + + + 0.5 + + + + + + + + + + 0.3 + + + + + + 0.5 + + + + + + + diff --git a/jsprit-examples/src/main/java/jsprit/examples/HVRPBenchmarkExample.java b/jsprit-examples/src/main/java/jsprit/examples/HVRPBenchmarkExample.java index 8dcfa816..42302f57 100644 --- a/jsprit-examples/src/main/java/jsprit/examples/HVRPBenchmarkExample.java +++ b/jsprit-examples/src/main/java/jsprit/examples/HVRPBenchmarkExample.java @@ -38,6 +38,9 @@ public class HVRPBenchmarkExample { vrpBuilder.addPenaltyVehicles(10.0); VehicleRoutingProblem vrp = vrpBuilder.build(); + //try also input//jsprit-examples/input/algorithmConfig_considerFixedCosts_routeLevel.xml + //results might even be a bit better, but it is slower, since it checks insertion on routeLevel + //rather than on local level VehicleRoutingAlgorithm vra = VehicleRoutingAlgorithms.readAndCreateAlgorithm(vrp, "input/algorithmConfig_considerFixedCosts.xml"); vra.setNuOfIterations(10000); // vra.setPrematureAlgorithmTermination(new IterationWithoutImprovementTermination(500));