public abstract class TerminationCondition extends AnchorBean<TerminationCondition>
Constructor and Description |
---|
TerminationCondition() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
continueFurther(int iteration,
double score,
int size,
MessageLogger logger)
Whether to continue for an additional iteration step or not.
|
abstract void |
initialize()
Called before
continueFurther(int, double, int, org.anchoranalysis.core.log.MessageLogger) once to setup state in the bean. |
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public abstract void initialize()
continueFurther(int, double, int, org.anchoranalysis.core.log.MessageLogger)
once to setup state in the bean.
If called again, it resets the current state.
public abstract boolean continueFurther(int iteration, double score, int size, MessageLogger logger)
iteration
- the current iteration of the optimization.score
- the current score associated with the optimizationsize
- the current size associated with the optimization.logger
- a logger to write messages toCopyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.