mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
commit
1fa6ffda50
1 changed files with 1 additions and 9 deletions
|
|
@ -225,7 +225,7 @@ public class VehicleRoutingAlgorithm {
|
||||||
logger.info("algorithmStarts func call");
|
logger.info("algorithmStarts func call");
|
||||||
algorithmStarts(problem, solutions);
|
algorithmStarts(problem, solutions);
|
||||||
bestEver = Solutions.bestOf(solutions);
|
bestEver = Solutions.bestOf(solutions);
|
||||||
logger.info("algorithmStarts func call finished successfully best till now cost: {}, routes: {}, unassigned: {}", bestEver.getCost(), bestEver.getRoutes().size(), bestEver.getUnassignedJobs().size());
|
logger.info("algorithm iterations start");
|
||||||
if (logger.isTraceEnabled()) {
|
if (logger.isTraceEnabled()) {
|
||||||
log(solutions);
|
log(solutions);
|
||||||
}
|
}
|
||||||
|
|
@ -234,15 +234,7 @@ public class VehicleRoutingAlgorithm {
|
||||||
logger.debug("start iteration: {}", i);
|
logger.debug("start iteration: {}", i);
|
||||||
counter.incCounter();
|
counter.incCounter();
|
||||||
SearchStrategy strategy = searchStrategyManager.getRandomStrategy();
|
SearchStrategy strategy = searchStrategyManager.getRandomStrategy();
|
||||||
if (i % 10 == 0) {
|
|
||||||
logger.info("selected strategy {}", strategy.getName());
|
|
||||||
}
|
|
||||||
|
|
||||||
DiscoveredSolution discoveredSolution = strategy.run(problem, solutions);
|
DiscoveredSolution discoveredSolution = strategy.run(problem, solutions);
|
||||||
if (i % 10 == 0) {
|
|
||||||
logger.info("discoveredSolution: cost: {}, routes: {}, unassigned: {}", discoveredSolution.getSolution().getCost(), discoveredSolution.getSolution().getRoutes().size(), discoveredSolution.getSolution().getUnassignedJobs().size());
|
|
||||||
}
|
|
||||||
|
|
||||||
if (logger.isTraceEnabled()) {
|
if (logger.isTraceEnabled()) {
|
||||||
log(discoveredSolution);
|
log(discoveredSolution);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue