We know that OptaPlanner does multiple steps' calculations before selecting one step which generating the highest score to update the best solution, as the debug log shows e.g. [main] DEBUG o.o.c.i.c.DefaultConstructionHeuristicSolverPhase - Step index (1147), time spend (4381), score (0hard/80504soft), selected move count (15) for constructing step...
I am trying to get the move which was selected (or at least to get a notification) so that I can capture some intermediate calculation results. Apparently printing out all calculation results for each single step is not feasible as many of them were not selected.
I was looking at the BestSolutionChangedEvent method but seems it might not fit my purpose as per this thread: How to know Optaplanner solving has ended?
Is there any idea of how to achieve that? Thanks in advance.