1
0
Fork 0
mirror of https://github.com/graphhopper/jsprit.git synced 2020-01-24 07:45:05 +01:00

Update SchrimpfAcceptanceTest.java

This commit is contained in:
jsprit 2014-02-26 05:31:00 +01:00
parent 19172f5084
commit 632ce5b594

View file

@ -92,7 +92,7 @@ public class SchrimpfAcceptanceTest {
schrimpfAcceptance.setInitialThreshold(0.5);
schrimpfAcceptance.informIterationStarts(500, mock(VehicleRoutingProblem.class), Collections.<VehicleRoutingProblemSolution>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.<VehicleRoutingProblemSolution>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);
}