updateLogger function

Update the log.

Update the log.

This function modifies the log in-place, i.e., without making copies.

updateLogger(log, population, fitness = NULL, n.evals, extras = NULL, ...)

Arguments

  • log: [ecr_logger]

    The log generated by initLogger.

  • population: [list]

    List of individuals.

  • fitness: [matrix]

    Optional matrix of fitness values (each column contains the fitness value(s) for one individual) of population. If no matrix is passed and the log shall store information of the fitness, each individual needs to have an attribute fitness.

  • n.evals: [integer(1)]

    Number of fitness function evaluations performed in the last generation.

  • extras: [list]

    Optional named list of additional scalar values to log. See log.extras argument of initLogger for details.

  • ...: [any]

    Furhter arguments. Not used at the moment.

See Also

Other logging: getPopulationFitness(), getPopulations(), getStatistics(), initLogger()

  • Maintainer: Jakob Bossek
  • License: GPL-3
  • Last published: 2023-03-08