- Timestamp:
- 10/03/19 17:43:11 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Problems.ExternalEvaluation/3.4/MultiObjectiveExternalEvaluationProblem.cs
r17226 r17309 90 90 public MultiObjectiveExternalEvaluationProblem(TEncoding encoding) 91 91 : base(encoding) { 92 Parameters.Remove("Maximization"); // readonly in base class93 Parameters.Add(new FixedValueParameter<BoolArray>("Maximization", "Set to false if the problem should be minimized.", new BoolArray()));92 MaximizationParameter.ReadOnly = false; 93 MaximizationParameter.Value = new BoolArray(new [] { false, false }); 94 94 Parameters.Add(new OptionalValueParameter<EvaluationCache>("Cache", "Cache of previously evaluated solutions.")); 95 95 Parameters.Add(new ValueParameter<CheckedItemCollection<IEvaluationServiceClient>>("Clients", "The clients that are used to communicate with the external application.", new CheckedItemCollection<IEvaluationServiceClient>() { new EvaluationServiceClient() })); … … 99 99 100 100 #region Multi Objective Problem Overrides 101 public override bool[] Maximization {102 get {103 return Parameters.ContainsKey("Maximization") ? ((IValueParameter<BoolArray>)Parameters["Maximization"]).Value.ToArray() : new bool[0];104 }105 }106 107 101 public virtual void SetMaximization(bool[] maximization) { 108 102 ((IStringConvertibleArray)MaximizationParameter.Value).Length = maximization.Length;
Note: See TracChangeset
for help on using the changeset viewer.