Class DefaultOptimizationScheme

java.lang.Object
com.dna.jopt.framework.body.scheme.AbstractOptimizationScheme
com.dna.jopt.framework.body.scheme.DefaultOptimizationScheme
All Implemented Interfaces:
IOptimizationScheme
Direct Known Subclasses:
OpenCostAssessorOptimizationScheme

public class DefaultOptimizationScheme extends AbstractOptimizationScheme
The Class DefaultOptimizationScheme.
Since:
Aug 13, 2020
Version:
Aug 13, 2020
Author:
jrich
  • Constructor Details

    • DefaultOptimizationScheme

      public DefaultOptimizationScheme(IOptimization optimization)
      Instantiates a new default optimization scheme.
      Parameters:
      optimization - the optimization
    • DefaultOptimizationScheme

      public DefaultOptimizationScheme(IOptimization optimization, Optional<ConstructionOptimizationAlgorithmConfig> constructionAlgoConfigOpt, Optional<List<HeuristicOptimizationAlgorithmConfig>> algoConfigsOpt)
      Instantiates a new default optimization scheme with optional algorithms to be used.

      Note: In case the constructionAlgoConfigOpt isn't present, the default construction algorithm is used.

      Note: In case the algoConfigsOpt isn't present, the default heuristic algorithms are used.

      If algoConfigsOpt is present, but contains an empty list, no heuristic algorithms are used at all.

      Parameters:
      optimization - the optimization
      constructionAlgoConfigOpt - the construction algo config opt
      algoConfigsOpt - the algo configs opt
  • Method Details

    • create

      public void create()
      Description copied from interface: IOptimizationScheme
      Creates the defined scheme by adding the algorithms etc.
    • getDefaultHeuristicAlgos

      public List<com.dna.jopt.revision.algorithm.IOptimizationAlgorithm> getDefaultHeuristicAlgos()
      Gets the default heuristic algos.
      Returns:
      the default heuristic algos