mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
replace getNuIteration with getMaxIterstions
This commit is contained in:
parent
3dd7706204
commit
7b578d3ce6
2 changed files with 2 additions and 2 deletions
|
|
@ -109,7 +109,7 @@ public class ExperimentalSchrimpfAcceptance implements SolutionAcceptor, Iterati
|
||||||
logger.info("prepare schrimpfAcceptanceFunction, i.e. determine initial threshold");
|
logger.info("prepare schrimpfAcceptanceFunction, i.e. determine initial threshold");
|
||||||
logger.info("start random-walk (see randomWalk.xml)");
|
logger.info("start random-walk (see randomWalk.xml)");
|
||||||
double now = System.currentTimeMillis();
|
double now = System.currentTimeMillis();
|
||||||
this.nOfTotalIterations = algorithm.getNuOfIterations();
|
this.nOfTotalIterations = algorithm.getMaxIterations();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* randomWalk to determine standardDev
|
* randomWalk to determine standardDev
|
||||||
|
|
|
||||||
|
|
@ -268,7 +268,7 @@ public class TestAlgorithmReader {
|
||||||
@Test
|
@Test
|
||||||
public void whenCreatingAlgorithm_nOfIterationsIsReadCorrectly(){
|
public void whenCreatingAlgorithm_nOfIterationsIsReadCorrectly(){
|
||||||
VehicleRoutingAlgorithm algo = VehicleRoutingAlgorithms.createAlgorithm(vrp, config);
|
VehicleRoutingAlgorithm algo = VehicleRoutingAlgorithms.createAlgorithm(vrp, config);
|
||||||
assertEquals(10, algo.getNuOfIterations());
|
assertEquals(10, algo.getMaxIterations());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue