- Timestamp:
- 09/26/19 10:02:47 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Problems.TestFunctions/3.3/SingleObjectiveTestFunctionProblem.cs
r17226 r17270 40 40 IProblemInstanceConsumer<SOTFData> { 41 41 42 public override bool Maximization {43 get { return Parameters.ContainsKey("TestFunction") && TestFunction.Maximization; }44 }45 46 42 #region Parameter Properties 47 43 private IFixedValueParameter<IntValue> ProblemSizeParameter { … … 86 82 Parameters.Add(new OptionalValueParameter<RealVector>("BestKnownSolution", "The best known solution for this test function instance.")); 87 83 Parameters.Add(new ValueParameter<ISingleObjectiveTestFunction>("TestFunction", "The function that is to be optimized.", new Ackley())); 84 Maximization = TestFunction.Maximization; 88 85 89 86 Encoding.LengthParameter = ProblemSizeParameter; … … 170 167 var bestSolution = TestFunction.GetBestKnownSolution(ProblemSize); 171 168 BestKnownSolutionParameter.Value = bestSolution; 169 Maximization = TestFunction.Maximization; 172 170 173 171 OnReset();
Note: See TracChangeset
for help on using the changeset viewer.