optaplanner-core/src/main/java/org/optaplanner/core/impl/phase/scope/AbstractPhaseScope.java
public void reset() {
        bestSolutionStepIndex = -1;
        // TODO Usage of solverScope.getBestScore() would be better performance wise but is null with a uninitialized score
        startingScore = solverScope.calculateScore();
        if (getLastCompletedStepScope().getStepIndex() < 0) {
            getLastCompletedStepScope().setScore(startingScore);
        }
    }
public void reset() {
        bestSolutionStepIndex = -1;
        // TODO Usage of solverScope.getBestScore() would be better performance wise but is null with a uninitialized score
        startingScore = solverScope.calculateScore();
        if (getLastCompletedStepScope().getStepIndex() < 0) {
            getLastCompletedStepScope().setScore(startingScore);
        }
    }
public void reset ( ) { bestSolutionStepIndex = - 1 ; // TODO Usage of solverScope.getBestScore() would be better performance wise but is null with a uninitialized score startingScore = solverScope . calculateScore ( ) ; if ( getLastCompletedStepScope ( ) . getStepIndex ( ) < 0 ) { getLastCompletedStepScope ( ) . setScore ( startingScore ) ; } }
************************************************************************
************************************************************************