Source code for metaheuristic_designer.reporters.silent_reporter

"""
Silent reporter that produces no output during a run.
"""

from __future__ import annotations
from ..reporter import Reporter
from typing import TYPE_CHECKING

if TYPE_CHECKING:
    from metaheuristic_designer.algorithm import Algorithm


[docs] class SilentReporter(Reporter): """Reporter that produces no output. All logging methods are no-ops. Useful for running experiments without visual clutter. """
[docs] def log_init(self, algorithm: Algorithm): pass
[docs] def log_step(self, algorithm: Algorithm): pass
[docs] def log_end(self, algorithm: Algorithm): pass