@ Override protected void updateCurrentSolution ( SolutionType solution , Evaluation evaluation , Validation validation ) { // call super super . updateCurrentSolution ( solution , evaluation , validation ) ; // clear evaluated move cache if ( cache != null ) { cache . clear ( ) ; } }
When updating the current solution in a neighbourhood search the evaluated move cache is cleared because it is no longer valid for the new current solution .