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));