mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
fix schrimpfAcceptance to read url instead of url.getFile()
This commit is contained in:
parent
3ae0fd52ef
commit
77ec47cf2a
1 changed files with 2 additions and 2 deletions
|
|
@ -107,7 +107,7 @@ public class SchrimpfAcceptance implements SolutionAcceptor, IterationStartsList
|
||||||
reset();
|
reset();
|
||||||
logger.info("---------------------------------------------------------------------");
|
logger.info("---------------------------------------------------------------------");
|
||||||
logger.info("prepare schrimpfAcceptanceFunction, i.e. determine initial threshold");
|
logger.info("prepare schrimpfAcceptanceFunction, i.e. determine initial threshold");
|
||||||
logger.info("start random-walk (see algorith-config at scr/main/resources/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.getNuOfIterations();
|
||||||
|
|
||||||
|
|
@ -118,7 +118,7 @@ public class SchrimpfAcceptance implements SolutionAcceptor, IterationStartsList
|
||||||
|
|
||||||
URL resource = Resource.getAsURL("randomWalk.xml");
|
URL resource = Resource.getAsURL("randomWalk.xml");
|
||||||
AlgorithmConfig algorithmConfig = new AlgorithmConfig();
|
AlgorithmConfig algorithmConfig = new AlgorithmConfig();
|
||||||
new AlgorithmConfigXmlReader(algorithmConfig).read(resource.getPath());
|
new AlgorithmConfigXmlReader(algorithmConfig).read(resource);
|
||||||
VehicleRoutingAlgorithm vra = VehicleRoutingAlgorithms.createAlgorithm(problem, algorithmConfig);
|
VehicleRoutingAlgorithm vra = VehicleRoutingAlgorithms.createAlgorithm(problem, algorithmConfig);
|
||||||
vra.setNuOfIterations(nOfRandomWalks);
|
vra.setNuOfIterations(nOfRandomWalks);
|
||||||
vra.getAlgorithmListeners().addListener(new IterationEndsListener() {
|
vra.getAlgorithmListeners().addListener(new IterationEndsListener() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue