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:
parent
632ce5b594
commit
decd09037a
1 changed files with 1 additions and 1 deletions
|
|
@ -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)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue