Class MaxGenerationNumber
- java.lang.Object
-
- de.uka.ipd.sdq.tcfmoop.terminationcriteria.AbstractTerminationCriterion
-
- de.uka.ipd.sdq.tcfmoop.terminationcriteria.MaxGenerationNumber
-
- All Implemented Interfaces:
ITerminationCriterion
public class MaxGenerationNumber extends AbstractTerminationCriterion
-
-
Field Summary
-
Fields inherited from class de.uka.ipd.sdq.tcfmoop.terminationcriteria.AbstractTerminationCriterion
archive, evaluationResult, name, outputInformation, outputNeedsUpdate, population, suggestedStop
-
-
Constructor Summary
Constructors Constructor Description MaxGenerationNumber(IConfiguration conf, org.opt4j.core.optimizer.Population population, org.opt4j.core.optimizer.Archive archive)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
evaluateImpl(int iteration, long currentTime)
The implementation of the Evaluation logic is placed here.void
updateOutputInformation()
-
Methods inherited from class de.uka.ipd.sdq.tcfmoop.terminationcriteria.AbstractTerminationCriterion
evaluate, getEvaluationResult, getName, getOutputInformation
-
-
-
-
Constructor Detail
-
MaxGenerationNumber
public MaxGenerationNumber(IConfiguration conf, org.opt4j.core.optimizer.Population population, org.opt4j.core.optimizer.Archive archive)
-
-
Method Detail
-
evaluateImpl
public void evaluateImpl(int iteration, long currentTime)
The implementation of the Evaluation logic is placed here. Implements the Maximum Number of Generation Criterion. If the number of the evaluated iterations reaches the supplied limit, the criterion suggest that the optimization should be stopped.- Specified by:
evaluateImpl
in classAbstractTerminationCriterion
- Parameters:
iteration
- - The number of the current iterationcurrentTime
- - The current time
-
updateOutputInformation
public void updateOutputInformation()
- Specified by:
updateOutputInformation
in classAbstractTerminationCriterion
-
-