mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
refine test
This commit is contained in:
parent
b4d174ccda
commit
63270cd557
1 changed files with 1 additions and 1 deletions
|
|
@ -167,7 +167,7 @@ public class RefuseCollectionTest {
|
||||||
vrpBuilder.setRoutingCost(matrixBuilder.build());
|
vrpBuilder.setRoutingCost(matrixBuilder.build());
|
||||||
VehicleRoutingProblem vrp = vrpBuilder.build();
|
VehicleRoutingProblem vrp = vrpBuilder.build();
|
||||||
VehicleRoutingAlgorithm vra = new GreedySchrimpfFactory().createAlgorithm(vrp);
|
VehicleRoutingAlgorithm vra = new GreedySchrimpfFactory().createAlgorithm(vrp);
|
||||||
vra.setPrematureBreak(10);
|
vra.setPrematureBreak(100);
|
||||||
Collection<VehicleRoutingProblemSolution> solutions = vra.searchSolutions();
|
Collection<VehicleRoutingProblemSolution> solutions = vra.searchSolutions();
|
||||||
|
|
||||||
assertEquals(397.0,Solutions.getBest(solutions).getCost(),0.01);
|
assertEquals(397.0,Solutions.getBest(solutions).getCost(),0.01);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue