public double calculateAcceptChance(MoveScope moveScope) {
LocalSearchSolverPhaseScope localSearchSolverPhaseScope = moveScope.getLocalSearchStepScope().getLocalSearchSolverPhaseScope();
Score lastStepScore = localSearchSolverPhaseScope.getLastCompletedLocalSearchStepScope().getScore();
Score moveScore = moveScope.getScore();
if (moveScore.compareTo(lastStepScore) > 0) {
return 1.0;
}
Score scoreDifference = lastStepScore.subtract(moveScore);
// TODO don't abuse translateScoreToGraphValue
Double diff = localSearchSolverPhaseScope.getScoreDefinition().translateScoreToGraphValue(scoreDifference);