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 Individual
s 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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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
Callback method invoked once the optimization starts.void
Callback 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:AbstractLogger
Callback method invoked once the optimization starts.- Specified by:
optimizationStarted
in classAbstractLogger
-
logEvent
Description copied from class:AbstractLogger
Callback method called if the specific number of iterations or evaluations is reached.- Specified by:
logEvent
in classAbstractLogger
- Parameters:
iteration
- the current iteration numberevaluation
- the current evaluation number
-
optimizationStopped
Description copied from class:AbstractLogger
Callback method invoked once the optimization stops.- Specified by:
optimizationStopped
in classAbstractLogger
-
logHeader
Description copied from class:AbstractLogger
Writes the header.- Specified by:
logHeader
in classAbstractLogger
- Parameters:
objectives
- a collection of objectives
-