Details
-
Enhancement
-
Resolution: Unresolved
-
Minor
-
None
-
None
-
None
-
NEW
-
NEW
Description
After OptaPlanner completes solving, it logs timing information pertaining to each phase. That is, after each phase (construction heuristic, local search, ...) phase, OptaPlanner logs the following information:
- time spent
- best score
- calculation speed
- step total
This information should be available via an API to the application for each phase. That is, the calling application will get a list with each phase and the pertinent information for each phase. Any additional information that may be available internally should also be considered.
The following is the output from OptaPlanner:
2022-02-03 10:27:58.582 INFO 88739 — [ool-80-thread-1] .c.i.c.DefaultConstructionHeuristicPhase : Construction Heuristic phase (0) ended: time spent (218), best score ([-10.0]hard/[0/0/0/0/0/0/-13280.0]soft), score calculation speed (1666/sec), step total (0).2022-02-03 10:28:23.364 INFO 88739 — [ool-80-thread-1] o.o.c.i.l.DefaultLocalSearchPhase : Local Search phase (1) ended: time spent (25000), best score ([0.000]hard/[0/0/0.000/0/0/0/-11658.8160000000000]soft), score calculation speed (20952/sec), step total (467).2022-02-03 10:28:23.364 INFO 88739 — [ool-80-thread-1] o.o.core.impl.solver.DefaultSolver : Solving ended: time spent (25000), best score ([0.000]hard/[0/0/0.000/0/0/0/-11658.8160000000000]soft), score calculation speed (20769/sec), phase total (2), environment mode (NON_REPRODUCIBLE), move thread count (4).{}