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:46 +01:00
parent 632ce5b594
commit decd09037a

View file

@ -68,7 +68,7 @@ public class SchrimpfAcceptanceTest {
@Test @Test
public void respectsTheNonZeroThreshold_usingBetterButBelowTheThresholdCostSolution() { public void respectsTheNonZeroThreshold_usingBetterButBelowTheThresholdCostSolution() {
schrimpfAcceptance.setInitialThreshold(0.5); schrimpfAcceptance.setInitialThreshold(0.5);
//new solution also be in between 2.0 and 2.5, but it is even better than 2.0 --> thus true //new solution can also be in between 2.0 and 2.5, but it is even better than 2.0 --> thus true
assertTrue("Better cost solution (1.9 < 2.0) should not be accepted since the better cost is still below the threshold", schrimpfAcceptance.acceptSolution(memory, createSolutionWithCost(1.9))); assertTrue("Better cost solution (1.9 < 2.0) should not be accepted since the better cost is still below the threshold", schrimpfAcceptance.acceptSolution(memory, createSolutionWithCost(1.9)));
} }