public double calculateAcceptChance(MoveScope moveScope) {
LocalSearchSolverScope localSearchSolverScope = moveScope.getLocalSearchStepScope().getLocalSearchSolverScope();
Score lastStepScore = localSearchSolverScope.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 = localSearchSolverScope.getScoreDefinition().translateScoreToGraphValue(scoreDifference);