Package com.dna.jopt.util.costconverger
Class JoinedCostConverger
java.lang.Object
com.dna.jopt.util.costconverger.AbstractCostConverger
com.dna.jopt.util.costconverger.JoinedCostConverger
- 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
Methods inherited from class com.dna.jopt.util.costconverger.AbstractCostConverger
addExecutionAlgorithm, onConverged, onDone, setConvergenceThreshold, setOnConvergedTimeOut
-
Constructor Details
-
JoinedCostConverger
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
-