metaheuristic_designer.reporter module#
Module defining the abstract reporter interface for algorithm progress output.
- class Reporter[source]#
Bases:
ABCAbstract interface for progress reporters.
A reporter is notified at three key moments of an optimization run: initialization, after each generation, and at completion. Implementations can display progress bars, log messages, update dashboards, etc.
Methods
log_end(algorithm)Called once, after the optimization loop finishes.
log_init(algorithm)Called once, before the main optimization loop starts.
log_step(algorithm)Called after each generation.
- abstract log_init(algorithm)[source]#
Called once, before the main optimization loop starts.
- Parameters:
- algorithmAlgorithm
The algorithm that is about to run.
- Parameters:
algorithm (Algorithm)