From 632ce5b5946e2aa498994c4bf7855f342c103db7 Mon Sep 17 00:00:00 2001 From: jsprit Date: Wed, 26 Feb 2014 05:31:00 +0100 Subject: [PATCH] Update SchrimpfAcceptanceTest.java --- .../core/algorithm/acceptor/SchrimpfAcceptanceTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jsprit-core/src/test/java/jsprit/core/algorithm/acceptor/SchrimpfAcceptanceTest.java b/jsprit-core/src/test/java/jsprit/core/algorithm/acceptor/SchrimpfAcceptanceTest.java index 48b3604f..fff5a680 100644 --- a/jsprit-core/src/test/java/jsprit/core/algorithm/acceptor/SchrimpfAcceptanceTest.java +++ b/jsprit-core/src/test/java/jsprit/core/algorithm/acceptor/SchrimpfAcceptanceTest.java @@ -92,7 +92,7 @@ public class SchrimpfAcceptanceTest { schrimpfAcceptance.setInitialThreshold(0.5); schrimpfAcceptance.informIterationStarts(500, mock(VehicleRoutingProblem.class), Collections.emptyList()); //according to the acceptance-function, it should just accept every solution less than 2.0 + 0.15749013123 - //threshold(1000) = 0.15749013123 + //threshold(500) = 0.15749013123 boolean accepted = schrimpfAcceptance.acceptSolution(memory, createSolutionWithCost(2.15748)); assertTrue(accepted); } @@ -103,7 +103,7 @@ public class SchrimpfAcceptanceTest { schrimpfAcceptance.setInitialThreshold(0.5); schrimpfAcceptance.informIterationStarts(500, mock(VehicleRoutingProblem.class), Collections.emptyList()); //according to the acceptance-function, it should just accept every solution less than 2.0 + 0.15749013123 - //threshold(1000) = 0.15749013123 + //threshold(500) = 0.15749013123 boolean accepted = schrimpfAcceptance.acceptSolution(memory, createSolutionWithCost(2.1575)); assertFalse(accepted); }