Class JoinedCostConverger

java.lang.Object
com.dna.jopt.util.costconverger.AbstractCostConverger
com.dna.jopt.util.costconverger.JoinedCostConverger
All Implemented Interfaces:
ICostConverger

public class JoinedCostConverger extends AbstractCostConverger
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 Details

    • JoinedCostConverger

      public JoinedCostConverger(IOptimization opti)
      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