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
The Class DefaultOptimizationScheme.
- Since:
- Aug 13, 2020
- Version:
- Aug 13, 2020
- Author:
- jrich
-
Constructor Summary
ConstructorDescriptionDefaultOptimizationScheme
(IOptimization optimization) Instantiates a new default optimization scheme.DefaultOptimizationScheme
(IOptimization optimization, Optional<ConstructionOptimizationAlgorithmConfig> constructionAlgoConfigOpt, Optional<List<HeuristicOptimizationAlgorithmConfig>> algoConfigsOpt) Instantiates a new default optimization scheme with optional algorithms to be used. -
Method Summary
Methods inherited from class com.dna.jopt.framework.body.scheme.AbstractOptimizationScheme
attachCustomNodeLevelRestriction, attachCustomRouteLevelRestriction, getAssessorJobRestrictions, getAssessorMultiRouteRestrictions, getAssessorNodeRestrictions, getAssessorRouteRestrictions, getAutoFilter, getCostAssessor, getCustomDefaultProperties, getOptimization, getOptimizationAlgorithms, initAssessor, postCreate, setAutoFilter, setCostAssessor, setCustomDefaultProperties, setOptimizationAlgorithms
-
Constructor Details
-
DefaultOptimizationScheme
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 optimizationconstructionAlgoConfigOpt
- the construction algo config optalgoConfigsOpt
- 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
Gets the default heuristic algos.- Returns:
- the default heuristic algos
-