Why does not output of getCost Method of SolutionCostCalculator continuously decreases or remains same?

I was using my cost Calculator and also storing the output value. Here is the plot:

On x-axis is the iterationNumber and on Y-axis is the cost output at that iteration.
As we see that there is cost fluctuates over iterations.

Is it true, the Jsprit stores some of the best solution and at the end of the program, it returns the best ever solution ?
I,so far, thought it returns the solution of final iteration.

It always memorize the best ever plus the best in the final iteration. Usually, they are equal.

1 Like