Changeset 13631 for stable/HeuristicLab.Problems.ExternalEvaluation/3.4/MultiObjectiveExternalEvaluationProblem.cs
- Timestamp:
- 02/23/16 22:04:59 (9 years ago)
- Location:
- stable
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 13491,13498,13500
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.ExternalEvaluation/3.4/MultiObjectiveExternalEvaluationProblem.cs
r13259 r13631 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 60 64 #region Properties 65 public new IEncoding Encoding { 66 get { return base.Encoding; } 67 set { base.Encoding = value; } 68 } 61 69 public EvaluationCache Cache { 62 70 get { return CacheParameter.Value; } … … 97 105 return Parameters.ContainsKey("Maximization") ? ((IValueParameter<BoolArray>)Parameters["Maximization"]).Value.ToArray() : new bool[0]; 98 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]; 99 114 } 100 115
Note: See TracChangeset
for help on using the changeset viewer.