mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
replace param strategyName by strategyId
This commit is contained in:
parent
44d0efdd54
commit
527ca56d04
2 changed files with 2 additions and 2 deletions
|
|
@ -205,7 +205,7 @@ public class VehicleRoutingAlgorithm {
|
|||
SearchStrategy strategy = searchStrategyManager.getRandomStrategy();
|
||||
DiscoveredSolution discoveredSolution = strategy.run(problem, solutions);
|
||||
memorizeIfBestEver(discoveredSolution);
|
||||
selectedStrategy(strategy.getName(),problem, solutions);
|
||||
selectedStrategy(strategy.getId(),problem, solutions);
|
||||
if(terminationManager.isPrematureBreak(discoveredSolution)){
|
||||
logger.info("premature algorithm termination at iteration "+ (i+1));
|
||||
noIterationsThisAlgoIsRunning = (i+1);
|
||||
|
|
|
|||
|
|
@ -26,6 +26,6 @@ import jsprit.core.problem.solution.VehicleRoutingProblemSolution;
|
|||
|
||||
public interface StrategySelectedListener extends VehicleRoutingAlgorithmListener{
|
||||
|
||||
void informSelectedStrategy(String strategyName, VehicleRoutingProblem problem, Collection<VehicleRoutingProblemSolution> solutions);
|
||||
void informSelectedStrategy(String strategyId, VehicleRoutingProblem problem, Collection<VehicleRoutingProblemSolution> solutions);
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue