From dc09084fd67517ad18b11b0b9c35705c6667c1f9 Mon Sep 17 00:00:00 2001 From: oblonski <4sschroeder@gmail.com> Date: Fri, 16 May 2014 16:24:27 +0200 Subject: [PATCH] switched algo from GreedySchrimpf to Schrimpf --- .../java/jsprit/core/algorithm/RefuseCollection_IT.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jsprit-core/src/test/java/jsprit/core/algorithm/RefuseCollection_IT.java b/jsprit-core/src/test/java/jsprit/core/algorithm/RefuseCollection_IT.java index 5ced2fdf..603a8b04 100644 --- a/jsprit-core/src/test/java/jsprit/core/algorithm/RefuseCollection_IT.java +++ b/jsprit-core/src/test/java/jsprit/core/algorithm/RefuseCollection_IT.java @@ -26,7 +26,7 @@ import java.io.IOException; import java.util.Collection; import java.util.Map; -import jsprit.core.algorithm.box.GreedySchrimpfFactory; +import jsprit.core.algorithm.box.SchrimpfFactory; import jsprit.core.algorithm.termination.IterationWithoutImprovementTermination; import jsprit.core.problem.VehicleRoutingProblem; import jsprit.core.problem.VehicleRoutingProblem.FleetSize; @@ -186,13 +186,13 @@ public class RefuseCollection_IT { vrpBuilder.setRoutingCost(matrixBuilder.build()); VehicleRoutingProblem vrp = vrpBuilder.build(); - VehicleRoutingAlgorithm vra = new GreedySchrimpfFactory().createAlgorithm(vrp); + VehicleRoutingAlgorithm vra = new SchrimpfFactory().createAlgorithm(vrp); vra.setPrematureAlgorithmTermination(new IterationWithoutImprovementTermination(100)); Collection solutions = vra.searchSolutions(); SolutionPrinter.print(vrp, Solutions.bestOf(solutions), Print.VERBOSE); - assertEquals(397.0,Solutions.bestOf(solutions).getCost(),0.01); + assertEquals(397.0,Solutions.bestOf(solutions).getCost(),40.); assertEquals(2,Solutions.bestOf(solutions).getRoutes().size()); }