Package com.dna.jopt.util.costconverger
Class JoinedCostConvergerWithFinalAutoFilterStep
java.lang.Object
com.dna.jopt.util.costconverger.AbstractCostConverger
com.dna.jopt.util.costconverger.JoinedCostConvergerWithFinalAutoFilterStep
- All Implemented Interfaces:
ICostConverger
This class is an extension of
AbstractCostConverger
and defines convergence (unchanged joined cost over several iterations).
After convergence has been achieved the optimization is stopped.- Since:
- 03/08/2019
- Version:
- 03/08/2019
- Author:
- DNA
-
Constructor Summary
ConstructorDescriptionThe constructor in order to set convergence by joined cost. -
Method Summary
Modifier and TypeMethodDescriptiondouble
onConverged
(IOptimization opti) void
onDone
(IOptimization opti) Methods inherited from class com.dna.jopt.util.costconverger.AbstractCostConverger
addExecutionAlgorithm, setConvergenceThreshold, setOnConvergedTimeOut
-
Constructor Details
-
JoinedCostConvergerWithFinalAutoFilterStep
The constructor in order to set convergence by joined cost. After convergence is achieved the optimization is stopped.Implementation example:
ICostConverger myJoinedCostConverger = new JoinedCostConverger(this); myJoinedCostConverger.addExecutionAlgorithm(GeneticEvolutionAlgo.MY_TITLE); myJoinedCostConverger.setConvergenceThreshold(5);
- Parameters:
opti
- the iOptimization to check for convergence
-
-
Method Details
-
getConvergenceCost
-
onDone
- Specified by:
onDone
in interfaceICostConverger
- Overrides:
onDone
in classAbstractCostConverger
-
onConverged
- Specified by:
onConverged
in interfaceICostConverger
- Overrides:
onConverged
in classAbstractCostConverger
-