protected void checkPickEarly(LocalSearchMoveScope moveScope) {
switch (pickEarlyType) {
case NEVER:
break;
case FIRST_BEST_SCORE_IMPROVING:
Score bestScore = moveScope.getStepScope().getPhaseScope().getBestScore();
if (scoreComparator.compare(moveScope.getScore(), bestScore) > 0) {
earlyPickedMoveScope = moveScope;
}
break;
case FIRST_LAST_STEP_SCORE_IMPROVING:
Score lastStepScore = moveScope.getStepScope().getPhaseScope()
.getLastCompletedStepScope().getScore();
if (scoreComparator.compare(moveScope.getScore(), lastStepScore) > 0) {
earlyPickedMoveScope = moveScope;
}
break;