public class TsvLogger extends AbstractLogger implements Logger
TsvLogger writes all Individuals from the Archive
to the specified file. It can be configured to write the data each
iterationStep iterations or each evaluationStep evaluations.
The file format is TSV (tab separated values), according to the Definition of tab-separated-values (tsv) by IANA.| Constructor and Description |
|---|
TsvLogger(Archive archive,
String filename,
int evaluationStep,
int iterationStep)
Creates an
TsvLogger. |
| Modifier and Type | Method and Description |
|---|---|
void |
logEvent(int iteration,
int evaluation)
Callback method called if the specific number of iterations or
evaluations is reached.
|
void |
logHeader(Collection<Objective> objectives)
Writes the header.
|
void |
optimizationStarted()
Callback method invoked once the optimization starts.
|
void |
optimizationStopped()
Callback method invoked once the optimization stops.
|
inidividualStateChanged, iterationComplete, optimizationStarted, optimizationStoppedpublic void optimizationStarted()
AbstractLoggeroptimizationStarted in class AbstractLoggerpublic void logEvent(int iteration,
int evaluation)
AbstractLoggerlogEvent in class AbstractLoggeriteration - the current iteration numberevaluation - the current evaluation numberpublic void optimizationStopped()
AbstractLoggeroptimizationStopped in class AbstractLoggerpublic void logHeader(Collection<Objective> objectives)
AbstractLoggerlogHeader in class AbstractLoggerobjectives - a collection of objectives