Changeset 17610 for branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems/SingleObjectiveProblem.cs
- Timestamp:
- 06/19/20 14:26:41 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems/SingleObjectiveProblem.cs
r17570 r17610 72 72 BestKnownQualityParameter = cloner.Clone(original.BestKnownQualityParameter); 73 73 MaximizationParameter = cloner.Clone(original.MaximizationParameter); 74 Parameterize();75 RegisterEventHandlers();76 }77 78 protected SingleObjectiveProblem() : base() {79 MaximizationParameter = new ValueParameter<BoolValue>("Maximization", "Whether the problem should be maximized (True) or minimized (False).", new BoolValue(false).AsReadOnly()) { Hidden = true, ReadOnly = true };80 BestKnownQualityParameter = new OptionalValueParameter<DoubleValue>("BestKnownQuality", "The quality of the best known solution of this problem.");81 82 Parameters.Add(MaximizationParameter);83 Parameters.Add(BestKnownQualityParameter);84 85 Operators.Add(Evaluator);86 Operators.Add(new SingleObjectiveAnalyzer<TEncodedSolution>());87 Operators.Add(new SingleObjectiveImprover<TEncodedSolution>());88 Operators.Add(new SingleObjectiveMoveEvaluator<TEncodedSolution>());89 Operators.Add(new SingleObjectiveMoveGenerator<TEncodedSolution>());90 Operators.Add(new SingleObjectiveMoveMaker<TEncodedSolution>());91 92 74 Parameterize(); 93 75 RegisterEventHandlers();
Note: See TracChangeset
for help on using the changeset viewer.