Changeset 13500 for trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.4/MultiObjectiveExternalEvaluationProblem.cs
- Timestamp:
- 01/12/16 14:15:05 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.4/MultiObjectiveExternalEvaluationProblem.cs
r13491 r13500 56 56 get { return (IFixedValueParameter<MultiObjectiveOptimizationSupportScript>)Parameters["SupportScript"]; } 57 57 } 58 59 private IFixedValueParameter<BoolArray> MaximizationParameter { 60 get { return (IFixedValueParameter<BoolArray>)Parameters["Maximization"]; } 61 } 58 62 #endregion 59 63 … … 101 105 return Parameters.ContainsKey("Maximization") ? ((IValueParameter<BoolArray>)Parameters["Maximization"]).Value.ToArray() : new bool[0]; 102 106 } 107 } 108 109 public virtual void SetMaximization(bool[] maximization) { 110 ((IStringConvertibleArray)MaximizationParameter.Value).Length = maximization.Length; 111 var array = MaximizationParameter.Value; 112 for (var i = 0; i < maximization.Length; i++) 113 array[i] = maximization[i]; 103 114 } 104 115
Note: See TracChangeset
for help on using the changeset viewer.