Class AbstractLogger

    • Field Detail

      • iterationStep

        protected final int iterationStep
      • evaluationStep

        protected final int evaluationStep
      • isFirst

        protected boolean isFirst
      • evaluationCountLast

        protected int evaluationCountLast
    • Constructor Detail

      • AbstractLogger

        public AbstractLogger​(int iterationStep,
                              int evaluationStep)
        Constructs an AbstractLogger.
        Parameters:
        iterationStep - the number of iterations between two logging events
        evaluationStep - the number of evaluations between two logging events
    • Method Detail

      • logEvent

        public abstract void logEvent​(int iteration,
                                      int evaluation)
        Callback method called if the specific number of iterations or evaluations is reached.
        Parameters:
        iteration - the current iteration number
        evaluation - the current evaluation number
      • logHeader

        public abstract void logHeader​(Collection<Objective> objectives)
        Writes the header.
        Parameters:
        objectives - a collection of objectives
      • optimizationStarted

        public abstract void optimizationStarted()
        Callback method invoked once the optimization starts.
      • optimizationStopped

        public abstract void optimizationStopped()
        Callback method invoked once the optimization stops.