metaheuristic_designer.reporters.verbose_reporter module#

Reporter that prints a text summary at regular intervals.

class VerboseReporter(verbose_timer=0.5, **kwargs)[source]#

Bases: Reporter

Reporter that prints a multi-line status block every verbose_timer seconds.

Parameters:
verbose_timerfloat, optional

Minimum interval (in seconds) between printed updates (default 0.5).

Methods

log_end(algorithm)

Print a final summary of the completed run.

log_init(algorithm)

Print a header indicating the start of the optimization.

log_step(algorithm)

Print a status block if enough time has elapsed.

log_init(algorithm)[source]#

Print a header indicating the start of the optimization.

Parameters:

algorithm (Algorithm)

log_step(algorithm)[source]#

Print a status block if enough time has elapsed.

Parameters:

algorithm (Algorithm)

log_end(algorithm)[source]#

Print a final summary of the completed run.

Parameters:

algorithm (Algorithm)