Package org.opt4j.core.common.logger
Class TsvLogger
java.lang.Object
org.opt4j.core.common.logger.AbstractLogger
org.opt4j.core.common.logger.TsvLogger
- All Implemented Interfaces:
Logger,IndividualStateListener,OptimizerIterationListener,OptimizerStateListener
The INFEASIBLE .
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.
An infeasible Objective is printed as - See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidlogEvent(int iteration, int evaluation) Callback method called if the specific number of iterations or evaluations is reached.voidlogHeader(Collection<Objective> objectives) Writes the header.voidCallback method invoked once the optimization starts.voidCallback method invoked once the optimization stops.Methods inherited from class org.opt4j.core.common.logger.AbstractLogger
inidividualStateChanged, iterationComplete, optimizationStarted, optimizationStopped
-
Constructor Details
-
TsvLogger
Creates anTsvLogger.
-
-
Method Details
-
optimizationStarted
Description copied from class:AbstractLoggerCallback method invoked once the optimization starts.- Specified by:
optimizationStartedin classAbstractLogger
-
logEvent
Description copied from class:AbstractLoggerCallback method called if the specific number of iterations or evaluations is reached.- Specified by:
logEventin classAbstractLogger- Parameters:
iteration- the current iteration numberevaluation- the current evaluation number
-
optimizationStopped
Description copied from class:AbstractLoggerCallback method invoked once the optimization stops.- Specified by:
optimizationStoppedin classAbstractLogger
-
logHeader
Description copied from class:AbstractLoggerWrites the header.- Specified by:
logHeaderin classAbstractLogger- Parameters:
objectives- a collection of objectives
-