コード例 #1
0
 public void phaseEnded(ConstructionHeuristicPhaseScope<Solution_> phaseScope) {
   super.phaseEnded(phaseScope);
   Solution_ newBestSolution = phaseScope.getScoreDirector().cloneWorkingSolution();
   bestSolutionRecaller.updateBestSolution(phaseScope.getSolverScope(), newBestSolution);
   entityPlacer.phaseEnded(phaseScope);
   decider.phaseEnded(phaseScope);
   phaseScope.endingNow();
   logger.info(
       "Construction Heuristic phase ({}) ended: time spent ({}), best score ({}),"
           + " score calculation speed ({}/sec), step total ({}).",
       phaseIndex,
       phaseScope.calculateSolverTimeMillisSpentUpToNow(),
       phaseScope.getBestScore(),
       phaseScope.getPhaseScoreCalculationSpeed(),
       phaseScope.getNextStepIndex());
 }
コード例 #2
0
 public void stepEnded(ConstructionHeuristicStepScope<Solution_> stepScope) {
   super.stepEnded(stepScope);
   entityPlacer.stepEnded(stepScope);
   decider.stepEnded(stepScope);
   if (logger.isDebugEnabled()) {
     long timeMillisSpent = stepScope.getPhaseScope().calculateSolverTimeMillisSpentUpToNow();
     logger.debug(
         "    CH step ({}), time spent ({}), score ({}), selected move count ({}),"
             + " picked move ({}).",
         stepScope.getStepIndex(),
         timeMillisSpent,
         stepScope.getScore(),
         stepScope.getSelectedMoveCount(),
         stepScope.getStepString());
   }
 }
コード例 #3
0
 @Override
 public void solvingEnded(DefaultSolverScope<Solution_> solverScope) {
   super.solvingEnded(solverScope);
   entityPlacer.solvingEnded(solverScope);
   decider.solvingEnded(solverScope);
 }
コード例 #4
0
 public void stepStarted(ConstructionHeuristicStepScope<Solution_> stepScope) {
   super.stepStarted(stepScope);
   entityPlacer.stepStarted(stepScope);
   decider.stepStarted(stepScope);
 }
コード例 #5
0
 public void phaseStarted(ConstructionHeuristicPhaseScope<Solution_> phaseScope) {
   super.phaseStarted(phaseScope);
   entityPlacer.phaseStarted(phaseScope);
   decider.phaseStarted(phaseScope);
 }