public class LoggerModule extends OutputModule
Logger
Modifier and Type | Field and Description |
---|---|
protected int |
evaluationStep |
protected java.lang.String |
filename |
protected int |
iterationStep |
protected boolean |
loggingPerEvaluation |
protected boolean |
loggingPerIteration |
SINGLETON
Constructor and Description |
---|
LoggerModule() |
Modifier and Type | Method and Description |
---|---|
void |
config()
Configure the module.
|
int |
getEvaluationStep()
Returns the step size of the evaluations.
|
java.lang.String |
getFilename()
Returns the filename.
|
int |
getIterationStep()
Returns the step size of the iterations.
|
boolean |
isLoggingPerEvaluation()
Returns
true if the logger observes the number of evaluations. |
boolean |
isLoggingPerIteration()
Returns
true if the logger observes the number of iterations. |
void |
setEvaluationStep(int evaluationStep)
Sets the step size of the evaluations.
|
void |
setFilename(java.lang.String filename)
Sets the filename.
|
void |
setIterationStep(int iterationStep)
Sets the step size of the iterations.
|
void |
setLoggingPerEvaluation(boolean loggingPerEvaluation)
Sets the observation for the number of evaluations.
|
void |
setLoggingPerIteration(boolean loggingPerIteration)
Sets the observation for the number of iterations.
|
addControlListener, addIndividualStateListener, addOptimizerIterationListener, addOptimizerStateListener, bindConstant, bindConstant, bindConstant, bindConstant, configure, constant, multi
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
protected java.lang.String filename
protected boolean loggingPerEvaluation
protected boolean loggingPerIteration
protected int evaluationStep
protected int iterationStep
public void config()
Opt4JModule
config
in class Opt4JModule
Binder
public java.lang.String getFilename()
setFilename(java.lang.String)
public void setFilename(java.lang.String filename)
filename
- the filenamegetFilename()
public int getEvaluationStep()
setEvaluationStep(int)
public void setEvaluationStep(int evaluationStep)
evaluationStep
- the step size of the evaluationsgetEvaluationStep()
public int getIterationStep()
setIterationStep(int)
public void setIterationStep(int iterationStep)
iterationStep
- the step size of the iterationsgetIterationStep()
public boolean isLoggingPerEvaluation()
true
if the logger observes the number of evaluations.true
if the logger observes the number of evaluationspublic void setLoggingPerEvaluation(boolean loggingPerEvaluation)
loggingPerEvaluation
- true
if the logger observes the number of evaluationspublic boolean isLoggingPerIteration()
true
if the logger observes the number of iterations.true
if the logger observes the number of iterationspublic void setLoggingPerIteration(boolean loggingPerIteration)
loggingPerIteration
- true
if the logger observes the number of iterations